packageOrderPay.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  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://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/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">{{address.phone}}</text>
  20. </view>
  21. <view class="address">
  22. {{address.address}}
  23. </view>
  24. </view>
  25. <view class="arrow-box">
  26. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png" mode=""></image>
  27. </view>
  28. </view>
  29. <view class="other-info">
  30. <view class="title">支付明细</view>
  31. <view class="item">
  32. <view class="left">
  33. <text class="label">应付金额:</text>
  34. </view>
  35. <view class="right">
  36. <text class="text" >{{payPrice}}</text>
  37. </view>
  38. </view>
  39. <view class="item" v-if="order!=null&&(order.userCouponId==null||order.userCouponId==0)" @click.stop="openCoupon()">
  40. <view class="left">
  41. <text class="label">优惠券:</text>
  42. </view>
  43. <view class="right">
  44. <text class="text">{{couponText}}</text>
  45. <image v-if="userCouponId!=0" @click.stop="delCoupon()" class="ic-close" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/close.png"></image>
  46. <image class="ic-back" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/arrow_gray.png"></image>
  47. </view>
  48. </view>
  49. <view class="item" >
  50. <view class="left">
  51. <text class="label">优惠金额:</text>
  52. </view>
  53. <view class="right">
  54. <text class="text">{{discountMoney}}</text>
  55. </view>
  56. </view>
  57. <view class="item">
  58. <view class="left">
  59. <text class="label">支付金额:</text>
  60. </view>
  61. <view class="right">
  62. <text class="text">{{payMoney}}</text>
  63. </view>
  64. </view>
  65. <view class="item">
  66. <view class="left">
  67. <text class="label">物流代收:</text>
  68. </view>
  69. <view class="right">
  70. <text class="text">{{payRemain}}</text>
  71. </view>
  72. </view>
  73. <view class="item">
  74. <view class="left">
  75. <text class="label">邮费:</text>
  76. </view>
  77. <view class="right">
  78. <text class="text">{{payDelivery}}</text>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="pay-type">
  83. <view class="title">支付方式</view>
  84. <radio-group @change="payTypeChange" >
  85. <view class="item" v-if="checkPayType('1')&&choose!=1" >
  86. <view class="left" >
  87. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/wecha_pay.png" mode=""></image>
  88. <text class="text">全款支付</text>
  89. </view>
  90. <label>
  91. <text v-show="payType==1" class="text" style="margin-right: 14rpx;">赠送积分:{{integral}}</text>
  92. <radio :value="1" :checked="payType=='1'" />
  93. </label>
  94. </view>
  95. <view class="item" v-if="checkPayType('2')" >
  96. <view class="left" >
  97. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/pay_de.png" mode=""></image>
  98. <text class="text">物流代收</text>
  99. </view>
  100. <label>
  101. <text v-show="payType==2" class="text" style="margin-right: 14rpx;">赠送积分:{{integral}}</text>
  102. <radio :value="2" :checked="payType=='2'" />
  103. </label>
  104. </view>
  105. <view class="item" v-if="checkPayType('3')&&choose!=2" >
  106. <view class="left">
  107. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/pay_1.png" mode=""></image>
  108. <text class="text">货到付款</text>
  109. </view>
  110. <label>
  111. <text v-show="payType==3" class="text" style="margin-right: 14rpx;">赠送积分:{{integral}}</text>
  112. <radio :value="3" :checked="payType=='3'" />
  113. </label>
  114. </view>
  115. </radio-group>
  116. </view>
  117. <!-- v-if="payType=='1'&&order!=null&&order.companyId!=null&&order.companyId>0&&giftPrice<=payPrice" -->
  118. <view class="other-info" v-if="gifts.length>0">
  119. <view class="title">赠品</view>
  120. <view class="drug-list" >
  121. <view v-for="(product) in gifts" class="drug-item" >
  122. <view class="img-box">
  123. <image :src="product.image" mode="aspectFill"></image>
  124. </view>
  125. <view class="drug-info" >
  126. <view>
  127. <view class="name-box ellipsis2">
  128. {{product.productName}}
  129. </view>
  130. <view class="spec">{{product.sku}}</view>
  131. </view>
  132. <view class="num-box">
  133. <view class="price">
  134. <text class="unit">¥</text>
  135. <text class="num">{{product.price.toFixed(2)}}</text>
  136. </view>
  137. <view class="amount">x{{product.count}}</view>
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 备注 -->
  144. <view class="remarks" v-if="order!=null">
  145. <input type="text" v-model="order.remark" placeholder="备注留言(选填)" placeholder-class="input" />
  146. </view>
  147. </view>
  148. <u-popup :closeable="true" :show="couponShow" :round="10" mode="bottom" @close="close" @open="open">
  149. <view class="coupon">
  150. <view class="coupon-box" v-if="coupons.length>0" >
  151. <view @click="couponSelect(item)" class="coupon-item" v-for="(item) in coupons">
  152. <view class="left" >
  153. <image v-if="item.status==0" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/0fdd75d89db84458886d38e615011048.png" mode="widthFix"></image>
  154. <image v-if="item.status!=0" src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/d950e4c7af1e4464be1a7777e9dca576.png" mode="widthFix"></image>
  155. <view style="z-index: 999;">
  156. ¥<span class="num">{{item.price.toFixed(2)}}</span>
  157. </view>
  158. <view class="pic-num" >满{{item.minPrice.toFixed(2)}}元可用</view>
  159. </view>
  160. <view class="right">
  161. <view class="title">
  162. {{item.title}}
  163. </view>
  164. <view class="btns">
  165. <view v-if="item.status==0||item.status==2" >{{item.limitTime}} 到期</view>
  166. <view v-if="item.status==1">使用时间 {{item.useTime}}</view>
  167. <view class="bnt gray" v-if="item.status==1" >已使用</view>
  168. <view class="bnt gray" v-if="item.status==2" >已过期</view>
  169. <view class="btn" v-if="item.status==0" >使用</view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <view class="empty" v-if="coupons.length==0">
  175. <image src="https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/imagesNew/cf4a86b913a04341bb44e34bb4d37aa2.png"></image>
  176. </view>
  177. </view>
  178. </u-popup>
  179. <!-- 底部按钮 -->
  180. <view class="btn-box">
  181. <view class="btn" v-if="order!=null" @click="payOrder()">支付{{payMoney}}元</view>
  182. </view>
  183. </view>
  184. </template>
  185. <script>
  186. import {getConfigByKey} from '@/api/common'
  187. import {getAddressByDefault} from '@/api/userAddress.js'
  188. import {getMyEnableCouponList} from '@/api/user.js'
  189. import {getPackageById} from '@/api/package.js'
  190. import {getPackageOrderById,pay,compute} from '@/api/packageOrder'
  191. export default {
  192. data() {
  193. return {
  194. giftPrice:0.00,
  195. payTypes:[],
  196. addressId:null,
  197. wxPay: true,
  198. address:null,
  199. orderId:null,
  200. order:null,
  201. items:null,
  202. payType:"1",
  203. couponText:"请选择优惠券",
  204. userCouponId:0,
  205. coupons:[],
  206. couponShow:false,
  207. payMoney:0.00,
  208. discountMoney:0,
  209. payRemain:0,
  210. payDelivery:0,
  211. payPrice:0,
  212. gifts:[],
  213. choose: 0,
  214. subMsg: 0, // 0 表示弹出订阅,1表示不需要弹出订阅
  215. integral:0
  216. }
  217. },
  218. onLoad(option) {
  219. this.subMsg = option.subMsg || 0
  220. this.choose = option.choose || 0
  221. this.payType = this.choose == 1 ? 3:this.choose == 2 ? 1 :this.payType
  222. this.orderId=option.orderId;
  223. var that=this;
  224. uni.$on('updateAddress', (e) => {
  225. that.addressId=e.addressId;
  226. that.address=e;
  227. that.address.address=e.province+e.city+e.district+e.detail
  228. })
  229. this.getAddressByDefault();
  230. },
  231. onShow() {
  232. this.getPackageOrderById();
  233. // this.getPackageById();
  234. this.getConfigByKey();
  235. },
  236. methods: {
  237. getAddressByDefault(){
  238. var data={};
  239. getAddressByDefault(data).then(
  240. res => {
  241. if(res.code==200){
  242. if(res.data!=null){
  243. this.addressId=res.data.addressId;
  244. this.address=res.data;
  245. this.address.address=res.data.province+res.data.city+res.data.district+res.data.detail
  246. }
  247. }else{
  248. uni.showToast({
  249. icon:'none',
  250. title: res.msg,
  251. });
  252. }
  253. },
  254. rej => {}
  255. );
  256. },
  257. getConfigByKey(){
  258. var that=this;
  259. var data={key:"his.package"}
  260. getConfigByKey(data).then(
  261. res => {
  262. if(res.code==200){
  263. this.giftPrice=JSON.parse(res.data).giftPrice;
  264. }
  265. },
  266. rej => {}
  267. );
  268. },
  269. checkPayType(payType){
  270. var flag=false
  271. this.payTypes.forEach(function(value,index,array){
  272. if(value.toString()==payType.toString()){
  273. flag=true;
  274. }
  275. });
  276. return flag;
  277. },
  278. payTypeChange(e){
  279. this.payType=e.detail.value;
  280. this.compute()
  281. },
  282. couponSelect(item){
  283. this.couponShow = false;
  284. //计算金额
  285. this.userCouponId=item.id;
  286. this.couponText=item.price+"元优惠券"
  287. this.compute()
  288. },
  289. open() {
  290. },
  291. close() {
  292. this.couponShow = false
  293. },
  294. openCoupon(){
  295. this.couponShow=true;
  296. },
  297. delCoupon(){
  298. this.userCouponId=0;
  299. this.couponText="请选择优惠券";
  300. this.compute();
  301. },
  302. compute(){
  303. var data={
  304. payType:this.payType,
  305. orderId:this.orderId,
  306. userCouponId:this.userCouponId,
  307. companyId:this.companyId,
  308. companyUserId:this.companyUserId,
  309. appId:getApp().globalData.appId
  310. }
  311. compute(data).then(
  312. res => {
  313. if(res.code==200){
  314. this.payPrice=res.moneys.payPrice.toFixed(2);
  315. this.payMoney=res.moneys.payMoney.toFixed(2);
  316. this.discountMoney=res.moneys.discountMoney.toFixed(2);
  317. this.payDelivery=res.moneys.payDelivery.toFixed(2);
  318. this.payRemain=res.moneys.payRemain.toFixed(2);
  319. this.gifts=res.moneys.gifts;
  320. this.integral = res.moneys.integral;
  321. }
  322. else{
  323. if(res.msg=='用户OPENID不存在 '){
  324. this.$reLoginCheck(res.msg)
  325. return
  326. }
  327. this.payType=1;
  328. this.compute()
  329. this.userCouponId=0;
  330. this.couponText="请选择优惠券"
  331. uni.showToast({
  332. icon:'none',
  333. title: res.msg,
  334. });
  335. }
  336. },
  337. err => {
  338. }
  339. );
  340. },
  341. getMyEnableCouponList(){
  342. var data={
  343. orderId: this.orderId
  344. }
  345. if(this.package.isShow==0){
  346. data.couponType=5;
  347. data.cateId=this.package.privateType
  348. }
  349. else if(this.package.isShow==1){
  350. data.couponType=6;
  351. data.cateId=this.package.diseaseType
  352. }
  353. getMyEnableCouponList(data).then(
  354. res => {
  355. if(res.code==200){
  356. this.coupons=res.data;
  357. }
  358. },
  359. err => {
  360. }
  361. );
  362. },
  363. getPackageOrderById(){
  364. var data={orderId:this.orderId};
  365. getPackageOrderById(data).then(
  366. res => {
  367. if(res.code==200){
  368. this.order=res.order
  369. this.choose = res.choose || 0
  370. this.payType = this.choose == 1 ? 3:this.choose == 2 ? 1 :this.payType
  371. this.compute();
  372. this.getPackageById(this.order.packageId)
  373. }else{
  374. }
  375. },
  376. rej => {}
  377. );
  378. },
  379. getPackageById(packageId){
  380. let data={packageId:packageId};
  381. if(this.choose == 1 || this.choose == 2) {
  382. data={
  383. packageId:packageId,
  384. choose: this.choose
  385. };
  386. }
  387. getPackageById(data).then(
  388. res => {
  389. if(res.code==200){
  390. this.package=res.data;
  391. this.payTypes=res.data.payType.split(',');
  392. this.payType=this.choose == 1 ? 3:this.choose == 2 ? 1 :this.payType
  393. this.getMyEnableCouponList();
  394. }else{
  395. }
  396. },
  397. rej => {}
  398. );
  399. },
  400. openAddress(){
  401. uni.navigateTo({
  402. url: '/pages_user/address'
  403. })
  404. },
  405. payOrder(){
  406. var data = {
  407. payType:this.payType,
  408. userCouponId:this.userCouponId,
  409. addressId:this.addressId,
  410. remark:this.order.remark,
  411. orderId:this.order.orderId,
  412. appId:getApp().globalData.appId
  413. };
  414. var that=this;
  415. uni.showLoading();
  416. pay(data).then(
  417. res => {
  418. if(res.code==200){
  419. if(that.subMsg == 1) {
  420. uni.redirectTo({
  421. url:"./packagePayment?orderId="+that.orderId
  422. })
  423. } else {
  424. var temps=['wqKEklE_w5N19w9VAGY74TltPE6Ne3BaFObDD47uDEo']
  425. uni.requestSubscribeMessage({
  426. tmplIds: temps,
  427. success(e) {
  428. setTimeout(function(){
  429. uni.redirectTo({
  430. url:"./packagePayment?orderId="+that.orderId
  431. })
  432. },200);
  433. },
  434. fail(e) {
  435. setTimeout(function(){
  436. uni.redirectTo({
  437. url:"./packagePayment?orderId="+that.orderId
  438. })
  439. },200);
  440. }
  441. })
  442. }
  443. }else{
  444. uni.showToast({
  445. icon:'none',
  446. title: res.msg,
  447. });
  448. this.$reLoginCheck(res.msg)
  449. }
  450. },
  451. rej => {}
  452. );
  453. }
  454. }
  455. }
  456. </script>
  457. <style lang="scss">
  458. .inner-box{
  459. padding: 20upx 20upx 300upx;
  460. .address-box{
  461. box-sizing: border-box;
  462. min-height: 171upx;
  463. background: #FFFFFF;
  464. border-radius: 16upx;
  465. background-image: url(https://cqtyt-2025.oss-cn-beijing.aliyuncs.com/huyi/images/address_bg.png);
  466. background-repeat: no-repeat;
  467. background-size: 100% 30upx;
  468. background-position: left bottom;
  469. padding: 38upx 30upx 36upx;
  470. display: flex;
  471. align-items: center;
  472. justify-content: space-between;
  473. .left{
  474. width: 92%;
  475. .name-box{
  476. display: flex;
  477. align-items: center;
  478. .text{
  479. font-size: 32upx;
  480. font-family: PingFang SC;
  481. font-weight: bold;
  482. color: #111111;
  483. line-height: 1;
  484. &.name{
  485. margin-right: 30upx;
  486. }
  487. }
  488. }
  489. .address{
  490. font-size: 28upx;
  491. font-family: PingFang SC;
  492. font-weight: 500;
  493. color: #666666;
  494. line-height: 42upx;
  495. text-align:left;
  496. margin-top: 23upx;
  497. }
  498. }
  499. .arrow-box{
  500. width: 12upx;
  501. height: 23upx;
  502. display: flex;
  503. align-items: cenetr;
  504. justify-content: cenetr;
  505. image{
  506. width: 100%;
  507. height: 100%;
  508. }
  509. }
  510. }
  511. .goods-list{
  512. margin-top: 20upx;
  513. padding: 0 30upx;
  514. background-color: #FFFFFF;
  515. border-radius: 16upx;
  516. .item{
  517. padding: 30upx 0;
  518. border-bottom: 1px solid #EDEEEF;
  519. display: flex;
  520. align-items: center;
  521. .img-box{
  522. width: 160upx;
  523. height: 160upx;
  524. margin-right: 30upx;
  525. image{
  526. width: 100%;
  527. height: 100%;
  528. }
  529. }
  530. .info-box{
  531. width: calc(100% - 190upx);
  532. height: 160upx;
  533. display: flex;
  534. flex-direction: column;
  535. justify-content: space-between;
  536. .name-box{
  537. font-size: 28upx;
  538. font-family: PingFang SC;
  539. font-weight: 500;
  540. color: #111111;
  541. line-height: 40upx;
  542. .tag{
  543. display: inline-block;
  544. padding: 0 6upx;
  545. height: 30upx;
  546. background: linear-gradient(90deg, #078C9D 0%, #E2C99E 100%);
  547. border-radius: 4upx;
  548. margin-right: 10upx;
  549. font-size: 22upx;
  550. font-family: PingFang SC;
  551. font-weight: bold;
  552. color: #FFFFFF;
  553. line-height: 30upx;
  554. float: left;
  555. margin-top: 7upx;
  556. }
  557. }
  558. .spec{
  559. margin-top: 10upx;
  560. font-size: 24upx;
  561. font-family: PingFang SC;
  562. font-weight: 500;
  563. color: #999999;
  564. line-height: 1;
  565. }
  566. .price-num{
  567. display: flex;
  568. align-items: center;
  569. justify-content: space-between;
  570. .price{
  571. display: flex;
  572. align-items: flex-end;
  573. .unit{
  574. font-size: 24upx;
  575. font-family: PingFang SC;
  576. font-weight: 500;
  577. color: #111111;
  578. line-height: 1.2;
  579. margin-right: 4upx;
  580. }
  581. .num{
  582. font-size: 32upx;
  583. font-family: PingFang SC;
  584. font-weight: 500;
  585. color: #111111;
  586. line-height: 1;
  587. }
  588. }
  589. .num{
  590. font-size: 24upx;
  591. font-family: PingFang SC;
  592. font-weight: 500;
  593. color: #999999;
  594. line-height: 1;
  595. }
  596. }
  597. }
  598. }
  599. .sub-total{
  600. height: 88upx;
  601. display: flex;
  602. align-items: center;
  603. justify-content: flex-end;
  604. .label{
  605. font-size: 24upx;
  606. font-family: PingFang SC;
  607. font-weight: 500;
  608. color: #999999;
  609. }
  610. .price{
  611. display: flex;
  612. align-items: flex-end;
  613. .unit{
  614. font-size: 24upx;
  615. font-family: PingFang SC;
  616. font-weight: 500;
  617. color: #FF6633;
  618. line-height: 1.2;
  619. margin-right: 4upx;
  620. }
  621. .num{
  622. font-size: 32upx;
  623. font-family: PingFang SC;
  624. font-weight: bold;
  625. color: #FF6633;
  626. line-height: 1;
  627. }
  628. }
  629. }
  630. }
  631. .other-info{
  632. margin-top: 20upx;
  633. background-color: #fff;
  634. border-radius: 20upx;
  635. overflow: hidden;
  636. padding: 0 30upx;
  637. .title{
  638. height: 80upx;
  639. line-height: 80upx;
  640. font-size: 30upx;
  641. color: #000;
  642. font-weight: bold;
  643. border-bottom: 2upx solid #eeeeee;
  644. }
  645. .drug-list{
  646. margin-top: 15rpx;
  647. .drug-item{
  648. padding-bottom: 15upx;
  649. border-bottom: 1px soli #F0F0F0;
  650. display: flex;
  651. align-items: center;
  652. .img-box{
  653. width: 160upx;
  654. height: 160upx;
  655. margin-right: 30upx;
  656. flex-shrink: 0;
  657. image{
  658. width: 100%;
  659. height: 100%;
  660. }
  661. }
  662. .drug-info{
  663. width: calc(100% - 190upx);
  664. height: 160upx;
  665. display: flex;
  666. flex-direction: column;
  667. justify-content: space-between;
  668. .name-box{
  669. font-size: 28upx;
  670. font-family: PingFang SC;
  671. font-weight: 500;
  672. color: #111111;
  673. line-height: 40upx;
  674. .tag{
  675. display: inline-block;
  676. padding: 0 6upx;
  677. height: 30upx;
  678. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  679. border-radius: 4upx;
  680. margin-right: 10upx;
  681. font-size: 22upx;
  682. font-family: PingFang SC;
  683. font-weight: bold;
  684. color: #FFFFFF;
  685. line-height: 30upx;
  686. float: left;
  687. margin-top: 7upx;
  688. }
  689. }
  690. .spec{
  691. font-size: 24upx;
  692. font-family: PingFang SC;
  693. font-weight: 500;
  694. color: #999999;
  695. line-height: 1;
  696. margin-top: 10upx;
  697. }
  698. .num-box{
  699. display: flex;
  700. align-items: center;
  701. justify-content: space-between;
  702. .price{
  703. display: flex;
  704. align-items: flex-end;
  705. .unit{
  706. font-size: 24upx;
  707. font-family: PingFang SC;
  708. font-weight: 500;
  709. color: #111111;
  710. line-height: 1.2;
  711. margin-right: 4upx;
  712. }
  713. .num{
  714. font-size: 32upx;
  715. font-family: PingFang SC;
  716. font-weight: 500;
  717. color: #111111;
  718. line-height: 1;
  719. }
  720. }
  721. .use{
  722. font-size: 24upx;
  723. font-family: PingFang SC;
  724. color: #999999;
  725. }
  726. .amount{
  727. font-size: 24upx;
  728. font-family: PingFang SC;
  729. font-weight: 500;
  730. color: #999999;
  731. line-height: 1;
  732. }
  733. }
  734. }
  735. }
  736. }
  737. .item{
  738. height: 80upx;
  739. display: flex;
  740. align-items: center;
  741. justify-content: space-between;
  742. &:last-child{
  743. border-bottom: none;
  744. }
  745. .left{
  746. flex: 1;
  747. display: flex;
  748. align-items: center;
  749. .label{
  750. min-width: 140rpx;
  751. font-size: 28upx;
  752. color: #000;
  753. }
  754. .text{
  755. font-size: 28upx;
  756. color: #1b1b1b;
  757. }
  758. }
  759. .right{
  760. display: flex;
  761. align-items: center;
  762. justify-content: flex-end;
  763. .text{
  764. font-size: 28upx;
  765. color: #1b1b1b;
  766. }
  767. .ic-close{
  768. margin-left: 10rpx;
  769. width: 30rpx;
  770. height:30rpx;
  771. }
  772. .ic-back{
  773. margin-left: 10rpx;
  774. width: 15rpx;
  775. height:30rpx;
  776. }
  777. }
  778. .item-btn{
  779. max-width: 200rpx;
  780. padding: 0rpx 15rpx;
  781. height: 48upx;
  782. border-radius: 24upx;
  783. line-height: 48upx;
  784. font-size: 24upx;
  785. color: #000;
  786. border: 1upx solid #d8d8d8;
  787. display: flex;
  788. align-items: center;
  789. justify-content: center;
  790. }
  791. }
  792. }
  793. .remarks{
  794. height: 88upx;
  795. padding: 0 30upx;
  796. background: #FFFFFF;
  797. border-radius: 16upx;
  798. margin-top: 20upx;
  799. display: flex;
  800. align-items: center;
  801. input{
  802. width: 100%;
  803. font-size: 28upx;
  804. font-family: PingFang SC;
  805. font-weight: 500;
  806. color: #000000;
  807. }
  808. .input{
  809. font-size: 28upx;
  810. font-family: PingFang SC;
  811. font-weight: 500;
  812. color: #999999;
  813. }
  814. }
  815. }
  816. .btn-box{
  817. z-index: 9999;
  818. width: 100%;
  819. padding: 30rpx 30upx 0rpx;
  820. position: fixed;
  821. bottom: 0;
  822. left: 0;
  823. box-sizing: border-box;
  824. background-color: #ffffff;
  825. display: flex;
  826. flex-direction: column;
  827. align-items: center;
  828. justify-content: center;
  829. .btn{
  830. margin-bottom: 20rpx;
  831. width: 100%;
  832. height: 88upx;
  833. line-height: 88upx;
  834. text-align: center;
  835. font-size: 34upx;
  836. font-family: PingFang SC;
  837. font-weight: 400;
  838. color: #FFFFFF;
  839. background: #078C9D;
  840. border-radius: 10upx;
  841. position: relative;
  842. .contact-btn {
  843. position: absolute;
  844. width:100%;
  845. height:100%;
  846. display: flex;
  847. opacity: 0;
  848. }
  849. }
  850. .btn1{
  851. margin-bottom: 20rpx;
  852. width: 100%;
  853. height: 88upx;
  854. line-height: 88upx;
  855. text-align: center;
  856. font-size: 34upx;
  857. font-family: PingFang SC;
  858. font-weight: 400;
  859. color: #078C9D;
  860. border: 1rpx solid #078C9D;
  861. border-radius: 10upx;
  862. position: relative;
  863. .contact-btn {
  864. position: absolute;
  865. width:100%;
  866. height:100%;
  867. display: flex;
  868. opacity: 0;
  869. }
  870. }
  871. }
  872. .pay-type{
  873. box-sizing: border-box;
  874. background: #FFFFFF;
  875. border-radius: 16upx;
  876. margin-top: 20upx;
  877. padding: 40upx 30upx 20rpx;
  878. display: flex;
  879. flex-direction: column;
  880. justify-content: space-between;
  881. .title{
  882. font-size: 28upx;
  883. font-family: PingFang SC;
  884. font-weight: 500;
  885. color: #999999;
  886. line-height: 1;
  887. margin-bottom: 10upx;
  888. }
  889. .item{
  890. padding: 15upx 0upx;
  891. display: flex;
  892. align-items: center;
  893. justify-content: space-between;
  894. .left{
  895. display: flex;
  896. align-items: center;
  897. image{
  898. width: 44upx;
  899. height: 44upx;
  900. margin-right: 20upx;
  901. }
  902. .text{
  903. font-size: 30upx;
  904. font-family: PingFang SC;
  905. font-weight: bold;
  906. color: #222222;
  907. line-height: 1;
  908. }
  909. }
  910. }
  911. }
  912. .coupon{
  913. height: 100%;
  914. .empty{
  915. display: flex;
  916. align-items: center;
  917. justify-content: center;
  918. height: 650rpx;
  919. width: 100%;
  920. image{
  921. width: 280rpx;
  922. height: 200rpx;
  923. }
  924. }
  925. }
  926. .coupon-box{
  927. overflow-y: auto;
  928. padding: 80rpx 20rpx 80rpx;
  929. height: 650rpx;
  930. width: 100%;
  931. display: flex;
  932. flex-direction: column;
  933. align-items: flex-start;
  934. justify-content: flex-start;
  935. box-sizing: border-box;
  936. .coupon-item{
  937. width: 100%;
  938. display: flex;
  939. align-items: center;
  940. justify-content: flex-start;
  941. margin-bottom: 16rpx;
  942. height:170rpx;
  943. &:last-child{
  944. margin-bottom: 0rpx;
  945. }
  946. .left{
  947. color: #fff;
  948. font-size: 36rpx;
  949. font-weight: bold;
  950. text-align: center;
  951. display: flex;
  952. flex-direction: column;
  953. align-items: center;
  954. justify-content: center;
  955. position: relative;
  956. width: 230rpx;
  957. image{
  958. position: absolute;
  959. width: 230rpx;
  960. height:170rpx;
  961. color: #fff;
  962. }
  963. .num{
  964. font-size: 40rpx;
  965. }
  966. .pic-num{
  967. font-size: 20rpx;
  968. z-index: 99;
  969. }
  970. }
  971. .right{
  972. display: flex;
  973. flex-direction: column;
  974. align-items: flex-start;
  975. justify-content: flex-start;
  976. height:170rpx;
  977. width: calc(100% - 230rpx);
  978. padding: 0 17rpx 0 24rpx;
  979. background-color: #fff;
  980. box-sizing: border-box;
  981. .title{
  982. width: 100%;
  983. font-size: 0.3 * 100rpx;
  984. color: #282828;
  985. height: 0.93 * 100rpx;
  986. line-height: 0.93 * 100rpx;
  987. border-bottom: 1px solid #f0f0f0;
  988. }
  989. .btns{
  990. display: flex;
  991. align-items: center;
  992. justify-content: space-between;
  993. width: 100%;
  994. font-size: 0.2 * 100rpx;
  995. color: #999;
  996. height: 0.76 * 100rpx;
  997. .btn{
  998. width: 1.36 * 100rpx;
  999. height: 0.44 * 100rpx;
  1000. border-radius: 0.22 * 100rpx;
  1001. font-size: 0.22 * 100rpx;
  1002. color: #fff;
  1003. text-align: center;
  1004. line-height: 0.44 * 100rpx;
  1005. background-color: #078C9D;
  1006. .gray{
  1007. background-color: #ccc;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. }
  1013. }
  1014. </style>