myorder.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="content">
  3. <view class="main" v-for="(item,index) in 10">
  4. <view class="main-id">产品货号:9876543211025666</view>
  5. <view class="main-name">产品名称</view>
  6. <view class="main-info flex">
  7. <scroll-view scroll-x="true" class="main-price">
  8. <view class="image-box">
  9. <view class="image-item" v-for="(itm,ind) in 10">
  10. <image src="../../static/img/user-item2.png" mode=""></image>
  11. </view>
  12. </view>
  13. </scroll-view>
  14. <view class="main-more" @click="navTo('/pages/user/myorderDetail')">
  15. <view class="mainm-font">
  16. 查看详细
  17. </view>
  18. <image class="mainm-jt" src="../../static/img/jt.png" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="main-num flex">
  22. <view class="mainnum-item">
  23. 领取数量: <text class="red">285</text>
  24. </view>
  25. <view class="mainnum-item">
  26. 已提交: <text class="red">28</text>
  27. </view>
  28. </view>
  29. <view class="btn-box">
  30. <view class="box1" @click="navTo('/pages/leader/image')">参考图片</view>
  31. <view class="box1" @click="navTo('/pages/user/myorderRecord')">记录</view>
  32. <view class="box2" @click="navTo('/pages/user/myorderDispose?type=1')">订单退回</view>
  33. <view class="box2" @click="navTo('/pages/user/myorderDispose?type=2')">订单提交</view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {};
  42. },
  43. onLoad() {},
  44. onShow() {},
  45. onReachBottom() {},
  46. onReady() {},
  47. methods: {
  48. navTo(url) {
  49. console.log(url);
  50. uni.navigateTo({
  51. url
  52. })
  53. }
  54. }
  55. };
  56. </script>
  57. <style lang="scss">
  58. page,
  59. .content {
  60. min-height: 100%;
  61. height: auto;
  62. }
  63. .main {
  64. width: 700rpx;
  65. background: #FFFFFF;
  66. border-radius: 24rpx;
  67. margin: 20rpx auto 0;
  68. padding: 0 15rpx;
  69. line-height: 1;
  70. .main-id {
  71. padding: 35rpx 14rpx 30rpx;
  72. font-size: 28rpx;
  73. font-family: PingFang SC;
  74. font-weight: 500;
  75. color: #666666;
  76. border-bottom: 1px solid #ededed;
  77. }
  78. .main-name {
  79. padding: 20rpx 14rpx 16rpx;
  80. font-size: 28rpx;
  81. font-family: PingFang SC;
  82. font-weight: 500;
  83. color: #363636;
  84. }
  85. .main-info {
  86. padding: 0 14rpx;
  87. .main-price {
  88. width: 480rpx;
  89. .image-box {
  90. display: flex;
  91. align-items: center;
  92. .image-item {
  93. margin-left: 10rpx;
  94. width: 110rpx;
  95. height: 110rpx;
  96. flex-shrink: 0;
  97. image {
  98. width: 100%;
  99. height: 100%;
  100. }
  101. }
  102. }
  103. }
  104. .main-more {
  105. display: flex;
  106. align-items: center;
  107. .mainm-font {
  108. margin-right: 10rpx;
  109. font-size: 26rpx;
  110. font-family: PingFang SC;
  111. font-weight: 500;
  112. color: #333333;
  113. }
  114. .mainm-jt {
  115. width: 12rpx;
  116. height: 22rpx;
  117. }
  118. }
  119. }
  120. .main-num {
  121. padding: 24rpx 14rpx 20rpx;
  122. border-bottom: 1px solid #ededed;
  123. .mainnum-item {
  124. font-size: 28rpx;
  125. font-family: PingFang SC;
  126. font-weight: 500;
  127. color: #333333;
  128. .red {
  129. color: #FF4C4C
  130. }
  131. }
  132. }
  133. .btn-box {
  134. display: flex;
  135. justify-content: space-around;
  136. align-items: center;
  137. padding: 20rpx 0;
  138. .box1 {
  139. width: 144rpx;
  140. height: 55rpx;
  141. border: 2px solid #EBEBEB;
  142. border-radius: 28rpx;
  143. display: flex;
  144. justify-content: center;
  145. align-items: center;
  146. font-size: 26rpx;
  147. font-family: PingFang SC;
  148. font-weight: 500;
  149. color: #999999;
  150. }
  151. .box2 {
  152. width: 144rpx;
  153. height: 55rpx;
  154. border: 2px solid #FF2D2D;
  155. border-radius: 28rpx;
  156. display: flex;
  157. justify-content: center;
  158. align-items: center;
  159. font-size: 26rpx;
  160. font-family: PingFang SC;
  161. font-weight: 500;
  162. color: #FF2D2D;
  163. }
  164. }
  165. }
  166. </style>