order-list.vue 25 KB

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