sku.wxml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <wxs module="filters" src="../../utils/toFixed.wxs"></wxs>
  2. <popup show="{{show}}" height="{{height}}" FixHeight="{{FixHeight}}" bind:close="close" class="popupHeight">
  3. <view class="sku-container">
  4. <!-- 好友邀请提示 -->
  5. <view class="friend-share-tip" wx:if="{{shareInfo.sharer && shareInfo.sessionName && shareInfo.mealsName}}">{{shareInfo.sharer}} 已成功报名 {{shareInfo.sessionName}} / {{shareInfo.mealsName}}</view>
  6. <checkbox-group bindchange="checkboxChange" class="check-box" wx:if="{{maxUserCoin>0}}">
  7. <checkbox checked="{{checkeduseCoin}}" color="#ee3a43" />仅显示可用宝贝币的场次
  8. </checkbox-group>
  9. <!-- 补缴费用说明 -->
  10. <!-- wx:if="{{orderInfo.dayBeforeStart}}" -->
  11. <view wx:if="{{orderInfo}}">
  12. <view class="modular modular-pad" wx:if="{{orderInfo.refundRule!=5}}">
  13. <view class="modal-title">补缴费用</view>
  14. <view class="modal-label">
  15. <view style="font-weight: 700;margin-bottom: 10rpx;">补缴规则</view>
  16. <!-- <view class="subtitleColor">·当前日期时触发前{{orderInfo.dayBeforeStart}}天,换场次需补交{{orderInfo.deductRate*100}}%费用</view> -->
  17. <view class="subtitleColor spacing" wx:if="{{orderInfo.refundRule!=5&&orderInfo.deductRate==0}}">当前日期可免费申请换场次</view>
  18. <!-- <view class="subtitleColor spacing" wx:if="{{orderInfo.refundRule==6&&orderInfo.dayBeforeStart>=60}}">当前日期可免费申请换场次</view> -->
  19. <!-- <view class="subtitleColor spacing" wx:elif="{{orderInfo.refundRule==1&&orderInfo.dayBeforeStart>=2}}">当前日期是出发前2天,换场次需要补缴30%费用</view>
  20. <view class="subtitleColor spacing" wx:elif="{{orderInfo.refundRule==1&&orderInfo.dayBeforeStart>=1}}">当前日期是出发前1天,换场次需要补缴50%费用</view>
  21. <view class="subtitleColor spacing" wx:elif="{{orderInfo.refundRule==2&&orderInfo.dayBeforeStart>=7}}">当前日期可免费申请换场次</view> -->
  22. <!-- wx:elif="{{orderInfo.refundRule==2&&orderInfo.dayBeforeStart>=3&&orderInfo.dayBeforeStart<=6}}" -->
  23. <view wx:if="{{orderInfo.refundRule!=5&&orderInfo.deductRate!=0}}" class="subtitleColor spacing" >当前日期是出发前{{orderInfo.dayBeforeStart}}天,换场次需要补缴{{orderInfo.deductRate*100}}%费用</view>
  24. <!-- <view class="subtitleColor spacing" wx:elif="{{orderInfo.refundRule==2&&orderInfo.dayBeforeStart<3}}">当前日期是出发前{{orderInfo.dayBeforeStart}}天,换场次需要补缴70%费用</view>
  25. <view class="subtitleColor spacing" wx:if="{{orderInfo.refundRule==3&&orderInfo.dayBeforeStart>=7}}">当前日期可免费申请换场次</view>
  26. <view class="subtitleColor spacing" wx:elif="{{orderInfo.refundRule==3&&orderInfo.dayBeforeStart<7}}">当日期是出发前{{orderInfo.dayBeforeStart}}天,换场次需补缴10%费用</view>
  27. <view class="subtitleColor spacing" wx:if="{{orderInfo.refundRule==4&&orderInfo.dayBeforeStart>=7}}">当前日期可免费申请换场次</view>
  28. <view class="subtitleColor spacing" wx:if="{{orderInfo.refundRule==4&&orderInfo.dayBeforeStart<7}}">当日期是出发前{{orderInfo.dayBeforeStart}}天,换场次需补缴25%费用</view> -->
  29. <!-- <view wx:elif="{{orderInfo.refundRule==1&&orderInfo.dayBeforeStart<=1}}">当前日期是出发前2天,换场次需要补缴50%费用</view> -->
  30. <view class="spacing" wx:if="{{orderInfo.resultIncome*orderInfo.deductRate*100*0.5>0}}">·总支付金额:{{orderInfo.resultIncome}}元</view>
  31. <view class="spacing" wx:if="{{orderInfo.resultIncome*orderInfo.deductRate*100*0.5>0}}">·需补缴费用:{{filters.toFix(orderInfo.sumDeduct)}}元({{orderInfo.deductRate*100}}%)*50%(专属优惠)={{ filters.toFix(orderInfo.resultIncome*0.5*orderInfo.deductRate) }}元</view>
  32. <view>
  33. <view class="warning">注:</view>
  34. <view class="spacing">·换场次当前享有专属优惠,仅需支付50%的补缴费用。</view>
  35. <view class="spacing">·若因孩子生病、疫情等特殊原因无法参与活动而产生扣费,需提交证明给宝大大进行处理。</view>
  36. <view class="spacing">·若换场次成功后申请退款,则需根据换场次条例补回优惠的补缴费用金额。<text bindtap="showFund" class="subtitleColor">点击查看换场次条例></text> </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <!-- 换场次说明 -->
  42. <view class="modular modular-pad" wx:if="{{changeSku}}">
  43. <view class="modal-title">规则说明</view>
  44. <view class="modal-label">
  45. <view class="spacing">1、只可申请更换至同一活动下的场次;</view>
  46. <view class="spacing">2、提交申请后,宝大大们会进行审核处理,若需缴纳手续费则宝大大会进行联系。审核结果将会通过服务号发送消息通知;<text class="subtitleColor" bindtap="confirm">前往关注服务号></text></view>
  47. </view>
  48. </view>
  49. <!-- 头部 -->
  50. <view class="sku-box-top {{(shareInfo.sharer && shareInfo.sessionName && shareInfo.mealsName)?'m-top40':''}}">
  51. <view class="sku-column">
  52. <view class="column-title">选择日期:</view>
  53. <eventCalendar sid="{{initialSku.s1}}" calendarInfo="{{calendarInfo}}" presellOpen="{{presellOpen}}" bind:change="changeDate"></eventCalendar>
  54. </view>
  55. <view class="sku-column" wx:if="{{sessionInfo.length>0}}">
  56. <view class="column-title">选择场次:</view>
  57. <view class="sku-column-body">
  58. <view class="sku-sessions" wx:for="{{sessionInfo}}" wx:key="sid">
  59. <view class="sku-sessions-box {{(item.status==0 || item.status==1)?(item.actnum>0?(item.actnum>(item.beignNum*item.proportion)?'sale':'few-quota'):(item.status==1 && presellOpen==0 && item.actnum<=0 && item.waitActNum && item.waitActNum>0?'alternate':'full')):'full'}} {{checkSession==index?'sku-row__item--active':''}}" data-item="{{item}}" data-i="{{index}}" bindtap="selectSession">
  60. <view class="sessions-title">{{item.name}}</view>
  61. <text class="sessions-status">{{(item.status==0 || item.status==1)?(item.actnum>0?(item.actnum>(item.beignNum*item.proportion)?'火热报名中':'少量名额'):(item.status==1 && presellOpen==0 && item.actnum<=0 && item.waitActNum && item.waitActNum>0?'售罄候补':'已满额')):(item.status==1?'已满额':'已结束')}}</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="sku-column" wx:if="{{mealsInfo.length>0 && sessionInfo.length>0 && checkSession !=-1}}">
  67. <view class="column-title">选择{{military==1?'排':'套餐'}}:</view>
  68. <view class="sku-column-body">
  69. <view class="sku-package" wx:for="{{mealsInfo}}" wx:key="pid">
  70. <view class="sku-sessions-box flex-box {{checkMeals==index?'sku-row__item--active':''}} {{military==1?((item.status==0 || item.status==1)?(item.actnum>0?(item.actnum>10?'sale':'few-quota'):(presellOpen==0 && item.actnum<=0 && item.waitActNum && item.waitActNum>0?'alternate':'full')):'full'):''}}" data-item="{{item}}" data-i="{{index}}" bindtap="selectMeals">
  71. <view class="sessions-title">{{item.policyName}}</view>
  72. <view class="meals-status" wx:if="{{military==1}}">(
  73. <text wx:if="{{item.minAge && item.maxAge}}">{{item.minAge+'~'+item.maxAge+'岁,'}}</text>
  74. {{item.campSex==1?'男':(item.campSex==0?'女':'不限')}}
  75. )
  76. </view>
  77. <view class="identify attr-r" wx:if="{{military==1 && item.actnum<=0 && item.waitActNum>0&&presellOpen==0}}">售罄候补</view>
  78. <view class="identify attr-l" wx:if="{{item.userCoin>0}}">
  79. <text class='icon icon-coin font12'></text>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="militaryTip" wx:if="{{mealsInfo[checkMeals].userCoin>0}}">每个参与者最多可用{{mealsInfo[checkMeals].userCoin}}枚宝贝币</view>
  85. <view class="militaryTip" wx:if="{{military==1}}">注:年龄根据儿童上学时的年龄进行计算</view>
  86. </view>
  87. <view class="sku-column" wx:if="{{checkSession != -1 && checkMeals != -1 && mealsInfo.length>0 && sessionInfo.length>0}}" style="border: 0;">
  88. <view class="sku-column-quota">
  89. <view>参与人数</view>
  90. <view class="stepper sku__stepper sku-tep">
  91. <view class="stepper__minus {{initialSku.selectedNum <= sku.minT?'stepper__minus__diabled':''}}" data-type="minus" bindtap="quantity"></view>
  92. <input type="number" value="{{initialSku.selectedNum || ''}}" class="stepper__input" data-type="modfiy" bindblur="quantity" />{{sku.stock_num}}
  93. <view class="stepper__plus {{initialSku.selectedNum>=sku.stock_num?'stepper__plus__diabled':(initialSku.selectedNum >= sku.maxT?'stepper__plus__diabled':'')}}" data-type="plus" bindtap="quantity"></view>
  94. </view>
  95. </view>
  96. <view class="sku-column-quota" style="margin:0;font-size:26rpx">
  97. <text class="van-sku__quota" wx:if="{{presellOpen==0}}">¥{{mealsInfo[checkMeals].price}}/人</text>
  98. <view class="presell-price-view" wx:if="{{presellOpen!=0}}">
  99. <text class="">活动价:<text class="van-sku__quota">¥{{mealsInfo[checkMeals].price}}</text></text>
  100. <text class="">预付金:<text class="van-sku__quota">¥{{mealsInfo[checkMeals].presellPrice}}</text></text>
  101. </view>
  102. <text wx:if="{{mealsInfo[checkMeals].maxT <= sku.quota}}" class="van-sku__quota">每次限报{{mealsInfo[checkMeals].maxT}}人</text>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="bottom-btns-box">
  108. <button class="button button-subtitle" bindtap="confirmChange" style="line-height: 3;" wx:if="{{changeSku}}">提交更换申请</button>
  109. <button class="button button-subtitle" data-type="{{(saleType && presellOpen==0)?1:0}}" bindtap="sumbit" style="line-height: 3;" wx:else>{{presellOpen==0 &&saleType?'售罄候补':'立即购买'}}</button>
  110. </view>
  111. </popup>