order-club-list.vue 23 KB

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