confirmCreateOrder.vue 20 KB

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