order-team-list.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016
  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 24rpx 0 24rpx;
  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: 16rpx 0;
  736. line-height: 32rpx;
  737. font-size: $font-size-22;
  738. text-align: center;
  739. color: #ffffff;
  740. float: left;
  741. &.buss{
  742. background: radial-gradient(circle, rgba(255, 39, 180, 1) 0%, rgba(193, 77, 245, 1) 100%);
  743. }
  744. &.auto{
  745. background: #7fba4f;
  746. color: #ffffff;
  747. }
  748. &.ebate{
  749. background: #ff7a51;
  750. }
  751. }
  752. .order-title-tip {
  753. float: left;
  754. font-size: $font-size-28;
  755. line-height: 68rpx;
  756. text-align: right;
  757. color: #ff2a2a;
  758. }
  759. }
  760. .order-title-b {
  761. width: 100%;
  762. height: 40rpx;
  763. float: left;
  764. margin-top: 8rpx;
  765. .order-title-btxt {
  766. float: left;
  767. font-size: $font-size-28;
  768. line-height: 40rpx;
  769. color: #999999;
  770. text-align: left;
  771. &.num{
  772. color: #333333;
  773. }
  774. }
  775. }
  776. }
  777. .goods-title {
  778. width: 100%;
  779. height: 56rpx;
  780. float: left;
  781. margin-top: 10rpx;
  782. .floor-item-act {
  783. height: 56rpx;
  784. text-align: center;
  785. box-sizing: border-box;
  786. float: left;
  787. padding: 10rpx 0;
  788. margin-right: 12rpx;
  789. }
  790. .title-text {
  791. width: 400rpx;
  792. overflow: hidden;
  793. text-overflow: ellipsis;
  794. white-space: nowrap;
  795. float: left;
  796. font-size: $font-size-28;
  797. color: $text-color;
  798. text-align: left;
  799. line-height: 56rpx;
  800. font-weight: bold;
  801. }
  802. }
  803. .goods-item {
  804. width: 100%;
  805. height: auto;
  806. }
  807. .goods-pros-t {
  808. width: 100%;
  809. height: auto;
  810. padding: 24rpx 0;
  811. .pros-img {
  812. float: left;
  813. width: 180rpx;
  814. height: 100%;
  815. border-radius: 10rpx;
  816. margin: 0 20rpx 0 0;
  817. position: relative;
  818. .tips {
  819. display: inline-block;
  820. width: 80rpx;
  821. height: 40rpx;
  822. background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
  823. line-height: 40rpx;
  824. text-align: center;
  825. font-size: $font-size-24;
  826. color: #ffffff;
  827. border-radius: 10rpx 0 10rpx 0;
  828. position: absolute;
  829. top: 0;
  830. left: 0;
  831. }
  832. image {
  833. width: 178rpx;
  834. height: 178rpx;
  835. border-radius: 10rpx;
  836. border: 1px solid #f3f3f3;
  837. }
  838. }
  839. }
  840. .pros-product {
  841. width: 460rpx;
  842. height: 100%;
  843. line-height: 36rpx;
  844. font-size: $font-size-26;
  845. position: relative;
  846. float: left;
  847. .producttitle {
  848. width: 100%;
  849. display: inline-block;
  850. height: auto;
  851. text-overflow: ellipsis;
  852. display: -webkit-box;
  853. word-break: break-all;
  854. -webkit-box-orient: vertical;
  855. -webkit-line-clamp: 2;
  856. overflow: hidden;
  857. margin-bottom: 8rpx;
  858. }
  859. .productspec {
  860. height: 36rpx;
  861. color: #999999;
  862. text-overflow: ellipsis;
  863. display: -webkit-box;
  864. word-break: break-all;
  865. -webkit-box-orient: vertical;
  866. -webkit-line-clamp: 1;
  867. overflow: hidden;
  868. }
  869. .productprice {
  870. height: 48rpx;
  871. width: 100%;
  872. float: left;
  873. .price {
  874. line-height: 48rpx;
  875. font-size: $font-size-28;
  876. width: 48%;
  877. color: #ff2a2a;
  878. float: left;
  879. font-weight: bold;
  880. &.none {
  881. text-decoration: line-through;
  882. color: #999999;
  883. }
  884. }
  885. .count {
  886. height: 100%;
  887. float: right;
  888. position: relative;
  889. .small {
  890. color: #666666;
  891. }
  892. }
  893. }
  894. .floor-item-act {
  895. width: 100%;
  896. height: 56rpx;
  897. text-align: center;
  898. box-sizing: border-box;
  899. float: left;
  900. padding: 0 0 10rpx 0;
  901. }
  902. }
  903. .order-footer {
  904. width: 100%;
  905. height: 78rpx;
  906. float: left;
  907. .order-footer-top {
  908. width: 100%;
  909. height: 34rpx;
  910. line-height: 34rpx;
  911. font-size: $font-size-24;
  912. color: #999999;
  913. text-align: right;
  914. }
  915. .order-footer-bot {
  916. width: 100%;
  917. float: left;
  918. height: 48rpx;
  919. line-height: 48rpx;
  920. font-size: $font-size-28;
  921. font-weight: bold;
  922. color: $text-color;
  923. .count {
  924. width: 50%;
  925. float: left;
  926. text-align: left;
  927. }
  928. .money {
  929. width: 50%;
  930. float: right;
  931. text-align: right;
  932. }
  933. }
  934. }
  935. .aganBj {
  936. position: fixed;
  937. left: 0;
  938. top: 0;
  939. bottom: 0;
  940. width: 100%;
  941. height: 100%;
  942. background-color: rgba(0, 0, 0, 0.5);
  943. z-index: 999999;
  944. .alertAgan {
  945. position: absolute;
  946. top: 50%;
  947. left: 50%;
  948. transform: translate(-50%, -50%);
  949. width: 580rpx;
  950. background-color: #fff;
  951. border-radius: 16rpx;
  952. .title {
  953. font-size: 30rpx;
  954. color: #333333;
  955. line-height: 42rpx;
  956. padding: 30rpx;
  957. display: block;
  958. }
  959. .goods {
  960. padding: 0 30rpx;
  961. .list {
  962. padding: 10px 0;
  963. border-bottom: 1rpx solid #e1e1e1;
  964. margin: 10rpx 0;
  965. .image-left {
  966. width: 86rpx;
  967. height: 86rpx;
  968. border: 2rpx solid #e1e1e1;
  969. border-radius: 6rpx;
  970. display: inline-block;
  971. vertical-align: middle;
  972. }
  973. .name-right {
  974. display: inline-block;
  975. width: 416rpx;
  976. margin-left: 15rpx;
  977. font-size: 26rpx;
  978. color: #666666;
  979. vertical-align: middle;
  980. word-break: break-all;
  981. overflow: hidden;
  982. text-overflow: ellipsis;
  983. display: -webkit-inline-box;
  984. -webkit-line-clamp: 2;
  985. -webkit-box-orient: vertical;
  986. }
  987. }
  988. }
  989. .BtnAll {
  990. margin-top: 30rpx;
  991. .btn {
  992. display: inline-block;
  993. width: 290rpx;
  994. height: 90rpx;
  995. line-height: 90rpx;
  996. text-align: center;
  997. &.closebtn {
  998. border-radius: 0px 0px 0px 10px;
  999. color: #999999;
  1000. background: #efefef;
  1001. }
  1002. &.cancel {
  1003. border-radius: 0px 0px 8px 0px;
  1004. background: $btn-confirm;
  1005. color: #fff;
  1006. }
  1007. }
  1008. }
  1009. }
  1010. }
  1011. </style>