vip.wxml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <import src="/components/local/wxParse/wxParse.wxml" />
  2. <!-- <view class="user-info flex">
  3. <image class="icon-left" src="{{ userInfo ? userInfo.avatar_url : '/images/my/header.png' }}"></image>
  4. <view class="info flex-column active">
  5. <text class="{{userInfo.is_vip == 1 ? 'name' : ''}}">{{userInfo.nickname || '微信用户'}}</text>
  6. <text class="time" wx:if="{{userInfo.is_vip == 1}}">会员有效期时间:{{userInfo.vip_ex_time}}</text>
  7. </view>
  8. <image class="icon-right" src="/images/my/right.png"></image>
  9. </view> -->
  10. <view class="vip-box">
  11. <view class="vip-power radius {{ userInfo.is_vip == 1 ? 'active' : '' }}">
  12. <!-- <view class="vip-time flex-center" wx:if="{{ userInfo.is_vip == 1 }}">
  13. <image src="/images/icon_vip_04.png"></image>
  14. <text style="color: #fff;">{{userInfo.vip.card_name}}(到店时间:{{userInfo.vip.store_time}})</text>
  15. </view> -->
  16. <view class="top flex-align-center" bindtap="onPay">
  17. <image class="icon-left" src="{{ userInfo ? userInfo.avatar_url : '/images/my/header.png' }}"></image>
  18. <view class="info flex1 flex-column ellipsis">
  19. <text class="text ellipsis">{{userInfo.nickname || '微信用户'}}</text>
  20. <view class="intro flex-align-center">
  21. <view class="gender flex-center" style="margin-right: 14rpx;" wx:if="{{ userInfo.sex == 1 || userInfo.sex == 2 }}">
  22. <image src="/images/icon_gender_{{userInfo.sex}}.png"></image>
  23. </view>
  24. <!-- <view class="city flex-center" style="margin-right: 16rpx;">深圳</view> -->
  25. </view>
  26. <text style="color: #666;font-size: 24rpx;" wx:if="{{userInfo.is_vip == 1}}">会员有效期时间:{{userInfo.vip.valid_time}}</text>
  27. <text style="color: #666;font-size: 24rpx;" wx:if="{{userInfo.is_vip == 0}}">您还没有开通会员哦~</text>
  28. <text style="color: #666;font-size: 24rpx;" wx:if="{{userInfo.is_vip == 2}}">已失去VIP特权{{userInfo.ex_days}}天</text>
  29. </view>
  30. <view class="btn flex-center" wx:if="{{ userInfo.is_vip == 0 || userInfo.is_vip == 2 }}">
  31. <text>{{userInfo.is_vip == 0 ? '立即开通' : '立即续费'}}</text>
  32. <!-- <image class="icon-right" src="/images/my/right.png"></image> -->
  33. </view>
  34. <view class="expire flex-center" wx:if="{{ userInfo.is_vip == 2 }}">已过期</view>
  35. </view>
  36. <view class="content flex-align-center">
  37. <view class="item flex-column line">
  38. <image src="/images/icon_vip_01.png"></image>
  39. <text>点亮身份</text>
  40. </view>
  41. <view class="item flex-column line">
  42. <image src="/images/icon_vip_02.png"></image>
  43. <text>专属服务</text>
  44. </view>
  45. <view class="item flex-column">
  46. <image src="/images/icon_vip_03.png"></image>
  47. <text>会员回馈</text>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="vip-toast radius flex-center" style="margin: 20rpx 0;" wx:if="{{ activity.expire_time_seconds && activity.expire_time_seconds > 0 }}">
  52. <image src="/images/icon_avatar_02.png" class="left-image"></image>
  53. <view class="right flex1">
  54. <text>初次到店体验后福利,立即开卡享</text>
  55. <text style="font-size: 40rpx;color:#FF6CB2;">{{activity.discount}}</text>
  56. <text>折!错过不再有,速领!</text>
  57. </view>
  58. <view class="count-down flex-align-center">福利活动剩余时间 {{activity.currentTime}}</view>
  59. </view>
  60. <view class="vip-use radius">
  61. <!-- <view class="item flex line">
  62. <view class="use-btn flex-align-center" style="margin-right:64rpx">
  63. <image src="/images/my/select_ok.png"></image>
  64. <text>立即激活</text>
  65. </view>
  66. <view class="use-btn flex-align-center" >
  67. <image src="/images/my/select_no.png"></image>
  68. <text>暂不激活</text>
  69. </view>
  70. </view> -->
  71. <!-- <view class="item flex-align-center line">
  72. <view class="left flex-column">
  73. <text>日卡/体验卡</text>
  74. <text>可任选店内项目体验一次</text>
  75. </view>
  76. <view class="right flex-align-center">
  77. <view class="right-box flex-column" style="text-align:center;">
  78. <text class="min-price">¥68</text>
  79. <text class="market-price">¥38</text>
  80. </view>
  81. <image src="/images/my/right.png"></image>
  82. </view>
  83. </view> -->
  84. <view class="item flex-align-center {{current == index ? 'red' : ''}} changeVip" wx:for="{{list}}" wx:key="index" bindtap="onChangeVip" data-index="{{index}}">
  85. <view class="left flex-column ellipsis">
  86. <view class="left-box flex-align-center" wx:if="{{ current == index }}">
  87. <image src="/images/icon_vip_04.png" style="width:70rpx;height:40rpx;margin-top: -2rpx;"></image>
  88. <text>{{ item.name }}</text>
  89. </view>
  90. <text class="left-title ellipsis" wx:else>{{ item.name }}</text>
  91. <text class="left-text ellipsis">{{ item.desc }}</text>
  92. </view>
  93. <view class="right flex-align-center">
  94. <view class="right-box flex-column" style="text-align:right;">
  95. <text class="min-price">¥{{ item.price }}</text>
  96. <text class="market-price" wx:if="{{ item.original_price }}">¥{{ item.original_price }}</text>
  97. </view>
  98. <!-- <image src="/images/my/right.png"></image> -->
  99. </view>
  100. </view>
  101. <!-- <view class="item flex-align-center">
  102. <view class="left flex-column">
  103. <text>日卡/体验卡</text>
  104. <text>开通立即赠300钻石</text>
  105. </view>
  106. <view class="right flex-align-center">
  107. <view class="right-box flex-column" style="text-align:center;">
  108. <text class="min-price">¥3880</text>
  109. <text class="market-price">¥6880</text>
  110. </view>
  111. <image src="/images/my/right.png"></image>
  112. </view>
  113. </view> -->
  114. </view>
  115. <view class="vip-rule radius">
  116. <view class="title">会员规则</view>
  117. <view class="content flex-column">
  118. <template is="wxParse" data="{{wxParseData:article.nodes}}" />
  119. </view>
  120. </view>
  121. <view style="height:170rpx"></view>
  122. </view>
  123. <view class="buy flex-align-center">
  124. <text style="font-family: PingFangSC-Semibold;font-size: 36rpx;">总计:</text>
  125. <text class="flex1" style="font-family: PingFangSC-Semibold;font-size: 36rpx;color: #E95564;" wx:if="{{activity.expire_time_seconds && activity.expire_time_seconds > 0}}">¥{{list.length > 0 ? list[current].price * activity.discount/10 : '0'}}</text>
  126. <text class="flex1" style="font-family: PingFangSC-Semibold;font-size: 36rpx;color: #FF3007;" wx:else>¥{{list.length > 0 ? list[current].price : '0'}}</text>
  127. <view class="buy-btn flex-center" bindtap="onPay" id="payVip">去支付</view>
  128. </view>
  129. <wux-landscape visible="{{ visible }}" maskClosable="{{ true }}" closable="{{ false }}">
  130. <view class="use-popup flex-column">
  131. <text style="font-size: 36rpx;">激活会员卡</text>
  132. <text style="color: #666666;">请选择是否立即激活会员卡</text>
  133. <view class="tips flex-column">
  134. <text class="red">[温馨提示]</text>
  135. <text class="red">确认激活后,该会员卡将立即生效;</text>
  136. <text class="red">如暂不激活,可在“已购会员卡”中去选择激活。</text>
  137. </view>
  138. <view class="use-btn">
  139. <view class="btn cancel flex-center" bindtap="onCancelUse">暂不激活</view>
  140. <view class="btn confirm flex-center" bindtap="onConfirmUse" id="useVip">确认激活</view>
  141. </view>
  142. <!-- [温馨提示] 确认激活后,该会员卡将立即生效; 如暂不激活,可在“已购会员卡”中去选择激活。 -->
  143. </view>
  144. </wux-landscape>
  145. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}" bind:close="onClosePay">
  146. <view class="coupon-popup payType">
  147. <view class="top flex-align-center">
  148. <text style="text-align: center;"></text>
  149. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  150. </view>
  151. <view class="moneyShow" wx:if="{{activity.expire_time_seconds && activity.expire_time_seconds > 0}}"><text>¥</text>{{list.length > 0 ? list[current].price * activity.discount/10 : '0'}}</view>
  152. <view class="moneyShow" wx:else><text>¥</text>{{list.length > 0 ? list[current].price : '0'}}</view>
  153. <view class="select-pay-methon" catchtap="pay_methonw">
  154. <image class="pay-img" src="/images/wx_pay.png"></image>
  155. <view class="pay-title">微信支付</view>
  156. <!-- <view class="pay-money"><text>¥</text>800</view> -->
  157. <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  158. </view>
  159. <view class="select-pay-methon" catchtap="pay_methonc">
  160. <image class="pay-img" src="/images/joli_pay.png"></image>
  161. <view class="pay-title">储值支付</view>
  162. <view class="pay-money"><text>¥</text>{{inserllAmount}}</view>
  163. <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  164. </view>
  165. <view class="coupon-popup-btm flex-center">
  166. <view class="coupon-popup-btm-btn flex-center" bindtap="payNow">支付</view>
  167. </view>
  168. </view>
  169. </wux-popup>