order_1.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. <template>
  2. <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
  3. <view class="list-scroll-view">
  4. <view class="order">
  5. <tabs :tabs="tabs" @tabsChange="tabsChange">
  6. <view class="tabsList">
  7. <view class="list" v-for="(item,index) in orderList" :key="index">
  8. <view class="list_1" v-if="tabs.active=='0'">
  9. <view class="goods">
  10. <view class="goodsList" v-for="(tag,indexs) in item.goods" :key="indexs">
  11. <view class="shopname">
  12. <view class="shop" v-if="tag.is_set=='0'">
  13. <view class="r">
  14. <text class="set">套装</text> {{tag.name}}
  15. </view>
  16. </view>
  17. <view class="shop" v-else>
  18. <text class="iconfont icon-shangdian"></text>
  19. <text>{{tag.shop_name}}</text>
  20. </view>
  21. <view class="status">
  22. {{item.zhStatus}}
  23. </view>
  24. </view>
  25. <view class="goodsList_1">
  26. <view class="market" v-for="(tags,indexss) in tag.goods" :key="indexss">
  27. <view class="market_1">
  28. <image class="image"
  29. :src="tags.goods.file&&tags.goods.file.length>0?tags.goods.file[0].url:''"
  30. mode=""></image>
  31. </view>
  32. <view class="market_2">
  33. <view class="goodsname textOver">
  34. {{tags.goods.name}}
  35. </view>
  36. <view class="specs" v-if="tag.is_set=='0'">
  37. {{tags.spec_name}}
  38. </view>
  39. <view class="specs" v-else>
  40. {{tags.name}}
  41. </view>
  42. <text v-if="tags.gift&&tags.gift.length>0" class="gift">赠品</text>
  43. <text v-if="tags.sp_price" class="act">特价</text>
  44. </view>
  45. <view class="market_3" v-if="tag.is_set=='0'">
  46. <view class="price">{{tags.set_num}}件/套x{{tags.set_num}}
  47. </view>
  48. </view>
  49. <view class="market_3" v-else>
  50. <view v-if="item.type=='0'" class="price">
  51. ¥{{tags.price||tags.sell_money}}
  52. </view>
  53. <view v-else class="price">
  54. ¥{{tags.group_config.money}}
  55. </view>
  56. <view class="num">
  57. ×{{tags.buy_num}}
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="other">
  65. <text>共{{item.buy_num_total}}件商品</text>
  66. <text>实付款¥{{item.real_pay}}</text>
  67. </view>
  68. </view>
  69. <view class="list_2" v-else>
  70. <view class="list_2_1">
  71. <view class="shopname" v-if="item.is_set=='0'">
  72. <view class="r">
  73. <text class="set">套装</text> {{tag.name}}
  74. </view>
  75. </view>
  76. <view class="shopname" v-else>
  77. <text class="iconfont icon-shangdian"></text>
  78. <text>{{item.shop.name}}</text>
  79. </view>
  80. <view class="status">
  81. {{item.zhStatus}}
  82. </view>
  83. </view>
  84. <view class="list_2_2" v-for="(tag,indexs) in item.goods" :key="indexs">
  85. <view v-if="tag.is_set=='0'">
  86. <view class="goods" v-for="(tags,indexss) in tag.goods" :key="indexss">
  87. <view class="goods_1">
  88. <image class="image"
  89. :src="tags.goods.file&&tags.goods.file.length>0?tags.goods.file[0].url:''"
  90. mode=""></image>
  91. </view>
  92. <view class="goods_2">
  93. <view class="goodsname textOver">
  94. {{tags.goods.name}}
  95. </view>
  96. <view class="specs">
  97. {{tags.spec_name}}
  98. </view>
  99. </view>
  100. <view class="goods_3">
  101. <view class="price">{{tags.set_num}}件/套x{{tags.set_num}}
  102. </view>
  103. </view>
  104. </view>
  105. <view class="set">
  106. <view class="set_1">套装价:¥{{tag.sell_money}}</view>
  107. <view class="set_2">数量:×{{tag.buy_num}}</view>
  108. </view>
  109. </view>
  110. <view v-else>
  111. <view class="goods">
  112. <view class="goods_1">
  113. <image class="image" :src="tag.url" mode=""></image>
  114. </view>
  115. <view class="goods_2">
  116. <view class="goodsname textOver">
  117. {{tag.goods.name}}
  118. </view>
  119. <view class="specs">
  120. {{tag.name}}
  121. </view>
  122. <text v-if="tag.gift&&tag.gift.length>0" class="gift">赠品</text>
  123. <text v-if="tag.sp_price" class="act">特价</text>
  124. </view>
  125. <view class="goods_3">
  126. <view v-if="item.type=='0'" class="price">
  127. ¥{{tag.price||tag.sell_money}}
  128. </view>
  129. <view v-else class="price">
  130. ¥{{tag.group_config.money}}
  131. </view>
  132. <view class="num">
  133. ×{{tag.buy_num}}
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="other">
  140. <text>共{{item.buy_num_total||0}}件商品</text>
  141. <text>实付款¥{{item.real_pay}}</text>
  142. </view>
  143. </view>
  144. <view class="button" @tap="toSend(item)">
  145. <text>发送</text>
  146. </view>
  147. </view>
  148. </view>
  149. </tabs>
  150. </view>
  151. </view>
  152. </scroll-view>
  153. </template>
  154. <script>
  155. import tabs from '../../components/tabs/index.vue';
  156. export default {
  157. components: {
  158. tabs
  159. },
  160. props: {
  161. orderList: {
  162. type: Array
  163. },
  164. status: {
  165. type: String
  166. },
  167. tabs: {
  168. type: Object
  169. }
  170. },
  171. data() {
  172. return {};
  173. },
  174. methods: {
  175. // 分页
  176. toPage(e) {
  177. const that = this;
  178. that.$emit('toPage')
  179. },
  180. // 选择选项卡
  181. tabsChange(e) {
  182. const that = this;
  183. that.$emit('tabsChange', e)
  184. },
  185. // 发送
  186. toSend(e) {
  187. const that = this;
  188. that.$emit('toSend', e)
  189. }
  190. },
  191. }
  192. </script>
  193. <style lang="scss">
  194. .order {
  195. background-color: var(--f9Color);
  196. .tabsList {
  197. .list {
  198. background-color: #fff;
  199. border: 1px solid var(--f5Color);
  200. padding: 2vw;
  201. margin: 0 2vw 2vw 2vw;
  202. border-radius: 5px;
  203. .list_1 {
  204. .goods {
  205. .goodsList {
  206. border-bottom: 1px solid #f1f1f1;
  207. .shopname {
  208. display: flex;
  209. justify-content: space-between;
  210. margin: 0 0 2vw 0;
  211. .shop {
  212. text:last-child {
  213. padding: 0 0 0 2vw;
  214. }
  215. .r {
  216. .set {
  217. margin: 0 1vw 0 0;
  218. font-size: 12px;
  219. border-radius: 5px;
  220. padding: 0 1vw;
  221. color: #ffffff;
  222. background-color: #FF6347;
  223. border: 1px solid #FFA500;
  224. }
  225. }
  226. }
  227. .status {
  228. text-align: right;
  229. color: var(--fFB1Color);
  230. margin: 0 0 1vw 0;
  231. }
  232. }
  233. .goodsList_1 {
  234. .market {
  235. display: flex;
  236. padding: 0 0 2vw 0;
  237. .market_1 {
  238. width: 20vw;
  239. height: 20vw;
  240. .image {
  241. width: 100%;
  242. height: 100%;
  243. border-radius: 5px;
  244. }
  245. }
  246. .market_2 {
  247. width: 55vw;
  248. padding: 0 0 0 2vw;
  249. .goodsname {
  250. font-size: 16px;
  251. margin: 0 0 1vw 0;
  252. }
  253. .specs {
  254. font-size: 14px;
  255. color: #858585;
  256. }
  257. .gift {
  258. margin: 0 1vw 0 0;
  259. font-size: 12px;
  260. color: #FFA500;
  261. border: 1px solid #FFA500;
  262. border-radius: 5px;
  263. padding: 0 1vw;
  264. }
  265. .act {
  266. font-size: 12px;
  267. border: 1px solid var(--fFB1Color);
  268. color: var(--fFB1Color);
  269. border-radius: 5px;
  270. padding: 0 1vw;
  271. }
  272. }
  273. .market_3 {
  274. width: 15vw;
  275. text-align: right;
  276. .price {
  277. color: var(--fFB1Color);
  278. }
  279. }
  280. }
  281. }
  282. }
  283. }
  284. .other {
  285. padding: 0 0 2vw 0;
  286. margin: 2vw 0;
  287. text-align: right;
  288. border-bottom: 1px solid #f1f1f1;
  289. text {
  290. font-size: 14px;
  291. padding: 0 0 0 2vw;
  292. }
  293. }
  294. }
  295. .list_2 {
  296. .list_2_1 {
  297. display: flex;
  298. justify-content: space-between;
  299. margin: 0 0 2vw 0;
  300. .shopname {
  301. text:last-child {
  302. padding: 0 0 0 2vw;
  303. }
  304. .r {
  305. .set {
  306. margin: 0 1vw 0 0;
  307. font-size: 12px;
  308. border-radius: 5px;
  309. padding: 0 1vw;
  310. color: #ffffff;
  311. background-color: #FF6347;
  312. border: 1px solid #FFA500;
  313. }
  314. }
  315. }
  316. .status {
  317. color: var(--fFB1Color);
  318. }
  319. }
  320. .list_2_2 {
  321. border-bottom: 1px solid #f1f1f1;
  322. padding-top: 1vw;
  323. .goods {
  324. display: flex;
  325. padding: 0 0 2vw 0;
  326. .goods_1 {
  327. width: 20vw;
  328. height: 20vw;
  329. .image {
  330. width: 100%;
  331. height: 100%;
  332. border-radius: 5px;
  333. }
  334. }
  335. .goods_2 {
  336. width: 55vw;
  337. padding: 0 0 0 2vw;
  338. .goodsname {
  339. font-size: 16px;
  340. margin: 0 0 1vw 0;
  341. }
  342. .specs {
  343. font-size: 14px;
  344. color: #858585;
  345. }
  346. .gift {
  347. margin: 0 1vw 0 0;
  348. font-size: 12px;
  349. color: #FFA500;
  350. border: 1px solid #FFA500;
  351. border-radius: 5px;
  352. padding: 0 1vw;
  353. }
  354. .act {
  355. font-size: 12px;
  356. border: 1px solid var(--fFB1Color);
  357. color: var(--fFB1Color);
  358. border-radius: 5px;
  359. padding: 0 1vw;
  360. }
  361. }
  362. .goods_3 {
  363. width: 15vw;
  364. text-align: right;
  365. .price {
  366. color: var(--fFB1Color);
  367. }
  368. }
  369. }
  370. .set {
  371. display: flex;
  372. padding: 2vw 0;
  373. justify-content: space-between;
  374. color: var(--fFB1Color);
  375. }
  376. }
  377. .other {
  378. padding: 0 0 2vw 0;
  379. margin: 2vw 0;
  380. text-align: right;
  381. border-bottom: 1px solid #f1f1f1;
  382. text {
  383. font-size: 14px;
  384. padding: 0 0 0 2vw;
  385. }
  386. }
  387. }
  388. .button {
  389. text-align: right;
  390. text {
  391. font-size: 12px;
  392. padding: 10rpx 20rpx;
  393. border-radius: 20rpx;
  394. color: #ffffff;
  395. background-color: #FF4500;
  396. }
  397. }
  398. }
  399. }
  400. }
  401. .scroll-view {
  402. position: absolute;
  403. top: 0;
  404. left: 0;
  405. right: 0;
  406. bottom: 0;
  407. .list-scroll-view {
  408. display: flex;
  409. flex-direction: column;
  410. }
  411. }
  412. </style>