order-list.vue 22 KB

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