SupplypProductDetails.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view style="background: #f6f6f6;height: 100vh;">
  3. <view class="popupTitle">供应商品</view>
  4. <view v-for="(item,index) in newsList" :key="index" class="box2" >
  5. <view class="box_TOP">
  6. <view >
  7. <u--image radius='16rpx' width="128rpx" height="128rpx" :src="item.pic" ></u--image>
  8. </view>
  9. <view class="box_right">
  10. <view class="box_title2">
  11. {{item.supplierName}}
  12. </view>
  13. <view class="box_num">
  14. <view class="box_num_item">
  15. <text>售价:</text><text style="color:#333;">{{'¥' + item.price}}</text>
  16. </view>
  17. <view class="box_num_item">
  18. <text>数量:</text><text style="color:#333;">{{item.num + '个'}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import {vendorDeclareList} from '@/http/api/common.js'
  28. export default {
  29. components: {
  30. },
  31. data() {
  32. return {
  33. newsList:[],
  34. selectData:null,
  35. showFrom:false,
  36. }
  37. },
  38. async onLoad(e) {
  39. uni.setNavigationBarTitle({
  40. title: e.name
  41. })
  42. let res = await vendorDeclareList(e.id)
  43. this.newsList = res.data.data.rows
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style lang="less" scoped>
  50. .box{
  51. width: 700rpx;
  52. height: 128rpx;
  53. background: #ffffff;
  54. border-radius: 16rpx;
  55. margin: 24rpx;
  56. display: flex;
  57. align-items: center;
  58. }
  59. .box_right{
  60. width: 500rpx;
  61. margin-left: 24rpx;
  62. }
  63. .box2{
  64. width: 700rpx;
  65. height: 160rpx;
  66. background: #ffffff;
  67. border-radius: 16rpx;
  68. margin: 24rpx;
  69. }
  70. .box_TOP{
  71. width: 676rpx;
  72. height: 152rpx;
  73. display: flex;
  74. align-items: center;
  75. margin-left: 12rpx;
  76. }
  77. .box_BOTTOM{
  78. width: 666rpx;
  79. display: flex;
  80. align-items: center;
  81. margin-left: 12rpx;
  82. justify-content: space-between;
  83. }
  84. .box_title2{
  85. font-size: 28rpx;
  86. font-weight: 500;
  87. text-align: left;
  88. color: #333333;
  89. }
  90. .box_specifications{
  91. margin-top: 6rpx;
  92. font-size: 24rpx;
  93. font-weight: 500;
  94. text-align: left;
  95. color: #999999;
  96. }
  97. .box_num{
  98. margin-top: 10rpx;
  99. display: flex;
  100. justify-content: space-between;
  101. }
  102. .box_num_item{
  103. display: flex;
  104. font-size: 28rpx;
  105. color: #999999;
  106. }
  107. .box_time{
  108. font-size: 28rpx;
  109. font-weight: 400;
  110. text-align: left;
  111. color: #999999;
  112. }
  113. .box_type1{
  114. width: 140rpx;
  115. height: 56rpx;
  116. background: #ffedec;
  117. border-radius: 8rpx;
  118. font-size: 28rpx;
  119. font-family: PingFang SC, PingFang SC-Medium;
  120. font-weight: 500;
  121. text-align: left;
  122. color: #ff655b;
  123. line-height: 56rpx;
  124. text-align: center;
  125. }
  126. .box_type2{
  127. width: 140rpx;
  128. height: 56rpx;
  129. background: #deeefc;
  130. border-radius: 8rpx;
  131. font-size: 28rpx;
  132. font-family: PingFang SC, PingFang SC-Medium;
  133. font-weight: 500;
  134. text-align: left;
  135. color: #0084FF;
  136. line-height: 56rpx;
  137. text-align: center;
  138. }
  139. .box_type3{
  140. width: 140rpx;
  141. height: 56rpx;
  142. background: #eee;
  143. border-radius: 8rpx;
  144. font-size: 28rpx;
  145. font-family: PingFang SC, PingFang SC-Medium;
  146. font-weight: 500;
  147. text-align: left;
  148. color: #999;
  149. line-height: 56rpx;
  150. text-align: center;
  151. }
  152. .btnBox{
  153. width: 750rpx;
  154. height: 100rpx;
  155. background: #FFFFFF;
  156. border-radius: 0rpx 0rpx 0rpx 0rpx;
  157. opacity: 1;
  158. display: flex;
  159. flex-direction: row;
  160. justify-content: center;
  161. align-items: center;
  162. position: fixed;
  163. bottom: 0;
  164. }
  165. .btn{
  166. width: 702rpx;
  167. height: 80rpx;
  168. background: #46A6FF;
  169. border-radius: 64rpx 64rpx 64rpx 64rpx;
  170. opacity: 1;
  171. font-weight: 500;
  172. color: #FFFFFF;
  173. line-height: 80rpx;
  174. text-align: center;
  175. }
  176. .popupTitle{
  177. font-size: 32rpx;
  178. font-weight: 700;
  179. text-align: left;
  180. color: #000000;
  181. margin-left: 24rpx;
  182. }
  183. </style>