index.wxml
8 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
<view class="navigation-bar">
<navigation-bar bindnavbarReady="navbarReady" page-title="个人中心">个人中心</navigation-bar>
</view>
<block wx:if="{{user_box_style}}">
<view class="layout mine">
<view class="user-box" style="{{user_box_style}}">
<view class="user-info">
<view class="avatar">
<block wx:if="{{userInfo && userInfo.headImgUrl}}">
<image src="{{userInfo.headImgUrl}}" />
</block>
<block wx:else>
<glsx-image webp src="mine/default-avatar.png"></glsx-image>
</block>
</view>
<view class="info auth">
<block wx:if="{{userInfo}}">
<view class="nickName">
<text class="text text-hide">{{userInfo.nickName || '微信用户'}}</text>
<view class="vip_card" wx:if="{{isMember}}">
<glsx-image webp src="mine/goldCard.png"></glsx-image>
</view>
</view>
<view class="phone">{{username}}{{userInfo.phone}}</view>
</block>
<block wx:else>点击登录</block>
</view>
<block wx:if="{{!userInfo}}">
<view class="auth-button" bindtap="login"></view>
</block>
<view class="setUp {{userInfo ? '' : 'setUpZinx'}}" bindtap="goSetUp">
<glsx-image webp src="mine/setUp.png"></glsx-image>
</view>
</view>
</view>
<!-- 会员卡 -->
<block wx:if="{{memberFlag}}">
<view class="member-box">
<view class="left-box">
<view class="member-icon">
<glsx-image webp src="mine/mine-vip-logo.png"></glsx-image>
</view>
<view class="left-content">
<view class="card">{{memberInfo.equityName || '甄选会员卡'}}</view>
<view class="describe" wx:if="{{!isMember}}">
专享十余项养车特权,劲省
<text class="member-price-text">{{memberInfo.goodPrice}}元</text>
/年
</view>
<view class="describe" wx:if="{{vipInfo.cardType==0}}">{{vipInfo.renewDay}} 天后到期</view>
<view class="describe" wx:if="{{vipInfo.cardType==1}}">{{vipInfo.time}} 到期</view>
</view>
</view>
<view wx:if="{{!isMember}}" class="member-button" bindtap="toBuyMember">开通会员</view>
<view wx:if="{{isMember}}" class="member-button" bindtap="goInterests">去使用</view>
<!-- <view class="member-price" bindtap="toBuyMember" wx:if="{{memberInfo.goodPrice}}">
特惠¥{{memberInfo.goodPrice}}起
</view> -->
</view>
</block>
<!-- 我的爱车 -->
<view class="car-box box">
<block wx:if="{{!carInfo}}">
<view class="car-info">
<view class="title">
我的智能汽车
<view class="edit" bindtap="jumpDevList" data-url="vehicleInfo" data-item="{{carInfo}}">
管理
<view class="icon">
<glsx-image src="mine/mine-arrow.png"></glsx-image>
</view>
</view>
</view>
<view class="bottm">
<view class="btn" bindtap="goto" data-url="vehicleInfo">
<view class="btn-icon">
<image webp src="{{IMGURL}}mine/addTo.png?v={{img_version}}"></image>
</view>
添加爱车 享受服务
</view>
</view>
</view>
</block>
<block wx:else>
<view class="car-info">
<view class="title">
我的智能汽车
<view class="edit" bindtap="jumpDevList" data-url="vehicleInfo" data-item="{{carInfo}}">
管理
<view class="icon">
<glsx-image src="mine/mine-arrow.png"></glsx-image>
</view>
</view>
</view>
<view class="btnBox">
<view bindtap="goto" data-url="vehicleInfo" data-item="{{carInfo}}" class="left-wrap">
<image class="logo" webp src="{{IMGURL}}mine/carPicture.png?v={{img_version}}"></image>
<view class="row">
<view class="name">{{carInfo.brandName}}</view>
<view class="icon">
<glsx-image src="mine/mine-arrow.png"></glsx-image>
</view>
</view>
</view>
<view class="right-wrap-panel">
<view class="scroll_widget">
<scroll-view scroll-x="{{true}}">
<block wx:for="{{devList}}" wx:key="index" style="height:120rpx;width:100%">
<view bindtap="jumpDev" data-item="{{item}}" class="device">
<view class="wrapper2">
<glsx-image src="mine/dev-{{index}}.png" class="icon" />
<view class="text">{{item.text}}</view>
</view>
</view>
</block>
</scroll-view>
</view>
</view>
</view>
</view>
</block>
</view>
<!-- 我的券包 -->
<view class="coupon-box box flex" bindtap="jump" data-url="/packageMine/pages/coupon/index/index">
我的卡券
<view class="icon">
<glsx-image src="mine/mine-arrow.png"></glsx-image>
</view>
</view>
<!-- 我的订单 -->
<myOrder orderNumberList="{{orderNumberList}}" />
<!-- 常用工具 -->
<view class="tool-box box">
<view class="title">我的服务</view>
<view class="btnBox">
<block wx:for="{{toolList}}" wx:key="index">
<view class="independentBox" bindtap="jump" data-url="{{item.url}}">
<view class="tool-img">
<glsx-image webp src="mine/{{item.icon}}.png"></glsx-image>
</view>
<text class="tool-content">{{item.text}}</text>
</view>
</block>
<view wx:if="{{toolList.length<3}}" class="independentBox">
<view class="tool-img"></view>
</view>
<view class="independentBox">
<view class="tool-img"></view>
</view>
</view>
</view>
</view>
</block>
<!-- 红包会员弹窗 -->
<view wx:if="{{isMemberShow}}" class="member-dialog">
<view class="bg" />
<view class="content">
<glsx-image class="member-bg" src="mine/{{memberUrl}}.png"></glsx-image>
<glsx-image bindtap="handleChangeVal" data-attr="isMemberShow" data-val="{{false}}" class="member-close" src="mine/icon-member-close.png"></glsx-image>
</view>
</view>
<store-select show="{{showStore}}" bind:freshMerchant="freshMerchant"></store-select>