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 6bf1e0b0
authored
Apr 17, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
弹窗重复弹出修改
1 parent
1c3464bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
packageEquity/pages/TabBar/equityPage.js
packageEquity/pages/deliveryTarget/deliveryTarget.js
packageEquity/pages/TabBar/equityPage.js
View file @
6bf1e0b
...
...
@@ -205,6 +205,8 @@ Page({
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
!
data
)
{
if
(
wx
.
__HAS_NOREPORT_MODAL
||
wx
.
__HAS_NOTLOGIN_MODAL
)
return
false
wx
.
__HAS_NOREPORT_MODAL
=
true
wx
.
showModal
({
title
:
'交车目标'
,
content
:
'您有未填写的交车目标,请点击前往'
,
...
...
@@ -219,6 +221,11 @@ Page({
}
},
complete
:
()
=>
{
// 这个延迟的目的是为了避免短时间内重复弹出
// 你要是没有这个需要也可以去掉,直接把标志位改成 false 就行
setTimeout
(()
=>
{
wx
.
__HAS_NOREPORT_MODAL
=
false
},
2000
)
}
})
}
...
...
@@ -354,6 +361,7 @@ Page({
changeTabBar
(
e
)
{
// let { pageShow } = this.data,
wx
.
__HAS_NOREPORT_MODAL
=
false
let
tabIndex
=
e
.
detail
// console.log(pageShow[tabIndex])
this
.
setData
({
...
...
packageEquity/pages/deliveryTarget/deliveryTarget.js
View file @
6bf1e0b
...
...
@@ -368,6 +368,7 @@ Page({
})
},
onRoute
(
options
)
{
wx
.
__HAS_NOREPORT_MODAL
=
false
let
{
targetInfo
}
=
this
.
data
if
(
options
?.
scene
)
{
let
id
=
decodeURIComponent
(
options
.
scene
).
split
(
'='
)[
1
]
...
...
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