Commit be9d0268 by 张立顺

代码更新

2 parents 363bb01f 42cf1d2b
......@@ -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()
})
},
......
......@@ -5,7 +5,6 @@ import { senceData } from "~/pages/tab/index/constant/data";
import { IMG_URL } from "~/utils/constantData.js";
import Draw from "~/utils/Draw.js";
import { createQrCodeApi } from "~/api/checkProduct.js";
Page({
/**
* 页面的初始数据
......@@ -248,10 +247,16 @@ Page({
// 分享获取懂得用户数
authorizedFn(e) {
let res = e.detail;
this.setData({
isShare: res.isShare,
phone: res.phone,
});
this.onLoad(null)
wx.nextTick(()=>{
this.setData({
isShare: res.isShare,
// phone: res.phone,
});
})
},
/**
* 生命周期函数--监听页面加载 ()
......
......@@ -173,12 +173,12 @@ Component({
USERAPI.getUserProfile(this.loginToken, detail)
.then((result) => {
// console.log(result)
let { phone } = result;
// let { phone } = result;
// let {
wx.$storage.set("userPhone", phone);
wx.$storage.set('wx_user_info', result);
// }
this.triggerEvent("authorized", {
phone,
// phone,
isShare: false,
});
// this.
......
......@@ -136,6 +136,7 @@ Component({
// debugger
// 默认返回2前两条的具体数据 剩下需要自己手动查询
// console.log(outputApi.partnerMerchantTotal)
<<<<<<< HEAD
// 44211548
try {
outputApi
......@@ -143,6 +144,12 @@ Component({
.then(result => {
debugger
console.log('result', result)
=======
outputApi
.partnerMerchantTotal({ merchantId: userInfo.merchantId })
.then(result => {
console.log(result)
>>>>>>> 42cf1d2bd1a8f8485906f0034f063c6ccfeb1825
let { dataList, yqMerchantIds } = result
const list = yqMerchantIds.reduce((list, item, index) => {
......
......@@ -96,7 +96,7 @@ class Share {
unionId: WXUSERINFO.unionId || '',
nickName: WXUSERINFO.nickName || '',
avatar: WXUSERINFO.avatarUrl || '',
phone: USERINFO.phone || '',
phone: WXUSERINFO.phone || USERINFO.phone || '',
...shareInfo
}, 1)
}
......@@ -124,7 +124,7 @@ class Share {
WXUSERINFO,
USERINFO
} = this.getCommonData(),
thisPage = wx.$router.getPageInstance()
thisPage = wx.$router.getPageInstance().options
reportData({
openId: WXUSERINFO.openId || '',
unionId: WXUSERINFO.unionId || '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!