confirmOrder.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  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. </vie>
  11. </view>
  12. <view class="arrow-box">
  13. <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/arrow_gray.png" mode="">
  14. </image>
  15. </view>
  16. </view>
  17. <view class="address-box" v-if="address!=null" @click="openAddress()">
  18. <view class="left">
  19. <view class="name-box">
  20. <text class="text name">{{address.realName}}</text>
  21. <text class="text" v-if="address.phone!=null">{{$parsePhone(address.phone)}}</text>
  22. </view>
  23. <view class="address">
  24. {{address.province}}{{address.city}}{{address.district}}{{address.detail}}
  25. </view>
  26. </view>
  27. <view class="arrow-box">
  28. <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/arrow_gray.png" mode="">
  29. </image>
  30. </view>
  31. </view>
  32. <!-- 药品列表 -->
  33. <view class="goods-list">
  34. <view v-for="(item,index) in carts" :key="index" class="item">
  35. <view class="img-box">
  36. <image :src="item.productAttrImage||item.productImage" mode="aspectFill"></image>
  37. </view>
  38. <view class="info-box">
  39. <view>
  40. <view class="name-box ellipsis2">
  41. <view class="tag">{{$getDictLabelName("storeProductType",item.productType)}}</view>
  42. {{item.productName}}
  43. </view>
  44. <view class="spec ellipsis2">{{item.productAttrName}}</view>
  45. </view>
  46. <view class="price-num">
  47. <view class="price">
  48. <text class="unit">¥</text>
  49. <text class="num">{{item.price.toFixed(2)}}</text>
  50. </view>
  51. <view class="num">x{{item.cartNum}}</view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 小计 -->
  56. <view class="sub-total">
  57. <text class="label">小计:</text>
  58. <view class="price">
  59. <text class="unit">¥</text>
  60. <text class="num">{{price.totalPrice.toFixed(2)}}</text>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 福币 -->
  65. <view class="es-mt-20 pointsBox">
  66. <view class="points">
  67. <view class="left">
  68. <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/points.png" mode="">
  69. </image>
  70. <text class="text">可用福币</text>
  71. </view>
  72. <view class="right">
  73. <text class="text es-mr-20">{{price.usedIntegral}}福币</text>
  74. <u-switch size="20" v-model="checked" @change="integralChange"></u-switch>
  75. </view>
  76. </view>
  77. <view class="points" @click="openCoupon()">
  78. <view class="left">
  79. <text class="text">优惠券</text>
  80. </view>
  81. <view class="right">
  82. <text class="text">{{couponText}}</text>
  83. <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/arrow4.png" mode="">
  84. </image>
  85. </view>
  86. </view>
  87. <view class="points">
  88. <view class="left">
  89. <text class="text">运费</text>
  90. </view>
  91. <view class="right">
  92. <text
  93. class="text">{{price.payPostage==null||price.payPostage==0?'免运费':price.payPostage.toFixed(2)}}</text>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 备注 -->
  98. <view class="remarks">
  99. <input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
  100. </view>
  101. </view>
  102. <!-- 底部按钮 -->
  103. <view class="btn-foot">
  104. <view class="right">
  105. <view class="total">
  106. <text class="label">合计:</text>
  107. <view class="price">
  108. <text class="unit">¥</text>
  109. <text class="num">{{price.payPrice.toFixed(2)}}</text>
  110. </view>
  111. </view>
  112. <view class="btn" @click="submitOrder">提交订单</view>
  113. </view>
  114. </view>
  115. <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
  116. <view class="coupon" style="height:650rpx;">
  117. <div class="coupon-list" v-if="couponsList.length > 0">
  118. <div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  119. <div class="money">
  120. <image v-if="item.status==0" class="img"
  121. src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/coupon1.png"
  122. mode="widthFix"></image>
  123. <image v-if="item.status!=0" class="img"
  124. src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/coupon2.png"
  125. mode="widthFix"></image>
  126. <div style="z-index: 999;">
  127. ¥<span class="num">{{ item.couponPrice }}</span>
  128. </div>
  129. <div class="pic-num">满{{ item.useMinPrice }}元可用</div>
  130. </div>
  131. <div class="text">
  132. <div class="condition line1">
  133. {{ item.couponTitle }}
  134. </div>
  135. <div class="data acea-row row-between-wrapper">
  136. <div>{{ item.limitTime }}到期</div>
  137. <div class="bnt bg-color-red" @click="couponSelect(item)">选择</div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <view v-if="couponsList.length == 0" class="no-data-box">
  143. <image src="/static/images/empty.png" mode="aspectFit">
  144. </image>
  145. <view class="empty-title">暂无数据</view>
  146. </view>
  147. </view>
  148. </popupBottom>
  149. <!-- <ykscreenRecord></ykscreenRecord> -->
  150. </view>
  151. </template>
  152. <script>
  153. import {
  154. getWeixinOrderTemps
  155. } from '@/api/common'
  156. import {
  157. confirm,
  158. computed,
  159. create
  160. } from '@/api/storeOrder'
  161. import {
  162. getMyEnableCouponList
  163. } from '@/api/coupon'
  164. import EvanSwitch from '@/components/evan-switch/evan-switch.vue'
  165. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  166. import ykscreenRecord from "@/components/yk-screenRecord/yk-screenRecord.vue"
  167. export default {
  168. components: {
  169. EvanSwitch,
  170. popupBottom,
  171. // ykscreenRecord
  172. },
  173. data() {
  174. return {
  175. temps: [],
  176. couponUserId: null,
  177. couponText: "请选择",
  178. couponsList: [],
  179. couponVisible: false,
  180. price: {
  181. payPrice: 0,
  182. totalPostage: 0,
  183. usedIntegral: 0,
  184. totalPrice: 0.00,
  185. },
  186. address: null,
  187. carts: [],
  188. checked: false,
  189. type: null,
  190. cartIds: null,
  191. storeId: null,
  192. form: {
  193. useIntegral: 0,
  194. orderKey: null,
  195. addressId: null,
  196. mark: null,
  197. companyId: null,
  198. companyUserId: null
  199. }
  200. }
  201. },
  202. onLoad(option) {
  203. this.form.companyId = option.companyId;
  204. this.form.companyUserId = option.companyUserId;
  205. this.cartIds = option.cartIds;
  206. this.type = option.type;
  207. this.storeId = option.storeId;
  208. this.confirm();
  209. uni.$on('updateAddress', (e) => {
  210. this.address = e;
  211. this.form.addressId = e.id;
  212. })
  213. this.getWeixinOrderTemps();
  214. },
  215. onShow() {
  216. uni.$on('updateAddress', (e) => {
  217. this.address = e;
  218. this.form.addressId = e.id;
  219. })
  220. },
  221. methods: {
  222. getWeixinOrderTemps: function() {
  223. getWeixinOrderTemps().then(
  224. res => {
  225. if (res.code == 200) {
  226. this.temps = res.temp
  227. } else {
  228. }
  229. },
  230. rej => {}
  231. );
  232. },
  233. couponSelect(item) {
  234. this.couponText = "-¥" + item.couponPrice.toFixed(2);
  235. this.couponUserId = item.id;
  236. this.couponVisible = false;
  237. this.computed();
  238. },
  239. openCoupon() {
  240. let that = this;
  241. var data = {
  242. couponType: 0,
  243. useMinPrice: this.price.payPrice
  244. };
  245. getMyEnableCouponList(data).then(res => {
  246. this.couponVisible = true;
  247. that.couponsList = res.data
  248. })
  249. },
  250. integralChange(e) {
  251. console.log(e)
  252. this.form.useIntegral = e ? 1 : 0
  253. this.computed()
  254. },
  255. confirm(item) {
  256. let data = {
  257. type: this.type,
  258. cartIds: this.cartIds
  259. };
  260. confirm(data).then(
  261. res => {
  262. if (res.code == 200) {
  263. this.carts = res.carts;
  264. this.form.orderKey = res.orderKey;
  265. if (res.address != null) {
  266. this.form.addressId = res.address.id;
  267. this.address = res.address;
  268. }
  269. this.computed()
  270. } else {
  271. uni.showToast({
  272. icon: 'none',
  273. title: res.msg,
  274. });
  275. }
  276. },
  277. rej => {}
  278. );
  279. },
  280. computed(item) {
  281. let data = {
  282. couponUserId: this.couponUserId,
  283. orderKey: this.form.orderKey,
  284. addressId: this.form.addressId,
  285. useIntegral: this.form.useIntegral
  286. };
  287. computed(data).then(
  288. res => {
  289. if (res.code == 200) {
  290. console.log(res)
  291. this.price = res.data
  292. } else {
  293. if (res.code == 501) {
  294. uni.showToast({
  295. icon: 'none',
  296. title: res.msg,
  297. });
  298. setTimeout(function() {
  299. uni.navigateBack({
  300. delta: 1
  301. })
  302. }, 500);
  303. return;
  304. } else {
  305. uni.showToast({
  306. icon: 'none',
  307. title: res.msg,
  308. });
  309. }
  310. }
  311. },
  312. rej => {}
  313. );
  314. },
  315. // 提交订单
  316. submitOrder() {
  317. var that = this;
  318. if (this.form.orderKey == null) {
  319. uni.showToast({
  320. icon: 'none',
  321. title: '订单KEY不存在',
  322. });
  323. return;
  324. }
  325. if (this.form.addressId == null) {
  326. uni.showToast({
  327. icon: 'none',
  328. title: '收货地址不能为空',
  329. });
  330. return;
  331. }
  332. that.createOrder();
  333. },
  334. createOrder() {
  335. var that = this;
  336. var data = null;
  337. var tuiUserId = uni.getStorageSync('tuiUserId');
  338. uni.showLoading({
  339. title: '正在处理中...'
  340. });
  341. if (tuiUserId != null && tuiUserId != undefined && tuiUserId > 0) {
  342. data = {
  343. orderCreateType: 1,
  344. tuiUserId: tuiUserId,
  345. companyId: this.form.companyId,
  346. companyUserId: this.form.companyUserId,
  347. couponUserId: this.couponUserId,
  348. mark: this.form.mark,
  349. orderKey: this.form.orderKey,
  350. addressId: this.form.addressId,
  351. useIntegral: this.form.useIntegral,
  352. payType: 1
  353. };
  354. } else {
  355. data = {
  356. orderCreateType: 1,
  357. companyId: this.form.companyId,
  358. companyUserId: this.form.companyUserId,
  359. couponUserId: this.couponUserId,
  360. mark: this.form.mark,
  361. orderKey: this.form.orderKey,
  362. addressId: this.form.addressId,
  363. useIntegral: this.form.useIntegral,
  364. payType: 1
  365. };
  366. }
  367. if (this.storeId != null && this.storeId > 0) {
  368. data.storeId = this.storeId;
  369. }
  370. uni.hideLoading()
  371. create(data).then(
  372. res => {
  373. uni.hideLoading()
  374. if (res.code == 200) {
  375. uni.hideLoading()
  376. if (res.order.isPrescribe == 1) {
  377. setTimeout(function() {
  378. uni.redirectTo({
  379. url: "prescribe?orderId=" + res.order.id
  380. })
  381. }, 200);
  382. } else {
  383. setTimeout(function() {
  384. uni.redirectTo({
  385. url: '/pages_mall/paymentOrder?orderId=' + res.order.id
  386. })
  387. }, 200);
  388. }
  389. return;
  390. } else {
  391. if (res.code == 501) {
  392. uni.showToast({
  393. icon: 'none',
  394. title: res.msg,
  395. });
  396. setTimeout(function() {
  397. uni.navigateBack({
  398. delta: 1
  399. })
  400. }, 200);
  401. return;
  402. } else {
  403. uni.showToast({
  404. icon: 'none',
  405. title: res.msg,
  406. });
  407. }
  408. }
  409. },
  410. rej => {}
  411. );
  412. },
  413. openAddress() {
  414. uni.navigateTo({
  415. url: '/pages/user/address'
  416. })
  417. }
  418. }
  419. }
  420. </script>
  421. <style lang="scss">
  422. .inner-box {
  423. padding: 20upx 20upx 140upx;
  424. .address-box {
  425. box-sizing: border-box;
  426. min-height: 171upx;
  427. background: #FFFFFF;
  428. border-radius: 16upx;
  429. background-image: url("https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/address_bg.png");
  430. background-repeat: no-repeat;
  431. background-size: 100% 30upx;
  432. background-position: left bottom;
  433. padding: 38upx 30upx 36upx;
  434. display: flex;
  435. align-items: center;
  436. justify-content: space-between;
  437. .left {
  438. width: 92%;
  439. .name-box {
  440. display: flex;
  441. align-items: center;
  442. .text {
  443. font-size: 32upx;
  444. font-family: PingFang SC;
  445. font-weight: bold;
  446. color: #111111;
  447. line-height: 1;
  448. &.name {
  449. margin-right: 30upx;
  450. }
  451. }
  452. }
  453. .address {
  454. font-size: 28upx;
  455. font-family: PingFang SC;
  456. font-weight: 500;
  457. color: #666666;
  458. line-height: 42upx;
  459. text-align: left;
  460. margin-top: 23upx;
  461. }
  462. }
  463. .arrow-box {
  464. width: 12upx;
  465. height: 23upx;
  466. display: flex;
  467. align-items: cenetr;
  468. justify-content: cenetr;
  469. image {
  470. width: 100%;
  471. height: 100%;
  472. }
  473. }
  474. }
  475. .goods-list {
  476. margin-top: 20upx;
  477. padding: 0 30upx;
  478. background-color: #FFFFFF;
  479. border-radius: 16upx;
  480. .item {
  481. padding: 30upx 0;
  482. border-bottom: 1px solid #EDEEEF;
  483. display: flex;
  484. align-items: center;
  485. .img-box {
  486. width: 160upx;
  487. height: 160upx;
  488. margin-right: 30upx;
  489. image {
  490. width: 100%;
  491. height: 100%;
  492. }
  493. }
  494. .info-box {
  495. width: calc(100% - 190upx);
  496. height: 160upx;
  497. display: flex;
  498. flex-direction: column;
  499. justify-content: space-between;
  500. .name-box {
  501. font-size: 28upx;
  502. font-family: PingFang SC;
  503. font-weight: 500;
  504. color: #111111;
  505. line-height: 40upx;
  506. .tag {
  507. display: inline-block;
  508. padding: 0 6upx;
  509. height: 30upx;
  510. background: linear-gradient(90deg, #66b2ef 0%, #2583EB 100%);
  511. border-radius: 4upx;
  512. margin-right: 10upx;
  513. font-size: 22upx;
  514. font-family: PingFang SC;
  515. font-weight: bold;
  516. color: #FFFFFF;
  517. line-height: 30upx;
  518. float: left;
  519. margin-top: 7upx;
  520. }
  521. }
  522. .spec {
  523. margin-top: 10upx;
  524. font-size: 24upx;
  525. font-family: PingFang SC;
  526. font-weight: 500;
  527. color: #999999;
  528. line-height: 1;
  529. }
  530. .price-num {
  531. display: flex;
  532. align-items: center;
  533. justify-content: space-between;
  534. .price {
  535. display: flex;
  536. align-items: flex-end;
  537. .unit {
  538. font-size: 24upx;
  539. font-family: PingFang SC;
  540. font-weight: 500;
  541. color: #111111;
  542. line-height: 1.2;
  543. margin-right: 4upx;
  544. }
  545. .num {
  546. font-size: 32upx;
  547. font-family: PingFang SC;
  548. font-weight: 500;
  549. color: #111111;
  550. line-height: 1;
  551. }
  552. }
  553. .num {
  554. font-size: 24upx;
  555. font-family: PingFang SC;
  556. font-weight: 500;
  557. color: #999999;
  558. line-height: 1;
  559. }
  560. }
  561. }
  562. }
  563. .sub-total {
  564. height: 88upx;
  565. display: flex;
  566. align-items: center;
  567. justify-content: flex-end;
  568. .label {
  569. font-size: 24upx;
  570. font-family: PingFang SC;
  571. font-weight: 500;
  572. color: #999999;
  573. }
  574. .price {
  575. display: flex;
  576. align-items: flex-end;
  577. .unit {
  578. font-size: 24upx;
  579. font-family: PingFang SC;
  580. font-weight: 500;
  581. color: #FF6633;
  582. line-height: 1.2;
  583. margin-right: 4upx;
  584. }
  585. .num {
  586. font-size: 32upx;
  587. font-family: PingFang SC;
  588. font-weight: bold;
  589. color: #FF6633;
  590. line-height: 1;
  591. }
  592. }
  593. }
  594. }
  595. .pointsBox {
  596. padding: 0 30rpx;
  597. border-radius: 16rpx;
  598. background: #FFFFFF;
  599. }
  600. .points {
  601. height: 88upx;
  602. display: flex;
  603. align-items: center;
  604. justify-content: space-between;
  605. border-bottom: 1rpx solid #EDEEEF;
  606. .left {
  607. display: flex;
  608. align-items: center;
  609. image {
  610. width: 28upx;
  611. height: 28upx;
  612. margin-right: 20upx;
  613. }
  614. .text {
  615. font-size: 28upx;
  616. font-family: PingFang SC;
  617. font-weight: 500;
  618. color: #666666;
  619. }
  620. }
  621. .right {
  622. display: flex;
  623. align-items: center;
  624. .text {
  625. font-size: 28upx;
  626. font-family: PingFang SC;
  627. font-weight: 500;
  628. color: #111111;
  629. }
  630. image {
  631. margin-left: 15upx;
  632. width: 14upx;
  633. height: 24upx;
  634. }
  635. }
  636. }
  637. .remarks {
  638. height: 88upx;
  639. padding: 0 30upx;
  640. background: #FFFFFF;
  641. border-radius: 16upx;
  642. margin-top: 20upx;
  643. display: flex;
  644. align-items: center;
  645. input {
  646. width: 100%;
  647. font-size: 28upx;
  648. font-family: PingFang SC;
  649. font-weight: 500;
  650. color: #000000;
  651. }
  652. .input {
  653. font-size: 28upx;
  654. font-family: PingFang SC;
  655. font-weight: 500;
  656. color: #999999;
  657. }
  658. }
  659. }
  660. .btn-foot {
  661. box-sizing: border-box;
  662. width: 100%;
  663. height: 121upx;
  664. background: #FFFFFF;
  665. padding: 16upx 30upx 16upx 60upx;
  666. display: flex;
  667. align-items: center;
  668. justify-content: flex-end;
  669. position: fixed;
  670. left: 0;
  671. bottom: 0;
  672. z-index: 99;
  673. .right {
  674. display: flex;
  675. align-items: center;
  676. .total {
  677. display: flex;
  678. align-items: flex-end;
  679. margin-right: 36upx;
  680. .label {
  681. font-size: 26upx;
  682. font-family: PingFang SC;
  683. font-weight: 500;
  684. color: #999999;
  685. line-height: 1.5;
  686. }
  687. .price {
  688. display: flex;
  689. align-items: flex-end;
  690. .unit {
  691. font-size: 32upx;
  692. font-family: PingFang SC;
  693. font-weight: bold;
  694. color: #FF6633;
  695. line-height: 1.2;
  696. margin-right: 10upx;
  697. }
  698. .num {
  699. font-size: 50upx;
  700. font-family: PingFang SC;
  701. font-weight: bold;
  702. color: #FF6633;
  703. line-height: 1;
  704. }
  705. }
  706. }
  707. .btn {
  708. width: 200upx;
  709. height: 88upx;
  710. line-height: 88upx;
  711. text-align: center;
  712. font-size: 30upx;
  713. font-family: PingFang SC;
  714. font-weight: bold;
  715. color: #FFFFFF;
  716. background: #2583EB;
  717. border-radius: 44upx;
  718. }
  719. }
  720. }
  721. </style>
  722. <style lang="less" scoped>
  723. .coupon {
  724. height: 100%;
  725. }
  726. /*优惠券列表公共*/
  727. .coupon-list {}
  728. .coupon-list .item {
  729. display: flex;
  730. flex-direction: column;
  731. justify-content: center;
  732. align-items: center;
  733. width: 100%;
  734. height: 1.7 * 100rpx;
  735. margin-bottom: 0.16 * 100rpx;
  736. }
  737. .coupon-list .item .money {
  738. background-size: 100% 100%;
  739. width: 2.4 * 100rpx;
  740. height: 100%;
  741. color: #fff;
  742. font-size: 0.36 * 100rpx;
  743. font-weight: bold;
  744. text-align: center;
  745. display: flex;
  746. flex-direction: column;
  747. align-items: center;
  748. justify-content: center;
  749. position: relative;
  750. }
  751. .coupon-list .item .money .img {
  752. position: absolute;
  753. width: 2.4 * 100rpx;
  754. height: 100%;
  755. color: #fff;
  756. }
  757. .coupon-list .item .money .num {
  758. font-size: 0.6 * 100rpx;
  759. }
  760. .coupon-list .item .money .pic-num {
  761. font-size: 20rpx;
  762. z-index: 99;
  763. }
  764. .coupon-list .item .text {
  765. width: 4.5 * 100rpx;
  766. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  767. background-color: #fff;
  768. box-sizing: border-box;
  769. }
  770. .coupon-list .item .text .condition {
  771. font-size: 0.3 * 100rpx;
  772. color: #282828;
  773. height: 0.93 * 100rpx;
  774. line-height: 0.93 * 100rpx;
  775. border-bottom: 1px solid #f0f0f0;
  776. }
  777. .coupon-list .item .text .data {
  778. font-size: 0.2 * 100rpx;
  779. color: #999;
  780. height: 0.76 * 100rpx;
  781. }
  782. .coupon-list .item .text .data .bnt {
  783. width: 1.36 * 100rpx;
  784. height: 0.44 * 100rpx;
  785. border-radius: 0.22 * 100rpx;
  786. font-size: 0.22 * 100rpx;
  787. color: #fff;
  788. text-align: center;
  789. line-height: 0.44 * 100rpx;
  790. background-color: red;
  791. }
  792. .coupon-list .item .text .data .bnt.gray {
  793. background-color: #ccc;
  794. }
  795. </style>