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
c43fb4b1
Commit
c43fb4b1
authored
Sep 12, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
c8097a85
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
610 additions
and
350 deletions
+610
-350
login.vue
components/login/login.vue
+8
-3
noLogin.vue
components/noLogin/noLogin.vue
+8
-3
pages.json
pages.json
+7
-0
myInfo.vue
pages/my/myInfo.vue
+275
-101
vipCreate.vue
pages/vipCreate/vipCreate.vue
+309
-240
index.vue
setting/levelDetail/index.vue
+3
-3
icon_album.png
static/icon_album.png
+0
-0
share_icon_2.png
static/share_icon_2.png
+0
-0
No files found.
components/login/login.vue
View file @
c43fb4b1
...
...
@@ -80,11 +80,16 @@
uni
.
showLoading
({
title
:
"授权中"
})
register
(
{
let
registData
=
{
loginCode
:
res
.
code
,
phoneCode
:
this
.
phoneCode
,
type
:
"routine"
,
}).
then
(
res
=>
{
type
:
"routine"
}
if
(
uni
.
getStorageSync
(
"shareUserId"
)){
registData
.
uid
=
uni
.
getStorageSync
(
"shareUserId"
);
registData
.
activityType
=
0
;
}
register
(
registData
).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
uni
.
setStorageSync
(
'tokenHeaders'
,
"Authori-zation"
)
...
...
components/noLogin/noLogin.vue
View file @
c43fb4b1
...
...
@@ -51,11 +51,16 @@
uni
.
showLoading
({
title
:
"授权中"
})
register
(
{
let
registData
=
{
loginCode
:
res
.
code
,
phoneCode
:
this
.
phoneCode
,
type
:
"routine"
,
}).
then
(
res
=>
{
type
:
"routine"
}
if
(
uni
.
getStorageSync
(
"shareUserId"
)){
registData
.
uid
=
uni
.
getStorageSync
(
"shareUserId"
);
registData
.
activityType
=
0
;
}
register
(
registData
).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
uni
.
setStorageSync
(
'tokenHeaders'
,
"Authori-zation"
)
...
...
pages.json
View file @
c43fb4b1
...
...
@@ -150,6 +150,13 @@
"style"
:
{
"navigationBarTitleText"
:
"设备控制"
}
},
{
"path"
:
"pages/userShare/userShare"
,
"style"
:
{
"navigationBarTitleText"
:
"分享"
}
}
],
"subPackages"
:
[
...
...
pages/my/myInfo.vue
View file @
c43fb4b1
...
...
@@ -46,6 +46,10 @@
<image
class=
"img"
:src=
"assetsPath+'/setting.png'"
mode=
"scaleToFill"
></image>
<text
class=
"text-gray"
>
修改资料
</text>
</view>
<view
v-if=
"loginStatus"
class=
"nav-right nav-right-2"
@
tap
.
stop=
"onNavToShare"
>
<text
class=
"text-gray"
>
邀请有礼
</text>
</view>
</view>
<view
class=
"remeber-info-box"
>
...
...
@@ -279,6 +283,14 @@
<text
class=
"text-gray"
>
联系我们
</text>
</view>
</view>
<view
v-if=
"loginStatus"
class=
"item-box"
@
tap=
"onShareByQrcode"
>
<view
class=
"icon-img"
>
<image
:src=
"assetsPath+'/user/tool_7.png'"
mode=
"scaleToFill"
></image>
</view>
<view
class=
"text-box"
>
<text
class=
"text-gray"
>
二维码分享
</text>
</view>
</view>
</view>
</view>
...
...
@@ -396,11 +408,50 @@
</view>
</view>
</uni-popup>
<uni-popup
ref=
"popupShare"
type=
"center"
>
<view
class=
"popup-box-content popup-box-share"
>
<view
class=
"popup-box popup-box-2"
>
<view
class=
"close-box"
@
tap=
"onClose"
>
<text
class=
"cuIcon-close text-xl text-icon"
></text>
</view>
<view
class=
"title-header"
>
<text
class=
"text-title text-black text-lg text-bold"
>
分享邀请
</text>
</view>
<view
class=
"flex-col popup-content"
>
<view
class=
"share-qrcode"
>
<view
class=
"qrcode-box"
>
<tki-qrcode
ref=
"qrcode"
:cid=
"cid"
:val=
"text"
:size=
"size"
unit=
"upx"
icon=
"../../static/logo_icon.png"
:iconSize=
"iconSize"
:onval=
"true"
:loadMake=
"loadMake"
:showLoading=
"true"
@
result=
"qrR"
/>
</view>
<view
class=
"part-bottom"
>
<button
class=
"btn cu-btn bg-white"
@
tap=
"onSaveImg"
>
<image
src=
"../../static/icon_album.png"
mode=
"widthFix"
></image>
<text>
保存到相册
</text>
</button>
<button
open-type=
"share"
class=
"btn cu-btn bg-blue"
>
<image
src=
"../../static/share_icon_2.png"
mode=
"widthFix"
></image>
<text>
分享邀请
</text>
</button>
</view>
</view>
</view>
</view>
</view>
</uni-popup>
<LoginPop
ref=
"loginPop"
/>
</view>
</
template
>
<
script
>
import
tkiQrcode
from
"@/components/tki-qrcode/tki-qrcode.vue"
import
LoginPop
from
"@/components/login/login"
import
fTabbar
from
'@/components/module/f-tabbar/f-tabbar'
;
import
{
...
...
@@ -424,10 +475,19 @@
export
default
{
components
:
{
LoginPop
,
fTabbar
fTabbar
,
tkiQrcode
},
data
()
{
return
{
cid
:
"qrCode"
,
qrPath
:
''
,
text
:
'生成中'
,
size
:
520
,
iconSize
:
52
,
colorDark
:
'#000000'
,
loadMake
:
false
,
qrPath
:
''
,
statusBarHeight
:
this
.
statusBarHeight
,
assetsPath
:
config
.
assetsPath
,
hostUrl
:
config
.
hostUrl
,
...
...
@@ -490,12 +550,36 @@
this
.
onGetSysConfig
();
this
.
onGetUserInfo
();
},
onLoad
()
{
onLoad
(
query
)
{
console
.
log
(
query
,
"页面传递过来的参数"
)
if
(
query
.
q
)
{
const
q
=
decodeURIComponent
(
query
.
q
)
let
d
=
q
.
split
(
'?'
)
let
c
=
d
[
1
].
split
(
'&'
)
let
obj
=
{};
c
.
forEach
(
item
=>
{
let
l
=
item
.
split
(
'='
);
obj
[
l
[
0
]]
=
l
[
1
];
})
console
.
log
(
obj
,
"参数对象"
)
if
(
obj
.
uid
)
{
uni
.
setStorageSync
(
"shareUserId"
,
obj
.
uid
)
}
}
if
(
query
.
uid
)
{
uni
.
setStorageSync
(
"shareUserId"
,
query
.
uid
)
}
uni
.
hideTabBar
();
if
(
!
this
.
loginStatus
){
this
.
$refs
.
loginPop
.
open
();
}
},
onShareAppMessage
()
{
return
{
title
:
"邀请扫码注册"
,
path
:
`/pages/my/myInfo?uid=
${
this
.
userInfo
.
id
}
`
}
},
methods
:
{
onNavToLogin
(){
if
(
!
this
.
loginStatus
){
...
...
@@ -743,6 +827,7 @@
onClose
()
{
this
.
$refs
.
popup
.
close
()
this
.
$refs
.
popupPay
.
close
()
this
.
$refs
.
popupShare
.
close
()
},
onNavToRecords
(
t
){
if
(
this
.
loginStatus
){
...
...
@@ -772,7 +857,35 @@
}
else
{
this
.
$refs
.
loginPop
.
open
();
}
}
},
onNavToShare
(){
uni
.
navigateTo
({
url
:
"/pages/userShare/userShare"
})
},
qrR
(
r
)
{
console
.
log
(
r
,
"二维码路径"
)
this
.
qrPath
=
r
;
},
onShareByQrcode
(){
this
.
text
=
`https://www.coujio.com/myShare?uid=
${
this
.
userInfo
.
id
}
&act=0`
;
this
.
loadMake
=
true
;
this
.
$refs
.
popupShare
.
open
()
},
onSaveImg
()
{
uni
.
saveImageToPhotosAlbum
({
filePath
:
this
.
qrPath
,
success
:
()
=>
{
uni
.
showToast
({
icon
:
'none'
,
title
:
'保存成功'
})
},
fail
:
(
err
)
=>
{
console
.
log
(
err
,
999
)
}
})
},
}
}
</
script
>
...
...
@@ -846,6 +959,15 @@
font-size
:
30
upx
;
}
}
.nav-right-2
{
top
:
82
upx
;
background-color
:
#E2177C
;
padding
:
10
upx
12
upx
;
border-radius
:
10
upx
;
text{
color
:
#ffffff
;
}
}
}
...
...
@@ -1395,129 +1517,181 @@
width
:
72vw
;
border-radius
:
36
upx
;
overflow
:
hidden
;
}
.popup-box-2
{
position
:
relative
;
width
:
100%
;
background
:
linear-gradient
(
0deg
,
rgba
(
255
,
255
,
255
,
0.65
),
rgba
(
255
,
214
,
241
,
0.43
));
.close-box{
position
:
absolute
;
top
:
16
upx
;
right
:
20
upx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
24px
;
height
:
24px
;
font-size
:
36
upx
;
}
.title-header
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
padding
:
30
upx
24
upx
8
upx
;
border-bottom
:
none
;
.text-title{
.popup-box-2{
position
:
relative
;
width
:
100%
;
background
:
linear-gradient
(
0deg
,
rgba
(
255
,
255
,
255
,
0.65
),
rgba
(
255
,
214
,
241
,
0.43
));
.close-box{
position
:
absolute
;
top
:
16
upx
;
right
:
20
upx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
24px
;
height
:
24px
;
font-size
:
36
upx
;
color
:
#333333
;
}
}
.popup-content
{
padding
:
0
24
upx
;
min-height
:
240
upx
;
.recharge-content{
.title-header
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
.text-1{
font-weight
:
400
;
font-size
:
24
upx
;
color
:
#
666666
;
padding
:
30
upx
24
upx
8
upx
;
border-bottom
:
none
;
.text-title{
font-size
:
36
upx
;
color
:
#
333333
;
}
.payfee-text
{
}
.popup-content
{
padding
:
0
24
upx
;
min-height
:
240
upx
;
.recharge-content{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
padding
:
10
upx
0
16
upx
;
margin-bottom
:
16
upx
;
border-bottom
:
1px
dashed
#C9CACA
;
text{
font-size
:
52
rpx
;
color
:
#E40583
;
.text-1{
font-weight
:
400
;
font-size
:
24
upx
;
color
:
#666666
;
}
}
.flex-row
{
.flex-col{
.text-12{
width
:
77
upx
;
color
:
#000000
;
font-size
:
28
upx
;
font-weight
:
bold
;
text-align
:
justify-all
;
}
.text-13
{
color
:
#999999
;
font-size
:
26
upx
;
margin-left
:
4
upx
;
}
.text-14
{
color
:
#000000
;
.payfee-text
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
padding
:
10
upx
0
16
upx
;
margin-bottom
:
16
upx
;
border-bottom
:
1px
dashed
#C9CACA
;
text{
font-size
:
52
rpx
;
color
:
#E40583
;
}
}
}
.content-tip
{
display
:
flex
;
flex-direction
:
column
;
margin
:
20
upx
0
12
upx
;
.text-3{
font-size
:
28
upx
;
color
:
#333333
;
margin-bottom
:
20
upx
;
.flex-row
{
.flex-col{
.text-12{
width
:
77
upx
;
color
:
#000000
;
font-size
:
28
upx
;
font-weight
:
bold
;
text-align
:
justify-all
;
}
.text-13
{
color
:
#999999
;
font-size
:
26
upx
;
margin-left
:
4
upx
;
}
.text-14
{
color
:
#000000
;
}
}
}
.flex-col
{
align-items
:
flex-start
;
.flex-row-center{
margin
:
8
upx
0
;
.gift-box{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
22px
;
height
:
22px
;
background
:
#FCE8F2
;
border-radius
:
6px
;
.gift-icon{
display
:
block
;
width
:
70%
;
max-height
:
40
upx
;
.content-tip
{
display
:
flex
;
flex-direction
:
column
;
margin
:
20
upx
0
12
upx
;
.text-3{
font-size
:
28
upx
;
color
:
#333333
;
margin-bottom
:
20
upx
;
}
.flex-col
{
align-items
:
flex-start
;
.flex-row-center{
margin
:
8
upx
0
;
.gift-box{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
22px
;
height
:
22px
;
background
:
#FCE8F2
;
border-radius
:
6px
;
.gift-icon{
display
:
block
;
width
:
70%
;
max-height
:
40
upx
;
}
}
}
}
}
}
}
.btn-list-box
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
border-top
:
none
;
.btn-box{
display
:
flex
;
flex
:
none
;
width
:
87%
;
.cu-btn{
padding
:
0
;
width
:
100%
;
height
:
88
upx
;
background
:
#E40583
;
border-radius
:
44
upx
;
font-size
:
37
upx
;
color
:
#FFFFFF
;
}
}
}
}
.btn-list-box
{
}
.popup-box-share
{
width
:
90vw
;
border-radius
:
12
upx
;
overflow
:
hidden
;
.popup-box-2{
background
:
#f1f1f1
;
}
}
.share-qrcode
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
width
:
100%
;
.qrcode-box
{
background-color
:
#ffffff
;
border-radius
:
12
upx
;
box-shadow
:
0
0
12
upx
#ff00ff
;
padding
:
20
upx
;
margin-top
:
24
upx
;
}
.part-bottom
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
align-items
:
center
;
margin
:
36
upx
0
;
width
:
100%
;
border-top
:
none
;
.btn
-box
{
.btn
{
display
:
flex
;
flex
:
none
;
width
:
87%
;
.cu-btn{
padding
:
0
;
width
:
100%
;
height
:
88
upx
;
background
:
#E40583
;
border-radius
:
44
upx
;
font-size
:
37
upx
;
color
:
#FFFFFF
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
flex
:
1
;
height
:
88
upx
;
border-radius
:
20
upx
;
margin
:
0
20
upx
;
image
{
display
:
block
;
width
:
32
upx
;
height
:
auto
;
margin-right
:
6
upx
;
}
text
{
font-size
:
24
upx
;
}
}
}
...
...
pages/vipCreate/vipCreate.vue
View file @
c43fb4b1
<
template
>
<view
class=
"vip-create"
>
<view
class=
"bg-header"
>
<image
:src=
"assetsPath+'/vip/bg_header.png'"
mode=
"widthFix"
></image>
<image
:src=
"assetsPath+'/vip/bg_header
_v1
.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"content"
>
<view
class=
"bg-box-1"
>
<view
class=
"bg-box-2"
>
<view
class=
"flex-row-center title-content"
>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"title-text"
>
<view
class=
"text"
>
<text>
会员超值购
</text>
<view
class=
"content-box"
>
<view
class=
"img-box"
>
<image
:src=
"assetsPath+'/vip/bg_header_02_v1.png'"
mode=
"scaleToFill"
></image>
</view>
<view
class=
"content"
>
<view
class=
"bg-box-1"
>
<view
class=
"bg-box-2"
>
<view
class=
"flex-row-center title-content"
>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"line"
>
<view
class=
"title-text"
>
<view
class=
"text"
>
<text>
会员超值购
</text>
</view>
<view
class=
"line"
>
</view>
</view>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"flex-between action-box-list"
>
<view
class=
"part part-left"
@
tap=
"onTabChange(1)"
>
<image
v-if=
"tabIndex ==1"
:src=
"assetsPath+'/vip/btn_2_a.png'"
class=
"active"
mode=
"widthFix"
></image>
<image
v-else
:src=
"assetsPath+'/vip/btn_2.png'"
class=
"unactive"
mode=
"widthFix"
></image>
</view>
<view
class=
"part part-right"
@
tap=
"onTabChange(2)"
>
<image
v-if=
"tabIndex ==2"
:src=
"assetsPath+'/vip/btn_1_a.png'"
class=
"active"
mode=
"widthFix"
></image>
<image
v-else
:src=
"assetsPath+'/vip/btn_1.png'"
class=
"unactive"
mode=
"widthFix"
></image>
</view>
</view>
<view
v-if=
"tabIndex ==1"
class=
"list-box"
>
<view
v-for=
"(item,k) in rechargeConfList"
:key=
"k"
class=
"flex-col item"
@
tap=
"onRechargeChange(k)"
>
<image
class=
"amount-bg"
:src=
"assetsPath+'/vip/amount_bg.png'"
mode=
"widthFix"
></image>
<view
class=
"absolute absolute-1"
>
<text>
特惠充值
</text>
<view
class=
"flex-between action-box-list"
>
<view
class=
"part part-left"
@
tap=
"onTabChange(1)"
>
<image
v-if=
"tabIndex ==1"
:src=
"assetsPath+'/vip/btn_2_a_v1.png'"
class=
"active"
mode=
"widthFix"
></image>
<image
v-else
:src=
"assetsPath+'/vip/btn_2_v1.png'"
class=
"unactive"
mode=
"widthFix"
>
</image>
</view>
<view
class=
"flex-col item-content"
:class=
"rechargeIndex === k?'active':''"
>
<view
v-if=
"item.giveType.includes('1')"
class=
"preferential"
>
<text>
送 ¥
{{
item
.
giveAmount
}}
</text>
<view
class=
"part part-right"
@
tap=
"onTabChange(2)"
>
<image
v-if=
"tabIndex ==2"
:src=
"assetsPath+'/vip/btn_1_a_v1.png'"
class=
"active"
mode=
"widthFix"
></image>
<image
v-else
:src=
"assetsPath+'/vip/btn_1_v1.png'"
class=
"unactive"
mode=
"widthFix"
>
</image>
</view>
</view>
<view
v-if=
"tabIndex ==1"
class=
"list-box"
>
<view
v-for=
"(item,k) in rechargeConfList"
:key=
"k"
class=
"flex-col item"
:class=
"rechargeIndex === k?'active':''"
@
tap=
"onRechargeChange(k)"
>
<image
v-if=
"rechargeIndex === k"
class=
"amount-bg"
:src=
"assetsPath+'/vip/cz_bg_a.png'"
mode=
"widthFix"
></image>
<image
v-else
class=
"amount-bg"
:src=
"assetsPath+'/vip/cz_bg.png'"
mode=
"widthFix"
></image>
<view
class=
"absolute absolute-1"
>
<!--
<text>
特惠充值
</text>
-->
<view
v-if=
"item.giveType.includes('1')"
class=
"preferential"
>
<text>
送¥
{{
item
.
giveAmount
}}
</text>
</view>
<view
v-else-if=
"item.giveType.includes('2')"
class=
"preferential"
>
<text>
送
{{
item
.
giveDuration
}}
小时
</text>
</view>
</view>
<view
v-else-if=
"item.giveType.includes('2')"
class=
"preferential"
>
<text>
送
{{
item
.
giveDuration
}}
小时
</text>
<view
class=
"absolute absolute-2"
>
<image
:src=
"assetsPath+'/vip/pre_icon.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"line"
></view>
<view
class=
"flex-col part-bottom"
>
<view
class=
"part-amount"
>
<view
class=
"flex-col item-content"
>
<view
class=
"flex-col part-bottom"
>
<view
class=
"flex-row amount"
>
<text
class=
"symbol"
>
¥
</text>
<text
class=
"num"
>
{{
item
.
rechargeAmount
}}
</text>
</view>
</view
>
<view
class=
"tip-text"
>
<
text>
{{
item
.
remark
||
'充值送时长,多充多送'
}}
</text
>
<view
class=
"tip-text"
>
<text>
{{
item
.
remark
||
'充值送时长,多充多送'
}}
</text
>
<
/view
>
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"tabIndex ==2"
class=
"flex-col list-box-2"
>
<view
v-if=
"consumerMemberStatus"
class=
"flex-row part-1"
>
<view
class=
"text-bg-1"
>
<text>
专属
</text>
</view>
<text
class=
"text-2"
>
超值回馈!
</text>
<text
class=
"text-3"
>
(权益会员独享)
</text>
</view>
<view
v-else
class=
"flex-row part-1"
>
<view
class=
"text-bg-1"
>
<text>
特惠
</text>
<view
v-if=
"tabIndex ==2"
class=
"flex-col list-box-2"
>
<view
v-if=
"consumerMemberStatus"
class=
"flex-row part-1"
>
<view
class=
"text-bg-1"
>
<text>
专属
</text>
</view>
<text
class=
"text-2"
>
超值回馈!
</text>
<text
class=
"text-3"
>
(权益会员独享)
</text>
</view>
<text
class=
"text-2"
>
独享专属福利!
</text>
<text
class=
"text-3"
>
(更多充值方案,供您选择)
</text>
</view>
<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
class=
"flex-5"
>
<view
class=
"flex-row"
>
<text
class=
"text-1"
>
次卡
</text>
<text
class=
"text-2"
>
充值 畅玩无忧
</text>
</view>
<text
class=
"text-3"
>
有效期:领取后1年内有效
</text>
<view
v-else
class=
"flex-row part-1"
>
<view
class=
"text-bg-1"
>
<text>
特惠
</text>
</view>
<view
class=
"flex-3"
>
<view
class=
"flex-col"
>
<text
class=
"text-2"
>
暂未上线
</text>
<text
class=
"text-2"
>
敬请期待
</text>
<text
class=
"text-2"
>
独享专属福利!
</text>
<text
class=
"text-3"
>
(更多充值方案,供您选择)
</text>
</view>
<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
class=
"flex-5"
>
<view
class=
"flex-row"
>
<text
class=
"text-1"
>
次卡
</text>
<text
class=
"text-2"
>
充值 畅玩无忧
</text>
</view>
<text
class=
"text-3"
>
有效期:领取后1年内有效
</text>
</view>
</view>
</view>
-->
<view
class=
"absolute"
>
<view
class=
"flex-5"
>
<view
class=
"flex-row"
>
<text
class=
"text-1"
>
权益
</text>
<text
class=
"text-2"
>
会员 优惠享不停
</text>
<view
class=
"flex-3"
>
<view
class=
"flex-col"
>
<text
class=
"text-2"
>
暂未上线
</text>
<text
class=
"text-2"
>
敬请期待
</text>
</view>
</view>
<text
class=
"text-3"
>
有效期:领取后1年内有效
</text
>
</view>
<view
class=
"
flex-3
"
>
<!--
<view
class=
"flex-row
"
>
<
text
class=
"text-1"
>
¥
</text
>
<text
class=
"text-2"
>
{{
equityAmountList
.
length
?
equityAmountList
[
0
]:
'99'
}}
.
</text>
<
text
class=
"text-3"
>
{{
equityAmountList
.
length
?
equityAmountList
[
1
]:
'00'
}}
</text>
</view>
--
>
<view
class=
"
absolute
"
>
<view
class=
"flex-5
"
>
<
view
class=
"flex-row"
>
<text
class=
"text-1"
>
权益
</text>
<text
class=
"text-2"
>
会员 优惠享不停
</text>
<
/view>
<text
class=
"text-3"
>
有效期:领取后1年内有效
</text>
</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
class=
"flex-3"
>
<!--
<view
class=
"flex-row"
>
<text
class=
"text-1"
>
¥
</text>
<text
class=
"text-2"
>
{{
equityAmountList
.
length
?
equityAmountList
[
0
]:
'99'
}}
.
</text>
<text
class=
"text-3"
>
{{
equityAmountList
.
length
?
equityAmountList
[
1
]:
'00'
}}
</text>
</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>
</view>
</view
>
<view
class=
"rule-tip
"
>
<checkbox-group
@
change=
"onRuleTipChange"
>
<checkbox
class=
'round yellow'
:class=
"checked?'checked':''"
:checked=
"checked"
value=
"checked"
style=
"transform: scale(0.6);"
></checkbox
>
</checkbox-group>
<text>
我已阅读
</text><text
class=
"text-pink"
@
tap=
"onNavToRule2"
>
用户充值协议
</text><text>
,并同意协议内容
</text
>
<view
class=
"rule-tip"
>
<checkbox-group
@
change=
"onRuleTipChange
"
>
<checkbox
class=
'round yellow'
:class=
"checked?'checked':''"
:checked=
"checked"
value=
"checked"
style=
"transform: scale(0.6);"
></checkbox>
</checkbox-group
>
<text>
我已阅读
</text><text
class=
"text-pink"
@
tap=
"onNavToRule2"
>
用户充值协议
</text><text>
,并同意协议内容
</text>
</view
>
</view>
</view>
</view>
</view>
<view
v-if=
"tabIndex ==1"
class=
"flex-col"
>
<button
class=
"cu-btn confirm-btn"
@
tap=
"onNavToRecharge"
>
<text>
立即充值
</text>
</button>
<view
class=
"rule-tip"
>
<checkbox-group
@
change=
"onRuleTipChange"
>
<checkbox
class=
'round yellow'
:class=
"checked?'checked':''"
:checked=
"checked"
value=
"checked"
style=
"transform: scale(0.6);"
></checkbox>
</checkbox-group>
<text>
我已阅读
</text><text
class=
"text-pink"
@
tap=
"onNavToRule2"
>
用户充值协议
</text><text>
, 并同意协议内容
</text>
<!--
<view
class=
"active-bg"
>
<image
:src=
"assetsPath+'/vip/active_bg.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"active-bg-2"
>
<image
:src=
"assetsPath+'/vip/banner2.png'"
mode=
"widthFix"
></image>
</view>
-->
<view
v-if=
"tabIndex ==1"
class=
"flex-col"
>
<button
class=
"cu-btn confirm-btn"
@
tap=
"onNavToRecharge"
>
<text>
立即充值
</text>
</button>
<view
class=
"rule-tip"
>
<checkbox-group
@
change=
"onRuleTipChange"
>
<checkbox
class=
'round yellow'
:class=
"checked?'checked':''"
:checked=
"checked"
value=
"checked"
style=
"transform: scale(0.6);"
></checkbox>
</checkbox-group>
<text>
我已阅读
</text><text
class=
"text-pink"
@
tap=
"onNavToRule2"
>
用户充值协议
</text><text>
, 并同意协议内容
</text>
</view>
</view>
</view>
<view
v-if=
"tabIndex ==2"
class=
"bg-box-1 margin-top"
>
<view
class=
"bg-box-2"
>
<view
class=
"flex-row-center title-content"
>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"title-text"
>
<view
class=
"text"
>
<text>
权益会员专属活动
</text>
<view
class=
"active-bg"
>
<image
:src=
"assetsPath+'/vip/active_bg.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"active-bg-2"
>
<image
:src=
"assetsPath+'/vip/banner2.png'"
mode=
"widthFix"
></image>
</view>
<view
v-if=
"tabIndex ==2"
class=
"bg-box-1 margin-top"
>
<view
class=
"bg-box-2"
>
<view
class=
"flex-row-center title-content"
>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"line"
>
<view
class=
"title-text"
>
<view
class=
"text"
>
<text>
权益会员专属活动
</text>
</view>
<view
class=
"line"
>
</view>
</view>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"xx"
>
<image
:src=
"assetsPath+'/xx.png'"
mode=
"widthFix"
></image>
<view
class=
"prefer-box-list"
>
<view
v-for=
"(item,k) in preferList"
:key=
"k"
class=
"list-item"
>
<image
class=
"img"
:src=
"item.iconUrl"
mode=
"widthFix"
></image>
<text
class=
"text-title"
>
{{
item
.
title
}}
</text>
<text
class=
"text-slogan"
>
{{
item
.
slogan
}}
</text>
</view>
</view>
</view>
<view
class=
"prefer-box-list"
>
<view
v-for=
"(item,k) in preferList"
:key=
"k"
class=
"list-item"
>
<image
class=
"img"
:src=
"item.iconUrl"
mode=
"widthFix"
></image>
<text
class=
"text-title"
>
{{
item
.
title
}}
</text>
<text
class=
"text-slogan"
>
{{
item
.
slogan
}}
</text>
<view
class=
"look-prefer-nav"
@
tap=
"onNavToRule3"
>
<text
class=
"text-title"
>
点击可查看权益详情
</text>
<image
class=
"img"
:src=
"assetsPath+'/vip/icon_right.png'"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"look-prefer-nav"
@
tap=
"onNavToRule3"
>
<text
class=
"text-title"
>
点击可查看权益详情
</text>
<image
class=
"img"
:src=
"assetsPath+'/vip/icon_right.png'"
mode=
"widthFix"
></image>
<view
class=
"adorn-1"
>
<image
class=
"img"
:src=
"assetsPath+'/vip/adorn_1.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"adorn-2"
>
<image
class=
"img"
:src=
"assetsPath+'/vip/adorn_2.png'"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"adorn-1"
>
<image
class=
"img"
:src=
"assetsPath+'/vip/adorn_1.png'"
mode=
"widthFix"
></image>
</view>
<view
class=
"adorn-2"
>
<image
class=
"img"
:src=
"assetsPath+'/vip/adorn_2.png'"
mode=
"widthFix"
></image>
</view>
</view>
</view>
<view
class=
"rule-btn"
@
tap=
"onNavToRule"
>
<text>
规则
</text>
</view>
...
...
@@ -301,7 +329,7 @@
<image
class=
"gift-icon"
:src=
"assetsPath+'/gift_icon.png'"
mode=
"widthFix"
>
</image>
</view>
<text
class=
"text-13"
>
房间预定,下单即可享会员积分赠送
</text>
<text
class=
"text-13"
>
房间预定,下单即可享会员积分赠送
</text>
</view>
<view
class=
"flex-row-center"
>
<text
class=
"text-13"
>
更多权益请查看多动规则
</text>
...
...
@@ -484,10 +512,11 @@
},
onLoading
()
{
equityMembersList
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
&&
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
(
'.'
);
}
this
.
onGetUserInfo
();
})
...
...
@@ -662,28 +691,45 @@
.vip-create
{
display
:
flex
;
flex-direction
:
column
;
width
:
100%
;
min-height
:
100vh
;
justify-content
:
center
;
width
:
100vw
;
height
:
100vh
;
.bg-header
{
display
:
block
;
width
:
100%
;
width
:
100vw
;
image
{
display
:
block
;
width
:
100%
;
min-height
:
600
upx
;
min-height
:
400
upx
;
}
}
.content-box
{
position
:
relative
;
display
:
flex
;
flex
:
1
;
width
:
100vw
;
.img-box{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
image
{
width
:
100%
;
height
:
100%
;
}
}
}
.content
{
position
:
relative
;
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
width
:
100%
;
background-color
:
#FFEABF
;
//
background-color
:
#FFEABF
;
align-items
:
center
;
padding
:
12
upx
0
60
upx
;
padding
:
0
0
60
upx
;
z-index
:
8
;
.bg-box-1
{
position
:
relative
;
display
:
flex
;
...
...
@@ -691,7 +737,7 @@
justify-content
:
center
;
align-items
:
center
;
width
:
690
upx
;
min-height
:
5
96
upx
;
min-height
:
4
96
upx
;
background
:
#FFCA7E
;
border-radius
:
32
upx
;
padding
:
6px
0
;
...
...
@@ -806,24 +852,8 @@
padding
:
0
1%
;
justify-content
:
center
;
align-items
:
center
;
//
margin
:
42
upx
0
;
.absolute-1
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
top
:
-14
upx
;
left
:
-8
upx
;
width
:
96
rpx
;
height
:
28
rpx
;
background
:
linear-gradient
(
90deg
,
#FF7800
,
#FF0000
);
border-radius
:
6
rpx
;
z-index
:
8
;
//
margin
:
42
upx
0
;
text
{
font-size
:
18
rpx
;
color
:
#FFFFFF
;
}
}
.item
{
position
:
relative
;
...
...
@@ -837,7 +867,38 @@
.amount-bg
{
display
:
block
;
width
:
100%
;
max-height
:
240
upx
;
height
:
140
upx
;
}
.absolute-1
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
top
:
-14
upx
;
left
:
-8
upx
;
width
:
auto
;
min-width
:
80
upx
;
height
:
32
upx
;
padding
:
0
12
upx
;
background
:
linear-gradient
(
90deg
,
#FF7800
,
#FF0000
);
border-radius
:
6
upx
;
z-index
:
8
;
text
{
font-size
:
18
upx
;
color
:
#FFFFFF
;
}
}
.absolute-2
{
top
:
-16
upx
;
left
:
auto
;
right
:
-16
upx
;
width
:
64
upx
;
z-index
:
8
;
image{
width
:
100%
;
}
}
.item-content
{
...
...
@@ -862,16 +923,12 @@
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
height
:
33
%
;
height
:
100
%
;
text
{
margin-top
:
8
upx
;
font-weight
:
normal
;
font-size
:
28
upx
;
color
:
#000000
;
background
:
linear-gradient
(
-90deg
,
#FF7800
0%
,
#FF0000
100%
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
font-size
:
18
upx
;
color
:
#FFFFFF
;
}
}
...
...
@@ -882,74 +939,69 @@
width
:
100%
;
}
.part-amount
{
display
:
flex
;
flex
:
1
;
width
:
100%
;
align-items
:
center
;
justify-content
:
center
;
}
.amount
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
flex-end
;
justify-content
:
center
;
align-items
:
center
;
color
:
#FE3F00
;
height
:
61%
;
.symbol
{
font-weight
:
400
;
font-size
:
29
upx
;
margin-
bottom
:
1
0
upx
;
margin-
top
:
2
0
upx
;
}
.num
{
font-weight
:
400
;
font-size
:
64
upx
;
margin-top
:
12
upx
;
font-weight
:
bold
;
font-size
:
42
upx
;
color
:
#000000
;
font-style
:
italic
;
background
:
linear-gradient
(
-90deg
,
#FF7800
0%
,
#FF0000
100%
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
}
.tip-text
{
position
:
relative
;
display
:
flex
;
flex
:
1
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
height
:
64
upx
;
background
:
linear-gradient
(
-90deg
,
#FCD25B
,
#FA541D
);
border-radius
:
0
0
23
upx
23
upx
;
z-index
:
2
;
text
{
font-size
:
26
upx
;
color
:
#ffffff
;
font-weight
:
bolder
;
font-size
:
28
upx
;
color
:
#FF1C00
;
}
}
.active
{
background
:
linear-gradient
(
-90deg
,
#FCD25B
,
#FA541D
);
box-shadow
:
0
4
upx
12
upx
#FA541D
;
border-radius
:
12
upx
;
}
.amount
{
color
:
#ffffff
;
}
.preferential
{
text
{
margin-top
:
8
upx
;
color
:
#ffffff
;
background
:
#ffffff
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
.active
{
.absolute-1
{
background
:
#FFFDF4
;
border
:
1px
solid
#FF4D05
;
text
{
color
:
#FA5A20
;
}
.part-bottom
{
.tip-text
{
background
:
linear-gradient
(
-45deg
,
#FCD25B
,
#FA541D
);
}
}
.amount
{
.symbol{
color
:
#FFFFFF
;
}
.num
{
color
:
#FFFFFF
;
background
:
#FFFFFF
;
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
}
.tip-text
{
text{
color
:
#FFFFFF
;
}
}
}
...
...
@@ -1078,13 +1130,14 @@
}
}
.flex-col
{
.flex-col
{
.text-2
{
color
:
#D27E1F
;
font-size
:
32
upx
;
font-weight
:
bold
;
}
}
.cu-btn-box
{
margin-top
:
10
upx
;
...
...
@@ -1366,7 +1419,6 @@
.flex-row
{
.flex-col
{
.text-12
{
width
:
77
upx
;
color
:
#000000
;
font-size
:
28
upx
;
font-weight
:
bold
;
...
...
@@ -1445,4 +1497,20 @@
}
}
}
.active-bg
{
width
:
692
upx
;
margin
:
20
upx
auto
0
;
image{
width
:
100%
;
max-height
:
142
upx
;
}
}
.active-bg-2
{
width
:
692
upx
;
margin
:
20
upx
auto
0
;
image{
width
:
100%
;
max-height
:
218
upx
;
}
}
</
style
>
\ No newline at end of file
setting/levelDetail/index.vue
View file @
c43fb4b1
...
...
@@ -93,9 +93,9 @@
},
methods
:{
onTypeChange
(
i
){
if
(
this
.
index
===
i
)
return
;
this
.
index
=
i
;
this
.
onLoading
();
//
if(this.index === i) return;
//
this.index = i;
//
this.onLoading();
},
onLoading
(){
memberConfigList
({
...
...
static/icon_album.png
0 → 100644
View file @
c43fb4b1
1.63 KB
static/share_icon_2.png
0 → 100644
View file @
c43fb4b1
983 Bytes
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