confirmCreateOrder.vue 20 KB

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