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
057e3fa2
Commit
057e3fa2
authored
Aug 14, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
ed4394d1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
25 deletions
+45
-25
myInfo.vue
pages/my/myInfo.vue
+24
-18
orderResult.vue
pages/orderResult/orderResult.vue
+1
-1
storeList.vue
pages/storeList/storeList.vue
+1
-1
vipCreate.vue
pages/vipCreate/vipCreate.vue
+1
-0
index.vue
setting/levelDetail/index.vue
+18
-5
No files found.
pages/my/myInfo.vue
View file @
057e3fa2
...
...
@@ -35,7 +35,7 @@
</view>
<view
v-if=
"userInfo.consumerMember.isRights"
class=
"tip-date"
>
<text>
权益
<text
class=
"text-bold"
>
{{
userInfo
.
consumerMember
.
expirationDate
}}
</text>
到期
</text>
<text
class=
"text-blue"
@
tap
.
stop=
"on
GetEquityMembersList"
>
续费
</text>
<text
class=
"text-blue"
@
tap
.
stop=
"on
OpenEquityMembers"
>
{{
list
&&
list
.
length
?
list
[
0
].
requiredAmount
+
'元'
:
''
}}
续费
</text>
</view>
</view>
<view
class=
"nav-right"
@
tap
.
stop=
"onNavToSetUserInfo"
>
...
...
@@ -58,43 +58,43 @@
<!--
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
userInfo
.
consumerWallet
.
remainingIntegral
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
-->
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
?
userInfo
.
consumerWallet
.
remainingIntegral
:
0
}}
</text>
</view>
</view>
<view
v-else-if=
"userInfo.memberConfig && userInfo.memberConfig.membershipLevel ===3"
class=
"level level-3"
>
<text
class=
"text-1"
>
LV
{{
userInfo
.
memberConfig
.
levelName
}}
</text>
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
||
0
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
||
0
}}
</text>
</view>
</view>
<view
v-else-if=
"userInfo.memberConfig && userInfo.memberConfig.membershipLevel ===2"
class=
"level level-2"
>
<text
class=
"text-1"
>
LV
{{
userInfo
.
memberConfig
.
levelName
}}
</text>
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
||
0
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
||
0
}}
</text>
</view>
</view>
<view
v-else-if=
"userInfo.memberConfig && userInfo.memberConfig.membershipLevel ===1"
class=
"level level-1"
>
<text
class=
"text-1"
>
LV
{{
userInfo
.
memberConfig
.
levelName
}}
</text>
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
||
0
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
||
0
}}
</text>
</view>
</view>
<view
v-else-if=
"userInfo.memberConfig && userInfo.memberConfig.membershipLevel === 0"
class=
"level level-0"
>
<text
class=
"text-1"
>
LV 0
</text>
<!--
<text
class=
"text-2"
>
您还没有会员等级!
</text>
-->
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<text
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
Number
(
userInfo
.
consumerWallet
.
remainingIntegral
||
0
)
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
||
0
}}
</text>
</view>
</view>
<view
v-else
class=
"level level-0"
>
...
...
@@ -456,7 +456,7 @@
equityDetail
:
"/setting/rule/rule?keyData=user_equity_details"
,
levelDetail
:
"/setting/levelDetail/index"
},
list
:
[]
,
list
:
''
,
consumerMemberStatus
:
false
}
},
...
...
@@ -499,9 +499,13 @@
onGetUserInfo
()
{
getUserInfo
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
userInfo
=
res
.
data
.
data
;
this
.
userInfo
=
{
...
res
.
data
.
data
,
consumerWallet
:
res
.
data
.
data
.
consumerWallet
?
res
.
data
.
data
.
consumerWallet
:
{
remainingIntegral
:
0
}
}
if
(
this
.
userInfo
.
consumerMember
&&
this
.
userInfo
.
consumerMember
.
isRights
)
{
this
.
consumerMemberStatus
=
true
;
this
.
onGetEquityMembersList
()
}
this
.
userName
=
this
.
userInfo
.
phone
.
slice
(
-
4
);
uni
.
setStorageSync
(
'userInfo'
,
this
.
userInfo
)
...
...
@@ -626,11 +630,8 @@
url
:
"/pages/vipCreate/vipCreate"
})
},
onGetEquityMembersList
(){
equityMembersList
().
then
(
res
=>
{
console
.
log
(
res
,
999999
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
rows
)
{
this
.
list
=
res
.
data
.
rows
;
onOpenEquityMembers
(){
if
(
this
.
list
&&
this
.
list
.
length
){
this
.
$refs
.
popupPay
.
open
();
}
else
{
...
...
@@ -639,8 +640,13 @@
title
:
"暂时无法续费,请联系客服"
})
}
},
onGetEquityMembersList
(){
equityMembersList
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
rows
)
{
this
.
list
=
res
.
data
.
rows
;
this
.
$forceUpdate
();
}
})
},
onCreateEquityMembers
(){
...
...
pages/orderResult/orderResult.vue
View file @
057e3fa2
...
...
@@ -9,7 +9,7 @@
<text
class=
"text-lg"
>
{{
orderInfo
.
startDate
||
'-'
}}
</text>
</view>
<view
class=
"flex-col part-center"
>
<text
class=
"text-x
x
l text-bold"
>
共
{{
orderInfo
.
timeLong
||
0
}}
小时
</text>
<text
class=
"text-xl text-bold"
>
共
{{
orderInfo
.
timeLong
||
0
}}
小时
</text>
</view>
<view
class=
"flex-col part-right"
>
<text
class=
"text-xxl text-bold"
>
{{
orderInfo
.
endTime
||
'-'
}}
</text>
...
...
pages/storeList/storeList.vue
View file @
057e3fa2
...
...
@@ -20,7 +20,7 @@
</view>
<view
class=
"VerticalBox"
:style=
"
{paddingTop:CustomBar+50+'px'}">
<view
class=
"banner2"
>
<image
:src=
"assetsPath+'/banner
3
.png'"
mode=
"widthFix"
></image>
<image
:src=
"assetsPath+'/banner
4
.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"room-content-box"
>
<!-- 展示所有房间列表 -->
...
...
pages/vipCreate/vipCreate.vue
View file @
057e3fa2
...
...
@@ -623,6 +623,7 @@
icon
:
"success"
,
title
:
"下单成功"
,
success
:
()
=>
{
that
.
onGetUserInfo
();
that
.
$refs
.
popupPay
.
close
();
setTimeout
(()
=>
{
uni
.
switchTab
({
...
...
setting/levelDetail/index.vue
View file @
057e3fa2
...
...
@@ -20,7 +20,7 @@
<view
class=
"part-left"
>
<view
class=
"level"
:class=
"'level-'+item.membershipLevel"
>
<view
class=
"text-label"
>
<text
class=
"text-1"
>
LV
{{
item
.
levelName
}}
</text>
<text
class=
"text-1"
>
LV
{{
item
.
membershipLevel
?
item
.
levelName
:
'0'
}}
</text>
<view
v-if=
"item.discountRatio
<
100
"
class=
"discount-ratio"
>
<text
class=
"text-white"
>
享
<text
class=
"text-white text-xl text-bold"
>
{{
item
.
discountRatio
}}
</text>
折
</text>
...
...
@@ -101,9 +101,8 @@
memberConfigList
({
memberType
:
this
.
memberTypeList
[
this
.
index
].
value
}).
then
(
res
=>
{
console
.
log
(
res
,
9999
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
){
this
.
list
=
res
.
data
.
data
.
map
(
item
=>
{
let
list
=
res
.
data
.
data
.
map
(
item
=>
{
let
discountText
=
item
.
discountRatio
;
if
(
discountText
>
0
&&
discountText
<
100
){
discountText
=
Number
(
discountText
.
toString
().
split
(
''
).
reverse
().
join
(
''
)).
toString
();
...
...
@@ -111,19 +110,32 @@
discountText
=
item
.
discountRatio
;
}
}
return
{
...
item
,
discountRatio
:
discountText
}
})
list
.
sort
((
a
,
b
)
=>
a
.
membershipLevel
-
b
.
membershipLevel
)
this
.
list
=
[]
if
(
this
.
userInfo
.
memberConfig
&&
this
.
userInfo
.
memberConfig
.
membershipLevel
>=
0
){
this
.
list
.
push
(
list
.
find
(
item
=>
item
.
membershipLevel
===
this
.
userInfo
.
memberConfig
.
membershipLevel
))
list
.
forEach
(
item
=>
{
if
(
item
.
membershipLevel
!==
this
.
userInfo
.
memberConfig
.
membershipLevel
){
this
.
list
.
push
(
item
);
}
})
}
}
})
},
onGetUserInfo
()
{
getUserInfo
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
userInfo
=
res
.
data
.
data
;
this
.
userInfo
=
{
...
res
.
data
.
data
,
consumerWallet
:
res
.
data
.
data
.
consumerWallet
?
res
.
data
.
data
.
consumerWallet
:
{
remainingIntegral
:
0
}
}
if
(
this
.
userInfo
.
consumerMember
&&
this
.
userInfo
.
consumerMember
.
isRights
){
this
.
index
=
1
}
...
...
@@ -266,6 +278,7 @@
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
240
upx
;
height
:
32
upx
;
border-radius
:
4
upx
;
margin-top
:
8
upx
;
...
...
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