confirmOrder.vue 21 KB

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