index.wxml 1.6 KB

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