confirmOrder.vue 21 KB

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