order-team-list.vue 25 KB

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