confirmCreateOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  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://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/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://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/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://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/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://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/coupon1.png"
  99. mode="widthFix"></image>
  100. <image v-if="item.status!=0||item.useMinPrice>orderData.totalPrice" class="img"
  101. src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/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://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/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', this.handleAddressUpdate);
  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. }
  351. return createliveOrder(data).then(res => {
  352. if (res.code == 200) {
  353. this.orderList = res.order;
  354. return res.order;
  355. } else {
  356. uni.showToast({
  357. title: res.msg,
  358. icon: 'none'
  359. });
  360. throw new Error(res.msg);
  361. }
  362. });
  363. },
  364. // 创建抽奖订单
  365. createRewardOrder() {
  366. let data = {
  367. cityId: this.cityId,
  368. liveId: this.liveId,
  369. orderKey: this.orderKey,
  370. userName: this.address.realName,
  371. userPhone: this.address.phone,
  372. userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
  373. this.address.detail,
  374. cartId: "5",
  375. remark: this.orderData.remark || '',
  376. productId: this.productId,
  377. totalNum: 1,
  378. couponUserId: this.couponUserId,
  379. recordId: this.recordId
  380. }
  381. return createReward(data).then(res => {
  382. if (res.code == 200) {
  383. this.orderList = res.order || {};
  384. return res.order || {};
  385. } else {
  386. uni.showToast({
  387. title: res.msg,
  388. icon: 'none'
  389. });
  390. throw new Error(res.msg);
  391. }
  392. });
  393. },
  394. couponSelect(item) {
  395. this.couponText = "-¥" + (item.couponPrice || 0).toFixed(2);
  396. this.couponUserId = item.id;
  397. this.couponVisible = false;
  398. if (this.type == 'win') {
  399. this.computedRewardOrder()
  400. } else {
  401. this.computedOrder()
  402. }
  403. },
  404. // 自动选择最大优惠券
  405. autoSelectMaxCoupon() {
  406. if (this.couponsList.length === 0 || !this.isFirstLoad) {
  407. return;
  408. }
  409. const availableCoupons = this.couponsList.filter(item =>
  410. item.status === 0 && item.useMinPrice <= (this.orderData.totalPrice || 0)
  411. );
  412. if (availableCoupons.length === 0) {
  413. return;
  414. }
  415. availableCoupons.sort((a, b) => b.couponPrice - a.couponPrice);
  416. const maxCoupon = availableCoupons[0];
  417. this.couponText = "-¥" + (maxCoupon.couponPrice || 0).toFixed(2);
  418. this.couponUserId = maxCoupon.id;
  419. console.log('自动选择最大优惠券:', maxCoupon);
  420. this.isFirstLoad = false;
  421. // 重新计算订单价格
  422. if (this.type == 'win') {
  423. this.computedRewardOrder()
  424. } else {
  425. this.computedOrder()
  426. }
  427. },
  428. openCoupon() {
  429. console.log("点了优惠券列表")
  430. if (!this.liveId || !this.goodsId) {
  431. console.log('缺少必要参数,跳过优惠券请求');
  432. return;
  433. }
  434. const data = {
  435. liveId: this.liveId,
  436. goodsId: this.goodsId
  437. };
  438. curCoupon(data).then(res => {
  439. this.couponsList = res.data || [];
  440. if (this.isFirstLoad) {
  441. setTimeout(() => {
  442. this.autoSelectMaxCoupon();
  443. }, 100);
  444. }
  445. })
  446. },
  447. openAddress() {
  448. uni.navigateTo({
  449. url: '/pages_user/user/address'
  450. })
  451. },
  452. // 提交订单
  453. async submitOrder() {
  454. try {
  455. if (this.orderKey == null) {
  456. uni.showToast({
  457. icon: 'none',
  458. title: '订单KEY不存在',
  459. });
  460. return;
  461. }
  462. if (this.address == null) {
  463. uni.showToast({
  464. icon: 'none',
  465. title: '收货地址不能为空',
  466. });
  467. return;
  468. }
  469. let orderList;
  470. if (this.type == "win") {
  471. orderList = await this.createRewardOrder(); // 中奖订单
  472. } else {
  473. orderList = await this.createLiveOrder(); // 购买订单
  474. }
  475. console.log("orderList>>", orderList)
  476. const orderListStr = encodeURIComponent(JSON.stringify(orderList));
  477. uni.redirectTo({
  478. url: `/pages_shopping/live/paymentOrder?orderList=${orderListStr}&couponUserId=${this.couponUserId}&type=${this.type}`
  479. });
  480. } catch (error) {
  481. console.error('提交订单错误:', error);
  482. uni.showToast({
  483. title: error.message || '提交订单失败',
  484. icon: 'none'
  485. });
  486. }
  487. },
  488. }
  489. }
  490. </script>
  491. <style lang="scss">
  492. .inner-box {
  493. padding: 20rpx 20rpx 140rpx;
  494. .address-box {
  495. margin-bottom: 20rpx;
  496. box-sizing: border-box;
  497. min-height: 171rpx;
  498. background: #FFFFFF;
  499. border-radius: 16rpx;
  500. background-repeat: no-repeat;
  501. background-size: 100% 30rpx;
  502. background-position: left bottom;
  503. padding: 38rpx 30rpx 36rpx;
  504. display: flex;
  505. align-items: center;
  506. justify-content: space-between;
  507. .left {
  508. width: 92%;
  509. .name-box {
  510. display: flex;
  511. align-items: center;
  512. .text {
  513. font-size: 32rpx;
  514. font-family: PingFang SC;
  515. font-weight: bold;
  516. color: #111111;
  517. line-height: 1;
  518. &.name {
  519. margin-right: 30rpx;
  520. }
  521. }
  522. }
  523. .address {
  524. font-size: 28rpx;
  525. font-family: PingFang SC;
  526. font-weight: 500;
  527. color: #666666;
  528. line-height: 42rpx;
  529. text-align: left;
  530. margin-top: 23rpx;
  531. }
  532. }
  533. .arrow-box {
  534. width: 12rpx;
  535. height: 23rpx;
  536. display: flex;
  537. align-items: cenetr;
  538. justify-content: cenetr;
  539. image {
  540. width: 100%;
  541. height: 100%;
  542. }
  543. }
  544. }
  545. .price-info {
  546. background: #FFFFFF;
  547. border-radius: 16rpx;
  548. &-title {
  549. padding: 30rpx 30rpx 20rpx 30rpx;
  550. font-family: PingFang SC, PingFang SC;
  551. font-weight: 500;
  552. font-size: 30rpx;
  553. color: #111;
  554. }
  555. &-unit {
  556. font-size: 24rpx;
  557. }
  558. &-num {
  559. font-size: 28rpx;
  560. }
  561. }
  562. .remarks {
  563. height: 88upx;
  564. padding: 0 30upx;
  565. background: #FFFFFF;
  566. border-radius: 16upx;
  567. margin-top: 20upx;
  568. display: flex;
  569. align-items: center;
  570. input {
  571. width: 100%;
  572. font-size: 28upx;
  573. font-family: PingFang SC;
  574. font-weight: 500;
  575. color: #000000;
  576. }
  577. .input {
  578. font-size: 28upx;
  579. font-family: PingFang SC;
  580. font-weight: 500;
  581. color: #999999;
  582. }
  583. }
  584. .points {
  585. height: 88rpx;
  586. padding: 0 30rpx;
  587. background: #FFFFFF;
  588. border-radius: 16rpx;
  589. display: flex;
  590. align-items: center;
  591. justify-content: space-between;
  592. .left {
  593. display: flex;
  594. align-items: center;
  595. image {
  596. width: 28rpx;
  597. height: 28rpx;
  598. margin-right: 20rpx;
  599. }
  600. .text {
  601. font-size: 28rpx;
  602. font-family: PingFang SC;
  603. font-weight: 500;
  604. color: #666666;
  605. }
  606. }
  607. .right {
  608. display: flex;
  609. align-items: center;
  610. .text {
  611. font-size: 28rpx;
  612. font-family: PingFang SC;
  613. font-weight: 500;
  614. color: #111111;
  615. }
  616. image {
  617. margin-left: 15rpx;
  618. width: 14rpx;
  619. height: 24rpx;
  620. }
  621. }
  622. }
  623. }
  624. .btn-foot {
  625. box-sizing: border-box;
  626. width: 100%;
  627. height: 121rpx;
  628. background: #FFFFFF;
  629. padding: 16rpx 30rpx 16rpx 60rpx;
  630. display: flex;
  631. align-items: center;
  632. justify-content: flex-end;
  633. position: fixed;
  634. left: 0;
  635. bottom: 0;
  636. z-index: 99;
  637. .right {
  638. display: flex;
  639. align-items: center;
  640. .total {
  641. display: flex;
  642. align-items: flex-end;
  643. margin-right: 36rpx;
  644. .label {
  645. font-size: 26rpx;
  646. font-family: PingFang SC;
  647. font-weight: 500;
  648. color: #999999;
  649. line-height: 1.5;
  650. }
  651. .price {
  652. display: flex;
  653. align-items: flex-end;
  654. .unit {
  655. font-size: 32rpx;
  656. font-family: PingFang SC;
  657. font-weight: bold;
  658. color: #FF6633;
  659. line-height: 1.2;
  660. margin-right: 10rpx;
  661. }
  662. .num {
  663. font-size: 50rpx;
  664. font-family: PingFang SC;
  665. font-weight: bold;
  666. color: #FF6633;
  667. line-height: 1;
  668. }
  669. }
  670. }
  671. .btn {
  672. width: 200rpx;
  673. height: 88rpx;
  674. line-height: 88rpx;
  675. text-align: center;
  676. font-size: 30rpx;
  677. font-family: PingFang SC;
  678. font-weight: bold;
  679. color: #FFFFFF;
  680. background: #2BC7B9;
  681. border-radius: 44rpx;
  682. }
  683. }
  684. }
  685. .coupon {
  686. height: 100%;
  687. }
  688. /*优惠券列表公共*/
  689. .coupon-list {}
  690. .coupon-list .item {
  691. display: flex;
  692. flex-direction: column;
  693. justify-content: center;
  694. align-items: center;
  695. width: 100%;
  696. height: 1.7 * 100rpx;
  697. margin-bottom: 0.16 * 100rpx;
  698. }
  699. .coupon-list .item .money {
  700. background-size: 100% 100%;
  701. width: 2.4 * 100rpx;
  702. height: 100%;
  703. color: #fff;
  704. font-size: 0.36 * 100rpx;
  705. font-weight: bold;
  706. text-align: center;
  707. display: flex;
  708. flex-direction: column;
  709. align-items: center;
  710. justify-content: center;
  711. position: relative;
  712. }
  713. .coupon-list .item .money .img {
  714. position: absolute;
  715. width: 2.4 * 100rpx;
  716. height: 100%;
  717. color: #fff;
  718. }
  719. .coupon-list .item .money .num {
  720. font-size: 0.6 * 100rpx;
  721. }
  722. .coupon-list .item .money .pic-num {
  723. font-size: 20rpx;
  724. z-index: 99;
  725. }
  726. .coupon-list .item .text {
  727. width: 4.5 * 100rpx;
  728. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  729. background-color: #fff;
  730. box-sizing: border-box;
  731. }
  732. .coupon-list .item .text .condition {
  733. font-size: 0.3 * 100rpx;
  734. color: #282828;
  735. height: 0.93 * 100rpx;
  736. line-height: 0.93 * 100rpx;
  737. border-bottom: 1px solid #f0f0f0;
  738. }
  739. .coupon-list .item .text .data {
  740. font-size: 0.2 * 100rpx;
  741. color: #999;
  742. height: 0.76 * 100rpx;
  743. }
  744. .coupon-list .item .text .data .bnt {
  745. width: 1.36 * 100rpx;
  746. height: 0.44 * 100rpx;
  747. border-radius: 0.22 * 100rpx;
  748. font-size: 0.22 * 100rpx;
  749. color: #fff;
  750. text-align: center;
  751. line-height: 0.44 * 100rpx;
  752. background-color: red;
  753. }
  754. </style>