index.wxml 1.1 KB

1234567891011121314151617181920212223242526
  1. <view id="container">
  2. <view class="commoditys" wx:if="{{products.length>0}}">
  3. <view wx:for="{{products}}" wx:key="id"
  4. class="['commodity,{{item.payType=='LIFELONG'?'c-1':item.payType=='YEAR'?'c-2':'c-3'}} {{product.id==item.id?'aborder':''}}]"
  5. bindtap="selected" data-product="{{item}}">
  6. <image src="http://reader-wx.ai160.com/images/reader/v3/active.png" class="active"
  7. wx:if="{{product.id==item.id}}" />
  8. </view>
  9. </view>
  10. <view class="payBox" wx:if="{{product.id!=''}}">
  11. <view class="left">
  12. {{product.title}}
  13. <span class="price">{{product.price/100}}</span>
  14. </view>
  15. <view class="pay" bindtap="openDonutBuy">立即支付</view>
  16. </view>
  17. <view class="mask" wx:if="{{mask}}">
  18. <view class="payTips">
  19. <image src="https://reader-wx.ai160.com/images/reader/v3/right.webp" class="simg" />
  20. <view class="t1">支付成功</view>
  21. <view class="goXkx" bindtap="closeMask">确认</view>
  22. </view>
  23. </view>
  24. <donutBuy id="donutBuy" bind:reload='paySuccess'></donutBuy>
  25. </view>