confirmOrder.vue 19 KB

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