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
545b9f01
Commit
545b9f01
authored
Aug 19, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
4611865f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
13 deletions
+41
-13
couponCheck.vue
pages/couponCheck/couponCheck.vue
+13
-2
myInfo.vue
pages/my/myInfo.vue
+19
-3
vipCreate.vue
pages/vipCreate/vipCreate.vue
+9
-8
No files found.
pages/couponCheck/couponCheck.vue
View file @
545b9f01
...
...
@@ -79,6 +79,7 @@
</view>
</view>
</uni-popup>
<LoginPop
ref=
"loginPop"
/>
</view>
</
template
>
...
...
@@ -87,9 +88,10 @@
import
{
couponChecked
,
getStoreListByCouponCode
,
getCouponByCode
}
from
"@/api/coupon.js"
;
import
moment
from
"@/common/moment_zh_cn.js"
;
import
StoreList
from
"@/components/storeList/couponStoreList"
import
LoginPop
from
"@/components/login/login"
export
default
{
components
:
{
LoginPop
,
StoreList
},
data
()
{
...
...
@@ -116,7 +118,8 @@
eventChannel
:
null
,
orderPage
:
false
,
popStoreList
:[],
qrCode
:
''
qrCode
:
''
,
loginStatus
:
uni
.
getStorageSync
(
'loginStatus'
)
==
'login'
?
true
:
false
};
},
filters
:{
...
...
@@ -139,9 +142,17 @@
this
.
storeId
=
''
}
})
if
(
!
this
.
loginStatus
){
this
.
$refs
.
loginPop
.
open
();
}
},
methods
:{
onConfirm
(){
if
(
!
this
.
loginStatus
){
this
.
$refs
.
loginPop
.
open
();
return
}
let
that
=
this
;
if
(
!
this
.
code
){
uni
.
showToast
({
...
...
pages/my/myInfo.vue
View file @
545b9f01
...
...
@@ -12,7 +12,11 @@
</view>
</view>
<view
class=
"flex-col margin-left user-info-box"
>
<text
class=
"text-title text-lg text-bold text-xxl"
>
{{
userInfo
.
nickName
||
"凑角用户"
}}
</text>
<text
v-if=
"loginStatus"
class=
"text-title text-lg text-bold text-xl"
>
{{
userInfo
.
nickName
||
'凑角会员_'
+
userName
}}
</text>
<view
v-else
class=
"flex-row-center"
>
<text
class=
"text-title text-lg text-bold text-xl"
>
凑角用户
</text>
<button
v-if=
"!loginStatus"
class=
"cu-btn round bg-pink sm margin-left-sm"
@
tap
.
stop=
"onNavToLogin"
>
请授权
</button>
</view>
<view
class=
"flex-row"
style=
"margin-top: 10rpx;"
>
<view
v-if=
"userInfo.consumerMember&&userInfo.consumerMember.isRecharge"
class=
"relative"
@
tap
.
stop=
"onNavToVip"
>
<image
class=
"img-icon"
:src=
"assetsPath+'/tag_icon_1.png'"
mode=
"widthFix"
></image>
...
...
@@ -35,10 +39,10 @@
</view>
<view
v-if=
"userInfo.consumerMember && userInfo.consumerMember.isRights"
class=
"tip-date"
>
<text>
权益
<text
class=
"text-bold"
>
{{
userInfo
.
consumerMember
.
expirationDate
}}
</text>
到期
</text>
<
text
class=
"text-blue"
@
tap
.
stop=
"onOpenEquityMembers"
>
{{
list
&&
list
.
length
?
list
[
0
].
requiredAmount
+
'元'
:
''
}}
续费
</text
>
<
!--
<text
class=
"text-blue"
@
tap
.
stop=
"onOpenEquityMembers"
>
{{
list
&&
list
.
length
?
list
[
0
].
requiredAmount
+
'元'
:
''
}}
续费
</text>
--
>
</view>
</view>
<view
class=
"nav-right"
@
tap
.
stop=
"onNavToSetUserInfo"
>
<view
v-if=
"loginStatus"
class=
"nav-right"
@
tap
.
stop=
"onNavToSetUserInfo"
>
<image
class=
"img"
:src=
"assetsPath+'/setting.png'"
mode=
"scaleToFill"
></image>
<text
class=
"text-gray"
>
修改资料
</text>
</view>
...
...
@@ -470,8 +474,16 @@
},
onLoad
()
{
uni
.
hideTabBar
();
if
(
!
this
.
loginStatus
){
this
.
$refs
.
loginPop
.
open
();
}
},
methods
:
{
onNavToLogin
(){
if
(
!
this
.
loginStatus
){
this
.
$refs
.
loginPop
.
open
();
}
},
onGetSysConfig
()
{
let
sysConfigList
=
uni
.
getStorageSync
(
'sysConfig'
)
if
(
!
sysConfigList
)
{
...
...
@@ -511,7 +523,9 @@
this
.
consumerMemberStatus
=
true
;
this
.
onGetEquityMembersList
()
}
if
(
this
.
userInfo
&&
this
.
userInfo
.
phone
){
this
.
userName
=
this
.
userInfo
.
phone
.
slice
(
-
4
);
}
uni
.
setStorageSync
(
'userInfo'
,
this
.
userInfo
)
this
.
onGetOrderInfo
();
}
...
...
@@ -555,9 +569,11 @@
}
},
onNavToSetUserInfo
()
{
if
(
this
.
loginStatus
){
uni
.
navigateTo
({
url
:
"/pages/setUserInfo/index"
})
}
},
onHandle
(
val
)
{
if
(
val
==
1
)
{
...
...
pages/vipCreate/vipCreate.vue
View file @
545b9f01
...
...
@@ -87,7 +87,7 @@
<view
class=
"part-2"
>
<image
class=
"img-bg"
:src=
"assetsPath+'/vip/qy_bg_1.png'"
mode=
"widthFix"
></image>
<view
v-if=
"consumerMemberStatus"
class=
"absolute"
>
<
!--
<
view
v-if=
"consumerMemberStatus"
class=
"absolute"
>
<view
class=
"flex-5"
>
<view
class=
"flex-row"
>
<text
class=
"text-1"
>
次卡
</text>
...
...
@@ -97,17 +97,13 @@
</view>
<view
class=
"flex-3"
>
<view
class=
"flex-col"
>
<!--
<text
class=
"text-1"
>
¥
</text>
-->
<text
class=
"text-2"
>
暂未上线
</text>
<text
class=
"text-2"
>
敬请期待
</text>
</view>
<!--
<view
class=
"cu-btn-box"
@
tap=
"onSubmit"
>
<button
class=
"cu-btn bg-pink"
>
立即购买
</button>
</view>
-->
</view>
</view>
</view>
-->
<view
v-else
class=
"absolute"
>
<view
class=
"absolute"
>
<view
class=
"flex-5"
>
<view
class=
"flex-row"
>
<text
class=
"text-1"
>
权益
</text>
...
...
@@ -116,7 +112,7 @@
<text
class=
"text-3"
>
有效期:领取后1年内有效
</text>
</view>
<view
class=
"flex-3"
>
<view
class=
"flex-row"
>
<!--
<view
class=
"flex-row"
>
<text
class=
"text-1"
>
¥
</text>
<text
class=
"text-2"
>
{{
equityAmountList
.
length
?
equityAmountList
[
0
]:
'99'
}}
.
</text>
...
...
@@ -125,6 +121,11 @@
</view>
<view
class=
"cu-btn-box"
@
tap=
"onSubmit"
>
<button
class=
"cu-btn bg-pink"
>
{{
consumerMemberStatus
?
'权益续期'
:
'立即开通'
}}
</button>
</view>
-->
<view
class=
"flex-col"
>
<text
class=
"text-2"
>
暂未上线
</text>
<text
class=
"text-2"
>
敬请期待
</text>
</view>
</view>
</view>
...
...
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