index.wxml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  2. <view slot="info" class="container main">
  3. <view class="zero one">
  4. <button type="primary" size="mini" bindtap="onSearch">查询</button>
  5. </view>
  6. <view class="zero two">
  7. <scroll-view scroll-y="true" class="scroll-view">
  8. <view class="list-scroll-view">
  9. <view class="list" wx:for="{{list}}" wx:key="item">
  10. <view class="name">{{item.user_name}}--[{{item.order_no}}]</view>
  11. <view class="other">
  12. <view class="other_1">
  13. <text>支付金额:</text>
  14. <text>{{item.money}}</text>
  15. </view>
  16. <view class="other_1">
  17. <text>支付类型:</text>
  18. <text>{{item.type}}</text>
  19. </view>
  20. <view class="other_1">
  21. <text>支付状态:</text>
  22. <text>{{item.statusZh}}</text>
  23. </view>
  24. </view>
  25. <view class="btn">
  26. <button type="primary" size="mini" bindtap="toView" data-item="{{item}}">详细信息</button>
  27. <button type="warn" size="mini" bindtap="toRefund" data-item="{{item}}" wx:if="{{item.status=='1'}}">退款</button>
  28. </view>
  29. </view>
  30. </view>
  31. </scroll-view>
  32. </view>
  33. </view>
  34. </mobile-main>
  35. <e-dialog dialog="{{dialog}}" bind:toClose="toClose">
  36. <view slot="info">
  37. <view class="dialog_one" wx:if="{{dialog.type=='1'}}">
  38. <view class="one_1">
  39. <text>支付订单号:</text>
  40. <text>{{info.order_no||'暂无'}}</text>
  41. </view>
  42. <view class="one_1">
  43. <text>支付用户:</text>
  44. <text>{{info.user_name||'暂无'}}</text>
  45. </view>
  46. <view class="one_1">
  47. <text>支付金额:</text>
  48. <text>{{info.money||'暂无'}}</text>
  49. </view>
  50. <view class="one_1">
  51. <text>支付类型:</text>
  52. <text>{{info.type||'暂无'}}</text>
  53. </view>
  54. <view class="one_1">
  55. <text>支付状态:</text>
  56. <text>{{info.statusZh}}</text>
  57. </view>
  58. <view class="one_1">
  59. <text>支付时间:</text>
  60. <text>{{info.time||'暂无'}}</text>
  61. </view>
  62. <view class="one_1">
  63. <text>支付说明:</text>
  64. <text>{{info.desc||'暂无'}}</text>
  65. </view>
  66. </view>
  67. <view class="dialog_two" wx:elif="{{dialog.type=='2'}}">
  68. <form catchsubmit="searchSubmit">
  69. <view class="content">
  70. <view class="label">支付金额</view>
  71. <view class="value">
  72. <input type="text" name="money" value="{{searchInfo.money}}" placeholder="请输入支付金额" />
  73. </view>
  74. </view>
  75. <view class="content">
  76. <view class="label">支付类型</view>
  77. <view class="value">
  78. <input type="text" name="type" value="{{searchInfo.type}}" placeholder="请输入支付类型" />
  79. </view>
  80. </view>
  81. <view class="content">
  82. <view class="label">支付状态</view>
  83. <view class="value">
  84. <picker mode="selector" bindchange="statusChange" value="{{searchInfo.status}}" name="status" range-key='label' range="{{statusList}}">
  85. <view class="input">{{searchInfo.status=='0'?'未支付':searchInfo.status=='1'?'已支付':searchInfo.status=='-1'?'支付失败':searchInfo.status=='-2'?'申请退款':searchInfo.status=='-3'?'已退款':'请选择支付状态'}}</view>
  86. </picker>
  87. </view>
  88. </view>
  89. <view class="btn">
  90. <button type="primary" size="mini" form-type="submit">提交保存</button>
  91. </view>
  92. </form>
  93. </view>
  94. </view>
  95. </e-dialog>