myorderDispose.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="content">
  3. <view class="main " v-for="(item,index) in list">
  4. <view class="main-top">
  5. <image class="main-icon" src="../../static/icon/order.png" mode=""></image>
  6. <view class="main-font">
  7. {{item.name}}
  8. </view>
  9. </view>
  10. <view class="main-bottom flex">
  11. <view class="num">
  12. {{type==1?'剩余数量:':'可提交数量'}}
  13. </view>
  14. <view class="main-input red">
  15. 363
  16. </view>
  17. </view>
  18. <view class="xian"></view>
  19. <view class="main-bottom flex">
  20. <view class="num">
  21. {{type==1?'退回数量:':'数量'}}
  22. </view>
  23. <view class="main-input">
  24. <input type="number" v-model="item.number" placeholder="请填写数量">
  25. </view>
  26. </view>
  27. </view>
  28. <view class="btn">
  29. {{type==1?'确认退回':'确认提交'}}
  30. </view>
  31. <view class="" style="height: 80rpx;"></view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. type: '',
  39. list: [{
  40. name: '规格1(黄色,37码)',
  41. number: '',
  42. }, {
  43. name: '规格2(黄色,37码)',
  44. number: '',
  45. }, {
  46. name: '规格3(黄色,37码)',
  47. number: '',
  48. }, {
  49. name: '规格4(黄色,37码)',
  50. number: '',
  51. }, {
  52. name: '规格5(黄色,37码)',
  53. number: '',
  54. }, {
  55. name: '规格6(黄色,37码)',
  56. number: '',
  57. }, {
  58. name: '规格7(黄色,37码)',
  59. number: '',
  60. }, {
  61. name: '规格8(黄色,37码)',
  62. number: '',
  63. }],
  64. };
  65. },
  66. onLoad(option) {
  67. this.type = option.type
  68. if (option.type == 2) {
  69. uni.setNavigationBarTitle({
  70. title: '提交订单'
  71. });
  72. }
  73. },
  74. onShow() {},
  75. onReachBottom() {},
  76. onReady() {},
  77. methods: {}
  78. };
  79. </script>
  80. <style lang="scss">
  81. page,
  82. .content {
  83. min-height: 100%;
  84. height: auto;
  85. }
  86. .main {
  87. margin: 20rpx auto 0;
  88. padding: 0 20rpx;
  89. width: 700rpx;
  90. background: #FFFFFF;
  91. border: 2px solid #EAECED;
  92. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  93. border-radius: 20rpx;
  94. .main-top {
  95. display: flex;
  96. align-items: center;
  97. padding: 16rpx 0;
  98. border-bottom: 1px solid #EAECED;
  99. .main-icon {
  100. width: 32rpx;
  101. height: 37rpx;
  102. }
  103. .main-font {
  104. margin-left: 10rpx;
  105. font-size: 30rpx;
  106. font-family: PingFang SC;
  107. font-weight: bold;
  108. color: #333333;
  109. }
  110. }
  111. .main-bottom {
  112. padding: 20rpx 0;
  113. .num {
  114. font-size: 28rpx;
  115. font-family: PingFang SC;
  116. font-weight: 500;
  117. color: #666666;
  118. }
  119. .main-input {
  120. text-align: right;
  121. font-size: 28rpx;
  122. font-family: PingFang SC;
  123. font-weight: 500;
  124. color: #999999;
  125. }
  126. .red {
  127. color: #FF4C4C;
  128. }
  129. }
  130. }
  131. .btn {
  132. text-align: center;
  133. margin: 100rpx auto 0;
  134. width: 622rpx;
  135. height: 85rpx;
  136. background: #069CFA;
  137. border-radius: 15rpx;
  138. line-height: 85rpx;
  139. font-size: 32rpx;
  140. font-family: PingFang SC;
  141. font-weight: bold;
  142. color: #FFFFFF;
  143. }
  144. .xian {
  145. width: 100%;
  146. height: 2rpx;
  147. background: #EAECED;
  148. }
  149. </style>