order-historylist.vue 24 KB

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