packageOrderPay.vue 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/close.png"></image>
  46. <image class="ic-back" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/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://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/0fdd75d89db84458886d38e615011048.png" mode="widthFix"></image>
  154. <image v-if="item.status!=0" src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/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://cos.his.cdwjyyh.com/fs/20240423/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. }
  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. this.integral = res.moneys.integral;
  320. }
  321. else{
  322. if(res.msg=='用户OPENID不存在 '){
  323. this.$reLoginCheck(res.msg)
  324. return
  325. }
  326. this.payType=1;
  327. this.compute()
  328. this.userCouponId=0;
  329. this.couponText="请选择优惠券"
  330. uni.showToast({
  331. icon:'none',
  332. title: res.msg,
  333. });
  334. }
  335. },
  336. err => {
  337. }
  338. );
  339. },
  340. getMyEnableCouponList(){
  341. var data={
  342. orderId: this.orderId
  343. }
  344. if(this.package.isShow==0){
  345. data.couponType=5;
  346. data.cateId=this.package.privateType
  347. }
  348. else if(this.package.isShow==1){
  349. data.couponType=6;
  350. data.cateId=this.package.diseaseType
  351. }
  352. getMyEnableCouponList(data).then(
  353. res => {
  354. if(res.code==200){
  355. this.coupons=res.data;
  356. }
  357. },
  358. err => {
  359. }
  360. );
  361. },
  362. getPackageOrderById(){
  363. var data={orderId:this.orderId};
  364. getPackageOrderById(data).then(
  365. res => {
  366. if(res.code==200){
  367. this.order=res.order
  368. this.choose = res.choose || 0
  369. this.payType = this.choose == 1 ? 3:this.choose == 2 ? 1 :this.payType
  370. this.compute();
  371. this.getPackageById(this.order.packageId)
  372. }else{
  373. }
  374. },
  375. rej => {}
  376. );
  377. },
  378. getPackageById(packageId){
  379. let data={packageId:packageId};
  380. if(this.choose == 1 || this.choose == 2) {
  381. data={
  382. packageId:packageId,
  383. choose: this.choose
  384. };
  385. }
  386. getPackageById(data).then(
  387. res => {
  388. if(res.code==200){
  389. this.package=res.data;
  390. this.payTypes=res.data.payType.split(',');
  391. this.payType=this.choose == 1 ? 3:this.choose == 2 ? 1 :this.payType
  392. this.getMyEnableCouponList();
  393. }else{
  394. }
  395. },
  396. rej => {}
  397. );
  398. },
  399. openAddress(){
  400. uni.navigateTo({
  401. url: '/pages_user/address'
  402. })
  403. },
  404. payOrder(){
  405. var data = {
  406. payType:this.payType,
  407. userCouponId:this.userCouponId,
  408. addressId:this.addressId,
  409. remark:this.order.remark,
  410. orderId:this.order.orderId,
  411. };
  412. var that=this;
  413. uni.showLoading();
  414. pay(data).then(
  415. res => {
  416. if(res.code==200){
  417. if(that.subMsg == 1) {
  418. uni.redirectTo({
  419. url:"./packagePayment?orderId="+that.orderId
  420. })
  421. } else {
  422. var temps=['wqKEklE_w5N19w9VAGY74TltPE6Ne3BaFObDD47uDEo']
  423. uni.requestSubscribeMessage({
  424. tmplIds: temps,
  425. success(e) {
  426. setTimeout(function(){
  427. uni.redirectTo({
  428. url:"./packagePayment?orderId="+that.orderId
  429. })
  430. },200);
  431. },
  432. fail(e) {
  433. setTimeout(function(){
  434. uni.redirectTo({
  435. url:"./packagePayment?orderId="+that.orderId
  436. })
  437. },200);
  438. }
  439. })
  440. }
  441. }else{
  442. uni.showToast({
  443. icon:'none',
  444. title: res.msg,
  445. });
  446. this.$reLoginCheck(res.msg)
  447. }
  448. },
  449. rej => {}
  450. );
  451. }
  452. }
  453. }
  454. </script>
  455. <style lang="scss">
  456. .inner-box{
  457. padding: 20upx 20upx 300upx;
  458. .address-box{
  459. box-sizing: border-box;
  460. min-height: 171upx;
  461. background: #FFFFFF;
  462. border-radius: 16upx;
  463. background-image: url(https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/address_bg.png);
  464. background-repeat: no-repeat;
  465. background-size: 100% 30upx;
  466. background-position: left bottom;
  467. padding: 38upx 30upx 36upx;
  468. display: flex;
  469. align-items: center;
  470. justify-content: space-between;
  471. .left{
  472. width: 92%;
  473. .name-box{
  474. display: flex;
  475. align-items: center;
  476. .text{
  477. font-size: 32upx;
  478. font-family: PingFang SC;
  479. font-weight: bold;
  480. color: #111111;
  481. line-height: 1;
  482. &.name{
  483. margin-right: 30upx;
  484. }
  485. }
  486. }
  487. .address{
  488. font-size: 28upx;
  489. font-family: PingFang SC;
  490. font-weight: 500;
  491. color: #666666;
  492. line-height: 42upx;
  493. text-align:left;
  494. margin-top: 23upx;
  495. }
  496. }
  497. .arrow-box{
  498. width: 12upx;
  499. height: 23upx;
  500. display: flex;
  501. align-items: cenetr;
  502. justify-content: cenetr;
  503. image{
  504. width: 100%;
  505. height: 100%;
  506. }
  507. }
  508. }
  509. .goods-list{
  510. margin-top: 20upx;
  511. padding: 0 30upx;
  512. background-color: #FFFFFF;
  513. border-radius: 16upx;
  514. .item{
  515. padding: 30upx 0;
  516. border-bottom: 1px solid #EDEEEF;
  517. display: flex;
  518. align-items: center;
  519. .img-box{
  520. width: 160upx;
  521. height: 160upx;
  522. margin-right: 30upx;
  523. image{
  524. width: 100%;
  525. height: 100%;
  526. }
  527. }
  528. .info-box{
  529. width: calc(100% - 190upx);
  530. height: 160upx;
  531. display: flex;
  532. flex-direction: column;
  533. justify-content: space-between;
  534. .name-box{
  535. font-size: 28upx;
  536. font-family: PingFang SC;
  537. font-weight: 500;
  538. color: #111111;
  539. line-height: 40upx;
  540. .tag{
  541. display: inline-block;
  542. padding: 0 6upx;
  543. height: 30upx;
  544. background: linear-gradient(90deg, #C39A58 0%, #E2C99E 100%);
  545. border-radius: 4upx;
  546. margin-right: 10upx;
  547. font-size: 22upx;
  548. font-family: PingFang SC;
  549. font-weight: bold;
  550. color: #FFFFFF;
  551. line-height: 30upx;
  552. float: left;
  553. margin-top: 7upx;
  554. }
  555. }
  556. .spec{
  557. margin-top: 10upx;
  558. font-size: 24upx;
  559. font-family: PingFang SC;
  560. font-weight: 500;
  561. color: #999999;
  562. line-height: 1;
  563. }
  564. .price-num{
  565. display: flex;
  566. align-items: center;
  567. justify-content: space-between;
  568. .price{
  569. display: flex;
  570. align-items: flex-end;
  571. .unit{
  572. font-size: 24upx;
  573. font-family: PingFang SC;
  574. font-weight: 500;
  575. color: #111111;
  576. line-height: 1.2;
  577. margin-right: 4upx;
  578. }
  579. .num{
  580. font-size: 32upx;
  581. font-family: PingFang SC;
  582. font-weight: 500;
  583. color: #111111;
  584. line-height: 1;
  585. }
  586. }
  587. .num{
  588. font-size: 24upx;
  589. font-family: PingFang SC;
  590. font-weight: 500;
  591. color: #999999;
  592. line-height: 1;
  593. }
  594. }
  595. }
  596. }
  597. .sub-total{
  598. height: 88upx;
  599. display: flex;
  600. align-items: center;
  601. justify-content: flex-end;
  602. .label{
  603. font-size: 24upx;
  604. font-family: PingFang SC;
  605. font-weight: 500;
  606. color: #999999;
  607. }
  608. .price{
  609. display: flex;
  610. align-items: flex-end;
  611. .unit{
  612. font-size: 24upx;
  613. font-family: PingFang SC;
  614. font-weight: 500;
  615. color: #FF6633;
  616. line-height: 1.2;
  617. margin-right: 4upx;
  618. }
  619. .num{
  620. font-size: 32upx;
  621. font-family: PingFang SC;
  622. font-weight: bold;
  623. color: #FF6633;
  624. line-height: 1;
  625. }
  626. }
  627. }
  628. }
  629. .other-info{
  630. margin-top: 20upx;
  631. background-color: #fff;
  632. border-radius: 20upx;
  633. overflow: hidden;
  634. padding: 0 30upx;
  635. .title{
  636. height: 80upx;
  637. line-height: 80upx;
  638. font-size: 30upx;
  639. color: #000;
  640. font-weight: bold;
  641. border-bottom: 2upx solid #eeeeee;
  642. }
  643. .drug-list{
  644. margin-top: 15rpx;
  645. .drug-item{
  646. padding-bottom: 15upx;
  647. border-bottom: 1px soli #F0F0F0;
  648. display: flex;
  649. align-items: center;
  650. .img-box{
  651. width: 160upx;
  652. height: 160upx;
  653. margin-right: 30upx;
  654. flex-shrink: 0;
  655. image{
  656. width: 100%;
  657. height: 100%;
  658. }
  659. }
  660. .drug-info{
  661. width: calc(100% - 190upx);
  662. height: 160upx;
  663. display: flex;
  664. flex-direction: column;
  665. justify-content: space-between;
  666. .name-box{
  667. font-size: 28upx;
  668. font-family: PingFang SC;
  669. font-weight: 500;
  670. color: #111111;
  671. line-height: 40upx;
  672. .tag{
  673. display: inline-block;
  674. padding: 0 6upx;
  675. height: 30upx;
  676. background: linear-gradient(90deg, #2BC7B9 0%, #2BC7A4 100%);
  677. border-radius: 4upx;
  678. margin-right: 10upx;
  679. font-size: 22upx;
  680. font-family: PingFang SC;
  681. font-weight: bold;
  682. color: #FFFFFF;
  683. line-height: 30upx;
  684. float: left;
  685. margin-top: 7upx;
  686. }
  687. }
  688. .spec{
  689. font-size: 24upx;
  690. font-family: PingFang SC;
  691. font-weight: 500;
  692. color: #999999;
  693. line-height: 1;
  694. margin-top: 10upx;
  695. }
  696. .num-box{
  697. display: flex;
  698. align-items: center;
  699. justify-content: space-between;
  700. .price{
  701. display: flex;
  702. align-items: flex-end;
  703. .unit{
  704. font-size: 24upx;
  705. font-family: PingFang SC;
  706. font-weight: 500;
  707. color: #111111;
  708. line-height: 1.2;
  709. margin-right: 4upx;
  710. }
  711. .num{
  712. font-size: 32upx;
  713. font-family: PingFang SC;
  714. font-weight: 500;
  715. color: #111111;
  716. line-height: 1;
  717. }
  718. }
  719. .use{
  720. font-size: 24upx;
  721. font-family: PingFang SC;
  722. color: #999999;
  723. }
  724. .amount{
  725. font-size: 24upx;
  726. font-family: PingFang SC;
  727. font-weight: 500;
  728. color: #999999;
  729. line-height: 1;
  730. }
  731. }
  732. }
  733. }
  734. }
  735. .item{
  736. height: 80upx;
  737. display: flex;
  738. align-items: center;
  739. justify-content: space-between;
  740. &:last-child{
  741. border-bottom: none;
  742. }
  743. .left{
  744. flex: 1;
  745. display: flex;
  746. align-items: center;
  747. .label{
  748. min-width: 140rpx;
  749. font-size: 28upx;
  750. color: #000;
  751. }
  752. .text{
  753. font-size: 28upx;
  754. color: #1b1b1b;
  755. }
  756. }
  757. .right{
  758. display: flex;
  759. align-items: center;
  760. justify-content: flex-end;
  761. .text{
  762. font-size: 28upx;
  763. color: #1b1b1b;
  764. }
  765. .ic-close{
  766. margin-left: 10rpx;
  767. width: 30rpx;
  768. height:30rpx;
  769. }
  770. .ic-back{
  771. margin-left: 10rpx;
  772. width: 15rpx;
  773. height:30rpx;
  774. }
  775. }
  776. .item-btn{
  777. max-width: 200rpx;
  778. padding: 0rpx 15rpx;
  779. height: 48upx;
  780. border-radius: 24upx;
  781. line-height: 48upx;
  782. font-size: 24upx;
  783. color: #000;
  784. border: 1upx solid #d8d8d8;
  785. display: flex;
  786. align-items: center;
  787. justify-content: center;
  788. }
  789. }
  790. }
  791. .remarks{
  792. height: 88upx;
  793. padding: 0 30upx;
  794. background: #FFFFFF;
  795. border-radius: 16upx;
  796. margin-top: 20upx;
  797. display: flex;
  798. align-items: center;
  799. input{
  800. width: 100%;
  801. font-size: 28upx;
  802. font-family: PingFang SC;
  803. font-weight: 500;
  804. color: #000000;
  805. }
  806. .input{
  807. font-size: 28upx;
  808. font-family: PingFang SC;
  809. font-weight: 500;
  810. color: #999999;
  811. }
  812. }
  813. }
  814. .btn-box{
  815. z-index: 9999;
  816. width: 100%;
  817. padding: 30rpx 30upx 0rpx;
  818. position: fixed;
  819. bottom: 0;
  820. left: 0;
  821. box-sizing: border-box;
  822. background-color: #ffffff;
  823. display: flex;
  824. flex-direction: column;
  825. align-items: center;
  826. justify-content: center;
  827. .btn{
  828. margin-bottom: 20rpx;
  829. width: 100%;
  830. height: 88upx;
  831. line-height: 88upx;
  832. text-align: center;
  833. font-size: 34upx;
  834. font-family: PingFang SC;
  835. font-weight: 400;
  836. color: #FFFFFF;
  837. background: #C39A58;
  838. border-radius: 10upx;
  839. position: relative;
  840. .contact-btn {
  841. position: absolute;
  842. width:100%;
  843. height:100%;
  844. display: flex;
  845. opacity: 0;
  846. }
  847. }
  848. .btn1{
  849. margin-bottom: 20rpx;
  850. width: 100%;
  851. height: 88upx;
  852. line-height: 88upx;
  853. text-align: center;
  854. font-size: 34upx;
  855. font-family: PingFang SC;
  856. font-weight: 400;
  857. color: #C39A58;
  858. border: 1rpx solid #C39A58;
  859. border-radius: 10upx;
  860. position: relative;
  861. .contact-btn {
  862. position: absolute;
  863. width:100%;
  864. height:100%;
  865. display: flex;
  866. opacity: 0;
  867. }
  868. }
  869. }
  870. .pay-type{
  871. box-sizing: border-box;
  872. background: #FFFFFF;
  873. border-radius: 16upx;
  874. margin-top: 20upx;
  875. padding: 40upx 30upx 20rpx;
  876. display: flex;
  877. flex-direction: column;
  878. justify-content: space-between;
  879. .title{
  880. font-size: 28upx;
  881. font-family: PingFang SC;
  882. font-weight: 500;
  883. color: #999999;
  884. line-height: 1;
  885. margin-bottom: 10upx;
  886. }
  887. .item{
  888. padding: 15upx 0upx;
  889. display: flex;
  890. align-items: center;
  891. justify-content: space-between;
  892. .left{
  893. display: flex;
  894. align-items: center;
  895. image{
  896. width: 44upx;
  897. height: 44upx;
  898. margin-right: 20upx;
  899. }
  900. .text{
  901. font-size: 30upx;
  902. font-family: PingFang SC;
  903. font-weight: bold;
  904. color: #222222;
  905. line-height: 1;
  906. }
  907. }
  908. }
  909. }
  910. .coupon{
  911. height: 100%;
  912. .empty{
  913. display: flex;
  914. align-items: center;
  915. justify-content: center;
  916. height: 650rpx;
  917. width: 100%;
  918. image{
  919. width: 280rpx;
  920. height: 200rpx;
  921. }
  922. }
  923. }
  924. .coupon-box{
  925. overflow-y: auto;
  926. padding: 80rpx 20rpx 80rpx;
  927. height: 650rpx;
  928. width: 100%;
  929. display: flex;
  930. flex-direction: column;
  931. align-items: flex-start;
  932. justify-content: flex-start;
  933. box-sizing: border-box;
  934. .coupon-item{
  935. width: 100%;
  936. display: flex;
  937. align-items: center;
  938. justify-content: flex-start;
  939. margin-bottom: 16rpx;
  940. height:170rpx;
  941. &:last-child{
  942. margin-bottom: 0rpx;
  943. }
  944. .left{
  945. color: #fff;
  946. font-size: 36rpx;
  947. font-weight: bold;
  948. text-align: center;
  949. display: flex;
  950. flex-direction: column;
  951. align-items: center;
  952. justify-content: center;
  953. position: relative;
  954. width: 230rpx;
  955. image{
  956. position: absolute;
  957. width: 230rpx;
  958. height:170rpx;
  959. color: #fff;
  960. }
  961. .num{
  962. font-size: 40rpx;
  963. }
  964. .pic-num{
  965. font-size: 20rpx;
  966. z-index: 99;
  967. }
  968. }
  969. .right{
  970. display: flex;
  971. flex-direction: column;
  972. align-items: flex-start;
  973. justify-content: flex-start;
  974. height:170rpx;
  975. width: calc(100% - 230rpx);
  976. padding: 0 17rpx 0 24rpx;
  977. background-color: #fff;
  978. box-sizing: border-box;
  979. .title{
  980. width: 100%;
  981. font-size: 0.3 * 100rpx;
  982. color: #282828;
  983. height: 0.93 * 100rpx;
  984. line-height: 0.93 * 100rpx;
  985. border-bottom: 1px solid #f0f0f0;
  986. }
  987. .btns{
  988. display: flex;
  989. align-items: center;
  990. justify-content: space-between;
  991. width: 100%;
  992. font-size: 0.2 * 100rpx;
  993. color: #999;
  994. height: 0.76 * 100rpx;
  995. .btn{
  996. width: 1.36 * 100rpx;
  997. height: 0.44 * 100rpx;
  998. border-radius: 0.22 * 100rpx;
  999. font-size: 0.22 * 100rpx;
  1000. color: #fff;
  1001. text-align: center;
  1002. line-height: 0.44 * 100rpx;
  1003. background-color: #C39A58;
  1004. .gray{
  1005. background-color: #ccc;
  1006. }
  1007. }
  1008. }
  1009. }
  1010. }
  1011. }
  1012. </style>