Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3c3c8a7c
authored
Jul 18, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
716f4e3f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
8 deletions
app.js
pages/tab/mine/index.js
pages/tab/mine/index.scss
pages/tab/mine/index.wxml
app.js
View file @
3c3c8a7
...
@@ -10,7 +10,7 @@ import utils from "./utils/index";
...
@@ -10,7 +10,7 @@ import utils from "./utils/index";
// 埋点 有需要再引入
// 埋点 有需要再引入
// import './utils/track/Track'
// import './utils/track/Track'
/**分享 */
/**分享 */
// import '~/utils/share'
import
'~/utils/share'
App
({
App
({
onLaunch
(
options
)
{
onLaunch
(
options
)
{
getUpdateManager
();
getUpdateManager
();
...
...
pages/tab/mine/index.js
View file @
3c3c8a7
...
@@ -16,6 +16,16 @@ Page({
...
@@ -16,6 +16,16 @@ Page({
url
:
'/packageMine/pages/address/index/index'
url
:
'/packageMine/pages/address/index/index'
},
},
],
],
vipType
:{
1
:
'gold_vip_bg'
,
2
:
'silver_vip_bg'
,
3
:
'pt_vip_bg'
},
titleClass
:{
1
:
'gold_title'
,
2
:
'sliver_title'
,
3
:
'card_title'
,
},
},
},
/**
/**
...
@@ -61,9 +71,6 @@ Page({
...
@@ -61,9 +71,6 @@ Page({
}
else
{
}
else
{
wx
.
p
.
api
.
equityApi
.
checkOpenMember
().
then
(
res
=>
{
wx
.
p
.
api
.
equityApi
.
checkOpenMember
().
then
(
res
=>
{
console
.
log
(
res
,
'----------'
)
console
.
log
(
res
,
'----------'
)
res
.
data
=
{
}
let
flag
=
false
,
let
flag
=
false
,
identity
=
0
// 普通会员3 银卡2 金卡1 非会员 0
identity
=
0
// 普通会员3 银卡2 金卡1 非会员 0
if
(
res
.
data
&&
res
.
data
.
validitDate
)
{
if
(
res
.
data
&&
res
.
data
.
validitDate
)
{
...
...
pages/tab/mine/index.scss
View file @
3c3c8a7
...
@@ -8,6 +8,50 @@ page {
...
@@ -8,6 +8,50 @@ page {
position
:
relative
;
position
:
relative
;
}
}
.vip-box
{
height
:
360rpx
;
margin
:
32rpx
20rpx
0
;
position
:
relative
;
&
-bg
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
z-index
:
-1
;
left
:
0
;
top
:
0
;
}
.vip-name
{
padding
:
24rpx
;
font-weight
:
500
;
font-size
:
32rpx
;
}
.gold_title
{
background
:
linear-gradient
(
125deg
,
#645E54
100%
,
#29271E
100%
)
!
important
;
-webkit-background-clip
:
text
!
important
;
background-clip
:
text
!
important
;
color
:
transparent
!
important
;
font-weight
:
600
;
font-size
:
32rpx
;
}
.card_title
{
background
:
linear-gradient
(
125deg
,
#F0EED7
100%
,
#F2EAAB
100%
)
!
important
;
-webkit-background-clip
:
text
!
important
;
background-clip
:
text
!
important
;
color
:
transparent
!
important
;
}
.sliver_title
{
background
:
linear-gradient
(
125deg
,
#C99113
100%
,
#A9790B
100%
)
!
important
;
-webkit-background-clip
:
text
!
important
;
background-clip
:
text
!
important
;
color
:
transparent
!
important
;
}
}
.navigation-bar
{
.navigation-bar
{
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
...
...
pages/tab/mine/index.wxml
View file @
3c3c8a7
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
</view>
</view>
<!-- 会员卡 -->
<!-- 会员卡 -->
<block wx:if="{{memberInfo}}">
<block wx:if="{{memberInfo}}">
<block wx:if="{{!isMember}}">
<view class="member-box">
<view class="member-box">
<view class="left-box">
<view class="left-box">
<view class="member-icon">
<view class="member-icon">
...
@@ -51,19 +52,24 @@
...
@@ -51,19 +52,24 @@
<view class="describe" wx:else>{{vipInfo.time}} 到期</view>
<view class="describe" wx:else>{{vipInfo.time}} 到期</view>
</view>
</view>
</view>
</view>
<block wx:if="{{!isMember}}">
<view class="member-button" bindtap="toBuyMember">开通会员</view>
<view class="member-button" bindtap="toBuyMember">开通会员</view>
<view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">特惠¥{{memberInfo.goodPrice}}起</view>
<view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">特惠¥{{memberInfo.goodPrice}}起</view>
</view>
</block>
</block>
<block wx:else>
<block wx:else>
<view class="goUseBox" bindtap="goInterests">
<view class="vip-box" bindtap="goInterests">
<view class="vip-box-bg">
<glsx-image src="equity/version/1_0_0/{{vipType[identity]}}.png"></glsx-image>
</view>
<view class="vip-name {{titleClass[identity]}}">{{memberInfo.equityName}}</view>
</view>
<!-- <view class="goUseBox" bindtap="goInterests">
去使用
去使用
<view class="goUseBox-icon">
<view class="goUseBox-icon">
<glsx-image webp src="mine/goUse.png"></glsx-image>
<glsx-image webp src="mine/goUse.png"></glsx-image>
</view>
</view>
</view>
</view>
-->
</block>
</block>
</view>
</block>
</block>
<!-- 我的券包 -->
<!-- 我的券包 -->
<view class="coupon-box box flex" bindtap="jump" data-url="/packageMine/pages/coupon/index/index">
<view class="coupon-box box flex" bindtap="jump" data-url="/packageMine/pages/coupon/index/index">
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment