paymentOrder.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. <template>
  2. <view class="content">
  3. <view class="inner">
  4. <!-- 时间、价格 -->
  5. <view class="time-price">
  6. <text class="time">请在{{payLimitTime}}前完成支付</text>
  7. <view class="price-box">
  8. <text class="unit">¥</text>
  9. <text class="num">{{payMoney.toFixed(2)}}</text>
  10. </view>
  11. <!-- <text class="desc" v-if="payType==2">代收金额{{payDelivery.toFixed(2)}},请您在收到快递后支付尾款给快递人员。</text> -->
  12. <!-- <text class="desc" v-if="payType==3">货到付款金额{{payDelivery.toFixed(2)}},请您在收到快递后支付给快递人员。</text> -->
  13. </view>
  14. <!-- 支付方式 -->
  15. <view class="pay-type">
  16. <view class="title">支付方式</view>
  17. <!-- 改价订单只能选择微信支付和物流代收 -->
  18. <radio-group @change="payTypeChange" v-if="order.isEditMoney!=null&&order.isEditMoney==1">
  19. <view class="item">
  20. <view class="left">
  21. <image
  22. src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/wecha_pay.png"
  23. mode=""></image>
  24. <text class="text">微信支付</text>
  25. </view>
  26. <label>
  27. <radio :value="1" :checked="order.payType=='1'" />
  28. </label>
  29. </view>
  30. <!-- <view class="item" >
  31. <view class="left">
  32. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/pay_de.png" mode=""></image>
  33. <text class="text">物流代收</text>
  34. </view>
  35. <label>
  36. <radio :value="2" :checked="order.payType=='2'" />
  37. </label>
  38. </view> -->
  39. </radio-group>
  40. <radio-group @change="payTypeChange" v-else-if="order.orderCreateType!=null&& order.orderCreateType==3">
  41. <view class="item">
  42. <view class="left">
  43. <image
  44. src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/wecha_pay.png"
  45. mode=""></image>
  46. <text class="text">微信支付</text>
  47. </view>
  48. <label>
  49. <radio :value="1" :checked="order.payType=='1'" />
  50. </label>
  51. </view>
  52. <!-- <view class="item" >
  53. <view class="left">
  54. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/pay_de.png" mode=""></image>
  55. <text class="text">物流代收</text>
  56. </view>
  57. <label>
  58. <radio :value="2" :checked="order.payType=='2'" />
  59. </label>
  60. </view> -->
  61. <!-- <view class="item" v-if="user!=null&&user.level==1 "> -->
  62. <!-- <view class="item" >
  63. <view class="left">
  64. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/pay_1.png" mode=""></image>
  65. <text class="text">货到付款</text>
  66. </view>
  67. <label>
  68. <radio :value="3" :checked="order.payType=='3'" />
  69. </label>
  70. </view> -->
  71. </radio-group>
  72. <radio-group @change="payTypeChange" v-else-if="order.orderCreateType!=null&& order.orderCreateType==2">
  73. <view class="item" v-if="payType==1||payType==4">
  74. <view class="left">
  75. <image
  76. src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/wecha_pay.png"
  77. mode=""></image>
  78. <text class="text">微信支付</text>
  79. </view>
  80. <label>
  81. <radio :value="1" :checked="order.payType=='1'" />
  82. </label>
  83. </view>
  84. <!-- <view class="item" v-if="payType==2||payType==4">
  85. <view class="left" >
  86. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/pay_de.png" mode=""></image>
  87. <text class="text">物流代收</text>
  88. </view>
  89. <label>
  90. <radio :value="2" :checked="order.payType=='2'" />
  91. </label>
  92. </view> -->
  93. <!-- <view class="item" v-if="user!=null&&user.level==1 "> -->
  94. <!-- <view class="item" v-if="payType==1||payType==4" >
  95. <view class="left">
  96. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/pay_1.png" mode=""></image>
  97. <text class="text">货到付款</text>
  98. </view>
  99. <label>
  100. <radio :value="3" :checked="order.payType=='3'" />
  101. </label>
  102. </view> -->
  103. </radio-group>
  104. <radio-group @change="payTypeChange"
  105. v-else-if="order.orderCreateType!=null&&(order.orderCreateType==1)">
  106. <view class="item">
  107. <view class="left">
  108. <image
  109. src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/wecha_pay.png"
  110. mode=""></image>
  111. <text class="text">微信支付</text>
  112. </view>
  113. <label>
  114. <radio :value="1" checked />
  115. </label>
  116. </view>
  117. </radio-group>
  118. </view>
  119. <!-- 订单详情查看 -->
  120. <view class="order-info">
  121. <view class="title">订单信息</view>
  122. <view class="item">
  123. <text class="label">订单编号</text>
  124. <view class="sn-box">
  125. <text class="text">{{order.orderCode}}</text>
  126. <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
  127. </view>
  128. </view>
  129. <view class="item">
  130. <text class="label">下单时间</text>
  131. <text class="text">{{order.createTime}}</text>
  132. </view>
  133. <view class="item">
  134. <text class="label">订单金额</text>
  135. <text class="text" v-if="order!=null">{{order.payPrice.toFixed(2)}}</text>
  136. </view>
  137. <!-- <view class="item">
  138. <text class="label">支付方式</text>
  139. <text class="text">微信支付</text>
  140. </view> -->
  141. </view>
  142. </view>
  143. <view class="btn-box">
  144. <view class="btn" @click="payOrder()">去支付</view>
  145. <!-- <view class="other-btn" >
  146. 亲友代付
  147. <button class="share" data-name="shareBtn" open-type="share">分享</button>
  148. </view> -->
  149. </view>
  150. </view>
  151. </template>
  152. <script>
  153. import {
  154. getUserInfo
  155. } from '@/api/user'
  156. import {
  157. getStoreConfig
  158. } from '@/api/common'
  159. import {
  160. editPayType,
  161. pay,
  162. getStoreOrderById,
  163. orderBindUser,
  164. clearPayType
  165. } from '@/api/storeOrder'
  166. export default {
  167. data() {
  168. return {
  169. orderId: null,
  170. payDelivery: 0,
  171. payMoney: 0,
  172. config: null,
  173. payType: 1,
  174. payLimitTime: null,
  175. order: null,
  176. user: null,
  177. payParams: null,
  178. userinfo: {},
  179. isPaying: false, // 防止重复支付
  180. payDebounceTimer: null // 防抖定时器
  181. }
  182. },
  183. onLoad(option) {
  184. this.getSafeUserInfo();
  185. this.orderId = JSON.parse(option.orderId);
  186. // this.orderBindUser(this.orderId)
  187. this.getStoreOrderById();
  188. this.getStoreConfig();
  189. this.getUserInfo();
  190. },
  191. onUnload() {
  192. this.clearPayTypeFun()
  193. },
  194. //发送给朋友
  195. // onShareAppMessage(res) {
  196. // return {
  197. // title: "帮TA支付",
  198. // path: '/pages_user/user/otherPaymentOrder?orderId='+this.orderId,
  199. // imageUrl: this.$store.state.imgpath+'/app/image/logo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  200. // }
  201. // },
  202. methods: {getSafeUserInfo() {
  203. try {
  204. const userInfoStr = uni.getStorageSync('userInfo');
  205. if (!userInfoStr) {
  206. this.userinfo = {};
  207. return;
  208. }
  209. // 如果是字符串,解析为对象
  210. if (typeof userInfoStr === 'string') {
  211. this.userinfo = JSON.parse(userInfoStr);
  212. } else {
  213. // 如果是对象,直接使用
  214. this.userinfo = userInfoStr;
  215. }
  216. console.log('获取到的用户信息:', this.userinfo);
  217. } catch (error) {
  218. console.error('获取用户信息失败:', error);
  219. this.userinfo = {};
  220. }
  221. },clearTokenAndRedirect() {
  222. // 清除 token
  223. uni.removeStorageSync('AppToken');
  224. uni.removeStorageSync('userInfo');
  225. // 跳转到登录页
  226. setTimeout(() => {
  227. uni.reLaunch({
  228. url: '/pages/auth/login'
  229. });
  230. }, 500);
  231. },
  232. async clearPayTypeFun() {
  233. this.payParams && this.payParams.orderId && await clearPayType(this.payParams)
  234. },
  235. // 防抖函数
  236. debounce(func, wait = 1000) {
  237. return (...args) => {
  238. // 清除之前的定时器
  239. if (this.payDebounceTimer) {
  240. clearTimeout(this.payDebounceTimer);
  241. }
  242. // 设置新的定时器
  243. this.payDebounceTimer = setTimeout(() => {
  244. func.apply(this, args);
  245. this.payDebounceTimer = null;
  246. }, wait);
  247. };
  248. },
  249. orderBindUser(orderId) {
  250. uni.showLoading({
  251. title: '加载中...'
  252. })
  253. orderBindUser({
  254. orderId: orderId
  255. }).then(res => {
  256. uni.hideLoading()
  257. if (res.code == 200) {
  258. this.getStoreOrderById();
  259. this.getStoreConfig();
  260. this.getUserInfo();
  261. // uni.showShareMenu({
  262. // withShareTicket:true,
  263. // //小程序的原生菜单中显示分享按钮,才能够让发送给朋友与分享到朋友圈两个按钮可以点击
  264. // menus:["shareAppMessage"] //不设置默认发送给朋友
  265. // })
  266. } else {
  267. uni.showToast({
  268. icon: 'none',
  269. title: res.msg,
  270. });
  271. }
  272. }).catch(() => {
  273. uni.hideLoading()
  274. });
  275. },
  276. getUserInfo() {
  277. getUserInfo().then(
  278. res => {
  279. if (res.code == 200) {
  280. if (res.user != null) {
  281. this.user = res.user;
  282. }
  283. } else {
  284. uni.showToast({
  285. icon: 'none',
  286. title: "请求失败",
  287. });
  288. }
  289. },
  290. rej => {}
  291. );
  292. },
  293. getStoreConfig() {
  294. getStoreConfig().then(
  295. res => {
  296. if (res.code == 200) {
  297. this.config = res.data
  298. console.log(this.config);
  299. }
  300. },
  301. rej => {}
  302. );
  303. },
  304. payTypeChange(e) {
  305. this.editPayType(e.detail.value)
  306. },
  307. copyOrderSn(text) {
  308. // 复制方法
  309. uni.setClipboardData({
  310. data: text,
  311. success: () => {
  312. uni.showToast({
  313. title: '内容已成功复制到剪切板',
  314. icon: 'none'
  315. })
  316. }
  317. });
  318. },
  319. getStoreOrderById() {
  320. var data = {
  321. orderId: this.orderId
  322. };
  323. var that = this;
  324. uni.showLoading();
  325. getStoreOrderById(data).then(
  326. res => {
  327. if (res.code == 200) {
  328. console.log(res);
  329. uni.hideLoading();
  330. that.order = res.order;
  331. that.payLimitTime = res.payLimitTime;
  332. //套餐订单处理
  333. if (res.productPackage != null) {
  334. this.payType = res.productPackage.payType;
  335. console.log(this.payType)
  336. if (this.order.payType == 4) {
  337. this.order.payType = 1;
  338. }
  339. }
  340. this.editPayType(this.order.payType)
  341. } else {
  342. uni.showToast({
  343. icon: 'none',
  344. title: res.msg,
  345. });
  346. }
  347. },
  348. rej => {}
  349. );
  350. },
  351. editPayType(payType) {
  352. var data = {
  353. orderId: this.orderId,
  354. payType: payType
  355. };
  356. this.payParams = data
  357. var that = this;
  358. uni.showLoading();
  359. editPayType(data).then(
  360. res => {
  361. if (res.code == 200) {
  362. console.log(res);
  363. uni.hideLoading();
  364. that.order = res.order;
  365. //this.payType=this.order.payType
  366. this.payMoney = this.order.payMoney;
  367. this.payDelivery = this.order.payDelivery;
  368. } else {
  369. uni.showToast({
  370. icon: 'none',
  371. title: res.msg,
  372. });
  373. }
  374. },
  375. rej => {}
  376. );
  377. },
  378. otherPayOrder() {
  379. uni.navigateTo({
  380. url: '/pages_user/user/otherPaymentOrder?orderId=' + this.orderId
  381. })
  382. },
  383. // 防抖后的支付方法
  384. // 修复后的支付方法
  385. payOrder() {
  386. // 1. 安全地获取用户信息
  387. this.getSafeUserInfo();
  388. // 2. 检查 maOpenId,但不要直接修改字符串
  389. console.log('支付前检查用户信息:', this.userinfo);
  390. // 3. 检查用户信息是否有效
  391. if (!this.userinfo || Object.keys(this.userinfo).length === 0) {
  392. uni.showToast({
  393. title: '用户信息异常,请重新登录',
  394. icon: 'none'
  395. });
  396. // 清除 token 并跳转到登录页
  397. this.clearTokenAndRedirect();
  398. return;
  399. }
  400. // 4. 检查 maOpenId,如果不存在则提示重新登录
  401. if (!this.userinfo.maOpenId) {
  402. uni.showModal({
  403. title: '提示',
  404. content: '用户信息不完整,需要重新登录',
  405. success: (res) => {
  406. if (res.confirm) {
  407. this.clearTokenAndRedirect();
  408. }
  409. }
  410. });
  411. return;
  412. }
  413. // 5. 检查登录状态
  414. this.utils.isLogin().then(res => {
  415. if (res) {
  416. // 创建防抖函数实例
  417. const debouncedPay = this.debounce(function() {
  418. this.executePay();
  419. }, 1000); // 1秒防抖时间
  420. // 执行防抖函数
  421. debouncedPay();
  422. } else {
  423. // 未登录,跳转到登录页
  424. this.clearTokenAndRedirect();
  425. }
  426. }).catch(err => {
  427. console.error('检查登录状态失败:', err);
  428. uni.showToast({
  429. title: '登录状态异常',
  430. icon: 'none'
  431. });
  432. });
  433. }, // 实际的支付执行逻辑
  434. executePay() {
  435. var data = {
  436. orderId: this.order.id,
  437. payType: this.order.payType
  438. };
  439. var that = this;
  440. // 防止重复点击,可以添加加载状态
  441. if (this.isPaying) return;
  442. this.isPaying = true;
  443. uni.showLoading();
  444. pay(data).then(
  445. res => {
  446. this.isPaying = false;
  447. if (res.code == 200) {
  448. console.log(res);
  449. if (res.payType == 1 || res.payType == 2 || res.payType == 3) {
  450. uni.requestPayment({
  451. provider: 'wxpay',
  452. timeStamp: res.result.timeStamp,
  453. nonceStr: res.result.nonceStr,
  454. package: res.result.packageValue,
  455. signType: res.result.signType,
  456. paySign: res.result.paySign,
  457. success: function(res) {
  458. console.log('yess:' + JSON.stringify(res));
  459. uni.hideLoading();
  460. uni.redirectTo({
  461. url: "success?order=" + JSON.stringify(that.order)
  462. })
  463. },
  464. fail: function(err) {
  465. uni.showToast({
  466. icon: 'none',
  467. title: '支付失败',
  468. });
  469. console.log('fail:' + JSON.stringify(err));
  470. uni.hideLoading();
  471. },
  472. complete: (err) => {
  473. console.log('fail:' + JSON.stringify(err));
  474. }
  475. });
  476. }
  477. } else {
  478. uni.showToast({
  479. icon: 'none',
  480. title: res.msg,
  481. });
  482. }
  483. },
  484. rej => {
  485. this.isPaying = false;
  486. uni.hideLoading();
  487. uni.showToast({
  488. icon: 'none',
  489. title: '网络请求失败',
  490. });
  491. }
  492. );
  493. },
  494. // payOrder(){
  495. // var data = {orderId:this.order.id,payType:this.order.payType};
  496. // var that=this;
  497. // uni.showLoading();
  498. // pay(data).then(
  499. // res => {
  500. // if(res.code==200){
  501. // console.log(res);
  502. // if(res.payType==1||res.payType==2||res.payType==3){
  503. // uni.requestPayment({
  504. // provider: 'wxpay',
  505. // timeStamp: res.result.timeStamp,
  506. // nonceStr:res.result.nonceStr,
  507. // package: res.result.packageValue,
  508. // signType: res.result.signType,
  509. // paySign: res.result.paySign,
  510. // success: function(res) {
  511. // console.log('yess:' + JSON.stringify(res));
  512. // uni.hideLoading();
  513. // uni.redirectTo({
  514. // url:"success?order="+JSON.stringify(that.order)
  515. // })
  516. // },
  517. // fail: function(err) {
  518. // uni.showToast({
  519. // icon:'none',
  520. // title:'fail:' + JSON.stringify(err),
  521. // });
  522. // console.log('fail:' + JSON.stringify(err));
  523. // uni.hideLoading();
  524. // },
  525. // complete: (err) => {
  526. // console.log('fail:' + JSON.stringify(err));
  527. // }
  528. // });
  529. // }
  530. // // else if(res.payType==3){
  531. // // uni.hideLoading();
  532. // // if(that.order.isPrescribe){
  533. // // //如果是处方订单开处方
  534. // // uni.redirectTo({
  535. // // url:"prescribe?orderId="+that.order.id
  536. // // })
  537. // // }
  538. // // else{
  539. // // //如果是普通订单
  540. // // uni.redirectTo({
  541. // // url:"success?order="+JSON.stringify(that.order)
  542. // // })
  543. // // }
  544. // // }
  545. // }else{
  546. // uni.showToast({
  547. // icon:'none',
  548. // title: res.msg,
  549. // });
  550. // }
  551. // },
  552. // rej => {}
  553. // );
  554. // }
  555. }
  556. }
  557. </script>
  558. <style lang="scss">
  559. page {
  560. height: 100%;
  561. }
  562. .content {
  563. height: 100%;
  564. display: flex;
  565. flex-direction: column;
  566. justify-content: space-between;
  567. .inner {
  568. padding: 20upx;
  569. .time-price {
  570. box-sizing: border-box;
  571. padding: 50upx 0upx;
  572. background: #FFFFFF;
  573. border-radius: 16upx;
  574. display: flex;
  575. flex-direction: column;
  576. align-items: center;
  577. .time {
  578. font-size: 32upx;
  579. font-family: PingFang SC;
  580. font-weight: 500;
  581. color: #222222;
  582. line-height: 1;
  583. text-align: center;
  584. }
  585. .desc {
  586. margin: 30upx 0upx 15upx;
  587. font-size: 26upx;
  588. font-family: PingFang SC;
  589. color: #999999;
  590. line-height: 1;
  591. text-align: center;
  592. }
  593. .price-box {
  594. display: flex;
  595. align-items: flex-end;
  596. margin-top: 28upx;
  597. .unit {
  598. font-size: 32upx;
  599. font-family: PingFang SC;
  600. font-weight: bold;
  601. color: #FF6633;
  602. line-height: 1.3;
  603. margin-right: 10upx;
  604. }
  605. .num {
  606. font-size: 56upx;
  607. font-family: PingFang SC;
  608. font-weight: bold;
  609. color: #FF6633;
  610. line-height: 1;
  611. }
  612. }
  613. }
  614. .pay-type {
  615. box-sizing: border-box;
  616. background: #FFFFFF;
  617. border-radius: 16upx;
  618. margin-top: 20upx;
  619. padding: 40upx 30upx;
  620. display: flex;
  621. flex-direction: column;
  622. justify-content: space-between;
  623. .title {
  624. font-size: 28upx;
  625. font-family: PingFang SC;
  626. font-weight: 500;
  627. color: #999999;
  628. line-height: 1;
  629. margin-bottom: 10upx;
  630. }
  631. .item {
  632. padding: 15upx 0upx;
  633. display: flex;
  634. align-items: center;
  635. justify-content: space-between;
  636. .left {
  637. display: flex;
  638. align-items: center;
  639. image {
  640. width: 44upx;
  641. height: 44upx;
  642. margin-right: 20upx;
  643. }
  644. .text {
  645. font-size: 30upx;
  646. font-family: PingFang SC;
  647. font-weight: bold;
  648. color: #222222;
  649. line-height: 1;
  650. }
  651. }
  652. }
  653. }
  654. .order-info {
  655. margin-top: 20upx;
  656. background: #FFFFFF;
  657. border-radius: 16upx;
  658. padding: 40upx 30upx;
  659. .title {
  660. font-size: 30upx;
  661. font-family: PingFang SC;
  662. font-weight: bold;
  663. color: #222222;
  664. line-height: 1;
  665. }
  666. .item {
  667. margin-top: 40upx;
  668. display: flex;
  669. align-items: center;
  670. justify-content: space-between;
  671. .label {
  672. font-size: 26upx;
  673. font-family: PingFang SC;
  674. font-weight: 500;
  675. color: #666666;
  676. line-height: 1;
  677. }
  678. .text {
  679. font-size: 26upx;
  680. font-family: PingFang SC;
  681. font-weight: 500;
  682. color: #222222;
  683. line-height: 32upx;
  684. }
  685. .cont-text {
  686. font-size: 26upx;
  687. font-family: PingFang SC;
  688. font-weight: 500;
  689. color: #666666;
  690. .bold {
  691. color: #111111;
  692. }
  693. }
  694. .sn-box {
  695. display: flex;
  696. align-items: center;
  697. .copy-btn {
  698. width: 58upx;
  699. height: 32upx;
  700. line-height: 32upx;
  701. text-align: center;
  702. font-size: 22upx;
  703. font-family: PingFang SC;
  704. font-weight: 500;
  705. color: #222222;
  706. background: #F5F5F5;
  707. border-radius: 4upx;
  708. margin-left: 24upx;
  709. }
  710. }
  711. }
  712. .line {
  713. width: 100%;
  714. height: 1px;
  715. background: #F0F0F0;
  716. margin-top: 30upx;
  717. }
  718. }
  719. }
  720. .btn-box {
  721. height: 242upx;
  722. background: #FFFFFF;
  723. display: flex;
  724. align-items: center;
  725. justify-content: center;
  726. flex-direction: column;
  727. .btn {
  728. width: 91.73%;
  729. height: 88upx;
  730. line-height: 88upx;
  731. font-size: 30upx;
  732. font-family: PingFang SC;
  733. font-weight: bold;
  734. color: #FFFFFF;
  735. text-align: center;
  736. background: #2BC7B9;
  737. border-radius: 44upx;
  738. margin-bottom: 10rpx;
  739. }
  740. .other-btn {
  741. width: 91.73%;
  742. height: 88upx;
  743. line-height: 88upx;
  744. font-size: 30upx;
  745. font-family: PingFang SC;
  746. font-weight: bold;
  747. color: #2BC7B9;
  748. border: 1rpx solid #2BC7B9;
  749. text-align: center;
  750. background: #FFFFFF;
  751. border-radius: 44upx;
  752. margin-bottom: 10rpx;
  753. position: relative;
  754. .share {
  755. display: inline-block;
  756. position: absolute;
  757. top: 0;
  758. left: 0;
  759. width: 100%;
  760. height: 100%;
  761. opacity: 0;
  762. }
  763. }
  764. }
  765. }
  766. </style>