order-list.vue 25 KB

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