order-confirm.vue 20 KB

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