digital.wxml
6.37 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
<view class="digital-container">
<!-- <navigationBar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="权益中心"></navigationBar> -->
<view class="top-wrap">
<image class="iconBg" webp mode="widthFix" src="{{IMGURL}}equity/digil_banner.png?v={{img_version}}" />
<view class="title">{{merchantName|| ''}}</view>
<view class="tab_wrap">
<block wx:for="{{tabs}}" wx:key="index">
<view bind:tap="changeTab" data-index="{{index}}" class="tabs_item flex_cc">
<view class="{{curTabIndex==index?'active_tab_text':''}}">{{item}}</view>
<view wx:if="{{curTabIndex==index}}" class="active_tab_line"></view>
</view>
</block>
</view>
<view class="driver"></view>
<view wx:if="{{!curTabIndex}}" class="content_wrap">
<view class="store_box">
<image class="icon" webp mode="widthFix" src="{{IMGURL}}equity/digital_store_icon.png?v={{img_version}}" />
<view class="msg">
<view class="msg_name">{{setstoreName || ''}}</view>
<view class="msg_location" catch:tap="toReLocation">
<image class="icon" webp mode="widthFix" src="{{IMGURL}}index/digital_loca.png?v={{img_version}}" />
<view class="msg_address">{{address ||'点击获取定位'}}</view>
</view>
</view>
</view>
<view class="code_wrap flex_ccc">
<block wx:if="{{pageStatus!=1}}">
<view class="tip_title">长按扫码添加门店企微</view>
<view class="tip_min_title">系统将自动分配专员跟进救援</view>
</block>
<block wx:if="{{pageStatus==1}}">
<image class="success_icon" webp mode="widthFix" src="{{IMGURL}}index/digital_success.png?v={{img_version}}" />
<view class="tip_title">您成功预约救援</view>
<view class="tip_min_title">将为您安排专属顾问对接救援事宜</view>
</block>
<view class="code_image">
<image wx:if="{{pageStatus==-1}}" bindlongtap="longtap" class="icon" webp mode="widthFix" src="{{IMGURL}}pages/qr.png?v={{img_version}}" />
<image wx:else bindlongtap="longtap" class="icon" show-menu-by-longpress="{{codeImg}}" webp mode="widthFix" src="{{codeImg}}" />
<view class="po_wrap" wx:if="{{pageStatus==-1}}">
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="auth-button"></button>
<image catch:tap="toRefresh" class="fresh_icon" webp mode="widthFix" src="{{IMGURL}}index/digital_fresh.png?v={{img_version}}" />
<view class="warn_tip">生成失败请点击重试</view>
</view>
</view>
<view class="tip_mid_title">长按识别二维码</view>
</view>
<view wx:if="{{haveCoupons&&pageStatus!=1}}" class="coupons_wrap">
<view wx:if="{{coupons}}" class="bg">
<image bindlongtap="longtap" show-menu-by-longpress="{{codeImg}}" class="icon" webp src="{{IMGURL}}index/digital_coupons.png?v={{img_version}}"></image>
<view class="bg_pro">
<view class="price_icon">¥</view>
<view class="price_text">{{coupons.denomination || ''}}</view>
<view class="price_tip">
<view class="tip_o">{{coupons.couponName || ''}}</view>
<view class="tip_o">{{coupons.discountTypeName || ''}}</view>
</view>
</view>
</view>
</view>
<view wx:if="{{!haveCoupons || pageStatus==1}}" class="tip_info">
<view class="tip_info_title">— 添加我的企业微信可获得以下服务 —</view>
<view class="tip_inner_warp">
<block wx:for="{{tipList}}" wx:key="index">
<view style="margin-top:{{index?'24':'0'}}rpx" class="tip_line">
<view wx:for="{{tipList[index].tip}}" wx:for-index="tipindex" wx:key="tipindex" wx:for-item="tipItem" class="tip_txt flex_cc">
<image class="icon" webp src="{{IMGURL}}index/digital_sign.png?v={{img_version}}"></image>
<view class="text">{{tipItem}}</view>
</view>
</view>
</block>
</view>
</view>
<view class="footer_tip">顾客至上 服务第一</view>
</view>
<view wx:if="{{curTabIndex&&hotLineLs.length}}" class="content_wrap list_wrap">
<block wx:for="{{hotLineLs}}" wx:key="index">
<view class="element {{index==hotLineLs.length-1?'noBorder':''}}">
<view class="label">{{item.name}}</view>
<view class="label gery mart4">联系方式:{{item.phone}}</view>
<image class="icon" data-phone="{{item.phone}}" bind:tap="callPhone" webp src="{{IMGURL}}index/digital_phone.png?v={{img_version}}"></image>
</view>
</block>
</view>
<view wx:if="{{noResult&&curTabIndex}}" class="nodata flex_cc">暂无热线</view>
</view>
</view>
<block wx:if="{{showAuth}}">
<authorize scopeType="userLocation" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</block>
<login show="{{showLogin}}"></login>
<view wx:if="{{showTip}}" class="modal flex_ccc">
<view class="box">
<view class="title">温馨提示</view>
<view class="content">
<view>为了给您提供全面的服务</view>
<view>请授权(昵称、头像)</view>
</view>
<view class="dirver"></view>
<view class="footer flex_cc">
<view class="mid_line"></view>
<view class="btn cancel flex_cc" catch:tap="closeModal">取消</view>
<button class="btn flex_cc" open-type="getUserInfo" data-confirm catch:tap="toauthAvatar">确定</button>
</view>
</view>
</view>
<glsx-privacy appletName="广汇车生活"></glsx-privacy>