Commit be9d0268 by 张立顺

代码更新

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