confirmCreateOrder.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.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. form:{
  205. useIntegral:0,
  206. orderKey:null,
  207. addressId:null,
  208. mark:null,
  209. companyId:null,
  210. companyUserId:null,
  211. createOrderKey:null,
  212. },
  213. confirmParam: []
  214. }
  215. },
  216. onLoad(option) {
  217. this.confirmParam = JSON.parse(decodeURIComponent(option.confirmParam))
  218. this.form.createOrderKey=option.createOrderKey;
  219. this.form.companyId= option.companyId;
  220. this.form.companyUserId=option.companyUserId;
  221. this.cartIds=option.cartIds;
  222. this.type=option.type;
  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:2,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. 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. },
  285. computed(item){
  286. let data = {createOrderKey:this.form.createOrderKey,couponUserId:this.couponUserId,orderKeys:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral};
  287. computed(data).then(
  288. res => {
  289. if(res.code==200){
  290. // this.price=res.data
  291. this.price= res.data && res.data.length > 0 ? res.data : []
  292. this.priceAll = res.data && res.data.length > 0 ? res.data[res.data.length -1] : {
  293. payPrice:0,
  294. totalPostage:0,
  295. usedIntegral:0,
  296. totalPrice:0.00,
  297. }
  298. }else{
  299. if(res.code==501){
  300. uni.showToast({
  301. icon:'none',
  302. title: res.msg,
  303. });
  304. setTimeout(function(){
  305. uni.navigateBack({
  306. delta:1
  307. })
  308. },500);
  309. return;
  310. }
  311. else{
  312. uni.showToast({
  313. icon:'none',
  314. title: res.msg,
  315. });
  316. }
  317. }
  318. },
  319. rej => {}
  320. );
  321. },
  322. // 提交订单
  323. submitOrder() {
  324. var that=this;
  325. if(this.form.orderKey==null){
  326. uni.showToast({
  327. icon:'none',
  328. title: '订单KEY不存在',
  329. });
  330. return;
  331. }
  332. if(this.form.addressId==null){
  333. uni.showToast({
  334. icon:'none',
  335. title: '收货地址不能为空',
  336. });
  337. return;
  338. }
  339. uni.requestSubscribeMessage({
  340. tmplIds: this.temps,
  341. success(res) {
  342. that.createOrder();
  343. },
  344. fail(res) {
  345. that.createOrder();
  346. }
  347. })
  348. },
  349. createOrder(){
  350. const mark = this.carts.map(item => item.markinfo)
  351. var that=this;
  352. var data=null;
  353. var tuiUserId=uni.getStorageSync('tuiUserId');
  354. uni.showLoading({
  355. title: '正在处理中...'
  356. });
  357. if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
  358. data = {createOrderKey:this.form.createOrderKey,orderCreateType:3,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};
  359. }
  360. else{
  361. data = {createOrderKey:this.form.createOrderKey,orderCreateType:3,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};
  362. }
  363. create(data).then(
  364. res => {
  365. uni.hideLoading()
  366. if(!res.code && res.code !== 0){
  367. uni.hideLoading()
  368. // if(res.order.isPrescribe==1){
  369. // setTimeout(function(){
  370. // uni.redirectTo({
  371. // url:"prescribe?orderId="+res.order.id
  372. // })
  373. // },200);
  374. // }
  375. // else{
  376. // setTimeout(function(){
  377. // uni.redirectTo({
  378. // url: './paymentOrder?orderId='+res.order.id
  379. // })
  380. // },200);
  381. // }
  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. }
  399. else{
  400. if(res.code==501){
  401. uni.showToast({
  402. icon:'none',
  403. title: res.msg,
  404. });
  405. setTimeout(function(){
  406. uni.navigateBack({
  407. delta:1
  408. })
  409. },200);
  410. return;
  411. }
  412. else{
  413. uni.showToast({
  414. icon:'none',
  415. title: res.msg,
  416. });
  417. }
  418. }
  419. },
  420. rej => {}
  421. );
  422. },
  423. openAddress(){
  424. uni.navigateTo({
  425. url: '/pages_user/user/address'
  426. })
  427. }
  428. }
  429. }
  430. </script>
  431. <style lang="scss">
  432. .inner-box{
  433. padding: 20upx 20upx 140upx;
  434. .address-box{
  435. margin-bottom: 20rpx;
  436. box-sizing: border-box;
  437. min-height: 171upx;
  438. background: #FFFFFF;
  439. border-radius: 16upx;
  440. background-image: url(../../static/images/address_bg.png);
  441. background-repeat: no-repeat;
  442. background-size: 100% 30upx;
  443. background-position: left bottom;
  444. padding: 38upx 30upx 36upx;
  445. display: flex;
  446. align-items: center;
  447. justify-content: space-between;
  448. .left{
  449. width: 92%;
  450. .name-box{
  451. display: flex;
  452. align-items: center;
  453. .text{
  454. font-size: 32upx;
  455. font-family: PingFang SC;
  456. font-weight: bold;
  457. color: #111111;
  458. line-height: 1;
  459. &.name{
  460. margin-right: 30upx;
  461. }
  462. }
  463. }
  464. .address{
  465. font-size: 28upx;
  466. font-family: PingFang SC;
  467. font-weight: 500;
  468. color: #666666;
  469. line-height: 42upx;
  470. text-align:left;
  471. margin-top: 23upx;
  472. }
  473. }
  474. .arrow-box{
  475. width: 12upx;
  476. height: 23upx;
  477. display: flex;
  478. align-items: cenetr;
  479. justify-content: cenetr;
  480. image{
  481. width: 100%;
  482. height: 100%;
  483. }
  484. }
  485. }
  486. .shopbox {
  487. background: #FFFFFF;
  488. border-radius: 16rpx;
  489. margin-bottom: 20rpx;
  490. .points {
  491. padding: 0 !important;
  492. }
  493. .remarks {
  494. padding: 0 !important;
  495. }
  496. }
  497. .shopbox-name {
  498. padding: 30rpx 30rpx 0 30rpx;
  499. font-family: PingFang SC, PingFang SC;
  500. font-weight: 400;
  501. font-size: 30rpx;
  502. color: #111;
  503. overflow: hidden;
  504. white-space: nowrap;
  505. text-overflow: ellipsis;
  506. }
  507. .goods-list{
  508. // margin-top: 20upx;
  509. padding: 0 30upx;
  510. background-color: #FFFFFF;
  511. border-radius: 16upx;
  512. .item{
  513. padding: 30upx 0;
  514. border-bottom: 1px solid #EDEEEF;
  515. display: flex;
  516. align-items: center;
  517. .img-box{
  518. width: 160upx;
  519. height: 160upx;
  520. margin-right: 30upx;
  521. image{
  522. width: 100%;
  523. height: 100%;
  524. }
  525. }
  526. .info-box{
  527. width: calc(100% - 190upx);
  528. height: 160upx;
  529. display: flex;
  530. flex-direction: column;
  531. justify-content: space-between;
  532. .name-box{
  533. font-size: 28upx;
  534. font-family: PingFang SC;
  535. font-weight: 500;
  536. color: #111111;
  537. line-height: 40upx;
  538. .tag{
  539. display: inline-block;
  540. padding: 0 6upx;
  541. height: 30upx;
  542. background: linear-gradient(90deg, #66b2ef 0%, #0bb3f2 100%);
  543. border-radius: 4upx;
  544. margin-right: 10upx;
  545. font-size: 22upx;
  546. font-family: PingFang SC;
  547. font-weight: bold;
  548. color: #FFFFFF;
  549. line-height: 30upx;
  550. float: left;
  551. margin-top: 7upx;
  552. }
  553. }
  554. .spec{
  555. margin-top: 10upx;
  556. font-size: 24upx;
  557. font-family: PingFang SC;
  558. font-weight: 500;
  559. color: #999999;
  560. line-height: 1;
  561. }
  562. .price-num{
  563. display: flex;
  564. align-items: center;
  565. justify-content: space-between;
  566. .price{
  567. display: flex;
  568. align-items: flex-end;
  569. .unit{
  570. font-size: 24upx;
  571. font-family: PingFang SC;
  572. font-weight: 500;
  573. color: #111111;
  574. line-height: 1.2;
  575. margin-right: 4upx;
  576. }
  577. .num{
  578. font-size: 32upx;
  579. font-family: PingFang SC;
  580. font-weight: 500;
  581. color: #111111;
  582. line-height: 1;
  583. }
  584. }
  585. .num{
  586. font-size: 24upx;
  587. font-family: PingFang SC;
  588. font-weight: 500;
  589. color: #999999;
  590. line-height: 1;
  591. }
  592. }
  593. }
  594. }
  595. .sub-total{
  596. height: 88upx;
  597. display: flex;
  598. align-items: center;
  599. justify-content: flex-end;
  600. .label{
  601. font-size: 24upx;
  602. font-family: PingFang SC;
  603. font-weight: 500;
  604. color: #999999;
  605. }
  606. .price{
  607. display: flex;
  608. align-items: flex-end;
  609. .unit{
  610. font-size: 24upx;
  611. font-family: PingFang SC;
  612. font-weight: 500;
  613. color: #FF6633;
  614. line-height: 1.2;
  615. margin-right: 4upx;
  616. }
  617. .num{
  618. font-size: 32upx;
  619. font-family: PingFang SC;
  620. font-weight: bold;
  621. color: #FF6633;
  622. line-height: 1;
  623. }
  624. }
  625. }
  626. }
  627. .price-info {
  628. background: #FFFFFF;
  629. border-radius: 16upx;
  630. &-title {
  631. padding: 30rpx 30rpx 20rpx 30rpx;
  632. font-family: PingFang SC, PingFang SC;
  633. font-weight: 500;
  634. font-size: 30rpx;
  635. color: #111;
  636. }
  637. &-unit {
  638. font-size: 24rpx;
  639. }
  640. &-num {
  641. font-size: 28rpx;
  642. }
  643. }
  644. .points{
  645. height: 88upx;
  646. padding: 0 30upx;
  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. margin-top: 20upx;
  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>