balancePayment.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <integral show="{{show.integral}}" info="{{integralConfig}}" data-name="integral" bind:close="close" />
  2. <address show="{{show.address}}" data="{{mailAddress}}" data-name="address" bind:submit="submitAddress"
  3. bind:close="close" />
  4. <vouche show="{{show.vouche}}" info="{{voucheConfig}}" bind:change="changeVouche" data-name="vouche"
  5. bind:close="close"
  6. status="{{optionsData.presellstatus}}"
  7. type="1"/>
  8. <view class="sku-stepper-stock">
  9. <view class="font14">{{datas.title}}</view>
  10. <view class="buy-gray font12 mTop5">{{sku.sessions.name}}/{{sku.meals.policyName}} <text wx:if="{{optionsData.military==1}}">({{optionsData.campsex==0?'仅女生可报':(optionsData.campsex==1?'仅男生可报':'不限性别')}})</text></view>
  11. <view class="sku-stepper-container mTop5">
  12. <text class='subtitleColor font12 price'>¥<text class="font16">{{sku.meals.price}}</text></text>
  13. <text class='buy-gray font12 pLeft10 price' style="text-decoration:line-through"
  14. wx:if="{{sku.meals.originalPrice&&sku.meals.originalPrice!=sku.meals.price}}">¥{{sku.meals.originalPrice}}</text>
  15. <text wx:if="{{sku.meals.mpriceRemark}}" class="font14 pLeft10">(含{{sku.meals.mprice}}元{{sku.meals.mpriceRemark}})</text>
  16. <text wx:if="{{sku.meals.mpriceRemark}}" bindtap="openQuestion" class="font20 pLeft10 black icon icon-question"></text>
  17. <view class="stepper sku__stepper sku-tep">
  18. <view class="stepper__minus {{sku.quantity<=1?'stepper__minus__diabled':''}}" bindtap="numReduce"></view>
  19. <input type="number" value="{{sku.quantity}}" class="stepper__input" bindblur="numChange" />
  20. <view class="stepper__plus {{sku.quantity>=sku.quota?'stepper__plus__diabled':''}}" bindtap="numAdd"></view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="white-bg enlist-choose-child" wx:if="{{datas.needIdcard != 'no'&&atype==0}}">
  25. <view class="m-top10">
  26. <text class="font14">出行人信息</text><text class="font12 subtitleColor pLeft10">购买保险并生成旅游合同</text>
  27. </view>
  28. <view class="enlist-choose-child-button" wx:if="{{!idcards.ids || idcards.ids.length<=0}}">
  29. <button type="danger" size="small" round bindtap="chooseCard">请选择{{sku.quantity}}名出行人信息</button>
  30. </view>
  31. <view wx:else>
  32. <view class="card-list" bindtap="chooseCard">
  33. <view class="card-item" wx:for="{{idcards.ids}}" wx:key="unique">
  34. <text class="card-item-one">{{idcards.names[index]}}</text>
  35. <text class="card-item-two">{{idcards.idCards[index]}}</text>
  36. <text class="card-item-three" wx:if="{{idcards.parentNames[index] && datas.sparent==1}}">监护人:{{idcards.parentNames[index]}}</text>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="enlist mTop10">
  42. <view class="bottom bar-bottom buttons-row">
  43. <view class="leftBtn btn">总计:<text>{{total.price}}</text>元</view>
  44. <view bindtap="goPay" class="rightBtn btn">去付款</view>
  45. </view>
  46. <view class="content">
  47. <view class="column details" wx:if="{{atype==0}}">
  48. <!-- 预付折扣 -->
  49. <view class="member">
  50. <view class="col-line">
  51. <view class="line-title">预付减免</view>
  52. <view class="line-details subtitleColor">-{{sku.presellDeduction}}</view>
  53. </view>
  54. </view><!-- 会员折扣 -->
  55. <view class="member" wx:if="{{userInfo.role.level > 0 && total.mdiscount>0}}">
  56. <view class="col-line details-link" bindtap="integral">
  57. <view class="line-title">会员折扣</view>
  58. <view class="line-details subtitleColor">-{{total.mdiscount}}</view>
  59. </view>
  60. </view>
  61. <!-- 早鸟折扣 -->
  62. <view class="member" wx:if="{{datas.ldiscount > 0}}">
  63. <view class="col-line">
  64. <view class="line-title">早鸟折扣</view>
  65. <view class="line-details subtitleColor">-{{total.ldiscount}}</view>
  66. </view>
  67. </view>
  68. <!-- 现金券 -->
  69. <view class="member" bindtap="goCoupon">
  70. <view class="col-line details-link">
  71. <view class="line-title">现金券</view>
  72. <view class="line-details subtitleColor">-{{total.coupons}}</view>
  73. </view>
  74. </view>
  75. <!-- 宝贝币 -->
  76. <view class="member" wx:if="{{total.sumUserCoin>0&&sku.meals.userCoin>0&&presellOpen==0}}">
  77. <view class="col-line">
  78. <view class="line-title">宝贝币 <text class="balance">{{total.sumUserCoin}}</text>个 可用<text class="subtitleColor">{{total.userCoin}}</text>个</view>
  79. <switch class="switch_wallet" bindchange="coinChange" />
  80. </view>
  81. </view>
  82. <!-- 可用钱包 -->
  83. <view class="member">
  84. <view class="col-line">
  85. <view class="line-title">抵用钱包<text class="balance">¥{{total.coin}}</text></view>
  86. <switch bindchange="switchChange" />
  87. </view>
  88. </view>
  89. <view class="member" wx:if="{{total.sumBalanceNum > 0}}">
  90. <view class="col-line">
  91. <view class="line-title">账户余额<text class="balance">¥{{total.sumBalance}}</text>
  92. <text class="padLeft10">可用<text class="balance">¥{{total.ableBalance}}</text></text></view>
  93. <switch bindchange="balanceChange" />
  94. </view>
  95. </view>
  96. </view>
  97. <view class="column details mTop10">
  98. <!-- 联系电话 -->
  99. <view class="col member" wx:if="{{datas.sphone != null && datas.sphone != 'no'}}">
  100. <view class="col-line">
  101. <view class="line-title">联系手机号码</view>
  102. <input class="line-details" value="{{phoneNum}}" name="phoneNum" style="text-align:right;" bindblur="phoneNum"
  103. bindconfirm="phoneNum" type="number" />
  104. </view>
  105. </view>
  106. <!-- 邮寄信息 -->
  107. <view class="col member" bindtap="chooseAddress" wx:if="{{datas.smailAddress != 'no' && atype== 0}}">
  108. <view class="col-line details-link">
  109. <view class="line-title">邮寄信息</view>
  110. <input class="line-details address" placeholder="请选择" value="{{mailAddress}}" name="mailAddress" disabled />
  111. </view>
  112. </view>
  113. <!-- 收货地址 -->
  114. <view class="col member" wx:if="{{datas.smailAddress == 'yes' && atype== 1}}">
  115. <view class="remark-title mTop10">收货地址</view>
  116. <view class="col-line details-link ship-address" wx:if="{{shipAddress}}" bindtap="chooseAddress">
  117. <view>
  118. <view class="text-name mTop10"><text>{{shipAddress.userName}}</text><text
  119. class="mLeft10">{{shipAddress.telNumber}}</text></view>
  120. <view class="text-info">
  121. <text>{{shipAddress.provinceName}}{{shipAddress.cityName}}{{shipAddress.countyName}}</text><text
  122. class="mLeft10">{{shipAddress.detailInfo}}</text></view>
  123. </view>
  124. </view>
  125. <view class="buttons-row buttons-gutter content-pad" wx:if="{{!shipAddress}}">
  126. <button class='button button-weixin' bindtap="weixinAddress"><text
  127. class="icon icon-weixin"></text>从微信读取</button>
  128. <button class='button button-warn' bindtap="chooseAddress">+手工添加</button>
  129. </view>
  130. </view>
  131. <!-- 电子邮箱 -->
  132. <view class="col member" wx:if="{{datas.needEmail != 'no'}}">
  133. <view class="col-line">
  134. <view class="line-title">电子邮箱</view>
  135. <input class="line-details" value="{{email}}" placeholder="请填写邮箱以便接受电子合同" bindblur="email" name="email"
  136. style="width:400rpx;text-align:right;" placeholder-style="email" />
  137. </view>
  138. </view>
  139. <!-- 家委会 -->
  140. <view class="col member" wx:if="{{datas.familyCommittee !=0}}">
  141. <view class="col-line">
  142. <view class="line-title">家委会</view>
  143. <input class="line-details email" value="{{familyCommittee}}" placeholder="请输入是否为家委会" bindblur="familyCommittee" name="familyCommittee" style="width:400rpx;text-align:right;" placeholder-style="email" />
  144. </view>
  145. </view>
  146. <!-- 街道社区 -->
  147. <view class="col member" wx:if="{{streetStatus != 0}}">
  148. <view class="col-line">
  149. <view class="line-title">街道社区</view>
  150. <input class="line-details" value="{{street}}" placeholder="请填写社区以便安排活动事宜" bindblur="streetInput"
  151. name="street" style="width:400rpx;text-align:right;" placeholder-style="email" />
  152. </view>
  153. </view>
  154. <!-- 推荐人信息 -->
  155. <view class="col member" wx:if="{{recommenderShow}}">
  156. <view class="col-line">
  157. <view class="line-title">推荐人</view>
  158. <input class="line-details" value="{{recommender}}" placeholder="{{recommenderShowText}}"
  159. bindblur="recommender" name="recommender" style="width:400rpx;text-align:right;"
  160. placeholder-style="email" />
  161. </view>
  162. </view>
  163. <!-- 出行日期 -->
  164. <view class="col member" wx:if="{{datas.travelDates != 'no'}}">
  165. <view class="col-line">
  166. <view class="line-title">出行日期</view>
  167. <picker mode="date" value="{{travelDates}}" start="2018-01-01" bindchange="bindDateChange" name="travelDates">
  168. <view class="line-details" wx:if="{{travelDates != ''}}">
  169. {{travelDates}}
  170. </view>
  171. <view class="line-details" wx:if="{{travelDates == ''}}">请选择<text class="rightBit"></text></view>
  172. </picker>
  173. </view>
  174. </view>
  175. <view class="member" wx:if="{{datas.sremark != 'no'}}">
  176. <view class="remark-title mTop10">备注</view>
  177. <view class="col-line">
  178. <input class="textarea" placeholder="{{datas.remark}}" placeholder-class="placeholder" bindblur="textarea"
  179. bindconfirm="textarea" maxlength="100" name="textarea" value="{{textarea}}"/>
  180. </view>
  181. </view>
  182. </view>
  183. <!-- 合同 -->
  184. <view class="bottomBG">
  185. <view class="contract" wx:if="{{datas.agreement&&atype==0}}">
  186. <text hidden="{{!agreement}}" class="disagree agree" bindtap="agree"></text>
  187. <text hidden="{{agreement}}" class="disagree" bindtap="agree"></text>
  188. <text bindtap="agree">我已阅读并接受</text>
  189. <text class="conDetails"
  190. bindtap="openDoc">{{datas.agreement == 'default'?'《国家旅游局团队境内旅游合同》':(datas.agreement == 'foreign' ? '《国家旅游局团队境外旅游合同》':(datas.agreement == 'within' ? '《沐童旅行社境内旅游合同》':(datas.agreement == 'leave' ?'《沐童旅行社出境旅游合同》': (datas.agreement == 'bicycleAbroad' ?'《沐童旅行社出境旅游合同 (含骑行)》': (datas.agreement == 'bicycleDomestic' ?'《沐童旅行社境内旅游合同 (含骑行)》': (datas.agreement == 'within1'?'《境内旅游合同 (沐童旅行社单日版)》':(datas.agreement == 'within1_bicycle'?'《境内旅游合同 (沐童旅行社单日骑行版)》':(datas.agreement == 'within3'?'《境内旅游合同 (沐童旅行社多日版)》':(datas.agreement == 'within3_bicycle'?'《境内旅游合同 (沐童旅行社多日骑行版)》':'《知识付费服务支付协议》')))))))))}}</text>
  191. </view>
  192. </view>
  193. </view>
  194. </view>
  195. <progress percent="{{percent}}" active active-mode="forwards" class="progress" wx:if="{{percent>0 && percent<100}}" />
  196. <view class="mask" bindtap="close" wx:if="{{maskShow}}">
  197. <view class="maskBox">
  198. <view class="maskContent">
  199. <view class="maskTitle">费用说明</view>
  200. <view class="maskTit">会员、现金券等所有优惠,仅限活动费;不含交通费、写真费、服装租赁费等。</view>
  201. </view>
  202. <button class="maskBtn button button-white" catchtap="maskClose">确定</button>
  203. </view>
  204. </view>