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
ed4394d1
Commit
ed4394d1
authored
Aug 13, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
11974f4c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
51 deletions
+9
-51
myInfo.vue
pages/my/myInfo.vue
+1
-0
vipCreate.vue
pages/vipCreate/vipCreate.vue
+2
-7
index.vue
setting/levelDetail/index.vue
+6
-44
No files found.
pages/my/myInfo.vue
View file @
ed4394d1
...
@@ -1280,6 +1280,7 @@
...
@@ -1280,6 +1280,7 @@
padding
:
30
upx
24
upx
;
padding
:
30
upx
24
upx
;
width
:
100%
;
width
:
100%
;
border-radius
:
0
0
0
0
;
border-radius
:
0
0
0
0
;
background-color
:
transparent
;
min-height
:
180
upx
;
min-height
:
180
upx
;
}
}
...
...
pages/vipCreate/vipCreate.vue
View file @
ed4394d1
...
@@ -444,7 +444,6 @@
...
@@ -444,7 +444,6 @@
type
:
"routine"
,
type
:
"routine"
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
console
.
log
(
JSON
.
stringify
(
res
),
"注册后的数据结构"
)
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
uni
.
setStorageSync
(
'loginStatus'
,
res
.
data
.
data
.
type
||
'login'
)
uni
.
setStorageSync
(
'loginStatus'
,
res
.
data
.
data
.
type
||
'login'
)
uni
.
setStorageSync
(
'tokenHeaders'
,
"Authori-zation"
)
uni
.
setStorageSync
(
'tokenHeaders'
,
"Authori-zation"
)
...
@@ -480,17 +479,14 @@
...
@@ -480,17 +479,14 @@
this
.
rechargeIndex
=
k
;
this
.
rechargeIndex
=
k
;
},
},
onRuleTipChange
(
e
)
{
onRuleTipChange
(
e
)
{
console
.
log
(
e
,
99999
)
this
.
checked
=
e
.
detail
.
value
.
includes
(
"checked"
)
this
.
checked
=
e
.
detail
.
value
.
includes
(
"checked"
)
},
},
onLoading
()
{
onLoading
()
{
equityMembersList
().
then
(
res
=>
{
equityMembersList
().
then
(
res
=>
{
console
.
log
(
res
,
999999
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
rows
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
rows
)
{
this
.
list
=
res
.
data
.
rows
this
.
list
=
res
.
data
.
rows
this
.
equityAmountList
=
Number
(
this
.
list
[
0
].
requiredAmount
).
toFixed
(
2
).
toString
().
split
(
this
.
equityAmountList
=
Number
(
this
.
list
[
0
].
requiredAmount
).
toFixed
(
2
).
toString
().
split
(
'.'
);
'.'
);
console
.
log
(
this
.
equityAmountList
,
9999
)
}
}
this
.
onGetUserInfo
();
this
.
onGetUserInfo
();
})
})
...
@@ -504,7 +500,6 @@
...
@@ -504,7 +500,6 @@
giveType
:
item
.
giveType
?
item
.
giveType
.
split
(
","
)
:
[]
giveType
:
item
.
giveType
?
item
.
giveType
.
split
(
","
)
:
[]
}
}
})
})
console
.
log
(
this
.
rechargeConfList
,
9999
)
}
}
})
})
},
},
...
...
setting/levelDetail/index.vue
View file @
ed4394d1
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</view>
</view>
</view>
</view>
<view
class=
"member-config"
>
<view
class=
"member-config"
>
<text
v-if=
"
item.membershipLevel === userInfo.memberConfig.membershipLevel && index
<
2
"
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
userInfo
.
consumerWallet
.
remainingIntegral
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
<text
v-if=
"
userInfo.memberConfig && userInfo.consumerMember && item.membershipLevel === userInfo.memberConfig.membershipLevel && ( (userInfo.consumerMember.isRights && index ==1) || (userInfo.consumerMember.isRecharge && index === 0))
"
class=
"text-2"
>
还差
{{
userInfo
.
memberConfig
.
nextLimitRequirements
-
userInfo
.
consumerWallet
.
remainingIntegral
}}
积分可升级为
{{
userInfo
.
memberConfig
.
nextMembershipName
}}
</text>
</view>
</view>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
...
@@ -35,47 +35,6 @@
...
@@ -35,47 +35,6 @@
<text
class=
"text-4"
>
{{
item
.
limitRequirements
}}
</text>
<text
class=
"text-4"
>
{{
item
.
limitRequirements
}}
</text>
</view>
</view>
</view>
</view>
<!--
<view
v-else-if=
"item.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>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
</view>
</view>
-->
<!--
<view
v-else-if=
"item.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>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
</view>
</view>
-->
<!--
<view
v-else-if=
"item.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>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
</view>
</view>
-->
<!--
<view
v-else-if=
"item.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>
<view
class=
"flex-row"
>
<text
class=
"text-3"
>
当前积分
</text>
<text
class=
"text-4"
>
{{
userInfo
.
consumerWallet
.
remainingIntegral
}}
</text>
</view>
</view>
-->
<!--
<view
v-else
class=
"level level-0"
>
<text
class=
"text-1"
>
LV 0
</text>
<text
class=
"text-2"
>
您还不是会员哦,快来加入吧!
</text>
</view>
-->
</view>
</view>
<view
class=
"part-right"
>
<view
class=
"part-right"
>
<image
v-if=
"item.membershipLevel ===4"
class=
"tag-icon"
:src=
"assetsPath+'/user/tag_icon_4.png'"
mode=
"widthFix"
></image>
<image
v-if=
"item.membershipLevel ===4"
class=
"tag-icon"
:src=
"assetsPath+'/user/tag_icon_4.png'"
mode=
"widthFix"
></image>
...
@@ -165,6 +124,9 @@
...
@@ -165,6 +124,9 @@
getUserInfo
().
then
(
res
=>
{
getUserInfo
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
this
.
userInfo
=
res
.
data
.
data
;
this
.
userInfo
=
res
.
data
.
data
;
if
(
this
.
userInfo
.
consumerMember
&&
this
.
userInfo
.
consumerMember
.
isRights
){
this
.
index
=
1
}
this
.
onLoading
();
this
.
onLoading
();
}
}
})
})
...
@@ -190,7 +152,7 @@
...
@@ -190,7 +152,7 @@
padding
:
36
upx
0
24
upx
;
padding
:
36
upx
0
24
upx
;
margin
:
0
auto
;
margin
:
0
auto
;
.relative{
.relative{
margin-right
:
4
upx
;
margin-right
:
12
upx
;
.img-icon{
.img-icon{
display
:
block
;
display
:
block
;
width
:
148
upx
;
width
:
148
upx
;
...
@@ -199,7 +161,7 @@
...
@@ -199,7 +161,7 @@
}
}
.active
{
.active
{
transform
:
scale
(
1.
2
);
transform
:
scale
(
1.
1
);
}
}
.absolute
{
.absolute
{
display
:
flex
;
display
:
flex
;
...
...
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