index.wxml 11 KB

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