Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_wechat
Commits
03ae9fd5
Commit
03ae9fd5
authored
Aug 14, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
3fc004fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
index.vue
pages/index/index.vue
+39
-0
No files found.
pages/index/index.vue
View file @
03ae9fd5
...
...
@@ -261,6 +261,22 @@
</view>
</view>
</uni-popup>
<uni-popup
ref=
"popupVipTip"
type=
"center"
:isMaskClick =
"true"
>
<view
class=
"flex-col content-tip"
>
<view
class=
"title"
>
<text
class=
"text-black text-xl text-bold"
>
温馨提示
</text>
</view>
<view
class=
"content content-tip-2"
>
<text
class=
"text-black text-lg"
>
您的权益会员身份
<text
class=
"text-pink text-bold"
>
{{
userInfo
.
consumerMember
.
expirationDate
}}
</text>
到期,享更多优惠,请到我的页面,点击续费按钮进行续费
</text>
</view>
<view
class=
"btn-box"
>
<button
class=
"cu-btn bg-pink block"
@
tap=
"onNavToUser"
>
好的 去续费
</button>
</view>
</view>
</uni-popup>
<!--
<LoginPop
ref=
"loginPop"
/>
-->
<f-tabbar></f-tabbar>
</view>
...
...
@@ -362,6 +378,7 @@
timerLocation
:
null
,
storeNavBg
:
'rgba(255, 255, 255, 1)'
,
tempStoreInfo
:{},
userInfo
:
''
}
},
onShow
()
{
...
...
@@ -406,9 +423,25 @@
// this.$refs.loginPop.open();
},
methods
:
{
onNavToUser
(){
this
.
$refs
.
popupVipTip
.
close
()
uni
.
switchTab
({
url
:
"/pages/my/myInfo"
})
},
onCloseTip
(){
this
.
$refs
.
popupTip
.
close
();
uni
.
setStorageSync
(
"popupTipStatus"
,
true
)
if
(
uni
.
getStorageSync
(
'userInfo'
)){
this
.
userInfo
=
uni
.
getStorageSync
(
'userInfo'
)
if
(
this
.
userInfo
.
consumerMember
&&
this
.
userInfo
.
consumerMember
.
expirationDate
){
let
dateTime
=
moment
(
`
${
this
.
userInfo
.
consumerMember
.
expirationDate
}
23:59:59`
).
valueOf
();
let
nowDateTime
=
moment
().
valueOf
();
if
(
dateTime
-
nowDateTime
<
3
*
24
*
3600
*
1000
){
this
.
$refs
.
popupVipTip
.
open
();
}
}
}
},
onStoreChage
(
id
)
{
uni
.
setStorageSync
(
"storeId"
,
id
);
...
...
@@ -1585,4 +1618,9 @@
margin
:
24
upx
auto
30
upx
;
}
}
.content-tip-2
{
display
:
flex
;
align-items
:
center
;
min-height
:
240
upx
;
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment