Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b476bfdb
authored
Oct 12, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
红包流程跳转-我的;我的图片逻辑判断
1 parent
19400ef4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
5 deletions
packageEquity/pages/freecard/freecard.js
packageEquity/pages/receiveRed/receiveRed.js
pages/tab/mine/index.js
pages/tab/mine/index.wxml
packageEquity/pages/freecard/freecard.js
View file @
b476bfd
...
@@ -139,8 +139,10 @@ Page({
...
@@ -139,8 +139,10 @@ Page({
})
})
},
},
jumpMine
()
{
jumpMine
()
{
let
{
isOpenMember
}
=
this
.
data
wx
.
p
.
router
.
switchTab
(
'/pages/tab/mine/index'
,
{
wx
.
p
.
router
.
switchTab
(
'/pages/tab/mine/index'
,
{
isMemberShow
:
true
,
isMemberShow
:
true
,
isOpenMember
})
})
},
},
receiveRed
(
equityFreeCardId
)
{
receiveRed
(
equityFreeCardId
)
{
...
...
packageEquity/pages/receiveRed/receiveRed.js
View file @
b476bfd
...
@@ -14,7 +14,8 @@ Page({
...
@@ -14,7 +14,8 @@ Page({
noMember
:
'恭喜领取成功'
,
noMember
:
'恭喜领取成功'
,
member
:
'恭喜您已成为会员用户'
member
:
'恭喜您已成为会员用户'
},
},
count
:
3
count
:
3
,
isJump
:
false
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
let
{
height
,
statusBarHeight
}
=
e
.
detail
...
@@ -27,10 +28,10 @@ Page({
...
@@ -27,10 +28,10 @@ Page({
},
},
countDown
()
{
countDown
()
{
let
{
count
,
timer
}
=
this
.
data
let
{
count
,
timer
,
isJump
}
=
this
.
data
let
_this
=
this
let
_this
=
this
if
(
this
.
data
.
count
==
0
)
{
if
(
this
.
data
.
count
==
0
)
{
this
.
jump
()
!
isJump
&&
this
.
jump
()
return
return
}
}
clearTimeout
(
timer
)
clearTimeout
(
timer
)
...
@@ -44,7 +45,12 @@ Page({
...
@@ -44,7 +45,12 @@ Page({
jump
()
{
jump
()
{
let
{
activityRedEnvelopeLink
}
=
this
.
data
let
{
activityRedEnvelopeLink
}
=
this
.
data
wx
.
p
.
router
.
jumpH5
(
activityRedEnvelopeLink
)
wx
.
p
.
router
.
switchTab
(
'/pages/tab/mine/index'
,
{
jumpH5Url
:
activityRedEnvelopeLink
})
this
.
setData
({
isJump
:
true
})
},
},
/**
/**
...
...
pages/tab/mine/index.js
View file @
b476bfd
...
@@ -4,6 +4,8 @@ Page({
...
@@ -4,6 +4,8 @@ Page({
behaviors
:
[
devMixin
],
behaviors
:
[
devMixin
],
data
:
{
data
:
{
IMGURL
:
IMG_URL
,
IMGURL
:
IMG_URL
,
isEmpty
:
false
,
memberUrl
:
'bg-member'
,
toolList
:
[{
toolList
:
[{
text
:
'购物车'
,
text
:
'购物车'
,
icon
:
'myShopping'
,
icon
:
'myShopping'
,
...
@@ -65,9 +67,21 @@ Page({
...
@@ -65,9 +67,21 @@ Page({
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
?.
isMemberShow
)
{
if
(
options
?.
isMemberShow
)
{
this
.
setData
({
this
.
setData
({
isMemberShow
:
true
isMemberShow
:
true
,
memberUrl
:
options
.
isOpenMember
?
'bg-member'
:
'bg-member-first'
})
})
}
}
if
(
options
?.
jumpH5Url
)
{
this
.
setData
({
isEmpty
:
true
})
wx
.
p
.
router
.
jumpH5
(
options
.
jumpH5Url
)
setTimeout
(()
=>
{
this
.
setData
({
isEmpty
:
false
})
},
1600
)
}
this
.
getMemberCardData
()
this
.
getMemberCardData
()
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
...
...
pages/tab/mine/index.wxml
View file @
b476bfd
This diff is collapsed.
Click to expand it.
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