confirmCreateOrder.vue 19 KB

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