vipPackage.wxml
5.25 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
<view class="vipPacage-container">
<!-- 顶部个人信息 -->
<view class="topBanner flex_cccc" style="background-image: url({{IMGURL}}equity/vip_pack_bg.gif?v={{img_version}})">
<view class="box_pannel" style="background-image: url({{IMGURL}}equity/vip_type_6_1.png?v={{img_version}})">
<view class="goldVipInfoWrap">
<view wx:if="{{userInfo&&userInfo.headImgUrl}}" class="icon">
<image webp src="{{userInfo.headImgUrl}}"></image>
</view>
<image wx:else webp class="icon" src="{{IMGURL}}equity/black_defaultAvatar.png?v={{img_version}}" />
<view class="box">
<view class="line">
<block wx:if="{{userInfo}}">
<view class="nickName text_hide blackGoldTitle">
{{userInfo.nickName || '微信用户'}}
</view>
</block>
<block wx:else>点击登录</block>
<image mode="widthFix" class="sign_icon" webp src="{{IMGURL}}equity/vip_black_sign.png?v={{img_version}}" />
</view>
<view wx:if="{{vipInfo}}" class="line mar blackGoldTitle">
<block wx:if="{{vipInfo.cardNo}}">
<text>{{vipInfo.time}}</text>
<text style="margin-left:4rpx">到期</text>
</block>
<text wx:else>{{vipInfo.renewDay}}天后到期</text>
</view>
</view>
</view>
<view class="card_title ont_desc goldVipTitle blackGoldTitle">
{{memberInfo.equityName}}
</view>
<view class="card_title carbindNum blackGoldTitle">{{list[currentIndex].bindCarNum || ''}}</view>
</view>
</view>
<!-- 切换栏 -->
<view wx:if="{{list.length}}" class="tab_wrapper">
<scroll-view enhanced="{{true}}" scroll-with-animation show-scrollbar="{{false}}" scroll-x style="height:64rpx">
<block wx:for="{{list}}" wx:key="index">
<view bind:tap="chooseTab" data-index="{{index}}" data-item="{{item}}" class="tab_element {{currentIndex==index?'active':''}}">
<text>{{item.packageName}}</text>
<view wx:if="{{currentIndex==index}}" class="service_rote"></view>
</view>
</block>
</scroll-view>
</view>
<!-- 券列表 -->
<view wx:if="{{couponsList.length}}" class="pannel {{couponsList.length>4?'noPadding':''}}">
<block wx:for="{{couponsList}}" wx:key="index">
<view class="element_wrap" style="background-image: url({{IMGURL}}equity/vip_pack_coupons.png?v={{img_version}})">
<view class="left">
<view class="title text_hide">{{item.couponName}}</view>
<view class="tip martb">{{item.useDescription}}</view>
<!-- <view wx:if="{{item.useType==1}}" class="tip martb">可用{{item.useAmount}}次</view>
<view wx:if="{{item.useType==2}}" class="tip martb">隔{{item.effectiveDays}}天可用{{item.useAmount}}次</view> -->
<view wx:if="{{item.effectiveType==1}}" class="tip">有效期至{{item.receiveEndTime}}</view>
<view wx:if="{{item.effectiveType==2}}" class="tip">{{item.receiveStartTime}}-{{item.receiveEndTime}}</view>
<view wx:if="{{item.effectiveType==3}}" class="tip">永久有效</view>
</view>
<view data-item="{{item}}" bind:tap="toUsePage" class="textBtn">去使用</view>
</view>
</block>
<view bind:tap="toShowMore" wx:if="{{couponsList.length>4}}" class="foot flex_ccc" style="background-image: url({{IMGURL}}equity/vip_service_foot.png?v={{img_version}})">
<text>{{showMore?'收起':'查看更多优惠卷'}}</text>
<image webp class="icon" src="{{IMGURL}}equity/{{showMore?'vip_foot_up':'vip_foot_down'}}.png?v={{img_version}}" />
</view>
</view>
<!-- 生活权益 -->
<view class="pageTitle">生活权益</view>
<view class="equity_widget">
<block wx:for="{{equityList}}" wx:key="index">
<view class="image_text_box" bind:tap="toNewPage" data-item="{{item}}">
<image class="icon" src="{{item.equityIcon}}" />
<view class="title text_hide">{{item.equityName}}</view>
<view class="tip text_hide">{{item.equityDesc}}</view>
</view>
</block>
<view class="image_text_box" bind:tap="toAllEquity">
<image class="icon" webp mode="widthFix" src="{{IMGURL}}equity/vip_more_icon.png?v={{img_version}}" />
<view class="title">更多</view>
<view class="tip">权益</view>
</view>
</view>
<!-- 汇聚商城 -->
<view class="pageTitle">汇划算商城</view>
<view class="shop_wrap" bind:tap="toWebPage">
<image webp mode="widthFix" class="image_swiper_item" src="{{IMGURL}}equity/beilian.png?v={{img_version}}" />
<!-- <view class="shop_tip">会员商城8折起,豪华福利等你来</view> -->
</view>
<view style="height:68rpx"></view>
</view>