pay.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <l-container>
  2. <view slot="container" class="globstyle pay">
  3. <!-- 自定义 -->
  4. <!-- 收货方 -->
  5. <van-cell bind:click="ChooseAddress" center is-link>
  6. <view class="user-address" slot="title">
  7. <view wx:if="{{!useraddress.id}}" class="red">请选择学生</view>
  8. <view class="user-address-h1">{{useraddress.name}} {{useraddress.tel}}</view>
  9. <view class="user-address-h2">
  10. <van-tag wx:if="{{useraddress.lock}}" round type="danger">默认</van-tag>
  11. {{useraddress.address}}
  12. </view>
  13. </view>
  14. </van-cell>
  15. <!-- 商品清单 -->
  16. <view class="pay-list">
  17. <van-cell value="{{shopdetail.name}}">
  18. <view class="title" slot="title">老实人学生营养餐</view>
  19. </van-cell>
  20. <view class="container" slot="title">
  21. <scroll-view scroll-x="true" class="scroll">
  22. <image mode="heightFix" class="img" src="{{shopdetail.img}}" />
  23. </scroll-view>
  24. </view>
  25. </view>
  26. <!-- 用户设置 -->
  27. <view class="pay-setup">
  28. <van-field model:value="{{ message }}" maxlength="50" label="订单备注" type="textarea" placeholder="请输入留言..." autosize
  29. border="{{ false }}" />
  30. </view>
  31. <!-- 支付方式 -->
  32. <view class="pay-type">
  33. <van-cell>
  34. <view class="title" slot="title">支付方式</view>
  35. </van-cell>
  36. <van-radio-group value="{{ paytype }}" bind:change="onChange">
  37. <van-cell border="{{false}}">
  38. <view class="type" slot="title">
  39. <view class="str">
  40. <van-icon name="wechat-pay" color="green" size="16" />
  41. 微信支付
  42. </view>
  43. <view class="radio">
  44. <van-radio name="1" />
  45. </view>
  46. </view>
  47. </van-cell>
  48. </van-radio-group>
  49. <van-checkbox-group value="{{ result }}" bind:change="checkboxonchange">
  50. <van-cell border="{{false}}">
  51. <view class="type" slot="title">
  52. <view class="str">
  53. <van-icon name="gold-coin" color="gold" size="16" />
  54. 余额抵扣:<text class="txt">¥{{balance}}</text>
  55. </view>
  56. <view class="radio">
  57. <van-checkbox name="1" />
  58. </view>
  59. </view>
  60. </van-cell>
  61. </van-checkbox-group>
  62. </view>
  63. <!-- 提交支付 -->
  64. <van-submit-bar disabled="{{disabled}}" loading="{{loadding}}" price="{{ shopdetail.amount*100 }}"
  65. button-text="提交订单" bind:submit="onSubmit" />
  66. </view>
  67. </l-container>