order-historylist.vue 24 KB

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