Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3abff05e
authored
Jun 19, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
代码合并
2 parents
b036890c
ea0f6bb5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
store/index.js
tabIndex/pages/index/index.js
store/index.js
View file @
3abff05
...
@@ -36,11 +36,14 @@ export const getYQInfo = userInfo => {
...
@@ -36,11 +36,14 @@ export const getYQInfo = userInfo => {
let
subIndex
=
0
let
subIndex
=
0
console
.
log
(
!
userInfo
.
isSuper
&&
userInfo
.
merchantType
&&
userInfo
.
userType
==
2
);
console
.
log
(
!
userInfo
.
isSuper
&&
userInfo
.
merchantType
&&
userInfo
.
userType
==
2
);
console
.
log
(
userInfo
.
merchantId
,
'userInfo.merchantId'
);
if
(
!
userInfo
.
loginRole
||
userInfo
.
loginRole
==
4
)
{
if
(
!
userInfo
.
loginRole
||
userInfo
.
loginRole
==
4
)
{
// console.log(userInfo.merchantId,'userInfo.merchantId');
app
.
globalData
.
yqdInfo
=
{
app
.
globalData
.
yqdInfo
=
{
subIndex
,
subIndex
,
merchantRange
:
[{
merchantRange
:
[{
merchantName
:
userInfo
.
merchantName
merchantName
:
userInfo
.
merchantName
,
merchantId
:
userInfo
.
merchantId
}]
}]
}
}
// this.setData({
// this.setData({
...
@@ -71,7 +74,8 @@ export const getYQInfo = userInfo => {
...
@@ -71,7 +74,8 @@ export const getYQInfo = userInfo => {
arr
=
[
all
,
...
data
]
arr
=
[
all
,
...
data
]
}
else
{
}
else
{
arr
=
[{
arr
=
[{
merchantName
:
userInfo
.
merchantName
merchantName
:
userInfo
.
merchantName
,
merchantId
:
userInfo
.
merchantId
}]
}]
}
}
app
.
globalData
.
yqdInfo
=
{
app
.
globalData
.
yqdInfo
=
{
...
...
tabIndex/pages/index/index.js
View file @
3abff05
...
@@ -149,10 +149,6 @@ Page({
...
@@ -149,10 +149,6 @@ Page({
jump
(
e
)
{
jump
(
e
)
{
let
{
item
,
type
}
=
e
.
currentTarget
.
dataset
let
{
item
,
type
}
=
e
.
currentTarget
.
dataset
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
// recordId
// console.log(item);
// return
wx
.
$util
.
pointRecord
(
item
.
recordId
)
// 判断是不是门店员工
// 判断是不是门店员工
if
(
userInfo
.
merchantType
&&
!
userInfo
.
isSuper
&&
type
==
2
)
{
if
(
userInfo
.
merchantType
&&
!
userInfo
.
isSuper
&&
type
==
2
)
{
if
(
item
.
type
==
'scanCode'
)
{
if
(
item
.
type
==
'scanCode'
)
{
...
@@ -226,9 +222,12 @@ Page({
...
@@ -226,9 +222,12 @@ Page({
// ['dateObj.beginDateStr']: selectDate + '-01',
// ['dateObj.beginDateStr']: selectDate + '-01',
// ['dateObj.endDateStr']: endDate
// ['dateObj.endDateStr']: endDate
})
})
let
{
subIndex
,
merchantRange
}
=
this
.
data
let
{
// subIndex,
merchantRange
}
=
this
.
data
this
.
getOutputValue
({
this
.
getOutputValue
({
subIndex
,
//
subIndex,
merchantRange
merchantRange
})
})
// console.log(date)
// console.log(date)
...
@@ -398,8 +397,9 @@ Page({
...
@@ -398,8 +397,9 @@ Page({
},
},
getOutputValue
(
yqdInfo
)
{
getOutputValue
(
yqdInfo
)
{
let
{
dateObj
,
userInfo
}
=
this
.
data
let
{
dateObj
,
userInfo
}
=
this
.
data
console
.
log
(
yqdInfo
,
'yqdInfo'
)
let
{
subIndex
,
merchantRange
}
=
yqdInfo
let
{
subIndex
,
merchantRange
}
=
yqdInfo
//
let { userInfo } = this.data
//
yqMerchantId 不是全部就必要要带过去
// 1-超管 2-商户管理员 3-区域督导 4-驻店人员
// 1-超管 2-商户管理员 3-区域督导 4-驻店人员
const
yqMerchantId
=
merchantRange
[
subIndex
].
merchantId
||
''
const
yqMerchantId
=
merchantRange
[
subIndex
].
merchantId
||
''
const
loginRole
=
userInfo
.
subLoginUser
.
loginRole
const
loginRole
=
userInfo
.
subLoginUser
.
loginRole
...
@@ -610,8 +610,12 @@ Page({
...
@@ -610,8 +610,12 @@ Page({
},
},
{
{
name
:
'经营数据'
,
name
:
'经营数据'
,
<<<<<<<
HEAD
url
:
'tabOperating.index'
,
url
:
'tabOperating.index'
,
recordId
:
11
recordId
:
11
=======
url
:
'tabOperating.index'
>>>>>>>
dev_v4
.
22.2
}
}
]
]
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment