businessGoodsManage.wxml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!-- 顶部导航 -->
  2. <view class="nav-wrap">
  3. <scroll-view
  4. class="nav"
  5. scroll-x>
  6. <view bindtap="changeTabs"
  7. class="nav-item"
  8. data-value="{{item.value}}"
  9. wx:for="{{tabs}}"
  10. wx:key="value">
  11. <text class="{{item.value === active ? 'active' : ''}}">{{item.name}}</text>
  12. </view>
  13. </scroll-view>
  14. </view>
  15. <!-- 内容区 -->
  16. <view class="main">
  17. <swiper style="height:100%"
  18. current="{{current}}"
  19. bindchange="handleSwiper">
  20. <swiper-item wx:for="{{originScrollViewData}}"
  21. wx:key="index">
  22. <scroll-view scroll-y
  23. style="height:100%;"
  24. refresher-enabled="{{true}}"
  25. refresher-threshold="{{refresherThreshold}}"
  26. refresher-default-style="none"
  27. refresher-background="#FFF"
  28. refresher-triggered="{{item.isRefresh}}"
  29. bindrefresherpulling="onRefresh"
  30. bindscrolltolower="fetOrderList">
  31. <!-- 下拉刷新 -->
  32. <view slot="refresher" class="pulldown-wrapper">
  33. <van-loading
  34. wx:if="{{item.isRefresh}}"
  35. size="24px"
  36. type="spinner">加载中...
  37. </van-loading>
  38. <view wx:if="{{!item.isRefresh}}" class="van-loading">
  39. <text class="van-loading__text">下拉刷新</text>
  40. </view>
  41. </view>
  42. <view class="list"
  43. wx:for="{{item.list}}"
  44. wx:for-item="order"
  45. wx:key="id">
  46. <!-- todo 货号 审核状态 -->
  47. <view class="top">
  48. <view>产品货号:12345678900</view>
  49. <!-- 已上架 审核未通过 -->
  50. <view class="col-1">审核中</view>
  51. </view>
  52. <view class="middle">
  53. <view class="photo-wrap">
  54. <image src="{{order.product_img_url}}"></image>
  55. </view>
  56. <view class="name-wrap">
  57. <view class="name">{{order.product_title}}</view>
  58. <view class="box">
  59. <view class="stock">库存:{{order.product_count}}</view>
  60. <view class="price">价格: ¥{{tools.fen2Yuan(order.product_price)}}</view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="bottom">
  65. <button
  66. type="default"
  67. data-item="{{order}}"
  68. catch:tap="showDeleteOrder">删除产品
  69. </button>
  70. <button
  71. type="default"
  72. style="color: rgba(107, 133, 89, 1);"
  73. data-item="{{order}}"
  74. bind:tap="jumpOrderDetail">编辑产品
  75. </button>
  76. </view>
  77. </view>
  78. <view
  79. class="list-bitmap"
  80. wx:if="{{item.finished && item.list.length < 1}}">
  81. <text>暂无订单</text>
  82. </view>
  83. <!-- 上拉加载 -->
  84. <view class="pullup-wrapper" wx:if="{{!item.isRefresh}}">
  85. <van-loading
  86. wx:if="{{!item.finished}}"
  87. size="24px"
  88. type="spinner">加载中...
  89. </van-loading>
  90. <view wx:if="{{item.finished && item.list.length > 0}}" class="van-loading">
  91. <text class="van-loading__text">没有更多了</text>
  92. </view>
  93. </view>
  94. </scroll-view>
  95. </swiper-item>
  96. </swiper>
  97. </view>
  98. <!-- 弹窗:删除商品二次确认 -->
  99. <van-popup
  100. custom-class="customer-van-model"
  101. show="{{ booDeleteOrder }}"
  102. bind:close="hideDeleteOrder">
  103. <view class="customer-van-model_body">
  104. <view class="content">产品删除后将无法恢复,您确定删除吗?</view>
  105. </view>
  106. <view class="customer-van-model_footer">
  107. <button class="customer-van-model_cancel"
  108. hover-class="none"
  109. type="default"
  110. bind:tap="hideDeleteOrder">取消
  111. </button>
  112. <button class="customer-van-model_confirm"
  113. hover-class="none"
  114. type="primary"
  115. disabled="{{booLock}}"
  116. bind:tap="confirmDeleteOrder">确定
  117. </button>
  118. </view>
  119. </van-popup>
  120. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>