create-order.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. <template>
  2. <view class="container order clearfix" :style="{ paddingBottom: isIphoneX ? '200rpx' : '164rpx' }">
  3. <!-- 地址选择 -->
  4. <choice-address ref="choiceAddress" v-if="isAddress" :addressData="addressData" />
  5. <!-- 商品 -->
  6. <goods-list ref="goods" v-if="isRequest" :goodsData="goodsData" @handleGoodList="handChangeInputGoodsList" />
  7. <!-- 发票信息 -->
  8. <invoice-tent
  9. ref="invoice"
  10. v-if="isRequest"
  11. :invoiceDatas="invoiceData"
  12. @handleChoiceaInvoice="handleChoiceaInvoiceData"
  13. />
  14. <!-- 运费 -->
  15. <freight ref="freight" v-if="isFreight" :freightData="freightData" :coldChain="handleColdChain" @confirmFreight="hanldFreightFn" />
  16. <freight-alert v-if="isfreightTip" ref="csPhone" />
  17. <!-- 底部 -->
  18. <view class="footer-wrapper" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }">
  19. <view class="footer">
  20. <view class="footer-le">
  21. <view class="footer-count">
  22. <text>共{{ totalCount }}件商品</text>
  23. </view>
  24. <view class="footer-price">
  25. <view class="sum none">
  26. 总价:<text class="price">¥{{ orderShouldPayFee | NumFormat }}</text>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="footer-submit" @click.stop="orderSubmitMit">
  31. <view class="btn" :class="isSubLoading ? 'disabled' : ''">提交订单</view>
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 提示弹窗 -->
  36. <tui-modal
  37. :show="showModal"
  38. @click="handleClick"
  39. @cancel="hideMobel"
  40. :content="contentModalText"
  41. :button="modalButton"
  42. color="#333"
  43. :size="28"
  44. shape="circle"
  45. :maskClosable="false"
  46. ></tui-modal>
  47. </view>
  48. </template>
  49. <script>
  50. import { mapState, mapMutations } from 'vuex'
  51. import choiceAddress from './components/choiceAddress'
  52. import goodsList from './components/goodsList'
  53. import invoiceTent from './components/invoiceTent'
  54. import freight from './components/freight'
  55. import freightAlert from '@/components/cm-module/modelAlert/freightAlert'
  56. export default {
  57. components: {
  58. choiceAddress,
  59. goodsList,
  60. invoiceTent,
  61. freight,
  62. freightAlert
  63. },
  64. data() {
  65. return {
  66. skeletonShow: true,
  67. isIphoneX: this.$store.state.isIphoneX,
  68. isSubLoading: false,
  69. confirmType: 1,
  70. orderID: 0,
  71. cartParam: {
  72. // 购物车立即结算确认订单参数
  73. skuIds: 0, // 商品Id(逗号隔开)
  74. source: 2, // 来源:1WWW 2小程序
  75. userId: 0 // 用户Id
  76. },
  77. productParam: {
  78. // 商品立即购买确认订单参数
  79. productCount: 0, // 商品数量
  80. productId: 0, // 商品Id
  81. source: 2, // 来源:1WWW 2小程序
  82. userId: 0 // 用户Id
  83. },
  84. supportParm: {
  85. // 组合商品立即购买确认订单参数
  86. productInfo: '',
  87. source: 2, // 来源:1WWW 2小程序
  88. userId: 0 // 用户Id
  89. },
  90. postageParam: {
  91. // 邮费计算参数
  92. skuIds: 0, // 商品Id(逗号隔开)
  93. userId: 0, // 用户Id
  94. townId: 0 // 地区Id
  95. },
  96. confirmParam: {
  97. cartType: 1, // 购买类型:(1自主下单, 3协销下单)
  98. orderMiniType: 0, // 订单提交状态 0初始提交 1 继续提交
  99. orderSource: 6, // 订单来源 1WWW 6小程序[采美,星范]
  100. addressId: 0, // 收货地址Id
  101. clubCouponId: 0, // 关联优惠券Id
  102. clubId: 0, // 机构Id
  103. orderInfo: [], // 订单商品数据
  104. orderInvoice: { type: 0 }, // 订单发票信息
  105. payInfo: {
  106. // 订单金额数据
  107. isColdChina:1, //是否勾选冷链费
  108. orderShouldPayFee: 0, // 订单最终支付金额
  109. balancePayFlag: 0, // 勾选余额的状态(1使用,0不使用)
  110. clauseId: 0, // 条款Id
  111. postage: 0, // 运费金额
  112. postageFlag: 0, // 运费类型
  113. userBeans: 0, // 抵扣采美豆数量
  114. rebateFlag: 0 // 是否返佣订单
  115. },
  116. unionId: uni.getStorageSync('unionId') // 用户unionId
  117. }, // 提交订单参数
  118. productIds: '', // 获取上一级页面商品信息
  119. submitState: '', // 提交状态
  120. totalCount: 1, // 订单提交总数量
  121. allPrice: 0.0, // 订单总金额
  122. orderShouldPayFee: 0, // 订单最终支付金额
  123. isRequest: false, // 是否加载完成渲染子组件
  124. isFreight: false, // 是否加载完成渲染子组件
  125. isAddress: false, // 是否加载完成地址
  126. isExchangePopup: false, // 控制兑换优惠券弹窗
  127. isfreightTip: false, // 控制邮费弹窗
  128. designatedFlag: '', // 是否为指定商品 1.仅为指定商品 2.仅为供应商商品 3.指定商品+供应商商品
  129. hanldFreePostFlag: '', // 邮费状态
  130. hanldFreight: '', // 邮费
  131. addressData: {}, // 初始化地址信息
  132. goodsData: [], // 初始化商品信息
  133. couponList: [], // 初始化优惠券信息
  134. invoiceData: { type: 0 }, // 初始化发票信息
  135. freightData: {}, // 邮费数据
  136. orderInfo: [], // 提交的商品信息
  137. handleColdChain:0,// 指定商品冷链费
  138. freightColdChain: 0, // 存储冷链费
  139. contentModalText: '采购金额过小,将扣除500采美豆,建议您前往采美旗下“颜选美学”小程序购买小额商品。', //操作文字提示语句
  140. modalButton: [
  141. {
  142. text: '前往颜选美学',
  143. type: 'gray',
  144. plain: true //是否空心
  145. },
  146. {
  147. text: '继续提交',
  148. customStyle: {
  149. color: '#fff',
  150. bgColor: 'linear-gradient(90deg, #F28F31 0%, #F3B574 100%)'
  151. },
  152. plain: false
  153. }
  154. ],
  155. showModal: false,
  156. showModalstauts: 0
  157. }
  158. },
  159. onLoad(option) {
  160. //商品数据
  161. this.initCreateOrderInfo(option)
  162. },
  163. filters: {
  164. NumFormat(value) {
  165. //处理金额
  166. return Number(value).toFixed(2)
  167. }
  168. },
  169. methods: {
  170. async initCreateOrderInfo(option) {
  171. const data = JSON.parse(option.data)
  172. const userInfo = await this.$api.getStorage()
  173. this.productParam.userId = this.cartParam.userId = userInfo.userId
  174. this.supportParm.userId = this.postageParam.userId = userInfo.userId
  175. this.confirmParam.clubId = userInfo.clubId
  176. switch (option.type) {
  177. case '1': // 商品详情立即购买
  178. this.confirmParam.cartType = 2
  179. this.productParam.productCount = data.data.productCount
  180. this.productParam.productId = data.data.productIds
  181. this.productParam.skuId = data.data.skuId
  182. this.productIds = data.data.productIds
  183. this.GetProductCreateOrderInfo()
  184. break
  185. case '2': // 购物车结算
  186. this.confirmParam.cartType = 1
  187. this.confirmType = 2
  188. this.cartParam.skuIds = data.data.skuIds
  189. this.CartCreateOrderInfo()
  190. break
  191. case '3': // 组合商品立即购买
  192. this.confirmParam.cartType = 2
  193. this.confirmType = 2
  194. this.supportParm.productInfo = JSON.stringify(data.data)
  195. this.GetOrderClubProductSupporting()
  196. }
  197. },
  198. // 商品立即购买确认订单数据初始化
  199. async GetProductCreateOrderInfo() {
  200. try {
  201. const res = await this.OrderService.ProductCreateOrderInfo(this.productParam)
  202. this.setCreatDataInfo(res.data)
  203. } catch (error) {
  204. console.log('商品立即购买订单初始化异常')
  205. }
  206. },
  207. // 组合商品立即购买确认订单数据初始化
  208. async GetOrderClubProductSupporting() {
  209. try {
  210. const res = await this.OrderService.OrderClubProductSupporting(this.supportParm)
  211. this.setCreatDataInfo(res.data)
  212. } catch (error) {
  213. console.log('组合商品立即购买订单初始化异常')
  214. }
  215. },
  216. // 购物车去结算确认订单数据初始化
  217. async CartCreateOrderInfo() {
  218. try {
  219. const res = await this.OrderService.CartCreateOrderInfo(this.cartParam)
  220. this.setCreatDataInfo(res.data)
  221. } catch (error) {
  222. console.log('购物车结算订单初始化异常')
  223. }
  224. },
  225. // 公共初始化数据
  226. setCreatDataInfo(data) {
  227. this.isRequest = true
  228. this.goodsData = data.list
  229. this.couponList = data.couponList
  230. this.handleColdChain = this.freightColdChain = data.coldChain
  231. this.userMoney = data.userMoney
  232. this.totalCount = data.totalCount
  233. this.allPrice = data.totalPrice
  234. this.orderShouldPayFee = this.allPrice
  235. this.postageParam.skuIds = this.getProductIds(data.list)
  236. this.getAddressData()
  237. },
  238. // 获取订单SKUId列表
  239. getProductIds(list) {
  240. const skuId = []
  241. list.forEach(function(supplier) {
  242. supplier.cartList.forEach(function(product) {
  243. skuId.push(product.skuId)
  244. })
  245. })
  246. // console.log(list);
  247. return skuId.join(',')
  248. },
  249. // 获取邮费信息
  250. async getFreightData() {
  251. try {
  252. this.isFreight = false
  253. const res = await this.OrderService.GetOrderPostage(this.postageParam)
  254. const data = res.data
  255. this.isFreight = true
  256. this.freightData = data
  257. this.designatedFlag = data.designatedFlag
  258. this.hanldFreePostFlag = data.postageFlag
  259. this.hanldFreight = data.postage
  260. if(this.designatedFlag === 2){
  261. this.confirmParam.payInfo.isColdChina = 0
  262. }
  263. this.attributePallPrice()
  264. } catch (error) {
  265. console.log('获取订单运费异常')
  266. }
  267. },
  268. //获取地址信息
  269. async getAddressData() {
  270. try {
  271. const userInfo = await this.$api.getStorage()
  272. const res = await this.UserService.QueryAddressList({
  273. pageNum: 1,
  274. pageSize: 1,
  275. userId: userInfo.userId
  276. })
  277. const data = res.data
  278. this.isAddress = true
  279. this.addressData = {}
  280. if (data.list && data.list.length > 0) {
  281. this.confirmParam.addressId = data.list[0].addressId
  282. this.postageParam.townId = data.list[0].townId
  283. this.addressData = data.list[0]
  284. this.getFreightData()
  285. } else {
  286. this.addressData = this.addressData
  287. }
  288. } catch (error) {
  289. console.log('error', error)
  290. }
  291. },
  292. //对应供应商的留言信息
  293. handChangeInputGoodsList(data) {
  294. this.goodsData = data
  295. },
  296. //获取发票信息
  297. handleChoiceaInvoiceData(data) {
  298. this.confirmParam.orderInvoice = data
  299. },
  300. hanldFreightFn(ischecked){//是否勾选冷链费
  301. this.confirmParam.payInfo.isColdChina = ischecked ? 1 : 0
  302. if(ischecked){
  303. this.freightColdChain = this.handleColdChain
  304. }else{// 不勾选冷链费计算总价
  305. this.freightColdChain = 0
  306. }
  307. this.attributePallPrice()
  308. },
  309. // 计算价格
  310. attributePallPrice() {
  311. switch(this.designatedFlag){
  312. case 1://仅为指定商品
  313. this.attributeChainfreight()
  314. break
  315. case 2:// 仅为供应商商品
  316. if (this.hanldFreePostFlag == 1) {
  317. this.attributeHashfreight(this.freightData.postage)
  318. } else {
  319. this.attributeNofreight()
  320. }
  321. break
  322. case 3:// 有指定商品 + 供应商商品
  323. if (this.hanldFreePostFlag == 1) {
  324. this.attributeHashChainfreight(this.freightData.postage)
  325. } else {
  326. this.attributeChainfreight()
  327. }
  328. break
  329. }
  330. },
  331. // 计算没有邮费的支付价格
  332. attributeNofreight() {
  333. this.orderShouldPayFee = this.allPrice
  334. console.log('最终订单支付金额', this.orderShouldPayFee)
  335. },
  336. // 计算仅为指定商品冷链费的价格
  337. attributeChainfreight(){
  338. this.orderShouldPayFee = this.allPrice + this.freightColdChain
  339. console.log('最终订单支付金额', this.orderShouldPayFee)
  340. },
  341. // 计算指定商品冷链费后+运费的支付价格
  342. attributeHashChainfreight(postage){
  343. this.orderShouldPayFee = this.allPrice + this.freightColdChain + parseInt(postage)
  344. console.log('最终订单支付金额', this.orderShouldPayFee)
  345. },
  346. // 计算需要邮费的支付价格
  347. attributeHashfreight(postage) {
  348. this.orderShouldPayFee = this.allPrice + parseInt(postage) //计算不包邮的价格 总价等于商品价格+邮费
  349. console.log('最终订单支付金额', this.orderShouldPayFee)
  350. },
  351. // 提交订单按钮点击事件
  352. orderSubmitMit() {
  353. this.handleClickOrderSubmitMit()
  354. },
  355. // 提交订单
  356. handleClickOrderSubmitMit() {
  357. if (this.isSubLoading) {
  358. return
  359. }
  360. if (this.confirmParam.addressId === 0) {
  361. this.$util.msg('请先添加收货地址~', 2000)
  362. return
  363. }
  364. this.confirmParam.orderInfo = this.goodsData.map(el => {
  365. let productInfo = []
  366. el.cartList.forEach(pros => {
  367. productInfo.push({
  368. skuId: pros.skuId,
  369. productNum: pros.number,
  370. presentNum: 0,
  371. productType: pros.giftType
  372. })
  373. })
  374. return {
  375. splitCode: el.splitCode,
  376. shopId: el.shopId,
  377. note: el.note ? el.note : '',
  378. productInfo: productInfo
  379. }
  380. })
  381. this.confirmParam.payInfo.postage = parseInt(this.hanldFreight).toFixed(2)
  382. this.confirmParam.payInfo.postageFlag = parseInt(this.hanldFreePostFlag)
  383. this.confirmParam.payInfo.orderShouldPayFee = this.orderShouldPayFee.toFixed(2)
  384. this.confirmParam.payInfo = JSON.stringify(this.confirmParam.payInfo)
  385. this.confirmParam.orderInfo = JSON.stringify(this.confirmParam.orderInfo)
  386. this.confirmParam.orderInvoice = JSON.stringify(this.confirmParam.orderInvoice)
  387. console.log(this.confirmParam)
  388. this.isSubLoading = true
  389. this.hanldeOrderSubmit(this.confirmParam)
  390. },
  391. async hanldeOrderSubmit(params) {
  392. // 提交订单
  393. try {
  394. const res = await this.OrderService.CreatedOrderSubmit(params)
  395. const data = res.data
  396. if (data.code === 1) {
  397. this.submitState = 'success'
  398. setTimeout(() => {
  399. this.isSubLoading = false
  400. }, 2000)
  401. this.$api.redirectTo(
  402. `/pages/user/order/success?data=${JSON.stringify({ data: { orderId: data.orderId } })}`
  403. )
  404. } else {
  405. this.submitState = 'confirm'
  406. this.$util.msg('订单提交成功', 2000, true, 'success')
  407. setTimeout(() => {
  408. this.isSubLoading = false
  409. if (data.onlinePayFlag === 1) {
  410. this.$api.redirectTo(`/pages/user/pay/card-under?orderId=${data.orderId}`)
  411. } else {
  412. this.$api.redirectTo(`/pages/user/order/order-pay-list?orderId=${data.orderId}`)
  413. }
  414. }, 2000)
  415. }
  416. } catch (error) {
  417. console.log(error)
  418. this.formatConfirmParam()
  419. this.isSubLoading = false
  420. }
  421. },
  422. formatConfirmParam() {
  423. // 还原提交订单参数格式
  424. this.confirmParam.payInfo = JSON.parse(this.confirmParam.payInfo)
  425. this.confirmParam.orderInfo = JSON.parse(this.confirmParam.orderInfo)
  426. this.confirmParam.orderInvoice = JSON.parse(this.confirmParam.orderInvoice)
  427. },
  428. handFreightAlertShow() {
  429. //显示邮费弹窗
  430. this.isfreightTip = true
  431. },
  432. handleClick(e) {
  433. // 采购量过小提示弹窗
  434. if (e.index === 1) {
  435. if (this.showModalstauts === 1) {
  436. this.showModal = false
  437. this.confirmParam.orderMiniType = 1
  438. this.handleClickOrderSubmitMit()
  439. } else if (this.showModalstauts === 2) {
  440. this.showModal = false
  441. this.isSubLoading = false
  442. this.$api.navigateTo('/pages/login/apply')
  443. } else {
  444. this.showModal = false
  445. this.handleClickHeHeMiniApplet()
  446. }
  447. } else {
  448. if (this.showModalstauts == 1) {
  449. this.showModal = false
  450. this.handleClickHeHeMiniApplet()
  451. } else if (this.showModalstauts === 2) {
  452. this.showModal = false
  453. this.confirmParam.orderMiniType = 2
  454. this.handleClickOrderSubmitMit()
  455. } else {
  456. this.showModal = false
  457. }
  458. }
  459. },
  460. handleClickHeHeMiniApplet() {
  461. // 跳转颜选美学小程序
  462. uni.navigateToMiniProgram({
  463. appId: 'wx2c3b0a7f343235b1',
  464. path: '/pages/tabBar/index/index',
  465. extraData: {
  466. data1: 'test'
  467. },
  468. envVersion: 'develop',
  469. success(res) {
  470. // 打开成功
  471. console.log(res)
  472. }
  473. })
  474. },
  475. hideFreight() {
  476. //关闭邮费弹窗
  477. this.isfreightTip = false
  478. }
  479. },
  480. onShow() {
  481. let pages = getCurrentPages()
  482. let currPage = pages[pages.length - 1]
  483. if (currPage.data.select == 'select') {
  484. this.isAddress = true
  485. let SelectData = uni.getStorageSync('selectAddress')
  486. this.confirmParam.addressId = SelectData.addressId
  487. this.postageParam.townId = SelectData.townId
  488. this.addressData = SelectData
  489. this.getFreightData()
  490. } else {
  491. this.getAddressData()
  492. }
  493. }
  494. }
  495. </script>
  496. <style lang="scss">
  497. page {
  498. height: auto;
  499. background: #f7f7f7;
  500. }
  501. .btn-hover {
  502. background: #ffffff;
  503. }
  504. .animation {
  505. /* transition: transform 0.3s ease;*/
  506. transition-property: transform;
  507. transition-duration: 0.3s;
  508. transition-timing-function: ease;
  509. }
  510. .order {
  511. padding-bottom: 134rpx;
  512. }
  513. .invoice-balance {
  514. width: 702rpx;
  515. height: auto;
  516. padding: 0 24rpx;
  517. background: #ffffff;
  518. float: left;
  519. margin-top: 24rpx;
  520. margin-bottom: 24rpx;
  521. .balabce-t {
  522. width: 100%;
  523. height: 86rpx;
  524. line-height: 86rpx;
  525. font-size: $font-size-28;
  526. color: $text-color;
  527. float: left;
  528. .balabce-t-le {
  529. float: left;
  530. font-weight: bold;
  531. }
  532. .balabce-t-ri {
  533. float: right;
  534. display: flex;
  535. align-items: center;
  536. .money {
  537. display: flex;
  538. float: left;
  539. }
  540. .checkbox-box {
  541. display: flex;
  542. width: 60rpx;
  543. float: left;
  544. height: 100%;
  545. font-size: $font-size-24;
  546. .checkbox {
  547. width: 40rpx;
  548. text-align: right;
  549. box-sizing: border-box;
  550. text-align: center;
  551. text-decoration: none;
  552. border-radius: 0;
  553. -webkit-tap-highlight-color: transparent;
  554. overflow: hidden;
  555. color: $color-system;
  556. }
  557. }
  558. }
  559. }
  560. .balabce-b {
  561. width: 100%;
  562. float: left;
  563. overflow: hidden;
  564. .balabce-b-text {
  565. width: 100%;
  566. line-height: 58rpx;
  567. font-size: $font-size-24;
  568. color: #ff2a2a;
  569. text-align: right;
  570. float: right;
  571. }
  572. &.balabce-b--hide {
  573. padding: 0 0;
  574. height: 0px;
  575. line-height: 0px;
  576. }
  577. }
  578. }
  579. .footer-wrapper {
  580. position: fixed;
  581. left: 0;
  582. bottom: 0;
  583. background-color: #ffffff;
  584. z-index: 990;
  585. .footer {
  586. display: flex;
  587. align-items: center;
  588. width: 100%;
  589. height: 110rpx;
  590. line-height: 110rpx;
  591. justify-content: space-between;
  592. font-size: $font-size-28;
  593. color: $text-color;
  594. }
  595. .footer-le {
  596. width: 570rpx;
  597. height: 100%;
  598. float: left;
  599. }
  600. .footer-count {
  601. float: left;
  602. padding-left: 24rpx;
  603. box-sizing: border-box;
  604. }
  605. .footer-price {
  606. width: 370rpx;
  607. float: right;
  608. text-align: right;
  609. color: $text-color;
  610. padding: 10rpx 20rpx 10rpx 0;
  611. box-sizing: border-box;
  612. .sum-none {
  613. width: 100%;
  614. height: 45rpx;
  615. line-height: 45rpx;
  616. color: $text-color;
  617. float: left;
  618. text-align: right;
  619. .money {
  620. font-size: $font-size-26;
  621. color: #999999;
  622. text-decoration: line-through;
  623. }
  624. .money-sign {
  625. font-size: $font-size-26;
  626. color: #999999;
  627. text-decoration: line-through;
  628. }
  629. .money-reduced {
  630. margin-left: 10rpx;
  631. font-size: $font-size-26;
  632. color: #ff2a2a;
  633. }
  634. }
  635. .sum {
  636. width: 100%;
  637. height: 45rpx;
  638. line-height: 45rpx;
  639. float: left;
  640. &.none {
  641. height: 90rpx;
  642. line-height: 90rpx;
  643. }
  644. .price {
  645. font-size: $font-size-32;
  646. color: #ff2a2a;
  647. }
  648. }
  649. }
  650. .footer-submit {
  651. display: flex;
  652. align-items: center;
  653. justify-content: center;
  654. width: 180rpx;
  655. height: 100%;
  656. box-sizing: border-box;
  657. padding: 15rpx 5rpx;
  658. .btn {
  659. width: 100%;
  660. height: 100%;
  661. color: #ffffff;
  662. background: $btn-confirm;
  663. font-size: $font-size-26;
  664. text-align: center;
  665. line-height: 80rpx;
  666. border-radius: 40rpx;
  667. &.disabled {
  668. background: #e4e8eb;
  669. color: #999999;
  670. }
  671. }
  672. }
  673. }
  674. .coupon-content-model {
  675. width: 100%;
  676. height: 100%;
  677. background: rgba(0, 0, 0, 0.5);
  678. position: fixed;
  679. top: 0;
  680. left: 0;
  681. z-index: 8888;
  682. transition: all 0.4s;
  683. .coupon-alert-content {
  684. width: 600rpx;
  685. height: 612rpx;
  686. position: absolute;
  687. top: 0;
  688. left: 0;
  689. bottom: 0;
  690. right: 0;
  691. margin: auto;
  692. box-sizing: border-box;
  693. padding-top: 92rpx;
  694. .coupon {
  695. width: 600rpx;
  696. height: 522rpx;
  697. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-alertbg@2x.png);
  698. background-size: cover;
  699. box-sizing: border-box;
  700. padding: 230rpx 40rpx 0 40rpx;
  701. .coupon-list {
  702. width: 100%;
  703. height: 147rpx;
  704. margin-bottom: 32rpx;
  705. box-sizing: border-box;
  706. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-bg@2x.png);
  707. background-size: cover;
  708. position: relative;
  709. .list-cell-tags {
  710. display: inline-block;
  711. padding: 0 10rpx;
  712. height: 32rpx;
  713. line-height: 32rpx;
  714. background-color: #f94b4b;
  715. color: #ffffff;
  716. font-size: 18rpx;
  717. border-radius: 16rpx 0 16rpx 0;
  718. text-align: center;
  719. position: absolute;
  720. top: 0;
  721. left: 0;
  722. }
  723. .list-cell-le {
  724. width: 154rpx;
  725. height: 100%;
  726. box-sizing: border-box;
  727. padding: 30rpx 0;
  728. float: left;
  729. .coupon-maxMoney {
  730. width: 100%;
  731. height: 54rpx;
  732. line-height: 54rpx;
  733. font-size: 42rpx;
  734. color: #f94b4b;
  735. text-align: center;
  736. margin-top: 10rpx;
  737. .small {
  738. font-size: $font-size-20;
  739. }
  740. }
  741. .coupon-minMoney {
  742. width: 100%;
  743. height: 28rpx;
  744. float: left;
  745. box-sizing: border-box;
  746. padding-left: 24rpx;
  747. .txt {
  748. display: block;
  749. height: 28rpx;
  750. line-height: 28rpx;
  751. font-size: 16rpx;
  752. color: #f94b4b;
  753. text-align: center;
  754. padding: 0 5rpx;
  755. background-color: #fff1eb;
  756. border-radius: 4rpx;
  757. float: left;
  758. }
  759. }
  760. }
  761. .list-cell-ri {
  762. width: 366rpx;
  763. height: 100%;
  764. box-sizing: border-box;
  765. padding: 30rpx 20rpx;
  766. float: left;
  767. .list-cell-top {
  768. width: 100%;
  769. height: 64rpx;
  770. line-height: 64rpx;
  771. font-size: $font-size-26;
  772. color: #333333;
  773. float: left;
  774. text-overflow: ellipsis;
  775. display: -webkit-box;
  776. word-break: break-all;
  777. -webkit-box-orient: vertical;
  778. -webkit-line-clamp: 1;
  779. overflow: hidden;
  780. }
  781. .list-cell-time {
  782. width: 100%;
  783. height: 28rpx;
  784. line-height: 28rpx;
  785. text-align: left;
  786. font-size: $font-size-20;
  787. color: #999999;
  788. }
  789. }
  790. }
  791. .coupon-btn {
  792. width: 100%;
  793. height: 78rpx;
  794. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-alertbtnbg@2x.png);
  795. background-size: cover;
  796. line-height: 78rpx;
  797. text-align: center;
  798. color: #ffffff;
  799. font-size: $font-size-36;
  800. }
  801. }
  802. }
  803. }
  804. </style>