confirmPayment.wxml
3.78 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
<!--pack-activity/pack/confirmPayment.wxml 代金券和充值支付页面-->
<nav bindNavEvent="navEvent">{{opt.detail.name}}</nav>
<view class="box_wrap">
<view wx:if="{{type=='1'}}" class="box">
<view class="money_text">
¥{{opt.totalize}}
</view>
<view class="nameText font24r">
{{opt.detail.aname}}
</view>
<view class="nameText font24r">
{{opt.detail.name}}
</view>
</view>
<view wx:if="{{type=='2'}}" class="coupon">
<form catchsubmit="formSubmit">
<view class="page-section">
<view class="page-section-title font32r">您的姓名</view>
<view class="weui-cells weui-cell__bd" style="margin: 30rpx 0">
<input class="weui-input name-input" value="{{name}}" data-params="name" placeholder="点击输入您的姓名" placeholder-style="color:#999;" bindinput="bindKeyNameInput"/>
</view>
<picker mode="selector" value="{{indexs}}" range-key="sex" data-sex='{{sexList[indexs].sex}}' range="{{sexList}}" bindchange="bind_Changesex" class="pickerSex">
<text class="sexText">{{sexList[indexs].sex}}</text>
<image src="https://qn.colorcun.com/WechatIMG695.png" mode="" class="imgs"/>
</picker>
</view>
<view class="page-section">
<view class="page-section-title font32r">联系电话</view>
<view class="weui-cells weui-cell__bd" style="margin: 30rpx 0">
<input class="weui-input" type="number" name="phone" value="{{phone}}" data-params="phone" maxlength="11" placeholder="点击输入您的电话" placeholder-style="color:#999;" bindinput="bindKeyPhoneInput" style="color: #999" />
</view>
</view>
<view class="page-section page-section1">
<view class="page-section-title font32r">您的生日</view>
<view class="weui-cells weui-cell__bd">
<picker mode="date" value="{{date}}" bindchange="bind_ChangeDate" class="pickerBox">
<view class="colorSty">{{date?date:'点击输入您的生日'}}</view>
</picker>
</view>
<view class="more"></view>
</view>
<view class="page-section">
<view class="page-section-title font32r">充值金额</view>
<view class="weui-cells weui-cell__bd sum colorSty">
{{opt.detail.recharge_money}}元
</view>
</view>
<view wx:if="{{type=='2'}}" class="fixed_box">
<button class="font32r btns" formType="submit">确认支付
</button>
</view>
</form>
</view>
</view>
<view wx:if="{{type=='1'}}" class="fixed_box">
<button class="font32r btns" bindtap="formSubmit">确认支付
</button>
</view>
<my-modal id="payModal" fadeStyle="slideUp" height="380px">
<view slot="modalName" class="titleModal">成功支付{{opt.totalize}}元</view>
<view slot="modalContent">
<block wx:if="{{type=='2'}}">
<view class="explain">
您的会员充值已经在办理中,到店消费时请和收银核实,谢谢!
</view>
<button wx:if="{{type=='2'}}" class="font32r btnsPay" bindtap="recharge">朕知道了
</button>
</block>
<view class="explain explain1" wx:else>
<view class="bottom_box">
<view class="font24r">温馨提示:</view>
<view class="font24r">1、到店消费时,请您向餐厅出示该二维码。</view>
<view class="font24r">2、从<text class="bold_box">周到安排</text>微信小程序,我的-卡券,可以找到您的卡券。</view>
<!-- <view class="font24r">3、您也可以关注<text class="bold_box">周到安排</text>公众号,公众号菜单“优惠券”获取优惠券更多信息。</view> -->
<view class="font28r publicity" bindtap="wananchi">关注<text class="bold_box">周到安排</text>公众号,及时获取更多优惠券动态<view class="more" style="margin-left: 20rpx;"></view>
</view>
</view>
<subscribe ids="{{[2]}}" bindtap="certificate">
<button class="font32r btnsPay">完成</button>
</subscribe>
</view>
</view>
</my-modal>