usercenter.vue
5.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<template>
<view class="content">
<view class="usertop commnonpadding">
<view class="userhsang flexone">
<view class="usershangleft">
<image src="../../static/userpic.png" mode=""></image>
</view>
<view class="usershangright">
<view class="righttop flexone">
<view class="vip flexthree">
<view class="vipimg">
<image src="../../static/huiyuan.png" mode=""></image>
</view>
<view class="vipnum">vip5</view>
</view>
<view class='usernicheng'>我是用户昵称</view>
</view>
<view class="rightbot">会员到期时间:2019-10-10</view>
</view>
</view>
<view class="viprank flextwo">
<view class="viprankleft">VIP5</view>
<view class="vipmiddle">
<view class="vipmiddlenei boxsizing">还需6999经验升级到VIP6</view>
</view>
<view class="viprankleft">VIP6</view>
</view>
</view>
<view class="tapnav flextwo huiyuannav boxsizing">
<view class="tapnavitem" :class="sel==1?'huiyuanactive':''" @click="selhui" :data-id="1">个人会员</view>
<view class="tapnavitem" :class="sel==2?'huiyuanactive':''" @click="selhui" :data-id="2">企业会员</view>
</view>
<view class="huiyuanimg" v-if="sel==1">
<image src="../../static/vipbg.png" mode=""></image>
<view class="huiyuannei flextwo">
<view class='huiyuanneileft flexone'>
<view class="zuanshi">
<image src="../../static/zuanshi.png" mode=""></image>
</view>
<view class="huiprice">
<view class="huimoney">¥1000</view>
<view class="huimonth">12个月</view>
</view>
</view>
<view class="huiyuanright" @click="openhuiyuan">立即开通</view>
</view>
</view>
<view class="huiyuanimg" v-else>
<image src="../../static/vipbg.png" mode=""></image>
<view class="huiyuannei flextwo ">
<view class='huiyuanneileft flexone behuiyuanbox'>
<view class="zuanshi">
<image src="../../static/zuanshi.png" mode=""></image>
</view>
<view class="behuiyuan">您已成为企业会员</view>
</view>
</view>
</view>
<view class="tequan boxsizing">会员特权</view>
<view class="commnonpadding huiyuanbox">
<view class="huiyuanitem boxsizing flexone">
<view class="huiyuanitemleft">
<image src="../../static/jifen.png" mode=""></image>
</view>
<view class="huiyuanitemname">购买商品得积分</view>
</view>
<view class="huiyuanitem boxsizing flexone">
<view class="huiyuanitemleft">
<image src="../../static/zhekou.png" mode=""></image>
</view>
<view class="huiyuanitemname">店铺消费享折扣</view>
</view>
</view>
<view class="huiyuanbot boxsizing" v-if="sel==1" @click="behuiyuan">
<view class="behuiyuanbtn">成为企业会员</view>
</view>
<view class="huiyuanbot boxsizing" v-if="sel==2">
<view class="behuiyuanbtn">您已经成为企业会员</view>
</view>
<!-- 购买弹层 -->
<view class="register" @click="hidebuy" v-if="buyshow">
<view class="buywrap boxsizing">
<view class="buyname">订单总额</view>
<view class="buymoney">3600</view>
<view class='buybox'>
<view class="buyitem boxsizing flextwo">
<view class="buyitemleft flexone">
<view class="buyleftimg">
<image src="../../static/zhifubao.png" mode=""></image>
</view>
<view class="buyitemname">支付宝</view>
</view>
<view class="selimg">
<image src="../../static/selactive.png" mode=""></image>
</view>
</view>
<view class="buyitem boxsizing flextwo">
<view class="buyitemleft flexone">
<view class="buyleftimg">
<image src="../../static/weixin.png" mode=""></image>
</view>
<view class="buyitemname">微信支付</view>
</view>
<view class="selimg">
<image src="../../static/selactive.png" mode=""></image>
</view>
</view>
<view class="buyitem boxsizing flextwo">
<view class="buyitemleft flexone">
<view class="buyleftimg">
<image src="../../static/yue.png" mode=""></image>
</view>
<view class="buyitemname">余额支付</view>
</view>
<view class="selimg">
<image src="../../static/selactive.png" mode=""></image>
</view>
</view>
<view class="buyitem boxsizing flextwo">
<view class="buyitemleft flexone">
<view class="buyleftimg">
<image src="../../static/baitiao.png" mode=""></image>
</view>
<view class="buyitemname">白条支付</view>
</view>
<view class="selimg">
<image src="../../static/selactive.png" mode=""></image>
</view>
</view>
</view>
<view class="buybtn">确认支付(¥2560.00)</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
sel: 1,
buyshow:false
}
},
onLoad() {
},
methods: {
selhui(e) {
this.sel = e.currentTarget.dataset.id;
},
behuiyuan(){
uni.navigateTo({
url:'./companyshenhe'
})
},
openhuiyuan(){
this.buyshow=true
},
}
}
</script>
<style>
@import url('../../base/usercenter');
page {
background: #F9F9F9;
}
</style>