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 a6b30910
authored
Aug 07, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企微打开判断修改
1 parent
dc553a3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
packageEquity/pages/TabBar/equityPage.js
pages/wxLogin/wxLogin.js
tabIndex/pages/index/index.js
packageEquity/pages/TabBar/equityPage.js
View file @
a6b3091
...
@@ -197,7 +197,7 @@ Page({
...
@@ -197,7 +197,7 @@ Page({
isStaff
&&
isStaff
&&
tabIndex
==
0
&&
tabIndex
==
0
&&
eventRequest
.
push
(
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
()));
eventRequest
.
push
(
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
()));
if
(
tabIndex
==
0
)
if
(
tabIndex
==
0
&&
!
userInfo
?.
isSuper
&&
userInfo
?.
loginRole
!=
3
)
eventRequest
.
push
(
this
.
checkAgreeClient
(
wx
.
$util
.
getUserInfo
()));
eventRequest
.
push
(
this
.
checkAgreeClient
(
wx
.
$util
.
getUserInfo
()));
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
Promise
.
all
(
eventRequest
).
then
(()
=>
{
Promise
.
all
(
eventRequest
).
then
(()
=>
{
...
...
pages/wxLogin/wxLogin.js
View file @
a6b3091
...
@@ -512,7 +512,7 @@ Page({
...
@@ -512,7 +512,7 @@ Page({
async
getYqMerchantSceneConfig
(
loginUserObj
,
num
)
{
async
getYqMerchantSceneConfig
(
loginUserObj
,
num
)
{
if
(
!
loginUserObj
?.
isSuper
&&
loginUserObj
?.
loginRole
!=
3
)
{
if
(
!
loginUserObj
?.
isSuper
&&
loginUserObj
?.
loginRole
!=
3
)
{
let
checkAgreeClient
=
await
this
.
checkAgreeClient
(
loginUserObj
)
let
checkAgreeClient
=
await
this
.
checkAgreeClient
(
loginUserObj
)
if
(
!
checkAgreeClient
)
return
wx
.
$router
.
go
(
'pages.accountItems'
)
if
(
!
checkAgreeClient
)
return
false
}
}
// num 0已选园区店、4s店和场景 1已选园区店、4s店 2仅选择园区店
// num 0已选园区店、4s店和场景 1已选园区店、4s店 2仅选择园区店
let
pageUrl
=
[
'pages.loading'
,
'pages.sceneIndex'
,
'pages.merchantList'
]
let
pageUrl
=
[
'pages.loading'
,
'pages.sceneIndex'
,
'pages.merchantList'
]
...
...
tabIndex/pages/index/index.js
View file @
a6b3091
...
@@ -1063,7 +1063,8 @@ Page({
...
@@ -1063,7 +1063,8 @@ Page({
async
checkDailyRecport
()
{
async
checkDailyRecport
()
{
// let { tabIndex } = this.data
// let { tabIndex } = this.data
const
isStaff
=
app
.
globalData
.
isStaff
;
const
isStaff
=
app
.
globalData
.
isStaff
;
let
eventRequest
=
[
this
.
checkAgreeClient
(
wx
.
$util
.
getUserInfo
()),
this
.
checkStaffOrderStatus
()]
let
eventRequest
=
[
this
.
checkStaffOrderStatus
()]
if
(
!
userInfo
?.
isSuper
&&
userInfo
?.
loginRole
!=
3
)
eventRequest
.
push
(
this
.
checkAgreeClient
(
wx
.
$util
.
getUserInfo
()))
// 如果是员工 判读是否要填写日报
// 如果是员工 判读是否要填写日报
isStaff
&&
eventRequest
.
push
(
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
()));
isStaff
&&
eventRequest
.
push
(
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
()));
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
...
...
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