order-list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. <template>
  2. <view class="container" :style="{ paddingTop: navbarHeight + 'px' }">
  3. <!-- 自定义返回 -->
  4. <header-back
  5. :systeminfo="systeminfo"
  6. :navbar-data="nvabarData"
  7. :headerBtnPosi="headerBtnPosi"
  8. :isDelete="isDelete"
  9. @goSearchPath="handlSearchPath"
  10. ></header-back>
  11. <tui-skeleton
  12. v-if="skeletonShow"
  13. backgroundColor="#fafafa"
  14. borderRadius="10rpx"
  15. :isLoading="true"
  16. :loadingType="5"
  17. ></tui-skeleton>
  18. <template v-else>
  19. <view class="order-section-top" :style="{ marginTop: navbarHeight + 'px' }">
  20. <scroll-view scroll-x scroll-with-animation class="tab-view" :scroll-left="scrollLeft">
  21. <view
  22. v-for="(item, index) in orderTabBar"
  23. :key="index"
  24. class="tab-bar-item"
  25. :class="[currentTab == index ? 'active' : '']"
  26. :data-current="index"
  27. @tap.stop="onClickTab"
  28. >
  29. <text class="tab-bar-title">{{ item.text }}</text>
  30. </view>
  31. </scroll-view>
  32. </view>
  33. <swiper
  34. class="tab-content"
  35. :current="currentTab"
  36. duration="80"
  37. @animationfinish="onChange"
  38. :style="{ height: winHeight + 'px' }"
  39. >
  40. <swiper-item v-for="(tabItem, index) in orderTabBar" :key="index">
  41. <scroll-view scroll-y class="scoll-y tui-skeleton" @scrolltolower="scrolltolower">
  42. <view :class="{ 'tui-order-list': scrollTop >= 0 }" class="tui-skeleton clearfix">
  43. <!-- 空白页 -->
  44. <empty
  45. v-if="tabItem.loaded === true && tabItem.orderList.length === 0"
  46. :typeIndex="currentTab"
  47. :navbarHeight="navbarHeight"
  48. ></empty>
  49. <!-- 列表 -->
  50. <view v-else class="tui-order-content">
  51. <view
  52. class="tui-order-item"
  53. v-for="(order, orderIndex) in tabItem.orderList"
  54. :key="orderIndex"
  55. >
  56. <view class="order-title">
  57. <view class="order-title-t">
  58. <text class="bage-text tui-skeleton-fillet">订单编号:{{ order.orderNo }}</text>
  59. </view>
  60. <view class="order-title-b">
  61. <view class="order-title-btxt tui-skeleton-fillet"
  62. >下单时间:{{ order.orderTime }}</view
  63. >
  64. <view class="order-title-tip tui-skeleton-fillet">{{
  65. StateExpFormat(order.status)
  66. }}</view>
  67. </view>
  68. </view>
  69. <block v-for="(shop, sindex) in order.shopOrderList" :key="sindex">
  70. <view class="goods-title">
  71. <view v-if="shop.shopPromotion" class="floor-item-act">
  72. <view class="floor-tags">{{ shop.shopPromotion.name }}</view>
  73. </view>
  74. <view class="title-text" v-if="order.secondHandOrderFlag == 1"
  75. >{{ shop.shopName }}
  76. <label class="paymenttext" v-if="order.affirmPaymentFlag == 1"
  77. >已确认打款供应商</label
  78. >
  79. </view>
  80. <view
  81. class="title-text tui-skeleton-fillet"
  82. v-else
  83. >{{ shop.shopName }}<label class="iconfont icon-jinrudianpu"></label
  84. ></view>
  85. </view>
  86. <view
  87. class="goods-item"
  88. v-for="(pros, prosIndex) in shop.orderProductList"
  89. :key="prosIndex"
  90. @click.stop="detail(order.orderId)"
  91. >
  92. <view class="goods-pros-t">
  93. <view class="pros-img tui-skeleton-fillet">
  94. <image :src="pros.image" alt="" />
  95. </view>
  96. <view class="pros-product clearfix">
  97. <view class="producttitle tui-skeleton-fillet">{{ pros.name }}</view>
  98. <view
  99. class="productspec tui-skeleton-fillet"
  100. v-if="pros.productCategory != 2"
  101. >规格:{{ pros.productUnit }}</view
  102. >
  103. <view class="productprice">
  104. <view class="price tui-skeleton-fillet">
  105. <text>¥{{ pros.price | NumFormat }}</text>
  106. </view>
  107. <view class="count tui-skeleton-fillet">
  108. <text class="small">x</text>{{ pros.num }}
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </block>
  115. <view class="order-footer">
  116. <view class="order-footer-bot">
  117. <view class="count tui-skeleton-fillet">共{{ order.productCount }}件商品</view>
  118. <view
  119. class="money tui-skeleton-fillet"
  120. v-if="order.status == 31 || order.status == 32 || order.status == 33"
  121. >
  122. 已支付:<label style="color:#f94b4b ;"
  123. >¥{{ order.receiptAmount | NumFormat }}</label
  124. >
  125. </view>
  126. <view class="money tui-skeleton-fillet" v-else>
  127. 待付总额:<label style="color:#f94b4b ;"
  128. >¥{{ order.pendingPayments | NumFormat }}</label
  129. >
  130. </view>
  131. </view>
  132. </view>
  133. <!-- 底部button -->
  134. <order-button
  135. ref="orderButton"
  136. :status="order.status"
  137. :order="order"
  138. @buttonConfirm="handButtonConfirm"
  139. >
  140. </order-button>
  141. </view>
  142. <!--加载loadding-->
  143. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  144. <tui-nomore
  145. :visible="!pullUpOn"
  146. :backgroundColor="'#ffffff'"
  147. :text="nomoreText"
  148. ></tui-nomore>
  149. <!--加载loadding-->
  150. </view>
  151. </view>
  152. </scroll-view>
  153. </swiper-item>
  154. </swiper>
  155. </template>
  156. <!-- 分享弹窗 -->
  157. <share-alert v-if="isShareModal" :orderId="handleOrderId" @shareConfirm="onShareAppMessage" />
  158. <!-- 提示弹窗 -->
  159. <tui-modal
  160. :show="modal"
  161. @click="handleClick"
  162. :content="contentModalText"
  163. :button="modalButton"
  164. color="#333"
  165. :size="32"
  166. shape="circle"
  167. :maskClosable="false"
  168. >
  169. </tui-modal>
  170. <!-- 透明模态层 -->
  171. <modal-layer v-if="isModalLayer"></modal-layer>
  172. </view>
  173. </template>
  174. <script>
  175. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
  176. import btSearch from '@/components/uni-search/bt-search.vue' //搜索
  177. import orderButton from '@/components/cm-module/orderDetails/orderListButton' //按钮
  178. import modalLayer from '@/components/modal-layer'
  179. import empty from './components/empty'
  180. import shareAlert from '@/components/cm-module/modelAlert/shareAlert' //分享弹窗
  181. export default {
  182. components: {
  183. headerBack,
  184. empty,
  185. btSearch,
  186. orderButton,
  187. modalLayer,
  188. shareAlert,
  189. },
  190. data() {
  191. return {
  192. CustomBar: this.CustomBar, // 顶部导航栏高度
  193. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  194. systeminfo: this.setSysteminfo(), //获取设备信息
  195. winHeight: '', //窗口高度
  196. nvabarData: {
  197. //顶部自定义导航
  198. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  199. showSearch: 1,
  200. title: '我的订单' // 导航栏 中间的标题
  201. },
  202. orderTabBar: [
  203. { state: 0, text: '全部订单', orderList: [] },
  204. { state: 1, text: '待付款', orderList: [] },
  205. { state: 2, text: '待发货', orderList: [] },
  206. { state: 3, text: '已发货', orderList: [] },
  207. { state: 4, text: '退货/款', orderList: [] }
  208. ],
  209. currentTab: 0, //预设当前项的值
  210. scrollLeft: 0, //tab标题的滚动条位置
  211. listQuery:{
  212. orderState: 0,
  213. userId:0,
  214. pageNum: 1,
  215. pageSize: 10
  216. },
  217. orderData: [],
  218. scrollTop: 0,
  219. skeletonShow: true,
  220. isDelete: false,
  221. isClickChange: false,
  222. isShareModal: false, //控制分享弹窗
  223. isModalLayer: false,
  224. loadding: false,
  225. pullUpOn: true,
  226. hasNextPage: false,
  227. pullFlag: true,
  228. navbarHeight: '',
  229. modelType: 0,
  230. nomoreText: '上拉显示更多',
  231. isOnloadFlag: false,
  232. handleOrderId: 0, //点击按钮传入的的订单ID
  233. handleModelEven:0,
  234. modal:false,
  235. contentModalText: '订单查询失败,请稍候重试~', //操作文字提示语句
  236. modalButton: [
  237. {
  238. text: '取消',
  239. type: 'gray',
  240. plain: true //是否空心
  241. },
  242. {
  243. text: '确定',
  244. customStyle: {
  245. color: '#fff',
  246. bgColor: '#F3B574'
  247. },
  248. plain: false
  249. }
  250. ]
  251. }
  252. },
  253. onLoad(e) {
  254. if (e.type === 'detele') {
  255. this.isDelete = true
  256. }
  257. this.currentTab = e.state
  258. this.isOnloadFlag = true
  259. this.getHeaderTopHeight() //设置自定义导航高度
  260. this.initStorage()
  261. },
  262. filters: {
  263. NumFormat(value) {
  264. //处理金额
  265. return Number(value).toFixed(2)
  266. }
  267. },
  268. methods: {
  269. async initStorage(){
  270. //初始化
  271. const usrInfo = await this.$api.getStorage()
  272. this.listQuery.userId = usrInfo.userId ? usrInfo.userId : 0
  273. this.getOrderDatainit(this.currentTab)
  274. },
  275. // 滚动切换标签样式
  276. onChange: function(e) {
  277. let index = e.target.current || e.detail.current
  278. if (this.isClickChange) {
  279. this.currentTab = index
  280. this.isClickChange = false
  281. return
  282. }
  283. this.isClickChange = false
  284. this.currentTab = index
  285. this.checkCor()
  286. this.pageNum = 1
  287. this.pullUpOn = true //切换时隐藏
  288. this.loadding = false //切换时隐藏
  289. this.nomoreText = ''
  290. if (!this.isOnloadFlag) {
  291. this.getOrderDatainit(this.currentTab, 'tabChange')
  292. }
  293. },
  294. // 点击标题切换当前页时改变样式
  295. onClickTab: function(e) {
  296. let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current
  297. if (this.currentTab === tabIndex) {
  298. return false
  299. } else {
  300. this.isClickChange = true
  301. this.currentTab = tabIndex
  302. this.pageNum = 1
  303. this.pullUpOn = true //切换时隐藏
  304. this.loadding = false //切换时隐藏
  305. this.getOrderDatainit(this.currentTab)
  306. }
  307. },
  308. //判断当前滚动超过一屏时,设置tab标题滚动条。
  309. checkCor: function() {
  310. if (this.currentTab > 3) {
  311. //这里距离按实际计算
  312. this.scrollLeft = 300
  313. } else {
  314. this.scrollLeft = 0
  315. }
  316. },
  317. async getOrderDatainit(index, source) {
  318. let orderItem = this.orderTabBar[index]
  319. if (source === 'tabChange' && orderItem.loaded === true) {
  320. //tab切换只有第一次需要加载数据
  321. return
  322. }
  323. try{
  324. this.listQuery.orderState = index
  325. const res = await this.OrderService.QueryOrderList(this.listQuery)
  326. const data = res.data
  327. const orderList = data.list.filter(item => {
  328. //添加不同状态下订单的表现形式
  329. item = Object.assign(item, this.StateExpFormat(item.status))
  330. return item
  331. })
  332. orderItem.orderList = []
  333. orderList.forEach(item => {
  334. orderItem.orderList.push(item)
  335. })
  336. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  337. this.$set(orderItem, 'loaded', true)
  338. this.hasNextPage = data.hasNextPage
  339. if (this.hasNextPage) {
  340. this.pullUpOn = false
  341. this.nomoreText = '上拉显示更多'
  342. } else {
  343. if (orderItem.orderList.length < 2) {
  344. this.pullUpOn = true
  345. } else {
  346. this.pullUpOn = false
  347. this.nomoreText = '已至底部'
  348. }
  349. }
  350. this.skeletonShow = false
  351. this.isOnloadFlag = false
  352. }catch(error){
  353. this.$util.msg(error.msg, 2000)
  354. }
  355. },
  356. async getOnReachBottomData(index) {
  357. //上拉加载
  358. try{
  359. this.listQuery.pageNum += 1
  360. this.listQuery.orderState = index
  361. const res = await this.OrderService.QueryOrderList(this.listQuery)
  362. const data = res.data
  363. const orderItem = this.orderTabBar[index]
  364. this.hasNextPage = data.hasNextPage
  365. orderItem.orderList = orderItem.orderList.concat(data.list)
  366. this.pullFlag = false // 防上拉暴滑
  367. setTimeout(() => {
  368. this.pullFlag = true
  369. }, 500)
  370. if (this.hasNextPage) {
  371. this.pullUpOn = false
  372. this.nomoreText = '上拉显示更多'
  373. } else {
  374. this.loadding = false
  375. this.pullUpOn = false
  376. this.nomoreText = '已至底部'
  377. }
  378. }catch(error){
  379. this.$util.msg(error.msg, 2000)
  380. }
  381. },
  382. scrolltolower() {
  383. if (this.hasNextPage) {
  384. this.loadding = true
  385. this.pullUpOn = true
  386. this.getOnReachBottomData(this.currentTab)
  387. }
  388. },
  389. detail(orderId) {
  390. //订单详情跳转
  391. this.isModalLayer = true
  392. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderId=${orderId}`)
  393. },
  394. handButtonConfirm(data) {
  395. //获取点击
  396. this.handleOrderId = data.orderId
  397. switch (data.type) {
  398. case 'cancel':
  399. //取消订单
  400. this.modal = true
  401. this.contentModalText = '确认取消该订单吗?'
  402. this.handleModelEven = 1
  403. break
  404. case 'query':
  405. this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + this.handleOrderId)
  406. break
  407. case 'confirm':
  408. //确认收货
  409. this.modal = true
  410. this.contentModalText = '确认收货吗?'
  411. this.handleModelEven = 2
  412. break
  413. case 'pay':
  414. this.orderPaymentValidation()
  415. break
  416. }
  417. },
  418. async orderPaymentValidation(){
  419. //监听根据付款状态做操作
  420. try{
  421. const res = await this.OrderService.OrderPaymentValidation({ orderId: this.handleOrderId })
  422. if (res.data.onlinePayFlag == 1) {// 只能线下
  423. this.$api.navigateTo(`/pages/user/pay/card-under?orderId=${this.handleOrderId}`)
  424. } else {
  425. this.$api.navigateTo(`/pages/user/order/order-pay-list?orderId=${this.handleOrderId}`)
  426. }
  427. }catch(error){
  428. this.$util.msg(error.msg, 2000)
  429. }
  430. },
  431. handleClick(e){
  432. //确认操作
  433. if (e.index == 1) {
  434. switch(this.handleModelEven){
  435. case 1://取消订单
  436. this.cancelOrder()
  437. break
  438. case 2://确认收货
  439. this.confirmReceipt()
  440. break
  441. }
  442. }
  443. this.modal = false
  444. },
  445. async confirmReceipt(){
  446. //确认收货
  447. try{
  448. const res = await this.OrderService.ConfirmReceipt({ orderId: this.handleOrderId })
  449. this.$util.msg(res.msg, 2000, true, 'success')
  450. setTimeout(() => {
  451. this.getOrderDatainit(this.currentTab)
  452. }, 2000)
  453. }catch(error){
  454. this.$util.msg(error.msg, 2000)
  455. }
  456. },
  457. async cancelOrder(){
  458. //取消订单
  459. try{
  460. const res = await this.OrderService.CancelOrder({ orderId: this.handleOrderId, userIdentity : 0 })
  461. this.$util.msg(res.msg, 2000, true, 'success')
  462. setTimeout(() => {
  463. this.getOrderDatainit(this.currentTab)
  464. }, 2000)
  465. }catch(error){
  466. this.$util.msg(error.msg, 2000)
  467. }
  468. },
  469. handlSearchPath() {
  470. this.$api.navigateTo('/pages/search/search-order')
  471. },
  472. onShareAppMessage(res) {
  473. //分享转发
  474. this.isShareModal = false
  475. if (res.from === 'button') {
  476. // 来自页面内转发按钮
  477. }
  478. return {
  479. title: '您有新的分享订单,快来查看吧~',
  480. path: `/pages/user/order/order-sharelogin?orderId=${this.handleOrderId}&userId=${this.userId}`,
  481. imageUrl: 'https://static.caimei365.com/app/mini-mcare/icon/icon_shareOrder@2x.png'
  482. }
  483. },
  484. orderPriceToFixed(n) {
  485. let price = ''
  486. price = n.toFixed(2)
  487. return price
  488. },
  489. getHeaderTopHeight() {
  490. // 状态栏高度
  491. let self = this
  492. let statusBarHeight = this.systeminfo.statusBarHeight
  493. let headerPosi = this.headerBtnPosi
  494. let btnPosi = {
  495. // 胶囊实际位置,坐标信息不是左上角原点
  496. height: headerPosi.height,
  497. width: headerPosi.width,
  498. // 胶囊top - 状态栏高度
  499. top: headerPosi.top - statusBarHeight,
  500. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  501. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  502. // 屏幕宽度 - 胶囊right
  503. right: this.systeminfo.screenWidth - headerPosi.right
  504. }
  505. this.navbarHeight = headerPosi.bottom + btnPosi.bottom // 原胶囊bottom + 现胶囊bottom
  506. // 高度自适应
  507. uni.getSystemInfo({
  508. success: function(res) {
  509. let calc = res.windowHeight
  510. self.winHeight = calc - self.CustomBar
  511. }
  512. })
  513. },
  514. setHeaderBtnPosi() {
  515. // 获得胶囊按钮位置信息
  516. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  517. return headerBtnPosi
  518. },
  519. setSysteminfo() {
  520. let systeminfo
  521. uni.getSystemInfo({
  522. // 获取设备信息
  523. success: res => {
  524. systeminfo = res
  525. }
  526. })
  527. return systeminfo
  528. },
  529. PromotionsFormat(promo) {
  530. //促销活动类型数据处理
  531. if (promo != null) {
  532. if (promo.type == 1 && promo.mode == 1) {
  533. return true
  534. } else {
  535. return false
  536. }
  537. }
  538. return false
  539. },
  540. StateExpFormat(state) {
  541. //订单状态文字和颜色
  542. var HtmlStateText = '',
  543. stateTextObject = {
  544. 0: '待确认',
  545. 4: '交易完成',
  546. 5: '订单完成',
  547. 6: '已关闭',
  548. 7: '交易全退',
  549. 77: '交易全退',
  550. 11: '待付款待发货',
  551. 12: '待付款部分发货',
  552. 13: '待付款已发货',
  553. 21: '部分付款待发货',
  554. 22: '部分付款部分发货',
  555. 23: '部分付款已发货',
  556. 31: '已付款待发货',
  557. 32: '已付款部分发货',
  558. 33: '已付款已发货',
  559. 111: '待付款待发货'
  560. }
  561. Object.keys(stateTextObject).forEach(function(key) {
  562. if (key == state) {
  563. HtmlStateText = stateTextObject[key]
  564. }
  565. })
  566. return HtmlStateText
  567. },
  568. handleBeanlClick() {
  569. //关闭采美豆弹窗
  570. this.isActivityBean = false
  571. this.getOrderDatainit(this.currentTab)
  572. }
  573. },
  574. onPageScroll(e) {
  575. this.scrollTop = e.scrollTop
  576. },
  577. onShow() {
  578. this.isModalLayer = false
  579. }
  580. }
  581. </script>
  582. <style lang="scss">
  583. /*tabbar start*/
  584. ::-webkit-scrollbar {
  585. width: 0;
  586. height: 0;
  587. color: transparent;
  588. }
  589. .order-section-top {
  590. width: 100%;
  591. position: fixed;
  592. top: 0;
  593. left: 0;
  594. z-index: 99;
  595. background: #ffffff;
  596. }
  597. .tab-view::before {
  598. content: '';
  599. position: absolute;
  600. border-bottom: 1rpx solid #eaeef1;
  601. -webkit-transform: scaleY(0.5);
  602. transform: scaleY(0.5);
  603. bottom: 0;
  604. right: 0;
  605. left: 0;
  606. }
  607. .tab-view {
  608. width: 100%;
  609. height: 80rpx;
  610. overflow: hidden;
  611. box-sizing: border-box;
  612. background: #fff;
  613. white-space: nowrap;
  614. border-top: 1px solid #f7f7f7;
  615. }
  616. .tab-bar-item {
  617. padding: 0;
  618. height: 80rpx;
  619. min-width: 80rpx;
  620. line-height: 80rpx;
  621. margin: 0 28rpx;
  622. display: inline-block;
  623. text-align: center;
  624. box-sizing: border-box;
  625. }
  626. .tab-bar-title {
  627. height: 80rpx;
  628. line-height: 80rpx;
  629. font-size: $font-size-28;
  630. color: $text-color;
  631. }
  632. .active {
  633. border-bottom: 6rpx solid $color-system;
  634. }
  635. .active .tab-bar-title {
  636. color: $color-system !important;
  637. }
  638. /*tabbar end*/
  639. .scoll-y {
  640. height: 100%;
  641. }
  642. page {
  643. background: #f7f7f7;
  644. }
  645. .container {
  646. padding-bottom: env(safe-area-inset-bottom);
  647. height: auto;
  648. position: relative;
  649. }
  650. .tui-order-content {
  651. width: 100%;
  652. height: auto;
  653. }
  654. .tui-order-list {
  655. margin-top: 90rpx;
  656. width: 100%;
  657. position: relative;
  658. }
  659. .tui-order-item {
  660. display: flex;
  661. flex-direction: column;
  662. width: 702rpx;
  663. padding: 20rpx 24rpx 0 24rpx;
  664. background: #fff;
  665. border-bottom: 20rpx solid #f7f7f7;
  666. }
  667. .order-title {
  668. width: 100%;
  669. height: auto;
  670. .order-title-t {
  671. width: 100%;
  672. height: 68rpx;
  673. float: left;
  674. line-height: 68rpx;
  675. position: relative;
  676. .bage-icon {
  677. width: 50rpx;
  678. height: 50rpx;
  679. display: block;
  680. position: absolute;
  681. right: 0;
  682. top: 9rpx;
  683. }
  684. .bage-buss {
  685. display: inline-block;
  686. width: 72rpx;
  687. height: 30rpx;
  688. background: radial-gradient(circle, rgba(255, 39, 180, 1) 0%, rgba(193, 77, 245, 1) 100%);
  689. border-radius: 4rpx;
  690. line-height: 30rpx;
  691. font-size: $font-size-22;
  692. text-align: center;
  693. color: #ffffff;
  694. }
  695. .bage-auto {
  696. display: inline-block;
  697. width: 72rpx;
  698. height: 30rpx;
  699. background: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  700. border-radius: 4rpx;
  701. line-height: 30rpx;
  702. font-size: $font-size-22;
  703. text-align: center;
  704. color: #ffffff;
  705. }
  706. .bage-text {
  707. display: inline-block;
  708. font-size: $font-size-28;
  709. line-height: 68rpx;
  710. text-align: left;
  711. color: $text-color;
  712. margin-left: 10rpx;
  713. }
  714. }
  715. .order-title-b {
  716. width: 100%;
  717. height: 40rpx;
  718. float: left;
  719. margin-top: 8rpx;
  720. .order-title-btxt {
  721. float: left;
  722. font-size: $font-size-28;
  723. line-height: 40rpx;
  724. color: #999999;
  725. text-align: lef;
  726. }
  727. .order-title-tip {
  728. float: right;
  729. font-size: $font-size-28;
  730. line-height: 40rpx;
  731. text-align: right;
  732. color: #ff2a2a;
  733. }
  734. }
  735. }
  736. .goods-title {
  737. width: 100%;
  738. height: 56rpx;
  739. float: left;
  740. margin-top: 10rpx;
  741. .floor-item-act {
  742. height: 56rpx;
  743. text-align: center;
  744. box-sizing: border-box;
  745. float: left;
  746. padding: 10rpx 0;
  747. margin-right: 12rpx;
  748. }
  749. .title-text {
  750. width: 400rpx;
  751. overflow: hidden;
  752. text-overflow: ellipsis;
  753. white-space: nowrap;
  754. float: left;
  755. font-size: $font-size-28;
  756. color: $text-color;
  757. text-align: left;
  758. line-height: 56rpx;
  759. font-weight: bold;
  760. .iconfont {
  761. color: #999999;
  762. font-size: 28rpx;
  763. margin-left: 10rpx;
  764. }
  765. .paymenttext {
  766. color: #f9a94b;
  767. font-size: $font-size-22;
  768. margin-left: 20rpx;
  769. }
  770. }
  771. }
  772. .goods-item {
  773. width: 100%;
  774. height: auto;
  775. }
  776. .goods-pros-t {
  777. width: 100%;
  778. height: auto;
  779. padding: 24rpx 0;
  780. .pros-img {
  781. float: left;
  782. width: 210rpx;
  783. height: 100%;
  784. border-radius: 10rpx;
  785. margin: 0 26rpx 0 0;
  786. position: relative;
  787. .tips {
  788. display: inline-block;
  789. width: 80rpx;
  790. height: 40rpx;
  791. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  792. line-height: 40rpx;
  793. text-align: center;
  794. font-size: $font-size-24;
  795. color: #ffffff;
  796. border-radius: 10rpx 0 10rpx 0;
  797. position: absolute;
  798. top: 0;
  799. left: 0;
  800. }
  801. image {
  802. width: 210rpx;
  803. height: 210rpx;
  804. border-radius: 10rpx;
  805. border: 1px solid #f3f3f3;
  806. }
  807. }
  808. }
  809. .pros-product {
  810. width: 460rpx;
  811. height: 100%;
  812. line-height: 36rpx;
  813. font-size: $font-size-26;
  814. position: relative;
  815. float: left;
  816. .producttitle {
  817. width: 100%;
  818. display: inline-block;
  819. height: auto;
  820. text-overflow: ellipsis;
  821. display: -webkit-box;
  822. word-break: break-all;
  823. -webkit-box-orient: vertical;
  824. -webkit-line-clamp: 2;
  825. overflow: hidden;
  826. margin-bottom: 8rpx;
  827. }
  828. .productspec {
  829. height: 36rpx;
  830. color: #999999;
  831. margin: 30rpx 0;
  832. }
  833. .productprice {
  834. height: 48rpx;
  835. width: 100%;
  836. float: left;
  837. .price {
  838. line-height: 48rpx;
  839. font-size: $font-size-28;
  840. width: 48%;
  841. color: #ff2a2a;
  842. float: left;
  843. font-weight: bold;
  844. &.none {
  845. text-decoration: line-through;
  846. color: #999999;
  847. }
  848. }
  849. .count {
  850. height: 100%;
  851. float: right;
  852. position: relative;
  853. .small {
  854. color: #666666;
  855. }
  856. }
  857. }
  858. .floor-item-act {
  859. width: 100%;
  860. height: 56rpx;
  861. text-align: center;
  862. box-sizing: border-box;
  863. float: left;
  864. padding: 0 0 10rpx 0;
  865. }
  866. }
  867. .order-footer {
  868. width: 100%;
  869. height: 78rpx;
  870. float: left;
  871. margin-top: 20rpx;
  872. .order-footer-top {
  873. width: 100%;
  874. height: 34rpx;
  875. line-height: 34rpx;
  876. font-size: $font-size-24;
  877. color: #999999;
  878. text-align: right;
  879. }
  880. .order-footer-bot {
  881. width: 100%;
  882. float: left;
  883. height: 48rpx;
  884. line-height: 48rpx;
  885. font-size: $font-size-28;
  886. color: $text-color;
  887. .count {
  888. width: 50%;
  889. float: left;
  890. text-align: left;
  891. font-weight: bold;
  892. }
  893. .money {
  894. width: 50%;
  895. float: right;
  896. text-align: right;
  897. }
  898. }
  899. }
  900. </style>