create-order.vue 27 KB

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