order-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  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/details/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: 2, text: '待付款', orderList: [] },
  205. { state: 3, text: '待发货', orderList: [] },
  206. { state: 4, text: '已发货', orderList: [] },
  207. { state: 5, 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. const evStateMap = { 2:1, 3:2, 4:3, 5:4 }
  258. this.currentTab = evStateMap[e.state]
  259. console.log('currentTab',this.currentTab)
  260. this.isOnloadFlag = true
  261. this.getHeaderTopHeight() //设置自定义导航高度
  262. this.initStorage()
  263. },
  264. filters: {
  265. NumFormat(value) {
  266. //处理金额
  267. return Number(value).toFixed(2)
  268. }
  269. },
  270. methods: {
  271. async initStorage(){
  272. //初始化
  273. const usrInfo = await this.$api.getStorage()
  274. this.listQuery.userId = usrInfo.userId ? usrInfo.userId : 0
  275. this.getOrderDatainit(this.currentTab)
  276. },
  277. // 滚动切换标签样式
  278. onChange: function(e) {
  279. let tabIndex = e.target.current || e.detail.current
  280. if (this.isClickChange) {
  281. this.currentTab = tabIndex
  282. this.isClickChange = false
  283. return
  284. }
  285. this.isClickChange = false
  286. this.currentTab = tabIndex
  287. this.checkCor()
  288. this.pageNum = 1
  289. this.pullUpOn = true //切换时隐藏
  290. this.loadding = false //切换时隐藏
  291. this.nomoreText = ''
  292. if (!this.isOnloadFlag) {
  293. this.getOrderDatainit(this.currentTab, 'tabChange')
  294. }
  295. },
  296. // 点击标题切换当前页时改变样式
  297. onClickTab: function(e) {
  298. let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current
  299. if (this.currentTab === tabIndex) {
  300. return false
  301. } else {
  302. this.isClickChange = true
  303. this.currentTab = tabIndex
  304. this.pageNum = 1
  305. this.pullUpOn = true //切换时隐藏
  306. this.loadding = false //切换时隐藏
  307. this.getOrderDatainit(this.currentTab)
  308. }
  309. },
  310. //判断当前滚动超过一屏时,设置tab标题滚动条。
  311. checkCor: function() {
  312. if (this.currentTab > 3) {
  313. //这里距离按实际计算
  314. this.scrollLeft = 300
  315. } else {
  316. this.scrollLeft = 0
  317. }
  318. },
  319. async getOrderDatainit(index, source) {
  320. let orderItem = this.orderTabBar[index]
  321. if (source === 'tabChange' && orderItem.loaded === true) {
  322. //tab切换只有第一次需要加载数据
  323. return
  324. }
  325. try{
  326. this.listQuery.orderState = this.orderTabBar[index].state
  327. const res = await this.OrderService.QueryOrderList(this.listQuery)
  328. const data = res.data
  329. const orderList = data.list.filter(item => {
  330. //添加不同状态下订单的表现形式
  331. item = Object.assign(item, this.StateExpFormat(item.status))
  332. return item
  333. })
  334. orderItem.orderList = []
  335. orderList.forEach(item => {
  336. orderItem.orderList.push(item)
  337. })
  338. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  339. this.$set(orderItem, 'loaded', true)
  340. this.hasNextPage = data.hasNextPage
  341. if (this.hasNextPage) {
  342. this.pullUpOn = false
  343. this.nomoreText = '上拉显示更多'
  344. } else {
  345. if (orderItem.orderList.length < 2) {
  346. this.pullUpOn = true
  347. } else {
  348. this.pullUpOn = false
  349. this.nomoreText = '已至底部'
  350. }
  351. }
  352. this.skeletonShow = false
  353. this.isOnloadFlag = false
  354. }catch(error){
  355. this.$util.msg(error.msg, 2000)
  356. }
  357. },
  358. async getOnReachBottomData(index) {
  359. //上拉加载
  360. try{
  361. this.listQuery.pageNum += 1
  362. this.listQuery.orderState = this.orderTabBar[index].state
  363. const res = await this.OrderService.QueryOrderList(this.listQuery)
  364. const data = res.data
  365. const orderItem = this.orderTabBar[index]
  366. this.hasNextPage = data.hasNextPage
  367. orderItem.orderList = orderItem.orderList.concat(data.list)
  368. this.pullFlag = false // 防上拉暴滑
  369. setTimeout(() => {
  370. this.pullFlag = true
  371. }, 500)
  372. if (this.hasNextPage) {
  373. this.pullUpOn = false
  374. this.nomoreText = '上拉显示更多'
  375. } else {
  376. this.loadding = false
  377. this.pullUpOn = false
  378. this.nomoreText = '已至底部'
  379. }
  380. }catch(error){
  381. this.$util.msg(error.msg, 2000)
  382. }
  383. },
  384. scrolltolower() {
  385. if (this.hasNextPage) {
  386. this.loadding = true
  387. this.pullUpOn = true
  388. this.getOnReachBottomData(this.currentTab)
  389. }
  390. },
  391. detail(orderId) {
  392. //订单详情跳转
  393. this.isModalLayer = true
  394. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderId=${orderId}`)
  395. },
  396. handButtonConfirm(data) {
  397. //获取点击
  398. this.handleOrderId = data.orderId
  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()
  420. break
  421. }
  422. },
  423. async orderPaymentValidation(){
  424. //监听根据付款状态做操作
  425. try{
  426. const res = await this.OrderService.OrderPaymentValidation({ orderId: this.handleOrderId })
  427. if (res.data.onlinePayFlag == 1) {// 只能线下
  428. this.$api.navigateTo(`/pages/user/pay/card-under?orderId=${this.handleOrderId}`)
  429. } else {
  430. this.$api.navigateTo(`/pages/user/order/order-pay-list?orderId=${this.handleOrderId}`)
  431. }
  432. }catch(error){
  433. this.$util.msg(error.msg, 2000)
  434. }
  435. },
  436. handleClick(e){
  437. //确认操作
  438. if (e.index == 1) {
  439. switch(this.handleModelEven){
  440. case 1://取消订单
  441. this.cancelOrder()
  442. break
  443. case 2://确认收货
  444. this.confirmReceipt()
  445. break
  446. }
  447. }
  448. this.modal = false
  449. },
  450. async confirmReceipt(){
  451. //确认收货
  452. try{
  453. const res = await this.OrderService.ConfirmReceipt({ orderId: this.handleOrderId })
  454. this.$util.msg(res.msg, 2000, true, 'success')
  455. setTimeout(() => {
  456. this.getOrderDatainit(this.currentTab)
  457. }, 2000)
  458. }catch(error){
  459. this.$util.msg(error.msg, 2000)
  460. }
  461. },
  462. async cancelOrder(){
  463. //取消订单
  464. try{
  465. const res = await this.OrderService.CancelOrder({ orderId: this.handleOrderId, userIdentity : 0 })
  466. this.$util.msg(res.msg, 2000, true, 'success')
  467. setTimeout(() => {
  468. this.getOrderDatainit(this.currentTab)
  469. }, 2000)
  470. }catch(error){
  471. this.$util.msg(error.msg, 2000)
  472. }
  473. },
  474. handlSearchPath() {
  475. this.$api.navigateTo('/pages/search/search-order')
  476. },
  477. onShareAppMessage(res) {
  478. //分享转发
  479. this.isShareModal = false
  480. if (res.from === 'button') {
  481. // 来自页面内转发按钮
  482. }
  483. return {
  484. title: '您有新的分享订单,快来查看吧~',
  485. path: `/pages/user/order/order-sharelogin?orderId=${this.handleOrderId}&userId=${this.userId}`,
  486. imageUrl: 'https://static.caimei365.com/app/mini-mcare/icon/icon_shareOrder@2x.png'
  487. }
  488. },
  489. orderPriceToFixed(n) {
  490. let price = ''
  491. price = n.toFixed(2)
  492. return price
  493. },
  494. getHeaderTopHeight() {
  495. // 状态栏高度
  496. let self = this
  497. let statusBarHeight = this.systeminfo.statusBarHeight
  498. let headerPosi = this.headerBtnPosi
  499. let btnPosi = {
  500. // 胶囊实际位置,坐标信息不是左上角原点
  501. height: headerPosi.height,
  502. width: headerPosi.width,
  503. // 胶囊top - 状态栏高度
  504. top: headerPosi.top - statusBarHeight,
  505. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  506. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  507. // 屏幕宽度 - 胶囊right
  508. right: this.systeminfo.screenWidth - headerPosi.right
  509. }
  510. this.navbarHeight = headerPosi.bottom + btnPosi.bottom // 原胶囊bottom + 现胶囊bottom
  511. // 高度自适应
  512. uni.getSystemInfo({
  513. success: function(res) {
  514. let calc = res.windowHeight
  515. self.winHeight = calc - self.CustomBar
  516. }
  517. })
  518. },
  519. setHeaderBtnPosi() {
  520. // 获得胶囊按钮位置信息
  521. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  522. return headerBtnPosi
  523. },
  524. setSysteminfo() {
  525. let systeminfo
  526. uni.getSystemInfo({
  527. // 获取设备信息
  528. success: res => {
  529. systeminfo = res
  530. }
  531. })
  532. return systeminfo
  533. },
  534. PromotionsFormat(promo) {
  535. //促销活动类型数据处理
  536. if (promo != null) {
  537. if (promo.type == 1 && promo.mode == 1) {
  538. return true
  539. } else {
  540. return false
  541. }
  542. }
  543. return false
  544. },
  545. StateExpFormat(state) {
  546. //订单状态文字和颜色
  547. var HtmlStateText = '',
  548. stateTextObject = {
  549. 0: '待确认',
  550. 4: '交易完成',
  551. 5: '订单完成',
  552. 6: '已关闭',
  553. 7: '交易全退',
  554. 77: '交易全退',
  555. 11: '待付款待发货',
  556. 12: '待付款部分发货',
  557. 13: '待付款已发货',
  558. 21: '部分付款待发货',
  559. 22: '部分付款部分发货',
  560. 23: '部分付款已发货',
  561. 31: '已付款待发货',
  562. 32: '已付款部分发货',
  563. 33: '已付款已发货',
  564. 111: '待付款待发货'
  565. }
  566. Object.keys(stateTextObject).forEach(function(key) {
  567. if (key == state) {
  568. HtmlStateText = stateTextObject[key]
  569. }
  570. })
  571. return HtmlStateText
  572. },
  573. handleBeanlClick() {
  574. //关闭采美豆弹窗
  575. this.isActivityBean = false
  576. this.getOrderDatainit(this.currentTab)
  577. }
  578. },
  579. onPageScroll(e) {
  580. this.scrollTop = e.scrollTop
  581. },
  582. onShow() {
  583. this.isModalLayer = false
  584. }
  585. }
  586. </script>
  587. <style lang="scss">
  588. /*tabbar start*/
  589. ::-webkit-scrollbar {
  590. width: 0;
  591. height: 0;
  592. color: transparent;
  593. }
  594. .order-section-top {
  595. width: 100%;
  596. position: fixed;
  597. top: 0;
  598. left: 0;
  599. z-index: 99;
  600. background: #ffffff;
  601. }
  602. .tab-view::before {
  603. content: '';
  604. position: absolute;
  605. border-bottom: 1rpx solid #eaeef1;
  606. -webkit-transform: scaleY(0.5);
  607. transform: scaleY(0.5);
  608. bottom: 0;
  609. right: 0;
  610. left: 0;
  611. }
  612. .tab-view {
  613. width: 100%;
  614. height: 80rpx;
  615. overflow: hidden;
  616. box-sizing: border-box;
  617. background: #fff;
  618. white-space: nowrap;
  619. border-top: 1px solid #f7f7f7;
  620. }
  621. .tab-bar-item {
  622. padding: 0;
  623. height: 80rpx;
  624. min-width: 80rpx;
  625. line-height: 80rpx;
  626. margin: 0 28rpx;
  627. display: inline-block;
  628. text-align: center;
  629. box-sizing: border-box;
  630. }
  631. .tab-bar-title {
  632. height: 80rpx;
  633. line-height: 80rpx;
  634. font-size: $font-size-28;
  635. color: $text-color;
  636. }
  637. .active {
  638. border-bottom: 6rpx solid $color-system;
  639. }
  640. .active .tab-bar-title {
  641. color: $color-system !important;
  642. }
  643. /*tabbar end*/
  644. .scoll-y {
  645. height: 100%;
  646. }
  647. page {
  648. background: #f7f7f7;
  649. }
  650. .container {
  651. padding-bottom: env(safe-area-inset-bottom);
  652. height: auto;
  653. position: relative;
  654. }
  655. .tui-order-content {
  656. width: 100%;
  657. height: auto;
  658. }
  659. .tui-order-list {
  660. margin-top: 90rpx;
  661. width: 100%;
  662. position: relative;
  663. }
  664. .tui-order-item {
  665. display: flex;
  666. flex-direction: column;
  667. width: 702rpx;
  668. padding: 20rpx 24rpx 0 24rpx;
  669. background: #fff;
  670. border-bottom: 20rpx solid #f7f7f7;
  671. }
  672. .order-title {
  673. width: 100%;
  674. height: auto;
  675. .order-title-t {
  676. width: 100%;
  677. height: 68rpx;
  678. float: left;
  679. line-height: 68rpx;
  680. position: relative;
  681. .bage-icon {
  682. width: 50rpx;
  683. height: 50rpx;
  684. display: block;
  685. position: absolute;
  686. right: 0;
  687. top: 9rpx;
  688. }
  689. .bage-buss {
  690. display: inline-block;
  691. width: 72rpx;
  692. height: 30rpx;
  693. background: radial-gradient(circle, rgba(255, 39, 180, 1) 0%, rgba(193, 77, 245, 1) 100%);
  694. border-radius: 4rpx;
  695. line-height: 30rpx;
  696. font-size: $font-size-22;
  697. text-align: center;
  698. color: #ffffff;
  699. }
  700. .bage-auto {
  701. display: inline-block;
  702. width: 72rpx;
  703. height: 30rpx;
  704. background: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  705. border-radius: 4rpx;
  706. line-height: 30rpx;
  707. font-size: $font-size-22;
  708. text-align: center;
  709. color: #ffffff;
  710. }
  711. .bage-text {
  712. display: inline-block;
  713. font-size: $font-size-28;
  714. line-height: 68rpx;
  715. text-align: left;
  716. color: $text-color;
  717. margin-left: 10rpx;
  718. }
  719. }
  720. .order-title-b {
  721. width: 100%;
  722. height: 40rpx;
  723. float: left;
  724. margin-top: 8rpx;
  725. .order-title-btxt {
  726. float: left;
  727. font-size: $font-size-28;
  728. line-height: 40rpx;
  729. color: #999999;
  730. text-align: lef;
  731. }
  732. .order-title-tip {
  733. float: right;
  734. font-size: $font-size-28;
  735. line-height: 40rpx;
  736. text-align: right;
  737. color: #ff2a2a;
  738. }
  739. }
  740. }
  741. .goods-title {
  742. width: 100%;
  743. height: 56rpx;
  744. float: left;
  745. margin-top: 10rpx;
  746. .floor-item-act {
  747. height: 56rpx;
  748. text-align: center;
  749. box-sizing: border-box;
  750. float: left;
  751. padding: 10rpx 0;
  752. margin-right: 12rpx;
  753. }
  754. .title-text {
  755. width: 400rpx;
  756. overflow: hidden;
  757. text-overflow: ellipsis;
  758. white-space: nowrap;
  759. float: left;
  760. font-size: $font-size-28;
  761. color: $text-color;
  762. text-align: left;
  763. line-height: 56rpx;
  764. font-weight: bold;
  765. .iconfont {
  766. color: #999999;
  767. font-size: 28rpx;
  768. margin-left: 10rpx;
  769. }
  770. .paymenttext {
  771. color: #f9a94b;
  772. font-size: $font-size-22;
  773. margin-left: 20rpx;
  774. }
  775. }
  776. }
  777. .goods-item {
  778. width: 100%;
  779. height: auto;
  780. }
  781. .goods-pros-t {
  782. width: 100%;
  783. height: auto;
  784. padding: 24rpx 0;
  785. .pros-img {
  786. float: left;
  787. width: 210rpx;
  788. height: 100%;
  789. border-radius: 10rpx;
  790. margin: 0 26rpx 0 0;
  791. position: relative;
  792. .tips {
  793. display: inline-block;
  794. width: 80rpx;
  795. height: 40rpx;
  796. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  797. line-height: 40rpx;
  798. text-align: center;
  799. font-size: $font-size-24;
  800. color: #ffffff;
  801. border-radius: 10rpx 0 10rpx 0;
  802. position: absolute;
  803. top: 0;
  804. left: 0;
  805. }
  806. image {
  807. width: 210rpx;
  808. height: 210rpx;
  809. border-radius: 10rpx;
  810. border: 1px solid #f3f3f3;
  811. }
  812. }
  813. }
  814. .pros-product {
  815. width: 460rpx;
  816. height: 100%;
  817. line-height: 36rpx;
  818. font-size: $font-size-26;
  819. position: relative;
  820. float: left;
  821. .producttitle {
  822. width: 100%;
  823. display: inline-block;
  824. height: auto;
  825. text-overflow: ellipsis;
  826. display: -webkit-box;
  827. word-break: break-all;
  828. -webkit-box-orient: vertical;
  829. -webkit-line-clamp: 2;
  830. overflow: hidden;
  831. margin-bottom: 8rpx;
  832. }
  833. .productspec {
  834. height: 36rpx;
  835. color: #999999;
  836. margin: 30rpx 0;
  837. }
  838. .productprice {
  839. height: 48rpx;
  840. width: 100%;
  841. float: left;
  842. .price {
  843. line-height: 48rpx;
  844. font-size: $font-size-28;
  845. width: 48%;
  846. color: #ff2a2a;
  847. float: left;
  848. font-weight: bold;
  849. &.none {
  850. text-decoration: line-through;
  851. color: #999999;
  852. }
  853. }
  854. .count {
  855. height: 100%;
  856. float: right;
  857. position: relative;
  858. .small {
  859. color: #666666;
  860. }
  861. }
  862. }
  863. .floor-item-act {
  864. width: 100%;
  865. height: 56rpx;
  866. text-align: center;
  867. box-sizing: border-box;
  868. float: left;
  869. padding: 0 0 10rpx 0;
  870. }
  871. }
  872. .order-footer {
  873. width: 100%;
  874. height: 78rpx;
  875. float: left;
  876. margin-top: 20rpx;
  877. .order-footer-top {
  878. width: 100%;
  879. height: 34rpx;
  880. line-height: 34rpx;
  881. font-size: $font-size-24;
  882. color: #999999;
  883. text-align: right;
  884. }
  885. .order-footer-bot {
  886. width: 100%;
  887. float: left;
  888. height: 48rpx;
  889. line-height: 48rpx;
  890. font-size: $font-size-28;
  891. color: $text-color;
  892. .count {
  893. width: 50%;
  894. float: left;
  895. text-align: left;
  896. font-weight: bold;
  897. }
  898. .money {
  899. width: 50%;
  900. float: right;
  901. text-align: right;
  902. }
  903. }
  904. }
  905. </style>