Commit d566fe0b by 李伟康

Merge branch 'develop' of http://192.168.3.233:8090/saas_plus/business-assistant into develop

2 parents 620893d3 dd5a8a50
...@@ -78,7 +78,7 @@ Component({ ...@@ -78,7 +78,7 @@ Component({
methods: { methods: {
dealStaffList() { dealStaffList() {
var list = this.data.orderObj 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.showStaffList = item.staffList.length > 10 ? item.staffList.slice(0, 10) : item.staffList
item.staffList = item.staffList.length > 10 ? item.staffList.slice(10) : [] item.staffList = item.staffList.length > 10 ? item.staffList.slice(10) : []
}) })
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index"> <view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt"> <view class="order-txt">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text> <text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name]}} {{orderObj[item.name] || 0}}
</view> </view>
<view class="order-label">{{item.label}}</view> <view class="order-label">{{item.label}}</view>
</view> </view>
......
...@@ -93,7 +93,7 @@ Page({ ...@@ -93,7 +93,7 @@ Page({
this.setData({ this.setData({
['searchForm.scene' + this.data.sceneActive + 'Idx']: res.tapIndex ['searchForm.scene' + this.data.sceneActive + 'Idx']: res.tapIndex
}) })
this.getCustomerDetail() this.data.sceneActive != 4 ? this.getCustomerDetail() : this.getActivityRevenue()
console.log('调接口---') console.log('调接口---')
} }
}) })
...@@ -218,6 +218,7 @@ Page({ ...@@ -218,6 +218,7 @@ Page({
/** 查询场景4的产值 */ /** 查询场景4的产值 */
getActivityRevenue() { getActivityRevenue() {
wx.showLoading()
var params = this.dealSearchStatus() var params = this.dealSearchStatus()
outputApi.getActivityRevenue({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => { outputApi.getActivityRevenue({ merchantId: this.data.merchantInfo.merchantId, ...params }).then(res => {
// console.log(res) // console.log(res)
...@@ -270,6 +271,8 @@ Page({ ...@@ -270,6 +271,8 @@ Page({
['sceneActivityObj.scene' + this.data.sceneActive]: actList ['sceneActivityObj.scene' + this.data.sceneActive]: actList
}) })
this.setCurActivity() this.setCurActivity()
}).finally(() => {
wx.hideLoading()
}) })
}, },
......
...@@ -135,7 +135,6 @@ Component({ ...@@ -135,7 +135,6 @@ Component({
outputApi outputApi
.partnerMerchantTotal({ merchantId: userInfo.merchantId }) .partnerMerchantTotal({ merchantId: userInfo.merchantId })
.then(result => { .then(result => {
debugger
console.log(result) console.log(result)
let { dataList, yqMerchantIds } = 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!