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. @goSearchPath="handlSearchPath"
  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 btSearch from '@/components/uni-search/bt-search.vue' //搜索
  171. import cmListButton from './components/cm-list-button' //按钮
  172. import modalLayer from '@/components/modal-layer'
  173. import empty from './components/empty'
  174. import cmSharePopup from './components/cm-share-popup' //分享弹窗
  175. export default {
  176. components: {
  177. headerBack,
  178. empty,
  179. btSearch,
  180. modalLayer,
  181. cmListButton,
  182. cmSharePopup
  183. },
  184. data() {
  185. return {
  186. CustomBar: this.CustomBar, // 顶部导航栏高度
  187. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  188. systeminfo: this.setSysteminfo(), //获取设备信息
  189. winHeight: '', //窗口高度
  190. nvabarData: {
  191. //顶部自定义导航
  192. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  193. showSearch: 1,
  194. title: '我的订单' // 导航栏 中间的标题
  195. },
  196. orderTabBar: [
  197. { state: 0, text: '全部订单', orderList: [] },
  198. { state: 1, text: '待确认', orderList: [] },
  199. { state: 2, text: '待付款', orderList: [] },
  200. { state: 3, text: '待发货', orderList: [] },
  201. { state: 4, text: '已发货', orderList: [] },
  202. { state: 5, text: '退货/款', orderList: [] }
  203. ],
  204. currentTab: 0, //预设当前项的值
  205. scrollLeft: 0, //tab标题的滚动条位置
  206. listQuery: {
  207. orderState: 0,
  208. userId: 0,
  209. pageNum: 1,
  210. pageSize: 10
  211. },
  212. orderData: [],
  213. scrollTop: 0,
  214. skeletonShow: true,
  215. isDelete: false,
  216. isClickChange: false,
  217. isShareModal: false, //控制分享弹窗
  218. isModalLayer: false,
  219. loadding: false,
  220. pullUpOn: true,
  221. hasNextPage: false,
  222. pullFlag: true,
  223. navbarHeight: '',
  224. modelType: 0,
  225. nomoreText: '上拉显示更多',
  226. isOnloadFlag: false,
  227. handleShopOrderId: 0, //点击按钮传入的的订单ID
  228. handleModelEven: 0,
  229. modal: false,
  230. contentModalText: '订单查询失败,请稍候重试~', //操作文字提示语句
  231. modalButton: [
  232. {
  233. text: '取消',
  234. type: 'gray',
  235. plain: true //是否空心
  236. },
  237. {
  238. text: '确定',
  239. customStyle: {
  240. color: '#fff',
  241. bgColor: '#F3B574'
  242. },
  243. plain: false
  244. }
  245. ]
  246. }
  247. },
  248. onLoad(e) {
  249. if (e.type === 'detele') {
  250. this.isDelete = true
  251. }
  252. this.currentTab = e.state
  253. console.log('currentTab', this.currentTab)
  254. this.isOnloadFlag = true
  255. this.getHeaderTopHeight() //设置自定义导航高度
  256. this.initStorage()
  257. },
  258. filters: {
  259. NumFormat(value) {
  260. //处理金额
  261. return Number(value).toFixed(2)
  262. },
  263. statusFilters(value) {
  264. //处理订单状态显示
  265. const map = {
  266. 0: '待确认',
  267. 2: '交易完成',
  268. 4: '已关闭',
  269. 5: '交易全退',
  270. 6: '交易全退',
  271. 11: '待付款待发货',
  272. 12: '待付款部分发货',
  273. 13: '待付款已发货',
  274. 21: '部分付款待发货',
  275. 22: '部分付款部分发货',
  276. 23: '部分付款已发货',
  277. 31: '已付款待发货',
  278. 32: '已付款部分发货',
  279. 33: '已付款已发货'
  280. }
  281. return map[value]
  282. }
  283. },
  284. methods: {
  285. async initStorage() {
  286. //初始化
  287. const usrInfo = await this.$api.getStorage()
  288. this.listQuery.userId = usrInfo.userId ? usrInfo.userId : 0
  289. this.getOrderDatainit(this.currentTab)
  290. },
  291. // 滚动切换标签样式
  292. onChange: function(e) {
  293. let tabIndex = e.target.current || e.detail.current
  294. if (this.isClickChange) {
  295. this.currentTab = tabIndex
  296. this.isClickChange = false
  297. return
  298. }
  299. this.isClickChange = false
  300. this.currentTab = tabIndex
  301. this.checkCor()
  302. this.pageNum = 1
  303. this.pullUpOn = true //切换时隐藏
  304. this.loadding = false //切换时隐藏
  305. this.nomoreText = ''
  306. if (!this.isOnloadFlag) {
  307. this.getOrderDatainit(this.currentTab, 'tabChange')
  308. }
  309. },
  310. // 点击标题切换当前页时改变样式
  311. onClickTab: function(e) {
  312. let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current
  313. if (this.currentTab === tabIndex) {
  314. return false
  315. } else {
  316. this.isClickChange = true
  317. this.currentTab = tabIndex
  318. this.pageNum = 1
  319. this.listQuery.pageNum = 1
  320. this.pullUpOn = true //切换时隐藏
  321. this.loadding = false //切换时隐藏
  322. this.getOrderDatainit(this.currentTab)
  323. }
  324. },
  325. //判断当前滚动超过一屏时,设置tab标题滚动条。
  326. checkCor: function() {
  327. if (this.currentTab > 3) {
  328. //这里距离按实际计算
  329. this.scrollLeft = 300
  330. } else {
  331. this.scrollLeft = 0
  332. }
  333. },
  334. async getOrderDatainit(index, source) {
  335. let orderItem = this.orderTabBar[index]
  336. if (source === 'tabChange' && orderItem.loaded === true) {
  337. //tab切换只有第一次需要加载数据
  338. return
  339. }
  340. try {
  341. this.listQuery.pageNum = 1
  342. this.listQuery.orderState = index
  343. const res = await this.OrderService.QueryOrderList(this.listQuery)
  344. const data = res.data
  345. if (data.list.length > 0) {
  346. const orderList = data.list
  347. orderItem.orderList = []
  348. orderList.forEach(item => {
  349. orderItem.orderList.push(item)
  350. })
  351. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  352. this.$set(orderItem, 'loaded', true)
  353. this.hasNextPage = data.hasNextPage
  354. if (this.hasNextPage) {
  355. this.pullUpOn = false
  356. this.nomoreText = '上拉显示更多'
  357. } else {
  358. if (orderItem.orderList.length < 2) {
  359. this.pullUpOn = true
  360. } else {
  361. this.pullUpOn = false
  362. this.nomoreText = '已至底部'
  363. }
  364. }
  365. } else {
  366. this.$set(orderItem, 'loaded', true)
  367. orderItem.orderList = []
  368. }
  369. this.skeletonShow = false
  370. this.isOnloadFlag = false
  371. } catch (error) {
  372. this.$util.msg(error.msg, 2000)
  373. }
  374. },
  375. async getOnReachBottomData(index) {
  376. //上拉加载
  377. try {
  378. this.listQuery.pageNum += 1
  379. this.listQuery.orderState = this.orderTabBar[index].state
  380. const res = await this.OrderService.QueryOrderList(this.listQuery)
  381. const data = res.data
  382. const orderItem = this.orderTabBar[index]
  383. this.hasNextPage = data.hasNextPage
  384. orderItem.orderList = orderItem.orderList.concat(data.list)
  385. this.pullFlag = false // 防上拉暴滑
  386. setTimeout(() => {
  387. this.pullFlag = true
  388. }, 500)
  389. if (this.hasNextPage) {
  390. this.pullUpOn = false
  391. this.nomoreText = '上拉显示更多'
  392. } else {
  393. this.loadding = false
  394. this.pullUpOn = false
  395. this.nomoreText = '已至底部'
  396. }
  397. } catch (error) {
  398. this.$util.msg(error.msg, 2000)
  399. }
  400. },
  401. scrolltolower() {
  402. if (this.hasNextPage) {
  403. this.loadding = true
  404. this.pullUpOn = true
  405. this.getOnReachBottomData(this.currentTab)
  406. }
  407. },
  408. detail(shopOrderId, orderId) {
  409. //订单详情跳转
  410. this.isModalLayer = true
  411. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&shopOrderId=${shopOrderId}`)
  412. },
  413. handButtonConfirm(data) {
  414. console.log(data)
  415. //获取点击
  416. this.handleShopOrderId = data.order.shopOrderId
  417. switch (data.type) {
  418. case 'cancel':
  419. //取消订单
  420. this.modal = true
  421. this.contentModalText = '确认取消该订单吗?'
  422. this.handleModelEven = 1
  423. break
  424. case 'confirm':
  425. //确认收货
  426. this.modal = true
  427. this.contentModalText = '确认收货吗?'
  428. this.handleModelEven = 2
  429. break
  430. case 'delete': //删除订单
  431. this.modal = true
  432. this.contentModalText = '确认删除该订单吗?'
  433. this.handleModelEven = 3
  434. break
  435. case 'confirmation': // 确认订单
  436. this.modal = true
  437. this.contentModalText = '确认此订单吗?'
  438. this.handleModelEven = 4
  439. break
  440. case 'pay':
  441. this.orderPaymentValidation()
  442. break
  443. case 'query':
  444. this.$api.navigateTo('/pages/user/order/order-logistics?shopOrderId=' + this.handleShopOrderId)
  445. break
  446. case 'upload':
  447. this.$api.navigateTo('/pages/user/order/order-addpay?shopOrderId=' + this.handleShopOrderId)
  448. break
  449. }
  450. },
  451. async orderPaymentValidation() {
  452. //监听根据付款状态做操作
  453. try {
  454. const res = await this.OrderService.OrderPaymentValidation({ shopOrderId: this.handleShopOrderId })
  455. this.$api.navigateTo(`/pages/user/order/order-pay-list?shopOrderId=${res.data.shopOrderId}`)
  456. } catch (error) {
  457. this.$util.msg(error.msg, 2000)
  458. }
  459. },
  460. handleClick(e) {
  461. //确认操作
  462. if (e.index == 1) {
  463. switch (this.handleModelEven) {
  464. case 1: //取消订单
  465. this.cancelOrder()
  466. break
  467. case 2: //确认收货
  468. this.confirmReceipt()
  469. break
  470. case 3: //删除订单
  471. this.deleteOrder()
  472. break
  473. case 4: //确认订单
  474. this.affirmOrder()
  475. break
  476. }
  477. }
  478. this.modal = false
  479. },
  480. async confirmReceipt() {
  481. //确认收货
  482. try {
  483. const res = await this.OrderService.ConfirmReceipt({ shopOrderId: this.handleShopOrderId })
  484. this.$util.msg(res.msg, 2000, true, 'success')
  485. setTimeout(() => {
  486. this.getOrderDatainit(this.currentTab)
  487. }, 2000)
  488. } catch (error) {
  489. this.$util.msg(error.msg, 2000)
  490. }
  491. },
  492. async cancelOrder() {
  493. //取消订单
  494. try {
  495. const res = await this.OrderService.CancelOrder({ shopOrderId: this.handleShopOrderId, userIdentity: 0 })
  496. this.$util.msg(res.msg, 2000, true, 'success')
  497. setTimeout(() => {
  498. this.getOrderDatainit(this.currentTab)
  499. }, 2000)
  500. } catch (error) {
  501. this.$util.msg(error.msg, 2000)
  502. }
  503. },
  504. //删除订单
  505. async deleteOrder() {
  506. try {
  507. const res = await this.OrderService.DeleteOrder({ shopOrderId: this.handleShopOrderId })
  508. this.$util.msg(res.msg, 2000, true, 'success')
  509. setTimeout(() => {
  510. this.getOrderDatainit(this.currentTab)
  511. }, 2000)
  512. } catch (error) {
  513. this.$util.msg(error.msg, 2000)
  514. }
  515. },
  516. //确认订单
  517. async affirmOrder() {
  518. try {
  519. const res = await this.OrderService.AffirmOrder({ shopOrderId: this.handleShopOrderId })
  520. this.$util.msg(res.msg, 2000, true, 'success')
  521. setTimeout(() => {
  522. this.getOrderDatainit(this.currentTab)
  523. }, 2000)
  524. } catch (error) {
  525. this.$util.msg(error.msg, 2000)
  526. }
  527. },
  528. handlSearchPath() {
  529. this.$api.navigateTo('/pages/user/order/order-search')
  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>