order-confirm.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  1. <template>
  2. <view class="container order clearfix" :style="{ paddingBottom: isIphoneX ? '190rpx' : '134rpx' }">
  3. <!-- 地址选择 -->
  4. <cm-address-temp ref="choiceAddress" v-if="isRequest" :addressData="addressData" />
  5. <!-- 商品 -->
  6. <cm-goods-temp
  7. ref="goods"
  8. v-if="isRequest"
  9. :secondflag="secondflag"
  10. :goodsData.sync="goodsData"
  11. @handleGoodList="handChangeInputGoodsList"
  12. @changeChina="handleChangeChina"
  13. @changePostage="handleChangePostage"
  14. />
  15. <!-- 发票信息 -->
  16. <cm-invice-popup
  17. ref="invoice"
  18. v-if="isRequest"
  19. :invoiceDatas="invoiceData"
  20. @handleChoiceaInvoice="handleChoiceaInvoiceData"
  21. />
  22. <!-- 底部 -->
  23. <view class="footer" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }">
  24. <view class="footer-le">
  25. <view class="footer-count">
  26. <text>共{{ totalCount }}件商品</text>
  27. </view>
  28. <view class="footer-price">
  29. <view class="sum" :class="totalDiscountAmount == 0 ? 'none' : ''">
  30. 总价:<text class="price">¥{{ orderShouldPayFee | NumFormat }}</text>
  31. </view>
  32. <view class="sum-none" v-if="totalDiscountAmount > 0">
  33. <text class="money-reduced"
  34. >共减<text>¥{{ totalDiscountAmount | NumFormat }}</text></text
  35. >
  36. </view>
  37. </view>
  38. </view>
  39. <view class="footer-submit" @click.stop="orderSubmitMit">
  40. <view class="btn" :class="isSubLoading ? 'disabled' : ''">提交订单</view>
  41. </view>
  42. </view>
  43. <!-- 弹窗提示 -->
  44. <tui-modal
  45. :show="modal"
  46. @click="handleClick"
  47. @cancel="hideMobel"
  48. :content="contentModalText"
  49. :button="modalButton"
  50. color="#333"
  51. :size="32"
  52. shape="circle"
  53. :maskClosable="false"
  54. >
  55. </tui-modal>
  56. </view>
  57. </template>
  58. <script>
  59. import cmAddressTemp from './components/cm-address-temp'
  60. import cmGoodsTemp from './components/cm-goods-temp'
  61. import cmInvicePopup from './components/cm-invice-popup'
  62. import conMixins from './mixins/conMixins.js'
  63. export default {
  64. mixins: [conMixins],
  65. components: {
  66. cmAddressTemp,
  67. cmGoodsTemp,
  68. cmInvicePopup
  69. },
  70. data() {
  71. return {
  72. isSubLoading: false,
  73. modalButton: [
  74. {
  75. text: '再想一想',
  76. type: 'gray',
  77. plain: true //是否空心
  78. },
  79. {
  80. text: '继续提交',
  81. customStyle: {
  82. color: '#fff',
  83. bgColor: 'linear-gradient(90deg, #F28F31 0%, #FF5B00 100%)'
  84. },
  85. plain: false
  86. }
  87. ],
  88. contentModalText: '', //操作文字提示语句
  89. modal: false,
  90. showModalstauts: 1,
  91. isIphoneX: this.$store.state.isIphoneX,
  92. confirmParam: {
  93. // 提交订单参数
  94. cartType: 3, // 购买类型:(1自主下单, 3协销下单)
  95. orderMiniType: 0, // 订单提交状态 0初始提交 1 继续提交
  96. orderSource: 6, // 订单来源 1WWW 6小程序[采美,星范]
  97. addressId: 0, // 收货地址Id
  98. clubCouponId: 0, // 关联优惠券Id
  99. clubId: 0, // 机构Id
  100. orderInfo: [], // 订单商品数据
  101. orderInvoice: { type: 0 }, // 订单发票信息
  102. orderSeen: 1, // 订单对机构可见度 1可见 2不可见
  103. payInfo: {
  104. // 订单金额数据
  105. orderShouldPayFee: 0, // 订单最终支付金额
  106. balancePayFlag: 0, // 勾选余额的状态(1使用,0不使用)
  107. clauseId: 0, // 条款Id
  108. postage: 0, // 运费金额
  109. postageFlag: 0, // 运费类型
  110. userBeans: 0, // 抵扣采美豆数量
  111. rebateFee: 0, // 返佣服务费
  112. rebateFlag: 0 // 是否返佣订单
  113. },
  114. unionId: uni.getStorageSync('unionId') // 用户unionId
  115. },
  116. rebateFee: '',
  117. rebateFeeText: '否',
  118. confirmType: 1,
  119. submitState: '', // 提交状态
  120. isRequest: false, // 是否加载完成渲染子组件
  121. isFreight: false, // 是否加载完成渲染子组件
  122. isExchangePopup: false, // 控制兑换优惠券弹窗
  123. isfreightTip: false, // 控制邮费弹窗
  124. ischecked: false, // 是否勾选余额
  125. addressData: {}, // 初始化地址信息
  126. goodsData: [], // 初始化商品信息
  127. couponList: [], // 初始化优惠券信息
  128. invoiceData: { type: 0 }, // 初始化发票信息
  129. orderInfo: [], // 提交的商品信息
  130. payInfo: {}, // 订单信息
  131. rechargeGoods: false,
  132. clauseList: [],
  133. seconDepositFlg: true,
  134. rebatecheck: false,
  135. isCouponShow: false, // 是否显示可选优惠券
  136. secondflag: true,
  137. isCouponModel: false, // 兑换优惠券成功提示
  138. ExchangeCouponData: {} // 兑换优惠券信息
  139. }
  140. },
  141. onLoad(option) {
  142. //商品数据
  143. this.initStorage(option)
  144. },
  145. filters: {
  146. NumFormat(value) {
  147. //处理金额
  148. return Number(value).toFixed(2)
  149. }
  150. },
  151. methods: {
  152. async initStorage(option) {
  153. const data = JSON.parse(option.data)
  154. const clubInfo = await this.$api.getComStorage('orderUserInfo')
  155. const userInfo = await this.$api.getStorage()
  156. this.handleComType = option.type * 1
  157. this.productParam.clubId = this.cartParam.clubId = this.confirmParam.clubId = clubInfo.clubId
  158. this.productParam.serviceProviderId = userInfo.serviceProviderId
  159. this.cartParam.serviceProviderId = userInfo.serviceProviderId
  160. this.confirmParam.serviceProviderId = userInfo.serviceProviderId
  161. if (option.type == '1') {
  162. this.confirmType = 1
  163. this.productParam.productCount = data.data.productCount
  164. this.productParam.productId = data.data.productIds
  165. this.getAddressData(clubInfo.userId, 1)
  166. } else {
  167. this.confirmType = 2
  168. this.cartParam.skuIds = data.data.skuIds
  169. this.getAddressData(clubInfo.userId, 2)
  170. }
  171. },
  172. //协销购物车跳转确认订单初始化信息
  173. async getInitCrearOrder() {
  174. try {
  175. const res = await this.SellerService.SellerSettlement(this.cartParam)
  176. const data = res.data
  177. this.goodsData = data.list.map(el => {
  178. el.handlePostageFlag = el.postageFlag
  179. return el
  180. })
  181. this.userMoney = data.userMoney
  182. this.couponList = data.couponList
  183. this.reducedPrice = data.reducedPrice
  184. this.totalCount = data.totalCount
  185. this.allPrice = data.totalPrice
  186. this.rechargeGoods = data.includeRecharge
  187. this.clauseList = data.clauseList
  188. this.isCouponShow = true
  189. if (this.couponList.length > 0) {
  190. this.couponAmount = data.couponList[0].couponAmount
  191. this.confirmParam.clubCouponId = data.couponList[0].clubCouponId
  192. }
  193. this.orderShouldPayFee = this.allPrice - this.couponAmount
  194. this.isRequest = true
  195. } catch (error) {
  196. console.log('获取订单信息异常')
  197. }
  198. },
  199. //二手下单初始化查询
  200. async getInitProdcutCrearOrder() {
  201. try {
  202. this.seconDepositFlg = false
  203. const res = await this.SellerService.GetSettlementBySencondProduct(this.productParam)
  204. const data = res.data
  205. this.goodsData = data.list.map(el => {
  206. el.handlePostageFlag = el.postageFlag
  207. return el
  208. })
  209. this.userMoney = data.userMoney
  210. this.totalCount = data.totalCount
  211. this.allPrice = data.totalPrice
  212. this.orderShouldPayFee = this.allPrice
  213. this.isCouponShow = false
  214. this.secondflag = false
  215. this.isRequest = true
  216. } catch (error) {
  217. console.log('获取订单信息异常')
  218. }
  219. },
  220. //获取地址信息
  221. async getAddressData(userId, type) {
  222. try {
  223. const params = { pageNum: 1, pageSize: 1, userId: userId }
  224. const res = await this.UserService.QueryAddressList(params)
  225. const data = res.data
  226. if (data.list && data.list.length > 0) {
  227. this.addressData = data.list[0]
  228. this.confirmParam.addressId = this.addressData.addressId
  229. this.cartParam.townId = this.addressData.townId
  230. this.productParam.townId = this.addressData.townId
  231. }
  232. if (type === 1) {
  233. //立即都买提交
  234. this.getInitProdcutCrearOrder()
  235. }
  236. if (type === 2) {
  237. //购物车提交
  238. this.getInitCrearOrder()
  239. }
  240. } catch (error) {
  241. console.log('获取订单地址异常')
  242. }
  243. },
  244. handChangeInputGoodsList(data) {
  245. //对应供应商的留言信息
  246. this.goodsData = data
  247. },
  248. handleChoiceaInvoiceData(data) {
  249. //获取发票信息
  250. this.confirmParam.orderInvoice = data
  251. },
  252. handleClauseData(clauseId) {
  253. // 条款Id
  254. this.confirmParam.payInfo.clauseId = parseInt(clauseId)
  255. },
  256. handleChoiceaCouponData(data) {
  257. // 勾选使用优惠券
  258. console.log('优惠券信息', data)
  259. this.couponAmount = data.couponAmount
  260. this.totalDiscountAmount = this.reducedPrice + this.couponAmount
  261. this.confirmParam.clubCouponId = data.clubCouponId
  262. this.attributePallPrice()
  263. },
  264. handleClubVisibleData(data) {
  265. // 订单对机构是否可见
  266. console.log('对机构是否可见', data)
  267. this.confirmParam.orderSeen = Number(data)
  268. },
  269. orderSubmitMit() {
  270. //提交订单
  271. if (this.confirmParam.addressId == '') {
  272. this.$util.msg('请先添加收货地址~', 2000)
  273. return
  274. }
  275. this.SellerCreateOrderSubmit()
  276. // if (this.confirmParam.payInfo.rebateFlag === 2) {
  277. // if (this.rebateFee == 0) {
  278. // this.$util.msg('请输入返佣服务费', 2000)
  279. // return
  280. // }
  281. // this.confirmParam.payInfo.rebateFee = Number(this.rebateFee).toFixed(2)
  282. // }
  283. // this.modal = true
  284. // this.contentModalText = '请仔细确认订单是否为返佣订单后再提交订单'
  285. },
  286. SellerCreateOrderSubmit() {
  287. //提交订单
  288. if (this.isSubLoading) {
  289. return
  290. }
  291. this.confirmParam.orderInfo = this.goodsData.map(el => {
  292. let productInfo = []
  293. el.cartList.forEach(pros => {
  294. productInfo.push({
  295. skuId: pros.skuId,
  296. productNum: pros.number,
  297. presentNum: 0,
  298. productType: pros.giftType
  299. })
  300. })
  301. return {
  302. splitCode: el.splitCode,
  303. shopId: el.shopId,
  304. note: el.note ? el.note : '',
  305. postage: parseInt(el.postage).toFixed(2),
  306. postageFlag: parseInt(el.handlePostageFlag),
  307. isColdChina: el.isColdChina ? 1 : 0,
  308. productInfo: productInfo
  309. }
  310. })
  311. this.confirmParam.payInfo.orderShouldPayFee = this.orderShouldPayFee.toFixed(2)
  312. this.confirmParam.payInfo = JSON.stringify(this.confirmParam.payInfo)
  313. this.confirmParam.orderInfo = JSON.stringify(this.confirmParam.orderInfo)
  314. this.confirmParam.orderInvoice = JSON.stringify(this.confirmParam.orderInvoice)
  315. this.isSubLoading = true
  316. this.hanldeOrderSubmit(this.confirmParam)
  317. },
  318. // 提交订单
  319. async hanldeOrderSubmit(params) {
  320. try {
  321. const res = await this.SellerService.SellerCreateOrderSubmit(params)
  322. const data = res.data
  323. if (data.code === 1) {
  324. this.$util.msg('支付成功', 2000, true, 'success')
  325. setTimeout(() => {
  326. this.isSubLoading = false
  327. this.$api.redirectTo('/pages/seller/order/order-list?listType=0')
  328. }, 2000)
  329. } else {
  330. this.$util.msg('订单提交成功', 2000, true, 'success')
  331. setTimeout(() => {
  332. this.isSubLoading = false
  333. this.$api.redirectTo('/pages/seller/order/order-list?listType=0')
  334. }, 2000)
  335. }
  336. } catch (error) {
  337. this.isSubLoading = false
  338. this.handleError(error)
  339. }
  340. },
  341. handleError(data) {
  342. // 提交订单异常处理
  343. this.formatConfirmParam()
  344. const buttonMap = {
  345. 1: {
  346. contentModalText:
  347. '订单内存在械字号三类商品,需要拥有医疗执业许可证的医美机构才能购买。建议升级医美机构后再下单,否则会导致订单退款或影响发货。',
  348. modalButton: [
  349. { text: '取消', type: 'gray', plain: true },
  350. {
  351. text: '继续提交',
  352. customStyle: { color: '#fff', bgColor: 'linear-gradient(90deg, #F28F31 0%, #FF5B00 100%)' },
  353. plain: false
  354. }
  355. ]
  356. }
  357. }
  358. if (data.code === -6) {
  359. // 非医美机构下三类商品订单
  360. this.modal = true
  361. this.showModalstauts = 2
  362. this.contentModalText = buttonMap[1].contentModalText
  363. this.modalButton = buttonMap[1].modalButton
  364. } else {
  365. this.$util.msg(data.msg, 3000)
  366. }
  367. },
  368. formatConfirmParam() {
  369. // 还原提交订单参数格式
  370. this.confirmParam.payInfo = JSON.parse(this.confirmParam.payInfo)
  371. this.confirmParam.orderInfo = JSON.parse(this.confirmParam.orderInfo)
  372. this.confirmParam.orderInvoice = JSON.parse(this.confirmParam.orderInvoice)
  373. },
  374. handleRebateFlag() {
  375. // 普通订单返佣
  376. let self = this
  377. uni.showActionSheet({
  378. itemList: ['返佣订单', '普通订单,存在返佣服务费', '否'],
  379. success: e => {
  380. switch (e.tapIndex) {
  381. case 0:
  382. self.confirmParam.payInfo.rebateFlag = 1
  383. self.rebateFeeText = '返佣订单'
  384. break
  385. case 1:
  386. self.confirmParam.payInfo.rebateFlag = 2
  387. self.rebateFeeText = '普通订单,存在返佣服务费'
  388. break
  389. case 2:
  390. self.confirmParam.payInfo.rebateFlag = 0
  391. self.rebateFeeText = '否'
  392. break
  393. }
  394. }
  395. })
  396. if (this.confirmParam.payInfo.rebateFlag === 1) {
  397. this.confirmParam.payInfo.balancePayFlag = 0
  398. this.couponAmount = 0
  399. this.confirmParam.clubCouponId = 0
  400. this.confirmParam.orderSeen = 2
  401. this.$refs.clubVisible.orderVisibleText = '不可见'
  402. this.$refs.clubVisible.current = 1
  403. this.orderShouldPayFee = this.allPrice + parseInt(this.freightData.postage) - this.couponAmount
  404. this.totalDiscountAmount = this.reducedPrice + this.couponAmount
  405. this.$refs.coupon.coupon.couponAmount = 0
  406. this.$refs.freight.infoData(this.freightData)
  407. this.$refs.freight.freightData = this.freightData
  408. this.handleFreightData = this.freightData
  409. } else {
  410. this.confirmParam.orderSeen = 1
  411. this.$refs.clubVisible.orderVisibleText = '可见'
  412. if (this.couponList.length > 0) {
  413. this.confirmParam.clubCouponId = this.couponList[0].clubCouponId
  414. this.$refs.coupon.coupon.couponAmount = this.couponAmount = this.couponList[0].couponAmount
  415. }
  416. this.totalDiscountAmount = this.reducedPrice + this.couponAmount
  417. this.orderShouldPayFee = this.allPrice + parseInt(this.freightData.postage) - this.couponAmount
  418. }
  419. },
  420. handleClick(e) {
  421. //确认提交
  422. if (e.index == 1) {
  423. if (this.showModalstauts == 2) {
  424. this.confirmParam.orderMiniType = 2
  425. this.SellerCreateOrderSubmit()
  426. } else {
  427. this.SellerCreateOrderSubmit()
  428. }
  429. }
  430. this.confirmParam.orderMiniType = 0
  431. this.modal = false
  432. },
  433. handleSecondFlag() {
  434. // 二手订单勾选返佣
  435. this.rebatecheck = !this.rebatecheck
  436. if (this.rebatecheck) {
  437. this.ischecked = false
  438. this.confirmParam.payInfo.rebateFlag = 1
  439. this.confirmParam.payInfo.balancePayFlag = 0
  440. this.confirmParam.clubCouponId = 0
  441. this.confirmParam.orderSeen = 2
  442. this.$refs.clubVisible.orderVisibleText = '不可见'
  443. this.$refs.clubVisible.current = 1
  444. this.orderShouldPayFee = this.allPrice + parseInt(this.freightData.postage)
  445. this.$refs.freight.infoData(this.freightData)
  446. this.$refs.freight.freightData = this.freightData
  447. this.handleFreightData = this.freightData
  448. } else {
  449. this.confirmParam.orderSeen = 1
  450. this.$refs.clubVisible.orderVisibleText = '可见'
  451. this.confirmParam.payInfo.rebateFlag = 0
  452. this.orderShouldPayFee = this.allPrice + parseInt(this.freightData.postage)
  453. }
  454. },
  455. handFreightAlertShow() {
  456. //显示邮费弹窗
  457. this.isfreightTip = true
  458. },
  459. handleClickCancel() {
  460. // 关闭优惠券弹窗
  461. this.isCouponModel = false
  462. this.getInitCrearOrder()
  463. },
  464. hideFreight() {
  465. //关闭邮费弹窗
  466. this.isfreightTip = false
  467. },
  468. hideMobel() {
  469. this.modal = false
  470. }
  471. },
  472. onShow() {
  473. let pages = getCurrentPages()
  474. let currPage = pages[pages.length - 1]
  475. if (currPage.data.select == 'select') {
  476. let address = uni.getStorageSync('selectAddress')
  477. this.confirmParam.addressId = address.addressId
  478. this.cartParam.townId = address.townId
  479. this.productParam.townId = address.townId
  480. this.addressData = address
  481. this.ischecked = false
  482. this.isRequest = false
  483. if (this.handleComType === 1) {
  484. //立即都买提交
  485. this.getInitProdcutCrearOrder()
  486. }
  487. if (this.handleComType === 2) {
  488. //购物车提交
  489. this.getInitCrearOrder()
  490. }
  491. }
  492. }
  493. }
  494. </script>
  495. <style lang="scss">
  496. page {
  497. height: auto;
  498. background: #f7f7f7;
  499. }
  500. .btn-hover {
  501. background: #ffffff;
  502. }
  503. .animation {
  504. /* transition: transform 0.3s ease;*/
  505. transition-property: transform;
  506. transition-duration: 0.3s;
  507. transition-timing-function: ease;
  508. }
  509. .invoice-freight {
  510. width: 702rpx;
  511. padding: 0 24rpx;
  512. height: 86rpx;
  513. line-height: 86rpx;
  514. font-size: $font-size-28;
  515. color: $text-color;
  516. background: #ffffff;
  517. float: left;
  518. font-weight: bold;
  519. .freight-left {
  520. float: left;
  521. .icon-yunfeishuoming {
  522. height: 100%;
  523. padding: 0 15rpx;
  524. color: $color-system;
  525. font-weight: normal;
  526. }
  527. }
  528. .freight-right {
  529. float: right;
  530. color: #2a81ff;
  531. }
  532. }
  533. .invoice-balance {
  534. width: 702rpx;
  535. height: auto;
  536. padding: 0 24rpx;
  537. background: #ffffff;
  538. float: left;
  539. margin-top: 24rpx;
  540. margin-bottom: 24rpx;
  541. .balabce-t {
  542. width: 100%;
  543. height: 86rpx;
  544. line-height: 86rpx;
  545. font-size: $font-size-28;
  546. color: $text-color;
  547. float: left;
  548. .balabce-t-le {
  549. float: left;
  550. font-weight: bold;
  551. }
  552. .balabce-t-ri {
  553. float: right;
  554. display: flex;
  555. align-items: center;
  556. .money {
  557. display: flex;
  558. float: left;
  559. }
  560. .checkbox-box {
  561. display: flex;
  562. width: 60rpx;
  563. float: left;
  564. height: 100%;
  565. font-size: $font-size-24;
  566. .checkbox {
  567. width: 40rpx;
  568. text-align: right;
  569. box-sizing: border-box;
  570. text-align: center;
  571. text-decoration: none;
  572. border-radius: 0;
  573. -webkit-tap-highlight-color: transparent;
  574. overflow: hidden;
  575. color: $color-system;
  576. padding: 5rpx;
  577. }
  578. }
  579. }
  580. }
  581. .balabce-b {
  582. width: 100%;
  583. float: left;
  584. overflow: hidden;
  585. .balabce-b-text {
  586. width: 100%;
  587. line-height: 58rpx;
  588. font-size: $font-size-24;
  589. color: #ff2a2a;
  590. text-align: right;
  591. float: right;
  592. }
  593. &.balabce-b--hide {
  594. padding: 0 0;
  595. height: 0px;
  596. line-height: 0px;
  597. }
  598. }
  599. }
  600. .footer {
  601. position: fixed;
  602. left: 0;
  603. bottom: 0;
  604. display: flex;
  605. align-items: center;
  606. width: 100%;
  607. height: 110rpx;
  608. line-height: 110rpx;
  609. justify-content: space-between;
  610. font-size: $font-size-28;
  611. background-color: #ffffff;
  612. z-index: 990;
  613. color: $text-color;
  614. .footer-le {
  615. width: 570rpx;
  616. height: 100%;
  617. float: left;
  618. }
  619. .footer-count {
  620. float: left;
  621. padding-left: 24rpx;
  622. width: 190rpx;
  623. box-sizing: border-box;
  624. font-size: $font-size-26;
  625. }
  626. .footer-price {
  627. width: 370rpx;
  628. float: right;
  629. text-align: right;
  630. color: $text-color;
  631. padding: 10rpx 20rpx 10rpx 0;
  632. box-sizing: border-box;
  633. .sum-none {
  634. width: 100%;
  635. height: 45rpx;
  636. line-height: 45rpx;
  637. color: $text-color;
  638. float: left;
  639. text-align: right;
  640. .money {
  641. font-size: $font-size-26;
  642. color: #999999;
  643. text-decoration: line-through;
  644. }
  645. .money-sign {
  646. font-size: $font-size-26;
  647. color: #999999;
  648. text-decoration: line-through;
  649. }
  650. .money-reduced {
  651. margin-left: 10rpx;
  652. font-size: $font-size-26;
  653. color: $color-system;
  654. }
  655. }
  656. .sum {
  657. width: 100%;
  658. height: 45rpx;
  659. line-height: 45rpx;
  660. float: left;
  661. &.none {
  662. height: 90rpx;
  663. line-height: 90rpx;
  664. }
  665. .price {
  666. font-size: $font-size-32;
  667. color: #ff2a2a;
  668. }
  669. }
  670. }
  671. .footer-submit {
  672. display: flex;
  673. align-items: center;
  674. justify-content: center;
  675. width: 180rpx;
  676. height: 100%;
  677. box-sizing: border-box;
  678. padding: 15rpx 5rpx;
  679. .btn {
  680. width: 100%;
  681. height: 100%;
  682. color: #ffffff;
  683. background: $btn-confirm;
  684. font-size: $font-size-26;
  685. text-align: center;
  686. line-height: 80rpx;
  687. border-radius: 40rpx;
  688. &.disabled {
  689. background: #e4e8eb;
  690. color: #999999;
  691. }
  692. }
  693. }
  694. }
  695. .order-return {
  696. width: 100%;
  697. height: auto;
  698. box-sizing: border-box;
  699. padding: 0 24rpx;
  700. background: #ffffff;
  701. float: left;
  702. margin: 24rpx 0;
  703. .order-return-main {
  704. width: 100%;
  705. height: 86rpx;
  706. line-height: 86rpx;
  707. .label {
  708. float: left;
  709. font-weight: bold;
  710. color: #333333;
  711. font-size: $font-size-28;
  712. }
  713. .label-right {
  714. float: right;
  715. color: #2a81ff;
  716. .text-l {
  717. font-size: 28rpx;
  718. font-weight: bold;
  719. margin-right: 20rpx;
  720. }
  721. .icon-xiayibu {
  722. line-height: 88rpx;
  723. color: #999999;
  724. font-weight: normal;
  725. }
  726. }
  727. }
  728. .order-return-input {
  729. width: 100%;
  730. height: 86rpx;
  731. padding-bottom: 20rpx;
  732. box-sizing: border-box;
  733. .input {
  734. width: 100%;
  735. height: 66rpx;
  736. font-size: $font-size-26;
  737. border: 1px solid #e1e1e1;
  738. line-height: 66rpx;
  739. color: #333333;
  740. border-radius: 4rpx;
  741. box-sizing: border-box;
  742. padding: 0 20rpx;
  743. }
  744. }
  745. }
  746. .Rebate {
  747. width: 702rpx;
  748. height: auto;
  749. padding: 0 24rpx;
  750. background: #ffffff;
  751. float: left;
  752. margin-bottom: 24rpx;
  753. margin-top: 24rpx;
  754. line-height: 86rpx;
  755. .rebate-title {
  756. float: left;
  757. font-weight: bold;
  758. color: #333333;
  759. font-size: $font-size-28;
  760. }
  761. .iconfont {
  762. float: right;
  763. color: #b2b2b2;
  764. font-size: 40rpx;
  765. &.icon-yixuanze {
  766. color: $color-system;
  767. }
  768. }
  769. }
  770. .coupon-content-model {
  771. width: 100%;
  772. height: 100%;
  773. background: rgba(0, 0, 0, 0.5);
  774. position: fixed;
  775. top: 0;
  776. left: 0;
  777. z-index: 8888;
  778. transition: all 0.4s;
  779. .coupon-alert-content {
  780. width: 600rpx;
  781. height: 612rpx;
  782. position: absolute;
  783. top: 0;
  784. left: 0;
  785. bottom: 0;
  786. right: 0;
  787. margin: auto;
  788. box-sizing: border-box;
  789. padding-top: 92rpx;
  790. .coupon {
  791. width: 600rpx;
  792. height: 522rpx;
  793. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-alertbg@2x.png);
  794. background-size: cover;
  795. box-sizing: border-box;
  796. padding: 230rpx 40rpx 0 40rpx;
  797. .coupon-list {
  798. width: 100%;
  799. height: 147rpx;
  800. margin-bottom: 32rpx;
  801. box-sizing: border-box;
  802. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-bg@2x.png);
  803. background-size: cover;
  804. position: relative;
  805. .list-cell-tags {
  806. display: inline-block;
  807. padding: 0 10rpx;
  808. height: 32rpx;
  809. line-height: 32rpx;
  810. background-color: #f94b4b;
  811. color: #ffffff;
  812. font-size: 18rpx;
  813. border-radius: 16rpx 0 16rpx 0;
  814. text-align: center;
  815. position: absolute;
  816. top: 0;
  817. left: 0;
  818. }
  819. .list-cell-le {
  820. width: 154rpx;
  821. height: 100%;
  822. box-sizing: border-box;
  823. padding: 30rpx 0;
  824. float: left;
  825. .coupon-maxMoney {
  826. width: 100%;
  827. height: 54rpx;
  828. line-height: 54rpx;
  829. font-size: 42rpx;
  830. color: #f94b4b;
  831. text-align: center;
  832. margin-top: 10rpx;
  833. .small {
  834. font-size: $font-size-20;
  835. }
  836. }
  837. .coupon-minMoney {
  838. width: 100%;
  839. height: 28rpx;
  840. float: left;
  841. box-sizing: border-box;
  842. padding-left: 24rpx;
  843. .txt {
  844. display: block;
  845. height: 28rpx;
  846. line-height: 28rpx;
  847. font-size: 16rpx;
  848. color: #f94b4b;
  849. text-align: center;
  850. padding: 0 5rpx;
  851. background-color: #fff1eb;
  852. border-radius: 4rpx;
  853. float: left;
  854. }
  855. }
  856. }
  857. .list-cell-ri {
  858. width: 366rpx;
  859. height: 100%;
  860. box-sizing: border-box;
  861. padding: 30rpx 20rpx;
  862. float: left;
  863. .list-cell-top {
  864. width: 100%;
  865. height: 64rpx;
  866. line-height: 64rpx;
  867. font-size: $font-size-26;
  868. color: #333333;
  869. float: left;
  870. text-overflow: ellipsis;
  871. display: -webkit-box;
  872. word-break: break-all;
  873. -webkit-box-orient: vertical;
  874. -webkit-line-clamp: 1;
  875. overflow: hidden;
  876. }
  877. .list-cell-time {
  878. width: 100%;
  879. height: 28rpx;
  880. line-height: 28rpx;
  881. text-align: left;
  882. font-size: $font-size-20;
  883. color: #999999;
  884. }
  885. }
  886. }
  887. .coupon-btn {
  888. width: 100%;
  889. height: 78rpx;
  890. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-alertbtnbg@2x.png);
  891. background-size: cover;
  892. line-height: 78rpx;
  893. text-align: center;
  894. color: #ffffff;
  895. font-size: $font-size-36;
  896. }
  897. }
  898. }
  899. }
  900. </style>