apply.wxml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <view class="container p-bottom" wx:if="{{ detail.order_goods_id }}">
  2. <form bindsubmit="onSubmit" report-submit>
  3. <!-- 商品详情 -->
  4. <form bindsubmit="onGoodsDetail" report-submit="true">
  5. <button class="btn-normal" formType="submit" data-id="{{ detail.goods_id }}">
  6. <view class="goods-detail b-f dis-flex flex-dir-row">
  7. <view class="left">
  8. <image class="goods-image" src="{{ detail.image.file_path }}"></image>
  9. </view>
  10. <view class="right dis-flex flex-box flex-dir-column flex-x-around">
  11. <view class="goods-name">
  12. <text class="twolist-hidden">{{ detail.goods_name }}</text>
  13. </view>
  14. <view class="dis-flex col-9 f-24">
  15. <view class="flex-box">{{ detail.goods_attr }}</view>
  16. <text class="t-r">×{{ detail.total_num }}</text>
  17. </view>
  18. </view>
  19. </view>
  20. </button>
  21. </form>
  22. <!-- 服务类型 -->
  23. <view class="row-service b-f m-top20">
  24. <view class="row-title">服务类型</view>
  25. <form bindsubmit="onSwitchService" report-submit="true">
  26. <view class="service-switch dis-flex">
  27. <button class="btn-normal" formType="submit" data-type="10">
  28. <view class="switch-item {{ serviceType==10?'active':'' }}">退货退款</view>
  29. </button>
  30. <button class="btn-normal dis-flex" formType="submit" data-type="20">
  31. <view class="switch-item {{ serviceType==20?'active':'' }}">换货</view>
  32. </button>
  33. </view>
  34. </form>
  35. </view>
  36. <!-- 申请原因 -->
  37. <view class="row-textarea b-f m-top20">
  38. <view class="row-title">申请原因</view>
  39. <view class="content">
  40. <textarea name="content" maxlength="2000" placeholder="请详细填写申请原因,注意保持商品的完好,建议您先与卖家沟通" placeholderStyle="color:#ccc"></textarea>
  41. </view>
  42. </view>
  43. <!-- 退款金额 -->
  44. <view wx:if="{{ serviceType == 10 }}" class="row-money b-f m-top20 dis-flex">
  45. <view class="row-title">退款金额</view>
  46. <view class="money col-m">¥{{ detail.total_pay_price }}</view>
  47. </view>
  48. <!-- 上传凭证 -->
  49. <view class="row-voucher b-f m-top20">
  50. <view class="row-title">上传凭证 (最多6张)</view>
  51. <view class="image-list">
  52. <!-- 图片列表 -->
  53. <view class="image-preview" wx:for="{{imageList}}" wx:for-index="imageIndex" wx:for-item="imagePath" wx:key="this">
  54. <text class="image-delete iconfont icon-shanchu" catchtap="deleteImage" data-index="{{index}}" data-image-index="{{imageIndex}}"></text>
  55. <image mode="aspectFill" src="{{ imagePath }}"></image>
  56. </view>
  57. <!-- 上传图片 -->
  58. <form wx:if="{{ imageList.length < 6 }}" bindsubmit="chooseImage" report-submit="true">
  59. <button class="btn-normal" formType="submit">
  60. <view class="image-picker dis-flex flex-dir-column flex-x-center flex-y-center">
  61. <text class="choose__icon iconfont icon-tubiao_xiangji"></text>
  62. <text class="choose__text">上传图片</text>
  63. </view>
  64. </button>
  65. </form>
  66. </view>
  67. </view>
  68. <view class="flow-fixed-footer b-f">
  69. <button class="btn-normal" formType="submit">
  70. <view class="flow-btn f-32">确认提交</view>
  71. </button>
  72. </view>
  73. </form>
  74. </view>