order-team-list.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  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(event)"
  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. uni.setNavigationBarTitle({ title: `${option.name}的订单` })
  372. const userInfo = await this.$api.getStorage()
  373. this.userId = userInfo.userId ? userInfo.userId : 0
  374. this.manager = userInfo.manager ? userInfo.manager : 0
  375. this.listQuery.groupServiceId = option.groupServiceId
  376. this.listQuery.serviceProviderId = userInfo.serviceProviderId
  377. this.getOrderDatainit(this.currentTab)
  378. },
  379. // 滚动切换标签样式
  380. onChange(e) {
  381. let index = e.target.current || e.detail.current
  382. if (this.isClickChange) {
  383. this.currentTab = index
  384. this.isClickChange = false
  385. return
  386. }
  387. this.isClickChange = false
  388. this.currentTab = index
  389. this.listQuery.listType = index
  390. this.checkCor()
  391. this.pullUpOn = true //切换时隐藏
  392. this.loadding = false //切换时隐藏
  393. this.nomoreText = ''
  394. this.getOrderDatainit(this.currentTab, 'tabChange')
  395. },
  396. // 点击标题切换当前页时改变样式
  397. onClickTab(e) {
  398. let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current
  399. if (this.currentTab === tabIndex) {
  400. return false
  401. } else {
  402. this.isClickChange = true
  403. this.currentTab = tabIndex
  404. this.listQuery.listType = tabIndex
  405. this.pullUpOn = true //切换时隐藏
  406. this.loadding = false //切换时隐藏
  407. this.getOrderDatainit(this.currentTab)
  408. }
  409. },
  410. onClickScreenTab(index) {
  411. this.screenTab = index
  412. this.listQuery.orderSubmitType = index
  413. this.pullUpOn = true //切换时隐藏
  414. this.loadding = false //切换时隐藏
  415. this.nomoreText = ''
  416. this.getOrderDatainit(this.currentTab)
  417. },
  418. //判断当前滚动超过一屏时,设置tab标题滚动条。
  419. checkCor: function() {
  420. if (this.currentTab > 3) {
  421. //这里距离按实际计算
  422. this.scrollLeft = 300
  423. } else {
  424. this.scrollLeft = 0
  425. }
  426. },
  427. async getOrderDatainit(index, source) {
  428. try {
  429. this.listQuery.pageNum = 1
  430. let orderItem = this.orderTabBar[index]
  431. if (source === 'tabChange' && orderItem.loaded === true) {
  432. //tab切换只有第一次需要加载数据
  433. return
  434. }
  435. //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
  436. const res = await this.SellerService.GetSellerOrderList(this.listQuery)
  437. const data = res.data
  438. if (data.list && data.list.length > 0) {
  439. orderItem.orderList = []
  440. data.list.forEach(item => {
  441. orderItem.orderList.push(item)
  442. })
  443. this.hasNextPage = data.hasNextPage
  444. if (this.hasNextPage) {
  445. this.pullUpOn = false
  446. this.nomoreText = '上拉显示更多'
  447. } else {
  448. if (orderItem.orderList.length < 2) {
  449. this.pullUpOn = true
  450. } else {
  451. this.pullUpOn = false
  452. this.nomoreText = '已至底部'
  453. }
  454. }
  455. } else {
  456. this.$set(orderItem, 'loaded', true)
  457. orderItem.orderList = []
  458. }
  459. this.skeletonShow = false
  460. } catch (error) {
  461. this.$util.msg(error.msg, 2000)
  462. }
  463. },
  464. //上拉加载
  465. async getOnReachBottomData(index) {
  466. try {
  467. this.listQuery.pageNum += 1
  468. const res = await this.SellerService.GetSellerOrderList(this.listQuery)
  469. const data = res.data
  470. const orderItem = this.orderTabBar[index]
  471. orderItem.orderList = orderItem.orderList.concat(data.list)
  472. this.hasNextPage = data.hasNextPage
  473. this.pullFlag = false // 防上拉暴滑
  474. setTimeout(() => {
  475. this.pullFlag = true
  476. }, 500)
  477. if (this.hasNextPage) {
  478. this.pullUpOn = false
  479. this.nomoreText = '上拉显示更多'
  480. } else {
  481. this.loadding = false
  482. this.pullUpOn = false
  483. this.nomoreText = '已至底部'
  484. }
  485. } catch (error) {
  486. this.$util.msg(error.msg, 2000)
  487. }
  488. },
  489. //获取点击
  490. handButtonConfirm(data) {
  491. console.log('data',data)
  492. this.handleShopOrderId = data.shopOrderId
  493. switch (data.type) {
  494. case 'cancel': //取消订单
  495. this.modal = true
  496. this.contentModalText = '确认取消该订单吗?'
  497. this.handleModelEven = 1
  498. break
  499. case 'delete': //删除订单
  500. this.modal = true
  501. this.contentModalText = '确认删除该订单吗?'
  502. this.handleModelEven = 2
  503. break
  504. case 'confirm': // 确认订单
  505. this.modal = true
  506. this.contentModalText = '确认此订单吗?'
  507. this.handleModelEven = 3
  508. break
  509. case 'again':
  510. this.handOrderAgain(data.shopOrderId)
  511. break
  512. case 'query':
  513. this.isModalLayer = true
  514. this.$api.navigateTo('/pages/user/order/order-logistics?shopOrderId=' + data.shopOrderId)
  515. break
  516. }
  517. },
  518. //确定筛选
  519. handSearchConfirmData(data) {
  520. this.listQuery.groupServiceId = data.serviceProviderId
  521. this.getOrderDatainit(this.currentTab)
  522. },
  523. scrolltolower() {
  524. if (this.hasNextPage) {
  525. this.loadding = true
  526. this.pullUpOn = true
  527. this.getOnReachBottomData(this.currentTab)
  528. }
  529. },
  530. detail(order) {
  531. //订单详情跳转
  532. this.isModalLayer = true
  533. this.$api.navigateTo(
  534. `/pages/seller/order/order-team-details?listType=${this.currentTab}&shopOrderId=${
  535. order.shopOrderId
  536. }&userId=${order.userId}`
  537. )
  538. },
  539. handlSearchPath() {
  540. this.$api.navigateTo('/pages/seller/order/search-order')
  541. },
  542. PromotionsFormat(promo) {
  543. //促销活动类型数据处理
  544. if (promo != null) {
  545. if (promo.type == 1 && promo.mode == 1) {
  546. return true
  547. } else {
  548. return false
  549. }
  550. }
  551. return false
  552. },
  553. getHeaderTopHeight() {
  554. // 状态栏高度
  555. let self = this
  556. let statusBarHeight = this.systeminfo.statusBarHeight
  557. let headerPosi = this.headerBtnPosi
  558. let btnPosi = {
  559. // 胶囊实际位置,坐标信息不是左上角原点
  560. height: headerPosi.height,
  561. width: headerPosi.width,
  562. // 胶囊top - 状态栏高度
  563. top: headerPosi.top - statusBarHeight,
  564. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  565. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  566. // 屏幕宽度 - 胶囊right
  567. right: this.systeminfo.screenWidth - headerPosi.right
  568. }
  569. this.navbarHeight = headerPosi.bottom + btnPosi.bottom // 原胶囊bottom + 现胶囊bottom
  570. // 高度自适应
  571. uni.getSystemInfo({
  572. success: function(res) {
  573. let calc = res.windowHeight
  574. self.winHeight = calc
  575. }
  576. })
  577. },
  578. setHeaderBtnPosi() {
  579. // 获得胶囊按钮位置信息
  580. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  581. return headerBtnPosi
  582. },
  583. setSysteminfo() {
  584. let systeminfo
  585. uni.getSystemInfo({
  586. // 获取设备信息
  587. success: res => {
  588. systeminfo = res
  589. }
  590. })
  591. return systeminfo
  592. }
  593. },
  594. onPageScroll(e) {
  595. this.scrollTop = e.scrollTop
  596. },
  597. onShow() {
  598. this.isModalLayer = false
  599. }
  600. }
  601. </script>
  602. <style lang="scss">
  603. page {
  604. background-color: #ffffff;
  605. }
  606. /*tabbar start*/
  607. ::-webkit-scrollbar {
  608. width: 0;
  609. height: 0;
  610. color: transparent;
  611. }
  612. .order-section-top {
  613. width: 100%;
  614. position: fixed;
  615. top: 0;
  616. left: 0;
  617. z-index: 99;
  618. background: #ffffff;
  619. }
  620. .tab-view::before {
  621. content: '';
  622. position: absolute;
  623. border-bottom: 1rpx solid #eaeef1;
  624. -webkit-transform: scaleY(0.5);
  625. transform: scaleY(0.5);
  626. bottom: 0;
  627. right: 0;
  628. left: 0;
  629. }
  630. .tab-view {
  631. width: 100%;
  632. height: 80rpx;
  633. overflow: hidden;
  634. box-sizing: border-box;
  635. background: #fff;
  636. white-space: nowrap;
  637. border-top: 1px solid #f7f7f7;
  638. }
  639. .tab-bar-item {
  640. padding: 0;
  641. height: 80rpx;
  642. min-width: 80rpx;
  643. line-height: 80rpx;
  644. margin: 0 28rpx;
  645. display: inline-block;
  646. text-align: center;
  647. box-sizing: border-box;
  648. &.active {
  649. border-bottom: 6rpx solid $color-system;
  650. }
  651. .tab-bar-title {
  652. height: 80rpx;
  653. line-height: 80rpx;
  654. font-size: $font-size-28;
  655. color: $text-color;
  656. }
  657. &.active .tab-bar-title {
  658. color: $color-system !important;
  659. }
  660. }
  661. .container {
  662. padding-bottom: env(safe-area-inset-bottom);
  663. height: auto;
  664. position: relative;
  665. }
  666. .tui-order-content {
  667. width: 100%;
  668. height: auto;
  669. background-color: #F7F7F7;
  670. }
  671. .tui-order-list {
  672. width: 100%;
  673. position: relative;
  674. }
  675. .tui-order-item {
  676. display: flex;
  677. flex-direction: column;
  678. width: 702rpx;
  679. padding: 0rpx 20rpx;
  680. background: #fff;
  681. margin-bottom: 20rpx;
  682. }
  683. .order-title {
  684. width: 100%;
  685. height: auto;
  686. .order-title-name {
  687. width: 100%;
  688. height: 72rpx;
  689. border-bottom: 1px solid #f7f7f7;
  690. line-height: 72rpx;
  691. text-align: left;
  692. font-size: $font-size-28;
  693. color: #333333;
  694. .tags {
  695. display: inline-block;
  696. width: 60rpx;
  697. height: 32rpx;
  698. border-radius: 16rpx 0;
  699. background: #f0cb72;
  700. font-size: $font-size-22;
  701. color: #4e4539;
  702. text-align: center;
  703. line-height: 32rpx;
  704. margin-left: 10rpx;
  705. &.sv {
  706. background: #333333;
  707. color: #f0cb72;
  708. }
  709. }
  710. .name {
  711. float: right;
  712. font-size: 26rpx;
  713. color: #999999;
  714. }
  715. }
  716. .order-title-t {
  717. width: 100%;
  718. height: 68rpx;
  719. float: left;
  720. line-height: 68rpx;
  721. position: relative;
  722. .bage-icon {
  723. width: 50rpx;
  724. height: 50rpx;
  725. display: block;
  726. position: absolute;
  727. right: 110rpx;
  728. top: 12rpx;
  729. }
  730. .bage{
  731. display: inline-block;
  732. width: 72rpx;
  733. height: 32rpx;
  734. margin: 19rpx 10rpx 0 10rpx;
  735. border-radius: 4rpx;
  736. line-height: 32rpx;
  737. font-size: $font-size-22;
  738. text-align: center;
  739. color: #ffffff;
  740. float: left;
  741. &.buss{
  742. background: rgb(223, 240, 255);
  743. color: rgb(126, 172, 213);
  744. padding: 0 6rpx;
  745. }
  746. &.auto{
  747. background: #7fba4f;
  748. color: #ffffff;
  749. }
  750. &.ebate{
  751. background: #ff7a51;
  752. }
  753. }
  754. .order-title-tip {
  755. float: left;
  756. font-size: $font-size-28;
  757. line-height: 68rpx;
  758. text-align: right;
  759. color: #ff2a2a;
  760. }
  761. }
  762. .order-title-b {
  763. width: 100%;
  764. height: 40rpx;
  765. float: left;
  766. margin-top: 8rpx;
  767. .order-title-btxt {
  768. float: left;
  769. font-size: $font-size-28;
  770. line-height: 40rpx;
  771. color: #999999;
  772. text-align: left;
  773. &.num{
  774. color: #333333;
  775. }
  776. }
  777. }
  778. }
  779. .goods-title {
  780. width: 100%;
  781. height: 56rpx;
  782. float: left;
  783. margin-top: 10rpx;
  784. .floor-item-act {
  785. height: 56rpx;
  786. text-align: center;
  787. box-sizing: border-box;
  788. float: left;
  789. padding: 10rpx 0;
  790. margin-right: 12rpx;
  791. }
  792. .title-text {
  793. width: 400rpx;
  794. overflow: hidden;
  795. text-overflow: ellipsis;
  796. white-space: nowrap;
  797. float: left;
  798. font-size: $font-size-28;
  799. color: $text-color;
  800. text-align: left;
  801. line-height: 56rpx;
  802. font-weight: bold;
  803. }
  804. }
  805. .goods-item {
  806. width: 100%;
  807. height: auto;
  808. }
  809. .goods-pros-t {
  810. width: 100%;
  811. height: auto;
  812. padding: 24rpx 0;
  813. .pros-img {
  814. float: left;
  815. width: 180rpx;
  816. height: 100%;
  817. border-radius: 10rpx;
  818. margin: 0 20rpx 0 0;
  819. position: relative;
  820. .tips {
  821. display: inline-block;
  822. width: 80rpx;
  823. height: 40rpx;
  824. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  825. line-height: 40rpx;
  826. text-align: center;
  827. font-size: $font-size-24;
  828. color: #ffffff;
  829. border-radius: 10rpx 0 10rpx 0;
  830. position: absolute;
  831. top: 0;
  832. left: 0;
  833. }
  834. image {
  835. width: 178rpx;
  836. height: 178rpx;
  837. border-radius: 10rpx;
  838. border: 1px solid #f3f3f3;
  839. }
  840. }
  841. }
  842. .pros-product {
  843. width: 460rpx;
  844. height: 100%;
  845. line-height: 36rpx;
  846. font-size: $font-size-26;
  847. position: relative;
  848. float: left;
  849. .producttitle {
  850. width: 100%;
  851. display: inline-block;
  852. height: auto;
  853. text-overflow: ellipsis;
  854. display: -webkit-box;
  855. word-break: break-all;
  856. -webkit-box-orient: vertical;
  857. -webkit-line-clamp: 2;
  858. overflow: hidden;
  859. margin-bottom: 8rpx;
  860. }
  861. .productspec {
  862. height: 36rpx;
  863. color: #999999;
  864. text-overflow: ellipsis;
  865. display: -webkit-box;
  866. word-break: break-all;
  867. -webkit-box-orient: vertical;
  868. -webkit-line-clamp: 1;
  869. overflow: hidden;
  870. }
  871. .productprice {
  872. height: 48rpx;
  873. width: 100%;
  874. float: left;
  875. .price {
  876. line-height: 48rpx;
  877. font-size: $font-size-28;
  878. width: 48%;
  879. color: #ff2a2a;
  880. float: left;
  881. font-weight: bold;
  882. &.none {
  883. text-decoration: line-through;
  884. color: #999999;
  885. }
  886. }
  887. .count {
  888. height: 100%;
  889. float: right;
  890. position: relative;
  891. .small {
  892. color: #666666;
  893. }
  894. }
  895. }
  896. .floor-item-act {
  897. width: 100%;
  898. height: 56rpx;
  899. text-align: center;
  900. box-sizing: border-box;
  901. float: left;
  902. padding: 0 0 10rpx 0;
  903. }
  904. }
  905. .order-footer {
  906. width: 100%;
  907. height: 78rpx;
  908. float: left;
  909. .order-footer-top {
  910. width: 100%;
  911. height: 34rpx;
  912. line-height: 34rpx;
  913. font-size: $font-size-24;
  914. color: #999999;
  915. text-align: right;
  916. }
  917. .order-footer-bot {
  918. width: 100%;
  919. float: left;
  920. height: 48rpx;
  921. line-height: 48rpx;
  922. font-size: $font-size-28;
  923. font-weight: bold;
  924. color: $text-color;
  925. .count {
  926. width: 50%;
  927. float: left;
  928. text-align: left;
  929. }
  930. .money {
  931. width: 50%;
  932. float: right;
  933. text-align: right;
  934. }
  935. }
  936. }
  937. .aganBj {
  938. position: fixed;
  939. left: 0;
  940. top: 0;
  941. bottom: 0;
  942. width: 100%;
  943. height: 100%;
  944. background-color: rgba(0, 0, 0, 0.5);
  945. z-index: 999999;
  946. .alertAgan {
  947. position: absolute;
  948. top: 50%;
  949. left: 50%;
  950. transform: translate(-50%, -50%);
  951. width: 580rpx;
  952. background-color: #fff;
  953. border-radius: 16rpx;
  954. .title {
  955. font-size: 30rpx;
  956. color: #333333;
  957. line-height: 42rpx;
  958. padding: 30rpx;
  959. display: block;
  960. }
  961. .goods {
  962. padding: 0 30rpx;
  963. .list {
  964. padding: 10px 0;
  965. border-bottom: 1rpx solid #e1e1e1;
  966. margin: 10rpx 0;
  967. .image-left {
  968. width: 86rpx;
  969. height: 86rpx;
  970. border: 2rpx solid #e1e1e1;
  971. border-radius: 6rpx;
  972. display: inline-block;
  973. vertical-align: middle;
  974. }
  975. .name-right {
  976. display: inline-block;
  977. width: 416rpx;
  978. margin-left: 15rpx;
  979. font-size: 26rpx;
  980. color: #666666;
  981. vertical-align: middle;
  982. word-break: break-all;
  983. overflow: hidden;
  984. text-overflow: ellipsis;
  985. display: -webkit-inline-box;
  986. -webkit-line-clamp: 2;
  987. -webkit-box-orient: vertical;
  988. }
  989. }
  990. }
  991. .BtnAll {
  992. margin-top: 30rpx;
  993. .btn {
  994. display: inline-block;
  995. width: 290rpx;
  996. height: 90rpx;
  997. line-height: 90rpx;
  998. text-align: center;
  999. &.closebtn {
  1000. border-radius: 0px 0px 0px 10px;
  1001. color: #999999;
  1002. background: #efefef;
  1003. }
  1004. &.cancel {
  1005. border-radius: 0px 0px 8px 0px;
  1006. background: $btn-confirm;
  1007. color: #fff;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. }
  1013. </style>