Commit dd5a8a50 by chenwq

店面产值汇总

1 parent a62ee8fe
......@@ -78,7 +78,7 @@ Component({
methods: {
dealStaffList() {
var list = this.data.orderObj
list.activityList.forEach(item => {
list && list.activityList.forEach(item => {
item.showStaffList = item.staffList.length > 10 ? item.staffList.slice(0, 10) : item.staffList
item.staffList = item.staffList.length > 10 ? item.staffList.slice(10) : []
})
......
......@@ -4,7 +4,7 @@
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name]}}
{{orderObj[item.name] || 0}}
</view>
<view class="order-label">{{item.label}}</view>
</view>
......
......@@ -93,7 +93,7 @@ Page({
this.setData({
['searchForm.scene' + this.data.sceneActive + 'Idx']: res.tapIndex
})
this.getCustomerDetail()
this.data.sceneActive != 4 ? this.getCustomerDetail() : this.getActivityRevenue()
console.log('调接口---')
}
})
......@@ -218,6 +218,7 @@ Page({
/** 查询场景4的产值 */
getActivityRevenue() {
wx.showLoading()
var params = this.dealSearchStatus()
outputApi.getActivityRevenue({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => {
// console.log(res)
......@@ -270,6 +271,8 @@ Page({
['sceneActivityObj.scene' + this.data.sceneActive]: actList
})
this.setCurActivity()
}).finally(() => {
wx.hideLoading()
})
},
......
......@@ -135,7 +135,6 @@ Component({
outputApi
.partnerMerchantTotal({ merchantId: userInfo.merchantId })
.then(result => {
debugger
console.log(result)
let { dataList, yqMerchantIds } = result
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!