order-list.vue 32 KB

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