addOrder.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <view wx:if="{{sys_payinstructions}}" class="head">
  2. {{sys_payinstructions}}
  3. </view>
  4. <view class="remarks">
  5. <view>备注</view>
  6. <textarea name='value' value="{{remarks}}" placeholder="请填写" placeholder-style='font-size:14px;color:#bbb;' auto-height bindblur="onblur" />
  7. </view>
  8. <view class="tips">请选择付费版本</view>
  9. <van-radio-group value="{{ sys_site_systempartitionid }}">
  10. <navigator class="versions" url="#" wx:for="{{versionsList}}" wx:key="sys_site_systempartitionid" data-item="{{item}}" bindtap="changeVer">
  11. <van-radio name="{{item.sys_site_systempartitionid}}" icon-size="16px">版本:{{item.partitionname}}</van-radio>
  12. <view data-item="{{item}}" catchtap="checkVer">
  13. 详情
  14. </view>
  15. </navigator>
  16. </van-radio-group>
  17. <block wx:if="{{discounts.length}}">
  18. <view class="tips">使用抵扣劵</view>
  19. <scroll-view scroll-x>
  20. <view class="discounts">
  21. <view class="card" wx:for="{{discounts}}" style="background: {{(index-0+1)<=useDiscount?'linear-gradient(45deg, orange, red)':'linear-gradient(45deg, grey, grey)'}};" wx:key="index">
  22. <view class="card-left">抵扣一年</view>
  23. <view class="card-right">
  24. <view class="card-info">{{item.type}}折扣券</view>
  25. <view class="card-time">有效期至{{item.enddate}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. </scroll-view>
  30. </block>
  31. <view class="tips">请选择付费{{sys_payincidence==1?'账号':'主体'}}</view>
  32. <van-checkbox-group wx:if="{{sys_payincidence==1}}" value="{{ users }}">
  33. <view class="user-item" wx:for="{{userList}}" wx:key="userid" data-id="{{item.userid}}" data-isleader="{{item.isleader}}" bindtap="{{(item.isleader && per.query(users,item.userid) && !item.enddate[sys_site_systempartitionid])?'':'onChange'}}">
  34. <van-checkbox shape='square' icon-size='14' disabled="{{item.isleader && per.query(users,item.userid) && !item.enddate[sys_site_systempartitionid]}}" name="{{item.userid}}" />
  35. <view class="content">
  36. <view class="label">
  37. {{item.name}} <van-tag custom-class='tag1' wx:if="{{item.isleader==1}}" text-color='#fff' round type="danger">主账号</van-tag>
  38. </view>
  39. <view>
  40. 账号ID:{{item.accountno}}
  41. </view>
  42. <view>
  43. 手机号:{{item.phonenumber||" --"}}
  44. </view>
  45. <view>
  46. 到期时间:{{item.enddate[sys_site_systempartitionid]||' --'}}
  47. </view>
  48. <view class="tag" wx:if="{{!item.enddate[sys_site_systempartitionid]}}">
  49. 未付费
  50. </view>
  51. </view>
  52. </view>
  53. </van-checkbox-group>
  54. <van-checkbox-group wx:else value="{{ users }}">
  55. <view class="user-item" wx:for="{{userList}}" wx:key="sa_agentsid" data-id="{{item.sa_agentsid}}" bindtap="onChange">
  56. <van-checkbox shape='square' icon-size='14' name="{{item.sa_agentsid}}" />
  57. <view class="content">
  58. <view class="label">{{item.agentname}}</view>
  59. <view>
  60. 联系人:{{item.name}} {{item.phonenumber||" --"}}
  61. </view>
  62. <view>
  63. 到期时间:{{item.enddate[sys_site_systempartitionid]||' --'}}
  64. </view>
  65. </view>
  66. </view>
  67. </van-checkbox-group>
  68. <inventory id='inventory' />
  69. <view style="height: 130rpx;" />
  70. <view class="footer">
  71. <view class="left">
  72. <view>
  73. 支付数量:{{users.length}}
  74. </view>
  75. <view>
  76. 总价:<text class="price">{{showAmount}}</text>
  77. </view>
  78. </view>
  79. <view class="but-box">
  80. <van-button custom-class='but' disabled="{{users.length==0}}" bind:click="payment">确定支付</van-button>
  81. </view>
  82. </view>
  83. <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />