order-list.vue 23 KB

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