packageOrderPay.vue 23 KB

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