Commit 3abff05e by 张立顺

代码合并

2 parents b036890c ea0f6bb5
......@@ -36,11 +36,14 @@ export const getYQInfo = userInfo => {
let subIndex = 0
console.log(!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2);
console.log(userInfo.merchantId,'userInfo.merchantId');
if (!userInfo.loginRole || userInfo.loginRole ==4 ) {
// console.log(userInfo.merchantId,'userInfo.merchantId');
app.globalData.yqdInfo = {
subIndex,
merchantRange: [{
merchantName: userInfo.merchantName
merchantName: userInfo.merchantName,
merchantId: userInfo.merchantId
}]
}
// this.setData({
......@@ -71,7 +74,8 @@ export const getYQInfo = userInfo => {
arr = [all, ...data]
} else {
arr = [{
merchantName: userInfo.merchantName
merchantName: userInfo.merchantName,
merchantId: userInfo.merchantId
}]
}
app.globalData.yqdInfo = {
......
......@@ -149,10 +149,6 @@ Page({
jump(e) {
let { item, type } = e.currentTarget.dataset
let { userInfo } = this.data
// recordId
// console.log(item);
// return
wx.$util.pointRecord(item.recordId)
// 判断是不是门店员工
if (userInfo.merchantType && !userInfo.isSuper && type == 2) {
if (item.type == 'scanCode') {
......@@ -226,9 +222,12 @@ Page({
// ['dateObj.beginDateStr']: selectDate + '-01',
// ['dateObj.endDateStr']: endDate
})
let { subIndex, merchantRange } = this.data
let {
// subIndex,
merchantRange
} = this.data
this.getOutputValue({
subIndex,
// subIndex,
merchantRange
})
// console.log(date)
......@@ -398,8 +397,9 @@ Page({
},
getOutputValue(yqdInfo) {
let { dateObj, userInfo } = this.data
console.log(yqdInfo, 'yqdInfo')
let { subIndex, merchantRange } = yqdInfo
// let { userInfo } = this.data
// yqMerchantId 不是全部就必要要带过去
// 1-超管 2-商户管理员 3-区域督导 4-驻店人员
const yqMerchantId = merchantRange[subIndex].merchantId || ''
const loginRole = userInfo.subLoginUser.loginRole
......@@ -610,8 +610,12 @@ Page({
},
{
name: '经营数据',
<<<<<<< HEAD
url: 'tabOperating.index',
recordId: 11
=======
url: 'tabOperating.index'
>>>>>>> dev_v4.22.2
}
]
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!