storeOrderPay.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963
  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. <!-- 药品列表 -->
  30. <view class="goods-list">
  31. <view v-for="(item,index) in items" :key="index" class="item">
  32. <view class="img-box">
  33. <image :src="JSON.parse(item.jsonInfo).image==''?'/static/images/drug.svg':JSON.parse(item.jsonInfo).image" mode="aspectFill"></image>
  34. </view>
  35. <view class="info-box">
  36. <view>
  37. <view class="name-box ellipsis2">
  38. {{JSON.parse(item.jsonInfo).productName}}
  39. </view>
  40. <view class="spec ellipsis2">{{JSON.parse(item.jsonInfo).sku}}</view>
  41. </view>
  42. <view class="price-num">
  43. <view class="price">
  44. <!-- <text class="unit">¥</text> -->
  45. <!-- <text class="num">{{JSON.parse(item.jsonInfo).price.toFixed(2)}}</text> -->
  46. </view>
  47. <view class="num" v-if="order.ordetType==1">x{{item.num}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 小计 -->
  52. <view class="sub-total">
  53. <text class="label">合计:</text>
  54. <view class="price">
  55. <text class="unit">¥</text>
  56. <text class="num" v-if="order!=null">{{order.totalPrice.toFixed(2)}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="other-info">
  61. <view class="title">支付明细</view>
  62. <view class="item">
  63. <view class="left">
  64. <text class="label">订单金额:</text>
  65. </view>
  66. <view class="right">
  67. <text class="text" v-if="order!=null">{{order.payPrice.toFixed(2)}}</text>
  68. </view>
  69. </view>
  70. <view class="item" v-if="order!=null&&(order.userCouponId==null||order.userCouponId==0)" @click.stop="openCoupon()">
  71. <view class="left">
  72. <text class="label">优惠券:</text>
  73. </view>
  74. <view class="right">
  75. <text class="text">{{couponText}}</text>
  76. <image v-if="userCouponId!=0" @click.stop="delCoupon()" class="ic-close" src="/static/images/close.png"></image>
  77. <image class="ic-back" src="/static/images/arrow_gray.png"></image>
  78. </view>
  79. </view>
  80. <view class="item" >
  81. <view class="left">
  82. <text class="label">优惠金额:</text>
  83. </view>
  84. <view class="right">
  85. <text class="text">{{discountMoney.toFixed(2)}}</text>
  86. </view>
  87. </view>
  88. <view class="item">
  89. <view class="left">
  90. <text class="label">支付金额:</text>
  91. </view>
  92. <view class="right">
  93. <text class="text">{{payMoney.toFixed(2)}}</text>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="pay-type">
  98. <view class="title">支付方式</view>
  99. <view class="item">
  100. <view class="left">
  101. <image src="/static/images/wecha_pay.png" ></image>
  102. <text class="text">全款支付</text>
  103. </view>
  104. <label>
  105. <radio value="" :checked="wxPay" color="#FF5C03"></radio>
  106. </label>
  107. </view>
  108. </view>
  109. <!-- 备注 -->
  110. <view class="remarks" v-if="order!=null">
  111. <input type="text" v-model="order.remark" placeholder="备注留言(选填)" placeholder-class="input" />
  112. </view>
  113. </view>
  114. <uni-popup ref="popCoupon" type="bottom" borderRadius="10rpx 10rpx 0px 0px">
  115. <view class="coupon">
  116. <view class="coupon-box" v-if="coupons.length>0" >
  117. <view @click="couponSelect(item)" class="coupon-item" v-for="(item) in coupons">
  118. <view class="left" >
  119. <image v-if="item.status==0" src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/0fdd75d89db84458886d38e615011048.png" mode="widthFix"></image>
  120. <image v-if="item.status!=0" src="https://fs-1319721001.cos.ap-chongqing.myqcloud.com/fs/20240229/d950e4c7af1e4464be1a7777e9dca576.png" mode="widthFix"></image>
  121. <view style="z-index: 999;">
  122. ¥<span class="num">{{item.price.toFixed(2)}}</span>
  123. </view>
  124. <view class="pic-num" >满{{item.minPrice.toFixed(2)}}元可用</view>
  125. </view>
  126. <view class="right">
  127. <view class="title">
  128. {{item.title}}
  129. </view>
  130. <view class="btns">
  131. <view v-if="item.status==0||item.status==2" >{{item.limitTime}} 到期</view>
  132. <view v-if="item.status==1">使用时间 {{item.useTime}}</view>
  133. <view class="bnt gray" v-if="item.status==1" >已使用</view>
  134. <view class="bnt gray" v-if="item.status==2" >已过期</view>
  135. <view class="btn" v-if="item.status==0" >使用</view>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <view class="empty" v-if="coupons.length==0">
  141. <image src="https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png"></image>
  142. </view>
  143. </view>
  144. </uni-popup>
  145. <uni-popup ref="popTip" type="dialog">
  146. <uni-popup-dialog cancelText="支付失败" confirmText="支付成功" mode="base" content="是否已支付成功?" title="提示" :duration="2000" :before-close="true" @close="closeTip" @confirm="confirmTip"></uni-popup-dialog>
  147. </uni-popup>
  148. <uni-popup ref="popPayType" type="bottom" borderRadius="10rpx 10rpx 0px 0px">
  149. <view class="pay-box">
  150. <view class="title">请选择支付方式</view>
  151. <view class="pay-list">
  152. <view class="pay-item alipay" @click="doAlipay()">
  153. <image src="/static/images/alipay.png"></image>
  154. <view class="name">支付宝支付</view>
  155. </view>
  156. <view class="pay-item wx" @click="doWxPay()">
  157. <image src="/static/images/wx.png"></image>
  158. <view class="name" >微信支付</view>
  159. </view>
  160. </view>
  161. </view>
  162. </uni-popup>
  163. <!-- 底部按钮 -->
  164. <view class="btn-box">
  165. <view class="btn" v-if="order!=null" @click="payOrder()">支付{{payMoney.toFixed(2)}}元</view>
  166. </view>
  167. </view>
  168. </template>
  169. <script>
  170. import {getMyEnableCouponList} from '@/api/user.js'
  171. import {getStoreOrderById,pay,compute,zfbPayment} from '@/api/storeOrder'
  172. import {aliPayment,H5WxPayment,H5AliPayment} from '@/api/packageOrder'
  173. export default {
  174. data() {
  175. return {
  176. addressId:null,
  177. wxPay: true,
  178. address:null,
  179. orderId:null,
  180. order:null,
  181. items:null,
  182. couponText:"请选择优惠券",
  183. userCouponId:0,
  184. coupons:[],
  185. couponShow:false,
  186. payMoney:0,
  187. discountMoney:0
  188. }
  189. },
  190. onLoad(option) {
  191. this.orderId=option.orderId;
  192. var that=this;
  193. uni.$on('updateAddress', (e) => {
  194. that.addressId=e.addressId;
  195. that.address=e;
  196. that.address.address=e.province+e.city+e.district+e.detail
  197. })
  198. this.getStoreOrderById();
  199. // this.getMyEnableCouponList();
  200. },
  201. onShow() {
  202. },
  203. onShareAppMessage(res) {
  204. var that=this;
  205. if(this.$isLogin()){
  206. return {
  207. title: "订单支付",
  208. path: '/pages/store/storeOrderPay?orderId='+that.orderId,
  209. imageUrl: 'https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  210. }
  211. }
  212. },
  213. methods: {
  214. couponSelect(item){
  215. this.$refs.popCoupon.close()
  216. //计算金额
  217. this.userCouponId=item.id;
  218. console.log(item)
  219. // this.couponText=item.price+"元优惠券"
  220. this.couponText= item.title
  221. this.compute()
  222. },
  223. openCoupon(){
  224. this.$refs.popCoupon.open("bottom")
  225. },
  226. delCoupon(){
  227. this.userCouponId=0;
  228. this.couponText="请选择优惠券";
  229. this.compute();
  230. },
  231. compute(){
  232. var data={
  233. orderId:this.orderId,
  234. userCouponId:this.userCouponId
  235. }
  236. console.log(data)
  237. compute(data).then(
  238. res => {
  239. if(res.code==200){
  240. this.payMoney=res.data.payMoney;
  241. this.discountMoney=res.data.discountMoney;
  242. }
  243. else{
  244. this.userCouponId=0;
  245. this.couponText="请选择优惠券"
  246. uni.showToast({
  247. icon:'none',
  248. title: res.msg,
  249. });
  250. }
  251. },
  252. err => {
  253. }
  254. );
  255. },
  256. getMyEnableCouponList(){
  257. let data={couponType:2}
  258. if(this.order.orderType == 2) {
  259. data={couponType:'2,4'}
  260. }
  261. getMyEnableCouponList(data).then(
  262. res => {
  263. if(res.code==200){
  264. this.coupons=res.data;
  265. console.log(this.coupons)
  266. }
  267. },
  268. err => {
  269. }
  270. );
  271. },
  272. getStoreOrderById(){
  273. var data={orderId:this.orderId};
  274. console.log(data)
  275. getStoreOrderById(data).then(res => {
  276. if(res.code==200){
  277. this.order=res.order
  278. this.items=res.items
  279. if(this.order.userName!=null){
  280. this.address={
  281. realName:this.order.userName,
  282. phone:this.order.userPhone,
  283. address:this.order.userAddress,
  284. }
  285. }
  286. this.getMyEnableCouponList();
  287. this.compute();
  288. }else{
  289. }
  290. },
  291. rej => {}
  292. );
  293. },
  294. openAddress(){
  295. uni.navigateTo({
  296. url: '/pages/user/address'
  297. })
  298. },
  299. closeTip(){
  300. this.$refs.popTip.close()
  301. },
  302. confirmTip() {
  303. this.$refs.popTip.close()
  304. uni.redirectTo({
  305. url:"./storeOrderPaySuccess?orderId="+this.order.orderId
  306. })
  307. },
  308. doWxPay(){
  309. var that=this;
  310. plus.share.getServices(function(res){
  311. var sweixin = null;
  312. for(var i=0;i<res.length;i++){
  313. var t = res[i];
  314. if(t.id == 'weixin'){
  315. sweixin = t;
  316. }
  317. }
  318. if(sweixin){
  319. console.log('调起小程序')
  320. that.$refs.popPayType.close()
  321. that.$refs.popTip.open()
  322. //唤起微信跳转小程序
  323. sweixin.launchMiniProgram({
  324. id:"gh_7a6a32e5ef61",
  325. path:'pages_order/storeOrderPayment?orderId='+that.orderId+"&payMethod=app",
  326. type:0
  327. },function(){
  328. console.log("微信唤起成功");
  329. return true;
  330. },function(e){
  331. console.log("微信唤起失败",e);
  332. uni.showToast({
  333. title:'微信唤起失败,请检查是否有微信应用',
  334. icon:'none'
  335. })
  336. return false;
  337. })
  338. }else{
  339. uni.showToast({
  340. title:'微信唤起失败,请检查是否有微信应用',
  341. icon:'none',
  342. duration:3000
  343. })
  344. return false;
  345. }
  346. },function(res){
  347. console.log(JSON.stringify(res));
  348. });
  349. },
  350. doAlipay(){
  351. var data = {
  352. orderId:this.order.orderId,
  353. };
  354. var that=this;
  355. // #ifdef H5
  356. uni.showLoading();
  357. H5AliPayment(data).then(
  358. res => {
  359. uni.hideLoading()
  360. if(res.code==200){
  361. if(res.type=="tz"){
  362. window.location.href =res.data.body.url
  363. }
  364. else if(res.type=='hf'){
  365. console.log(res)
  366. that.alipayQrCode=res.data.qr_code;
  367. that.$refs.popCopyTip.open();
  368. }
  369. }else{
  370. uni.showToast({icon:'none',title: res.msg});
  371. }
  372. },
  373. rej => {}
  374. );
  375. // #endif
  376. // #ifdef APP-PLUS
  377. const tzCashier=uni.requireNativePlugin("TZBank-Cashier");
  378. uni.showLoading();
  379. zfbPayment(data).then(res => {
  380. uni.hideLoading();
  381. this.$refs.popPayType.close();
  382. this.$refs.popTip.open();
  383. // console.log("qxj res:"+JSON.stringify(res));
  384. // console.log("qxj orderFlowNo:"+res.data.body.orderFlowNo+" businessCstNo:"+res.data.body.orderNo+" platMerCstNo:"+res.data.body.platMerCstNo);
  385. if(res.code==200){
  386. if(res.type=="tz"){
  387. const match = res.data.body.url.match(/[\?&]businessCstNo=([^&]+)/);
  388. const businessCstNo = match ? match[1] : null;
  389. console.log("qxj tzCashier:"+tzCashier+" businessCstNo:"+businessCstNo);
  390. tzCashier.pay({
  391. env:0,
  392. wxMiniProgramType:0,
  393. wxAppId:'wx703c4bd07bbd1695',
  394. wxUniversalLink:"https://yjf.runtzh.com/",
  395. orderFlowNo:res.data.body.orderFlowNo,
  396. businessCstNo:businessCstNo,
  397. platMerCstNo:res.data.body.platMerCstNo
  398. },(res)=>{
  399. });
  400. }
  401. else if(res.type=='hf'){
  402. if (uni.getSystemInfoSync().platform == 'android') {
  403. var alipayScheme ='alipays://platformapi/startApp?&saId=10000007&qrcode=' + res.data.qr_code;
  404. }else{
  405. var alipayScheme ='alipay://platformapi/startApp?&saId=10000007&qrcode=' + res.data.qr_code;
  406. }
  407. console.log(alipayScheme)
  408. // 在uni-app中使用plus.runtime.openURL打开URL
  409. plus.runtime.openURL(alipayScheme, function(error) {
  410. // console.error('打开支付宝失败: ' + error.message);
  411. // 处理打开支付宝失败的情况,比如提示用户或者跳转到其他支付方式
  412. });
  413. }
  414. }
  415. else{
  416. uni.showToast({
  417. title:res.msg,
  418. icon:'none'
  419. });
  420. }
  421. },
  422. rej => {}
  423. );
  424. // #endif
  425. },
  426. payOrder(){
  427. var data = {
  428. userCouponId:this.userCouponId,
  429. addressId:this.addressId,
  430. remark:this.order.remark,
  431. orderId:this.order.orderId,
  432. };
  433. var that=this;
  434. uni.showLoading();
  435. pay(data).then(
  436. res => {
  437. if(res.code==200){
  438. this.$refs.popPayType.open("bottom")
  439. }else{
  440. uni.showToast({
  441. icon:'none',
  442. title: res.msg,
  443. });
  444. }
  445. },
  446. rej => {}
  447. );
  448. }
  449. }
  450. }
  451. </script>
  452. <style lang="scss">
  453. .inner-box{
  454. padding: 20upx 20upx 240upx;
  455. height: 100%;
  456. .address-box{
  457. box-sizing: border-box;
  458. min-height: 171upx;
  459. background: #FFFFFF;
  460. border-radius: 16upx;
  461. background-image: url(/static/images/address_bg.png);
  462. background-repeat: no-repeat;
  463. background-size: 100% 30upx;
  464. background-position: left bottom;
  465. padding: 38upx 30upx 36upx;
  466. display: flex;
  467. align-items: center;
  468. justify-content: space-between;
  469. .left{
  470. width: 92%;
  471. .name-box{
  472. display: flex;
  473. align-items: center;
  474. .text{
  475. font-size: 32upx;
  476. font-family: PingFang SC;
  477. font-weight: bold;
  478. color: #111111;
  479. line-height: 1;
  480. &.name{
  481. margin-right: 30upx;
  482. }
  483. }
  484. }
  485. .address{
  486. font-size: 28upx;
  487. font-family: PingFang SC;
  488. font-weight: 500;
  489. color: #666666;
  490. line-height: 42upx;
  491. text-align:left;
  492. margin-top: 23upx;
  493. }
  494. }
  495. .arrow-box{
  496. width: 12upx;
  497. height: 23upx;
  498. display: flex;
  499. align-items: cenetr;
  500. justify-content: cenetr;
  501. image{
  502. width: 100%;
  503. height: 100%;
  504. }
  505. }
  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, #C39A58 0%, #E2C99E 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. .other-info{
  628. margin-top: 20upx;
  629. background-color: #fff;
  630. border-radius: 20upx;
  631. overflow: hidden;
  632. padding: 0 30upx;
  633. .title{
  634. height: 80upx;
  635. line-height: 80upx;
  636. font-size: 30upx;
  637. color: #000;
  638. font-weight: bold;
  639. border-bottom: 2upx solid #eeeeee;
  640. }
  641. .item{
  642. height: 80upx;
  643. display: flex;
  644. align-items: center;
  645. justify-content: space-between;
  646. &:last-child{
  647. border-bottom: none;
  648. }
  649. .left{
  650. flex: 1;
  651. display: flex;
  652. align-items: center;
  653. .label{
  654. min-width: 140rpx;
  655. font-size: 28upx;
  656. color: #000;
  657. }
  658. .text{
  659. font-size: 28upx;
  660. color: #1b1b1b;
  661. }
  662. }
  663. .right{
  664. display: flex;
  665. align-items: center;
  666. justify-content: flex-end;
  667. .text{
  668. font-size: 28upx;
  669. color: #1b1b1b;
  670. }
  671. .ic-close{
  672. margin-left: 10rpx;
  673. width: 30rpx;
  674. height:30rpx;
  675. }
  676. .ic-back{
  677. margin-left: 10rpx;
  678. width: 15rpx;
  679. height:30rpx;
  680. }
  681. }
  682. .item-btn{
  683. max-width: 200rpx;
  684. padding: 0rpx 15rpx;
  685. height: 48upx;
  686. border-radius: 24upx;
  687. line-height: 48upx;
  688. font-size: 24upx;
  689. color: #000;
  690. border: 1upx solid #d8d8d8;
  691. display: flex;
  692. align-items: center;
  693. justify-content: center;
  694. }
  695. }
  696. }
  697. .remarks{
  698. height: 88upx;
  699. padding: 0 30upx;
  700. background: #FFFFFF;
  701. border-radius: 16upx;
  702. margin-top: 20upx;
  703. display: flex;
  704. align-items: center;
  705. input{
  706. width: 100%;
  707. font-size: 28upx;
  708. font-family: PingFang SC;
  709. font-weight: 500;
  710. color: #000000;
  711. }
  712. .input{
  713. font-size: 28upx;
  714. font-family: PingFang SC;
  715. font-weight: 500;
  716. color: #999999;
  717. }
  718. }
  719. }
  720. .btn-box{
  721. height: 140upx;
  722. width: 100%;
  723. padding: 0rpx 30upx;
  724. position: fixed;
  725. bottom: 0;
  726. left: 0;
  727. box-sizing: border-box;
  728. background-color: #ffffff;
  729. display: flex;
  730. align-items: center;
  731. justify-content: center;
  732. .btn{
  733. width: 100%;
  734. height: 88upx;
  735. line-height: 88upx;
  736. text-align: center;
  737. font-size: 34upx;
  738. font-family: PingFang SC;
  739. font-weight: 400;
  740. color: #FFFFFF;
  741. background: #FF5C03;
  742. border-radius: 10upx;
  743. }
  744. }
  745. .pay-type{
  746. box-sizing: border-box;
  747. height: 192upx;
  748. background: #FFFFFF;
  749. border-radius: 16upx;
  750. margin-top: 20upx;
  751. padding: 40upx 30upx;
  752. display: flex;
  753. flex-direction: column;
  754. justify-content: space-between;
  755. .title{
  756. font-size: 28upx;
  757. font-family: PingFang SC;
  758. font-weight: 500;
  759. color: #999999;
  760. line-height: 1;
  761. }
  762. .item{
  763. display: flex;
  764. align-items: center;
  765. justify-content: space-between;
  766. .left{
  767. display: flex;
  768. align-items: center;
  769. image{
  770. width: 44upx;
  771. height: 44upx;
  772. margin-right: 20upx;
  773. }
  774. .text{
  775. font-size: 30upx;
  776. font-family: PingFang SC;
  777. font-weight: bold;
  778. color: #222222;
  779. line-height: 1;
  780. }
  781. }
  782. }
  783. }
  784. .coupon{
  785. background-color: #fff;
  786. border-radius: 30rpx 30rpx 0rpx 0rpx;
  787. height: 100%;
  788. .empty{
  789. display: flex;
  790. align-items: center;
  791. justify-content: center;
  792. height: 650rpx;
  793. width: 100%;
  794. image{
  795. width: 280rpx;
  796. height: 200rpx;
  797. }
  798. }
  799. }
  800. .coupon-box{
  801. overflow-y: auto;
  802. padding: 80rpx 20rpx 80rpx;
  803. height: 650rpx;
  804. width: 100%;
  805. display: flex;
  806. flex-direction: column;
  807. align-items: flex-start;
  808. justify-content: flex-start;
  809. box-sizing: border-box;
  810. .coupon-item{
  811. width: 100%;
  812. display: flex;
  813. align-items: center;
  814. justify-content: flex-start;
  815. margin-bottom: 16rpx;
  816. height:170rpx;
  817. &:last-child{
  818. margin-bottom: 0rpx;
  819. }
  820. .left{
  821. color: #fff;
  822. font-size: 36rpx;
  823. font-weight: bold;
  824. text-align: center;
  825. display: flex;
  826. flex-direction: column;
  827. align-items: center;
  828. justify-content: center;
  829. position: relative;
  830. width: 230rpx;
  831. image{
  832. position: absolute;
  833. width: 230rpx;
  834. height:170rpx;
  835. color: #fff;
  836. }
  837. .num{
  838. font-size: 40rpx;
  839. }
  840. .pic-num{
  841. font-size: 20rpx;
  842. z-index: 99;
  843. }
  844. }
  845. .right{
  846. display: flex;
  847. flex-direction: column;
  848. align-items: flex-start;
  849. justify-content: flex-start;
  850. height:170rpx;
  851. width: calc(100% - 230rpx);
  852. padding: 0 17rpx 0 24rpx;
  853. background-color: #fff;
  854. box-sizing: border-box;
  855. .title{
  856. width: 100%;
  857. font-size: 0.3 * 100rpx;
  858. color: #282828;
  859. height: 0.93 * 100rpx;
  860. line-height: 0.93 * 100rpx;
  861. border-bottom: 1px solid #f0f0f0;
  862. }
  863. .btns{
  864. display: flex;
  865. align-items: center;
  866. justify-content: space-between;
  867. width: 100%;
  868. font-size: 0.2 * 100rpx;
  869. color: #999;
  870. height: 0.76 * 100rpx;
  871. .btn{
  872. width: 1.36 * 100rpx;
  873. height: 0.44 * 100rpx;
  874. border-radius: 0.22 * 100rpx;
  875. font-size: 0.22 * 100rpx;
  876. color: #fff;
  877. text-align: center;
  878. line-height: 0.44 * 100rpx;
  879. background-color: #FF5C03;
  880. .gray{
  881. background-color: #ccc;
  882. }
  883. }
  884. }
  885. }
  886. }
  887. }
  888. .pay-box{
  889. border-radius: 30rpx 30rpx 0rpx 0rpx;
  890. padding: 30rpx;
  891. height: 350rpx;
  892. background-color: #fff;
  893. width: 100%;
  894. display:flex;
  895. flex-direction: column;
  896. text-align: center;
  897. justify-content: flex-start;
  898. .title{
  899. font-size: 32rpx;
  900. font-weight: bold;
  901. color: #111;
  902. }
  903. .pay-list{
  904. margin-top: 50rpx;
  905. display:flex;
  906. text-align: center;
  907. justify-content: center;
  908. .pay-item{
  909. margin: 10rpx;
  910. padding: 30rpx 0rpx;
  911. border-radius: 60rpx;
  912. background-color: green;
  913. flex: 1;
  914. display:flex;
  915. text-align: center;
  916. justify-content: center;
  917. image{
  918. width:40rpx;
  919. height:40rpx;
  920. }
  921. .name{
  922. margin-left: 15rpx;
  923. font-size: 32rpx;
  924. font-weight: bold;
  925. color: #fff;
  926. }
  927. }
  928. .wx{
  929. background-color: #09ba08;
  930. }
  931. .alipay{
  932. background-color: #04a9ed;
  933. }
  934. }
  935. }
  936. </style>