payModal.wxml
3.66 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
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-16 17:05:39
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-01-04 16:52:08
* @FilePath: \miniprogram\pages\crowdfunding\payModal\payModal.wxml
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<view class="layout isFullSucreen">
<view class="box">
<block wx:for="{{items}}" wx:key="index">
<block wx:if="{{item.name}}">
<view class="item flex" :key="index">
<view class="label text-hide">
<text wx:if="{{!subscribe && item.type != 'plate'}}">*</text>
{{ item.name }}
</view>
<view class="value flex">
<block wx:if="{{item.route}}">
<input type="text" disabled placeholder="请选择您的{{item.name}}" bindtap="jumpCarBrands" data-name="{{item.route}}" value="{{params[item.key]}}" class="readonly" placeholder-class="placeholder-class" />
<view class="sprite-icon icon-mine-arrow">
</view>
</block>
<block wx:elif="{{item.type == 'tel'}}">
<button class="phone {{params[item.key]?'has':''}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" disabled="{{params[item.key]}}">{{params[item.key] || '请填写您的' + item.name}}</button>
</block>
<block wx:elif="{{item.type == 'plate'}}">
<button class="phone {{params[item.key]?'has':''}}" bindtap="showPlate">{{params[item.key] || '请填写您的' + item.name}}</button>
</block>
<block wx:else>
<input type="{{item.type}}" maxlength="{{item.maxlength}}" placeholder="请填写您的{{item.name}}" value="{{params[item.key]}}" placeholder-class="placeholder-class" bindinput="input" data-key="{{item.key}}" />
<block wx:if="{{params[item.key]}}">
<view class="clear text-center" bindtap="clear" data-key="{{item.key}}">
<view class="sprite-icon icon-clear">
</view>
</view>
</block>
</block>
</view>
</view>
</block>
</block>
<block wx:if="{{detail.userSelectGoodsList.length > 1}}">
<view class="goods-box">
<goods-list data="{{detail.userSelectGoodsList}}" defaultType="{{false}}"></goods-list>
<block wx:if="{{totalPrice.decimal}}">
<view class="total-price-box flex">
<view class="total-price">
合计:
<view class="price">
<text class="unit">¥</text>
{{ totalPrice.price }}
<text class="decimal">.{{ totalPrice.decimal }}</text>
</view>
</view>
</view>
</block>
</view>
</block>
</view>
<button class="button text-center" hover-class="btn-hover" loading="{{payLoading}}" bindtap="submit" disabled="{{!agree}}">{{buttonName}}</button>
<view class="tips flex">
<view class="icon {{agree}}" bindtap="tapAgree">
<image webp src="https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/radio.png"></image>
</view>
我已阅读并同意<text catchtap="goAgreement">《隐私权政策》</text>
</view>
</view>
<view class="submit-box" wx:if="{{submitStatus}}">
<glsx-image src="expandedGold/submit-icon.png" custom-class="submit-icon"></glsx-image>
<text>已提交成功、等待续保专员联系。</text>
</view>
<license-plate binddone="input" id="plate" data-key="plateNo"></license-plate>
<glsx-privacy appletName="车生活助手"></glsx-privacy>