zx 3 years ago
parent 070a4d438f
commit b578bd31e0

@ -143,7 +143,7 @@ Page({
"Classify": 0,
"StartTime": this.data.StartTime,
"EndTime": this.data.EndTime,
"Types": "theme",
"Types": "theme_v6",
"DetailsData": [dtData]
}
var dtJson = JSON.stringify(jsonObj)

@ -30,11 +30,11 @@ Page({
sTimeType: wx.getStorageSync('sTimeType') || 34,
sStartTime: wx.getStorageSync('sStartTime') || '',
sEndTime: wx.getStorageSync('sEndTime') || '',
sBrand: this.currentBrand,
sBrand: this.data.currentBrand,
sSeriesName: wx.getStorageSync('sSeriesName') || '',
}).then(res => {
this.setData({
percent: res.countPercent
percent: res.countPercent * 100 + '%'
})
});
app.globalData.request({

@ -41,7 +41,7 @@
<view class="kol-content">
<view class="kol-item" wx:for="{{kolData}}" wx:key="index" wx:if="{{index<3}}">
<image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" />
<view class="kol-user-name">{{item._source.user_author}}</view>
<view class="kol-user-name">{{item._source.user_author.length > 8?item._source.user_author.slice(0,8):item._source.user_author}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="kol-value">影响力</view>
<view class="kol-value-number">{{item._source.volume}}</view>
@ -51,7 +51,7 @@
<view class="kol-content">
<view class="kol-item" wx:for="{{kolData}}" wx:key="index" wx:if="{{index>=3&&index<6}}">
<image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" />
<view class="kol-user-name">{{item._source.user_author}}</view>
<view class="kol-user-name">{{item._source.user_author.length > 8?item._source.user_author.slice(0,8):item._source.user_author}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="kol-value">影响力</view>
<view class="kol-value-number">{{item._source.volume}}</view>
@ -61,7 +61,7 @@
<view class="kol-content">
<view class="kol-item" wx:for="{{kolData}}" wx:key="index" wx:if="{{index>=6&&index<9}}">
<image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" />
<view class="kol-user-name">{{item._source.user_author}}</view>
<view class="kol-user-name">{{item._source.user_author.length > 8?item._source.user_author.slice(0,8):item._source.user_author}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="kol-value">影响力</view>
<view class="kol-value-number">{{item._source.volume}}</view>
@ -78,7 +78,7 @@
<!-- <image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" /> -->
<view class="kol-user-name">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="kol-value">影响力</view>
<view class="kol-value">传播值</view>
<view class="kol-value-number">{{item.value}}</view>
</view>
</view>
@ -88,7 +88,7 @@
<!-- <image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" /> -->
<view class="kol-user-name">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="kol-value">影响力</view>
<view class="kol-value">传播值</view>
<view class="kol-value-number">{{item.value}}</view>
</view>
</view>
@ -98,7 +98,7 @@
<!-- <image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" /> -->
<view class="kol-user-name">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view class="kol-value">影响力</view>
<view class="kol-value">传播值</view>
<view class="kol-value-number">{{item.value}}</view>
</view>
</view>

@ -9,6 +9,8 @@ Page({
sCrisis: [],
sStartTime: '',
sEndTime: '',
iPageIndex: 1,
iPageSize: 20,
iGroupBy: 0,
iTimeType: 0,
listType: 0,
@ -42,6 +44,32 @@ Page({
this.getApi();
this.getData();
},
onReachBottom() {
let pageIndex = this.data.iPageIndex + 1;
this.setData({iPageIndex: pageIndex});
app.globalData.request({
action: 'getList', //数据列表
token: 't%2BrswgjvzGM=',
sTimeType: 4,
sStartTime: this.data.sStartTime,
sEndTime: this.data.sEndTime,
sQuDao: (this.data.sQuDao).join(',') || '-1',
sQingGan: (this.data.sQingGan).join(',') || '-1',
sTitle: this.data.sTitle,
sTitleType: this.data.sTitleType,
iPageIndex: this.data.iPageIndex,
iPageSize: this.data.iPageSize,
sType: 'ZhuTiFenXiBl',
sGuid: this.data.Guid,
isSourcetype: 0, //1返回渠道 0不返回
iTimeType: this.data.iTimeType, //0发布时间 1入库时间
iGroupBy: this.data.iGroupBy, //0不去重 1相似度去重
listType: this.data.listType, //0默认 1影响力倒序
}).then(res => {
let arr = [...this.data.dataList, ...res]
this.setData({dataList: arr});
});
},
getApi() {
app.globalData.request({
action: 'getQuDao', //获取所有渠道
@ -78,8 +106,8 @@ Page({
sQingGan: (this.data.sQingGan).join(',') || '-1',
sTitle: this.data.sTitle,
sTitleType: this.data.sTitleType,
iPageIndex: 1,
iPageSize: 20,
iPageIndex: this.data.iPageIndex,
iPageSize: this.data.iPageSize,
sType: 'ZhuTiFenXiBl',
sGuid: this.data.Guid,
isSourcetype: 0, //1返回渠道 0不返回
@ -124,6 +152,28 @@ Page({
toDetail() {
// 外链
},
report() { //生成数据
app.globalData.request({
action: 'toExcel', //数据列表
token: 't%2BrswgjvzGM=',
sTimeType: 4,
sStartTime: this.data.sStartTime,
sEndTime: this.data.sEndTime,
sQuDao: (this.data.sQuDao).join(',') || '-1',
sQingGan: (this.data.sQingGan).join(',') || '-1',
sTitle: this.data.sTitle,
sTitleType: this.data.sTitleType,
sType: 'ZhuTiFenXiBl',
sGuid: this.data.Guid,
sField: '', //导出字段
sFileName: '', //文件名称
sCheckedIds: '', //数据id
iNum: 0, //导出条数
iTimeType: this.data.iTimeType, //0发布时间 1入库时间
}).then(res => {
console.log(res)
});
},
// 时间选择器
onDisplayStart() {
this.setData({ show1: true });

@ -87,7 +87,7 @@
</van-checkbox-group>
</view>
<view style="width: 80%;">
<van-button bind:click="toThemeBoard" custom-style="width: 45%" color="#0084FF" class="theme-add-btn" plain>生成数据</van-button>
<van-button bind:click="report" custom-style="width: 45%" color="#0084FF" class="theme-add-btn" plain>生成数据</van-button>
<van-button bind:click="toThemeBoard" custom-style="width: 45%" color="#0084FF" class="theme-add-btn">数据看板</van-button>
</view>
</view>

Loading…
Cancel
Save