confirmCreateOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. <template>
  2. <view>
  3. <view class="inner-box">
  4. <!-- 收货人 -->
  5. <view class="address-box" v-if="address==null" @click="openAddress()">
  6. <view class="left">
  7. <view class="name-box">
  8. <text class="text name">添加收货地址</text>
  9. </view>
  10. </view>
  11. <view class="arrow-box">
  12. <image src="https://kntobs.jnmyunl.com/shop/images/arrow_gray.png"
  13. mode=""></image>
  14. </view>
  15. </view>
  16. <view class="address-box" v-if="address!=null" @click="openAddress()">
  17. <view class="left">
  18. <view class="name-box">
  19. <text class="text name">{{address.realName}}</text>
  20. <text class="text" v-if="address.phone!=null">{{address.phone}}</text>
  21. </view>
  22. <view class="address">
  23. {{address.province}}{{address.city}}{{address.district}}{{address.detail}}
  24. </view>
  25. </view>
  26. <view class="arrow-box">
  27. <image src="https://kntobs.jnmyunl.com/shop/images/arrow_gray.png"
  28. mode=""></image>
  29. </view>
  30. </view>
  31. <!-- 积分 -->
  32. <view class="price-info">
  33. <view class="price-info-title">价格明细</view>
  34. <view class="points">
  35. <view class="left">
  36. <text class="text">商品总价</text>
  37. </view>
  38. <view class="right" style="align-items: baseline;">
  39. <text class="price-info-unit">¥</text>
  40. <text class="price-info-num">{{(safeOrderData.totalPrice||0).toFixed(2)}}</text>
  41. <!-- <text class="price-info-num">{{(orderData.totalPrice||0).toFixed(2)}}</text> -->
  42. </view>
  43. </view>
  44. <view class="points" @click="couponVisible = true;">
  45. <view class="left">
  46. <text class="text">优惠券</text>
  47. </view>
  48. <view class="right">
  49. <text class="text">{{couponText}}</text>
  50. <image src="https://kntobs.jnmyunl.com/shop/images/arrow4.png"
  51. mode=""></image>
  52. </view>
  53. </view>
  54. <view class="points">
  55. <view class="left">
  56. <text class="text">运费</text>
  57. </view>
  58. <view class="right">
  59. <text class="text"
  60. v-if="address!=null">{{orderData.payDelivery==null||orderData.payDelivery==0?'免运费':orderData.payDelivery.toFixed(2)}}</text>
  61. <text class="text" v-if="address==null">--</text>
  62. </view>
  63. </view>
  64. <!-- 备注 -->
  65. <view class="remarks">
  66. <input type="text" v-model="safeOrderData.remark" placeholder="备注留言(选填)"
  67. placeholder-class="input" />
  68. </view>
  69. <view class="points">
  70. <view class="left">
  71. <text class="text">合计</text>
  72. </view>
  73. <view class="right" style="align-items: baseline;">
  74. <text class="price-info-unit">¥</text>
  75. <text class="price-info-num">{{(orderData.payPrice||0).toFixed(2)}}</text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="btn-foot">
  81. <view class="right">
  82. <view class="total">
  83. <text class="label">合计:</text>
  84. <view class="price">
  85. <text class="unit">¥</text>
  86. <text class="num">{{(orderData.payPrice||0).toFixed(2)}}</text>
  87. </view>
  88. </view>
  89. <view class="btn" @click="submitOrder">提交订单</view>
  90. </view>
  91. </view>
  92. <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
  93. <view class="coupon" style="height:650rpx;">
  94. <div class="coupon-list" v-if="couponsList.length > 0">
  95. <div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  96. <div class="money">
  97. <image v-if="item.status==0&&item.useMinPrice<=orderData.totalPrice" class="img"
  98. src="https://kntobs.jnmyunl.com/shop/images/coupon1.png"
  99. mode="widthFix"></image>
  100. <image v-if="item.status!=0||item.useMinPrice>orderData.totalPrice" class="img"
  101. src="https://kntobs.jnmyunl.com/shop/images/coupon2.png"
  102. mode="widthFix"></image>
  103. <div style="z-index: 999;">
  104. ¥<span class="num">{{ item.couponPrice }}</span>
  105. </div>
  106. <div class="pic-num">满{{ item.useMinPrice }}元可用</div>
  107. </div>
  108. <div class="text">
  109. <div class="condition line1">
  110. {{ item.couponTitle }}
  111. </div>
  112. <div class="data acea-row row-between-wrapper">
  113. <div>{{ item.limitTime }}到期</div>
  114. <div v-if=" item.status==0&&item.useMinPrice<=orderData.totalPrice"
  115. class="bnt bg-color-red" @click="couponSelect(item)">选择</div>
  116. <div v-else-if="item.status!=0" class="bnt " style="background-color: #878787;">已失效
  117. </div>
  118. <div v-else-if="item.useMinPrice>orderData.totalPrice" class="bnt "
  119. style="background-color: #878787;">未达门槛</div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <view v-if="couponsList.length == 0" class="no-data-box">
  125. <image src="https://kntobs.jnmyunl.com/shop/images/no_data.png"
  126. mode="aspectFit"></image>
  127. <view class="empty-title">暂无数据</view>
  128. </view>
  129. </view>
  130. </popupBottom>
  131. </view>
  132. </template>
  133. <script>
  134. import {
  135. createliveOrder, // 创建订单
  136. createReward, // 创建中奖订单
  137. userAddr, // 获取用户收货地址
  138. computed,
  139. computedReward,
  140. liveOrderKey, // 生成订单key
  141. } from "@/api/order.js"
  142. import {
  143. curCoupon
  144. } from "@/api/living.js"
  145. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  146. export default {
  147. components: {
  148. popupBottom
  149. },
  150. data() {
  151. return {
  152. orderData: {
  153. totalPrice: null,
  154. remark: ''
  155. },
  156. cityId: null,
  157. address: null,
  158. addressId: null,
  159. totalNum: null,
  160. orderKey: null,
  161. goodsId: null,
  162. liveId: null,
  163. orderList: [],
  164. temps: [],
  165. couponUserId: null,
  166. couponText: "请选择",
  167. couponsList: [],
  168. couponVisible: false,
  169. carts: [],
  170. checked: false,
  171. cartIds: null,
  172. confirmParam: [],
  173. type: '',
  174. isFirstLoad: true,
  175. recordId: '',
  176. productValueSelect: ''
  177. }
  178. },
  179. onLoad(options) {
  180. console.log("确认订单", options)
  181. this.orderKey = options.orderKey || '';
  182. this.liveId = options.liveId || '';
  183. this.goodsId = options.goodsId || '';
  184. this.productId = options.productId || '';
  185. this.totalNum = Number(options.totalNum) || 0;
  186. this.type = options.type;
  187. this.isFirstLoad = true;
  188. this.recordId = options.recordId || '';
  189. this.productValueSelect = options.productValueSelect || ''
  190. if (options.type == 'win') {
  191. this.getKey()
  192. }
  193. },
  194. computed: {
  195. safeOrderData() {
  196. return this.orderData || {
  197. totalPrice: 0,
  198. payPrice: 0,
  199. payDelivery: 0,
  200. remark: ''
  201. };
  202. }
  203. },
  204. onShow() {
  205. this.openCoupon()
  206. if (this.type == 'win') {
  207. this.computedRewardOrder()
  208. } else {
  209. this.computedOrder()
  210. }
  211. if (!this.cityId) {
  212. this.getUserAddr()
  213. }
  214. // this.getUserAddr()
  215. uni.$on('updateAddress', (e) => {
  216. this.address = e;
  217. this.addressId = e.addressId;
  218. this.cityId = e.cityId;
  219. console.log("地址", e.cityId)
  220. });
  221. },
  222. mounted() {
  223. // uni.$on('updateAddress', (e) => {
  224. // this.address = e;
  225. // this.addressId = e.addressId;
  226. // });
  227. },
  228. onUnload() {
  229. uni.$off('updateAddress');
  230. },
  231. beforeDestroy() {
  232. uni.$off('updateAddress');
  233. },
  234. methods: {
  235. handleAddressUpdate(item) {
  236. console.log('接收到地址数据:', item);
  237. this.cityId = item.cityId;
  238. this.address = item;
  239. this.addressId = item.addressId;
  240. if (this.type == 'win') {
  241. this.computedRewardOrder()
  242. } else {
  243. this.computedOrder()
  244. }
  245. },
  246. // 获取用户收货地址
  247. getUserAddr() {
  248. userAddr().then(res => {
  249. if (res.code == 200) {
  250. console.log("用户收货地址>>>>", res.data)
  251. if (res.data && !this.address) {
  252. this.address = res.data;
  253. }
  254. if (res.data && res.data.cityIds) {
  255. this.cityId = res.data.cityIds;
  256. }
  257. if (this.type == 'win') {
  258. this.computedRewardOrder()
  259. } else {
  260. this.computedOrder()
  261. }
  262. } else {
  263. uni.showToast({
  264. title: res.msg,
  265. icon: 'none'
  266. });
  267. }
  268. },
  269. rej => {}
  270. );
  271. },
  272. // 获得key
  273. getKey() {
  274. liveOrderKey().then(res => {
  275. if (res.code == 200) {
  276. this.orderKey = res.orderKey
  277. } else {
  278. uni.showToast({
  279. title: res.msg,
  280. icon: 'none'
  281. });
  282. }
  283. },
  284. rej => {}
  285. );
  286. },
  287. // 查询创建订单信息
  288. computedOrder() {
  289. let data = {
  290. cityId: this.cityId || '',
  291. totalNum: this.totalNum,
  292. productId: this.productId,
  293. orderKey: this.orderKey,
  294. couponUserId: this.couponUserId || '',
  295. attrValueId: this.productValueSelect
  296. }
  297. computed(data).then(res => {
  298. if (res.code == 200) {
  299. console.log("查询创建订单信息>>>>", res.data)
  300. this.orderData = res.data
  301. } else {
  302. uni.showToast({
  303. title: res.msg,
  304. icon: 'none'
  305. });
  306. }
  307. },
  308. rej => {}
  309. );
  310. },
  311. // 查询中奖创建订单信息
  312. computedRewardOrder() {
  313. let data = {
  314. cityId: this.cityId || '',
  315. productId: this.productId,
  316. orderKey: this.orderKey,
  317. totalNum: 1,
  318. remark: this.orderData.remark || ''
  319. }
  320. computedReward(data).then(res => {
  321. if (res.code == 200) {
  322. console.log("查询创建订单信息>>>>", res.data)
  323. this.orderData = res.data || {}
  324. } else {
  325. uni.showToast({
  326. title: res.msg,
  327. icon: 'none'
  328. });
  329. }
  330. },
  331. rej => {}
  332. );
  333. },
  334. // 创建订单
  335. createLiveOrder() {
  336. let data = {
  337. cityId: this.cityId,
  338. liveId: this.liveId,
  339. orderKey: this.orderKey,
  340. userName: this.address.realName,
  341. remark: (this.orderData && this.orderData.remark) || '', // 安全访问
  342. userPhone: this.address.phone,
  343. userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
  344. this.address.detail,
  345. cartId: "5",
  346. productId: this.productId,
  347. totalNum: this.totalNum,
  348. couponUserId: this.couponUserId,
  349. attrValueId: this.productValueSelect,
  350. appId: wx.getAccountInfoSync().miniProgram.appId
  351. }
  352. return createliveOrder(data).then(res => {
  353. if (res.code == 200) {
  354. this.orderList = res.order;
  355. return res.order;
  356. } else {
  357. uni.showToast({
  358. title: res.msg,
  359. icon: 'none'
  360. });
  361. throw new Error(res.msg);
  362. }
  363. });
  364. },
  365. // 创建抽奖订单
  366. createRewardOrder() {
  367. let data = {
  368. cityId: this.cityId,
  369. liveId: this.liveId,
  370. orderKey: this.orderKey,
  371. userName: this.address.realName,
  372. userPhone: this.address.phone,
  373. userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
  374. this.address.detail,
  375. cartId: "5",
  376. remark: this.orderData.remark || '',
  377. productId: this.productId,
  378. totalNum: 1,
  379. couponUserId: this.couponUserId,
  380. recordId: this.recordId,
  381. appId: wx.getAccountInfoSync().miniProgram.appId
  382. }
  383. return createReward(data).then(res => {
  384. if (res.code == 200) {
  385. this.orderList = res.order || {};
  386. return res.order || {};
  387. } else {
  388. uni.showToast({
  389. title: res.msg,
  390. icon: 'none'
  391. });
  392. throw new Error(res.msg);
  393. }
  394. });
  395. },
  396. couponSelect(item) {
  397. this.couponText = "-¥" + (item.couponPrice || 0).toFixed(2);
  398. this.couponUserId = item.id;
  399. this.couponVisible = false;
  400. if (this.type == 'win') {
  401. this.computedRewardOrder()
  402. } else {
  403. this.computedOrder()
  404. }
  405. },
  406. // 自动选择最大优惠券
  407. autoSelectMaxCoupon() {
  408. if (this.couponsList.length === 0 || !this.isFirstLoad) {
  409. return;
  410. }
  411. const availableCoupons = this.couponsList.filter(item =>
  412. item.status === 0 && item.useMinPrice <= (this.orderData.totalPrice || 0)
  413. );
  414. if (availableCoupons.length === 0) {
  415. return;
  416. }
  417. availableCoupons.sort((a, b) => b.couponPrice - a.couponPrice);
  418. const maxCoupon = availableCoupons[0];
  419. this.couponText = "-¥" + (maxCoupon.couponPrice || 0).toFixed(2);
  420. this.couponUserId = maxCoupon.id;
  421. console.log('自动选择最大优惠券:', maxCoupon);
  422. this.isFirstLoad = false;
  423. // 重新计算订单价格
  424. if (this.type == 'win') {
  425. this.computedRewardOrder()
  426. } else {
  427. this.computedOrder()
  428. }
  429. },
  430. openCoupon() {
  431. console.log("点了优惠券列表")
  432. if (!this.liveId || !this.goodsId) {
  433. console.log('缺少必要参数,跳过优惠券请求');
  434. return;
  435. }
  436. const data = {
  437. liveId: this.liveId,
  438. goodsId: this.goodsId
  439. };
  440. curCoupon(data).then(res => {
  441. this.couponsList = res.data || [];
  442. if (this.isFirstLoad) {
  443. setTimeout(() => {
  444. this.autoSelectMaxCoupon();
  445. }, 100);
  446. }
  447. })
  448. },
  449. openAddress() {
  450. uni.navigateTo({
  451. url: '/pages_user/user/address'
  452. })
  453. },
  454. // 提交订单
  455. async submitOrder() {
  456. try {
  457. if (this.orderKey == null) {
  458. uni.showToast({
  459. icon: 'none',
  460. title: '订单KEY不存在',
  461. });
  462. return;
  463. }
  464. if (this.address == null) {
  465. uni.showToast({
  466. icon: 'none',
  467. title: '收货地址不能为空',
  468. });
  469. return;
  470. }
  471. let orderList;
  472. if (this.type == "win") {
  473. orderList = await this.createRewardOrder(); // 中奖订单
  474. } else {
  475. orderList = await this.createLiveOrder(); // 购买订单
  476. }
  477. console.log("orderList>>", orderList)
  478. const orderListStr = encodeURIComponent(JSON.stringify(orderList));
  479. uni.redirectTo({
  480. url: `/pages_shopping/live/paymentOrder?orderList=${orderListStr}&couponUserId=${this.couponUserId}&type=${this.type}&liveId=${this.liveId}`
  481. });
  482. } catch (error) {
  483. console.error('提交订单错误:', error);
  484. uni.showToast({
  485. title: error.message || '提交订单失败',
  486. icon: 'none'
  487. });
  488. }
  489. },
  490. }
  491. }
  492. </script>
  493. <style lang="scss">
  494. .inner-box {
  495. padding: 20rpx 20rpx 140rpx;
  496. .address-box {
  497. margin-bottom: 20rpx;
  498. box-sizing: border-box;
  499. min-height: 171rpx;
  500. background: #FFFFFF;
  501. border-radius: 16rpx;
  502. background-repeat: no-repeat;
  503. background-size: 100% 30rpx;
  504. background-position: left bottom;
  505. padding: 38rpx 30rpx 36rpx;
  506. display: flex;
  507. align-items: center;
  508. justify-content: space-between;
  509. .left {
  510. width: 92%;
  511. .name-box {
  512. display: flex;
  513. align-items: center;
  514. .text {
  515. font-size: 32rpx;
  516. font-family: PingFang SC;
  517. font-weight: bold;
  518. color: #111111;
  519. line-height: 1;
  520. &.name {
  521. margin-right: 30rpx;
  522. }
  523. }
  524. }
  525. .address {
  526. font-size: 28rpx;
  527. font-family: PingFang SC;
  528. font-weight: 500;
  529. color: #666666;
  530. line-height: 42rpx;
  531. text-align: left;
  532. margin-top: 23rpx;
  533. }
  534. }
  535. .arrow-box {
  536. width: 12rpx;
  537. height: 23rpx;
  538. display: flex;
  539. align-items: cenetr;
  540. justify-content: cenetr;
  541. image {
  542. width: 100%;
  543. height: 100%;
  544. }
  545. }
  546. }
  547. .price-info {
  548. background: #FFFFFF;
  549. border-radius: 16rpx;
  550. &-title {
  551. padding: 30rpx 30rpx 20rpx 30rpx;
  552. font-family: PingFang SC, PingFang SC;
  553. font-weight: 500;
  554. font-size: 30rpx;
  555. color: #111;
  556. }
  557. &-unit {
  558. font-size: 24rpx;
  559. }
  560. &-num {
  561. font-size: 28rpx;
  562. }
  563. }
  564. .remarks {
  565. height: 88upx;
  566. padding: 0 30upx;
  567. background: #FFFFFF;
  568. border-radius: 16upx;
  569. margin-top: 20upx;
  570. display: flex;
  571. align-items: center;
  572. input {
  573. width: 100%;
  574. font-size: 28upx;
  575. font-family: PingFang SC;
  576. font-weight: 500;
  577. color: #000000;
  578. }
  579. .input {
  580. font-size: 28upx;
  581. font-family: PingFang SC;
  582. font-weight: 500;
  583. color: #999999;
  584. }
  585. }
  586. .points {
  587. height: 88rpx;
  588. padding: 0 30rpx;
  589. background: #FFFFFF;
  590. border-radius: 16rpx;
  591. display: flex;
  592. align-items: center;
  593. justify-content: space-between;
  594. .left {
  595. display: flex;
  596. align-items: center;
  597. image {
  598. width: 28rpx;
  599. height: 28rpx;
  600. margin-right: 20rpx;
  601. }
  602. .text {
  603. font-size: 28rpx;
  604. font-family: PingFang SC;
  605. font-weight: 500;
  606. color: #666666;
  607. }
  608. }
  609. .right {
  610. display: flex;
  611. align-items: center;
  612. .text {
  613. font-size: 28rpx;
  614. font-family: PingFang SC;
  615. font-weight: 500;
  616. color: #111111;
  617. }
  618. image {
  619. margin-left: 15rpx;
  620. width: 14rpx;
  621. height: 24rpx;
  622. }
  623. }
  624. }
  625. }
  626. .btn-foot {
  627. box-sizing: border-box;
  628. width: 100%;
  629. height: 121rpx;
  630. background: #FFFFFF;
  631. padding: 16rpx 30rpx 16rpx 60rpx;
  632. display: flex;
  633. align-items: center;
  634. justify-content: flex-end;
  635. position: fixed;
  636. left: 0;
  637. bottom: 0;
  638. z-index: 99;
  639. .right {
  640. display: flex;
  641. align-items: center;
  642. .total {
  643. display: flex;
  644. align-items: flex-end;
  645. margin-right: 36rpx;
  646. .label {
  647. font-size: 26rpx;
  648. font-family: PingFang SC;
  649. font-weight: 500;
  650. color: #999999;
  651. line-height: 1.5;
  652. }
  653. .price {
  654. display: flex;
  655. align-items: flex-end;
  656. .unit {
  657. font-size: 32rpx;
  658. font-family: PingFang SC;
  659. font-weight: bold;
  660. color: #FF6633;
  661. line-height: 1.2;
  662. margin-right: 10rpx;
  663. }
  664. .num {
  665. font-size: 50rpx;
  666. font-family: PingFang SC;
  667. font-weight: bold;
  668. color: #FF6633;
  669. line-height: 1;
  670. }
  671. }
  672. }
  673. .btn {
  674. width: 200rpx;
  675. height: 88rpx;
  676. line-height: 88rpx;
  677. text-align: center;
  678. font-size: 30rpx;
  679. font-family: PingFang SC;
  680. font-weight: bold;
  681. color: #FFFFFF;
  682. background: #2BC7B9;
  683. border-radius: 44rpx;
  684. }
  685. }
  686. }
  687. .coupon {
  688. height: 100%;
  689. }
  690. /*优惠券列表公共*/
  691. .coupon-list {}
  692. .coupon-list .item {
  693. display: flex;
  694. flex-direction: column;
  695. justify-content: center;
  696. align-items: center;
  697. width: 100%;
  698. height: 1.7 * 100rpx;
  699. margin-bottom: 0.16 * 100rpx;
  700. }
  701. .coupon-list .item .money {
  702. background-size: 100% 100%;
  703. width: 2.4 * 100rpx;
  704. height: 100%;
  705. color: #fff;
  706. font-size: 0.36 * 100rpx;
  707. font-weight: bold;
  708. text-align: center;
  709. display: flex;
  710. flex-direction: column;
  711. align-items: center;
  712. justify-content: center;
  713. position: relative;
  714. }
  715. .coupon-list .item .money .img {
  716. position: absolute;
  717. width: 2.4 * 100rpx;
  718. height: 100%;
  719. color: #fff;
  720. }
  721. .coupon-list .item .money .num {
  722. font-size: 0.6 * 100rpx;
  723. }
  724. .coupon-list .item .money .pic-num {
  725. font-size: 20rpx;
  726. z-index: 99;
  727. }
  728. .coupon-list .item .text {
  729. width: 4.5 * 100rpx;
  730. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  731. background-color: #fff;
  732. box-sizing: border-box;
  733. }
  734. .coupon-list .item .text .condition {
  735. font-size: 0.3 * 100rpx;
  736. color: #282828;
  737. height: 0.93 * 100rpx;
  738. line-height: 0.93 * 100rpx;
  739. border-bottom: 1px solid #f0f0f0;
  740. }
  741. .coupon-list .item .text .data {
  742. font-size: 0.2 * 100rpx;
  743. color: #999;
  744. height: 0.76 * 100rpx;
  745. }
  746. .coupon-list .item .text .data .bnt {
  747. width: 1.36 * 100rpx;
  748. height: 0.44 * 100rpx;
  749. border-radius: 0.22 * 100rpx;
  750. font-size: 0.22 * 100rpx;
  751. color: #fff;
  752. text-align: center;
  753. line-height: 0.44 * 100rpx;
  754. background-color: red;
  755. }
  756. </style>