productdetails.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <template>
  2. <view class="pages">
  3. <u-navbar
  4. title="产品详情"
  5. :placeholder="true"
  6. :autoBack="false"
  7. @leftClick="leftClick"
  8. :safeAreaInsetTop="true"
  9. >
  10. </u-navbar>
  11. <u-loading-page :loading="loadingPage"></u-loading-page>
  12. <u-swiper
  13. v-if="details.slideImgList.length>0"
  14. :list="details.slideImgList"
  15. height="700rpx"
  16. @change="e => currentNum = e.current"
  17. :autoplay="false"
  18. indicatorStyle="right: 20px"
  19. >
  20. <view
  21. slot="indicator"
  22. class="indicator-num"
  23. >
  24. <text class="indicator-num__text">{{ currentNum + 1 }}/{{ details.slideImgList.length }}</text>
  25. </view>
  26. </u-swiper>
  27. <view class="product-info view-wrap">
  28. <view class="red">
  29. <view class="" v-if="vuex_member_info.priceType>1">
  30. <text class="price">¥ <text class="price-num">{{details.vipPrice}}</text></text>
  31. <text class="vip-icon">VIP</text>
  32. <text class="exchangeCredit" v-if="details.isCredit==1">+{{details.exchangeCredit}}积分</text>
  33. </view>
  34. <view class="" v-else>
  35. <text v-if="details.isCredit==1&&details.exchangeType==0" class="price">¥ <text class="price-num">0</text></text>
  36. <text v-else class="price">¥ <text class="price-num">{{details.salePrice}}</text></text>
  37. <text class="exchangeCredit" v-if="details.isCredit==1">+{{details.exchangeCredit}}积分</text>
  38. </view>
  39. </view>
  40. <view class="u-flex u-row-between gray">
  41. <text v-if="vuex_member_info.priceType>1" class="line-through">¥ <text class="">{{details.salePrice}}</text></text>
  42. <text class="">库存 {{details.stock}}</text>
  43. </view>
  44. <view class="name">{{details.goodsName}}</view>
  45. </view>
  46. <view class="specification info-line u-flex view-wrap" v-if="details.specification">
  47. <view class="info-til">规格</view>
  48. <view class="info-con u-flex">{{details.specification}}</view>
  49. </view>
  50. <view class="addr view-wrap">
  51. <view class="addr-line u-flex">
  52. <view class="info-til">提货方式</view>
  53. <view class="info-con u-flex">
  54. <text v-for="(item,index) in logisticsType" :key="index">
  55. {{item|filterLogisticsType}}
  56. <text style="margin: 0 5px;" v-if="index<logisticsType.length-1">/</text>
  57. </text>
  58. </view>
  59. </view>
  60. <view class="addr-line u-flex" v-if="details.period">
  61. <view class="info-til">保质期</view>
  62. <view class="info-con u-flex">
  63. {{details.period|filterPeriod}}
  64. </view>
  65. </view>
  66. <!-- <view class="addr-line u-flex">
  67. <text class="addr-til">送至</text>
  68. <view class="addr-con u-flex u-flex-1">
  69. <view class="u-flex u-row-between u-flex-1">
  70. <text>贵阳市 南明区</text>
  71. <u-icon name="arrow-right" color="#676767" size="20"></u-icon>
  72. </view>
  73. </view>
  74. </view> -->
  75. </view>
  76. <view class="comment view-wrap u-flex u-row-between">
  77. <view class="left">
  78. <text class="til">评价</text>
  79. <text class="num">({{details.commentNum}})</text>
  80. </view>
  81. <view class="right u-flex" @click="$u.route('/shopping/comment',{id:details.id})">
  82. <text>查看全部</text>
  83. <u-icon name="arrow-right" color="#676767" size="20"></u-icon>
  84. </view>
  85. </view>
  86. <view class="detail view-wrap">
  87. <view class="til">详情</view>
  88. <view class="con">
  89. <!-- <view class="" v-html="details.detail"></view> -->
  90. <u-parse :content="details.detail"></u-parse>
  91. <!-- {{details.detail}} -->
  92. </view>
  93. </view>
  94. <view class="details-tool-wrap">
  95. <view class="details-tool u-flex u-row-between">
  96. <view class="left u-flex">
  97. <view class="icon-wrap" @click="shareShow=true">
  98. <u-icon name="share" color="#676767" size="30"></u-icon>
  99. 分享
  100. <!-- <button class="share-btn" data-name="shareBtn" open-type="share">
  101. <u-icon name="share" color="#676767" size="30"></u-icon>
  102. 分享
  103. </button> -->
  104. </view>
  105. <view class="icon-wrap" v-if="details.isCredit!=1" @click="$u.route('/shopping/cart')">
  106. <u-icon name="shopping-cart" color="#676767" size="30"></u-icon>
  107. 购物车
  108. <u-badge class="badge" numberType="overflow" type="error " max="99" :value="cartTotal" :absolute="true" :offset="[0,0]"></u-badge>
  109. </view>
  110. </view>
  111. <view class="right" v-if="details.stock>0">
  112. <view class="u-flex" v-if="details.isCredit==1">
  113. <view class="btn add-btn" @click="addCreditOrder(details.id)">立即兑换</view>
  114. </view>
  115. <view class=" u-flex" v-else>
  116. <view class="btn add-btn" @click="addCart(details.id)">加入购物车</view>
  117. <view class="btn buy-btn" @click="buyNow(details.id)">立即购买</view>
  118. </view>
  119. </view>
  120. <view class="right" v-else>
  121. <view class="btn gray">暂无库存</view>
  122. </view>
  123. </view>
  124. </view>
  125. <!-- 分享选择弹出内容 -->
  126. <view class="share-option" :class="{shareShow:shareShow}">
  127. <view class="overlay" v-if="shareShow" @click="shareShow=false"></view>
  128. <button class="share-option-item wx-share" data-name="shareBtn" open-type="share">
  129. 发送给朋友
  130. </button>
  131. <view class="share-option-item" @click="getPoster">生成海报</view>
  132. <view class="share-option-item" @click="shareShow=false">取消</view>
  133. </view>
  134. <u-popup :show="posterShow" @close="posterShow=false" ref="uni-popup">
  135. <view class="poster-wrap u-flex u-col-center">
  136. <view class="poster-inner">
  137. <view class="close-wrap" @click="posterShow=false">
  138. <u-icon name="close-circle" color="#fff" size="56rpx"></u-icon>
  139. </view>
  140. <view class="poster" id="poster" ref="poster" >
  141. <u--image :showLoading="true" :src="posterSrc" width="100%" height="65vh" mode="aspectFit"></u--image>
  142. </view>
  143. <!-- savePoster -->
  144. <view class="poster-btn" @click="saveImage">保存图片</view>
  145. </view>
  146. </view>
  147. </u-popup>
  148. <u-toast ref="uToast"></u-toast>
  149. </view>
  150. </template>
  151. <script>
  152. export default {
  153. components: {
  154. },
  155. data() {
  156. return {
  157. staticUrl:this.$commonConfig.staticUrl,
  158. loadingPage:true,
  159. id:'',
  160. cartTotal:0,
  161. currentNum:0,
  162. swiperList: [],
  163. details:{
  164. slideImgList:[]
  165. },
  166. hasAddr:false,
  167. shareShow:false,
  168. posterShow:false,
  169. mode:'aspectFill',
  170. wxml:'',
  171. posterStyle:{},
  172. posterSrc:'',
  173. logisticsType:[],
  174. }
  175. },
  176. onLoad(page) {
  177. this.id = page.id;
  178. if(page.goodsId){
  179. this.id = page.goodsId;
  180. }
  181. const scene = decodeURIComponent(page.scene);
  182. scene&&uni.setStorage({
  183. key:'scene',
  184. data:scene
  185. });
  186. // console.log('this.id',this.id);
  187. this.getDetails(this.id);
  188. },
  189. onShow(){
  190. this.getCartList();
  191. this.getAddrList();
  192. this.goodsAddView(this.id)
  193. },
  194. methods: {
  195. leftClick(e){
  196. let pages = getCurrentPages();
  197. if(pages.length==1){
  198. uni.$u.route('/pages/index/index')
  199. }else{
  200. uni.navigateBack()
  201. };
  202. },
  203. getCartList(isAdd){
  204. this.$u.api.cartList().then(res=>{
  205. if(isAdd){
  206. if(res.data.total==this.cartTotal){
  207. this.$refs.uToast.show({
  208. type:"success",
  209. message:'已在购物车'
  210. });
  211. }
  212. }
  213. this.cartTotal = res.data.total;
  214. console.log('getCartList',res);
  215. }).catch(err=>{
  216. console.log('getCartList',err.data);
  217. })
  218. },
  219. getDetails(id){
  220. this.$u.api.memberGoodDetails({id:id}).then(res=>{
  221. this.loadingPage = false;
  222. // console.log('res',res.data);
  223. this.details = res.data;
  224. this.logisticsType = res.data.logisticsType?.split(",")||[];
  225. if(!res.data.slideImgList&&res.data.mainImg){
  226. this.details.slideImgList = [];
  227. this.details.slideImgList.push(res.data.mainImg)
  228. }
  229. }).catch(err=>{
  230. console.log('getDetails',err.data);
  231. })
  232. },
  233. goodsAddView(id){
  234. this.$u.api.goodsAddView({id:id}).then(res=>{
  235. // console.log('res',res.data);
  236. }).catch(err=>{
  237. console.log('goodsAddView',err.data);
  238. })
  239. },
  240. async addCart(id,buyNow){
  241. try {
  242. let authResult = await this.checkAuth();
  243. console.log('实名认证结果:', authResult);
  244. // 在此处可以继续执行需要进行实名认证的业务逻辑
  245. // 例如下单购买商品等操作
  246. } catch (err) {
  247. console.log('实名认证未通过:', err);
  248. return
  249. // 在此处可以处理用户未通过实名认证的情况
  250. // 例如返回上一页或者跳转到实名认证页等操作
  251. }
  252. this.checkAuth();
  253. this.$u.api.addCart({goodsId:id}).then(res=>{
  254. this.$refs.uToast.show({
  255. type:"success",
  256. message:res.msg
  257. });
  258. if(buyNow){
  259. uni.$u.route('/shopping/cart', {
  260. buyNowId: id,
  261. buyNowName:this.details.goodsName
  262. });
  263. }
  264. this.getCartList('isAdd');
  265. console.log('res',res.data);
  266. }).catch(err=>{
  267. console.log('addCart',err);
  268. })
  269. },
  270. async buyNow(id){
  271. try {
  272. let authResult = await this.checkAuth();
  273. console.log('实名认证结果:', authResult);
  274. // 在此处可以继续执行需要进行实名认证的业务逻辑
  275. // 例如下单购买商品等操作
  276. } catch (err) {
  277. console.log('实名认证未通过:', err);
  278. return
  279. // 在此处可以处理用户未通过实名认证的情况
  280. // 例如返回上一页或者跳转到实名认证页等操作
  281. }
  282. // this.addCart(id,'buyNow')//跳购物车
  283. let that = this;
  284. if(!this.hasAddr){
  285. uni.showModal({
  286. title: '温馨提示',
  287. content: '请先设置地址!',
  288. success: res => {
  289. if (res.confirm) {
  290. let url = encodeURIComponent(`/shopping/productdetails?id=${that.id}`) ;
  291. uni.$u.route('/center/addrlist', {
  292. from: 'productdetails',
  293. backUrl:url
  294. });
  295. }
  296. }
  297. })
  298. return
  299. }
  300. this.$u.vuex('buyNowGoods',[{goodsId:this.id,quantity:1}]);
  301. uni.$u.route('/shopping/submitorder', {fromPage: 'productdetails'});
  302. },
  303. async addCreditOrder(id){
  304. try {
  305. let authResult = await this.checkAuth();
  306. console.log('实名认证结果:', authResult);
  307. // 在此处可以继续执行需要进行实名认证的业务逻辑
  308. // 例如下单购买商品等操作
  309. } catch (err) {
  310. console.log('实名认证未通过:', err);
  311. return
  312. // 在此处可以处理用户未通过实名认证的情况
  313. // 例如返回上一页或者跳转到实名认证页等操作
  314. }
  315. let that = this;
  316. let creditGoods = [];
  317. creditGoods.push({id:that.details.id,quantity:1})
  318. // console.log('creditGoods',creditGoods);
  319. that.$u.vuex('cartGoods',creditGoods);
  320. uni.$u.route('/shopping/submitorder', {fromPage:'creditOrder'});
  321. },
  322. onShareAppMessage: function( options ){
  323. var that = this;
  324. // 设置菜单中的转发按钮触发转发事件时的转发内容
  325. var shareObj = {
  326. title: this.details.goodsName, // 默认是小程序的名称(可以写slogan等)
  327. path: '/shopping/productdetails', // 默认是当前页面,必须是以‘/'开头的完整路径
  328. imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
  329. success: function(res){
  330. // 转发成功之后的回调
  331. if(res.errMsg == 'shareAppMessage:ok'){
  332. }
  333. },
  334. fail: function(){
  335. // 转发失败之后的回调
  336. if(res.errMsg == 'shareAppMessage:fail cancel'){
  337. // 用户取消转发
  338. }else if(res.errMsg == 'shareAppMessage:fail'){
  339. // 转发失败,其中 detail message 为详细失败信息
  340. }
  341. },
  342. complete:function(){
  343. // 转发结束之后的回调(转发成不成功都会执行)
  344. }
  345. };
  346. // 来自页面内的按钮的转发
  347. if( options.from == 'button' ){
  348. var eData = options.target.dataset;
  349. console.log('options.target.dataset',options.target.dataset);
  350. console.log('id' ,this.details.id); // shareBtn
  351. // 此处可以修改 shareObj 中的内容
  352. shareObj.path = '/shopping/productdetails?id='+this.details.id;
  353. }
  354. // 返回shareObj
  355. return shareObj;
  356. },
  357. getAddrList(){
  358. this.$u.api.addrList().then(res=>{
  359. // this.dataList = res.data.rows;
  360. console.log('getAddrList',res);
  361. if( res.data.total>0){
  362. this.hasAddr = true;
  363. }else{
  364. this.hasAddr = false;
  365. }
  366. }).catch(err=>{
  367. console.log('getAddrList',err.data);
  368. })
  369. },
  370. checkAuth() {
  371. // console.log('details-----',this.details);
  372. let that = this;
  373. return new Promise((resolve, reject) => {
  374. console.log('vuex_member_info', this.vuex_member_info.isAuth);
  375. if (that.details.isBuy&&that.details.isBuy!=1) {
  376. uni.showModal({
  377. title: '温馨提示',
  378. content: '购买该商品需要实名认证,请先实名认证!',
  379. success: res => {
  380. if (res.confirm) {
  381. let url = encodeURIComponent(`/shopping/productdetails?id=${that.id}`);
  382. uni.$u.route('/center/factorauth', {
  383. from: 'productdetails',
  384. backUrl: url
  385. });
  386. reject('needAuth'); // 实名认证未通过,使用 reject 方法返回结果
  387. }
  388. }
  389. });
  390. } else {
  391. resolve('noNeedAuth'); // 实名认证已通过,使用 resolve 方法返回结果
  392. }
  393. });
  394. },
  395. // 海报相关开始
  396. getPoster(){
  397. this.posterShow = true;
  398. this.shareShow = false;
  399. this.$u.api.getPoster({goodsId:this.id}).then(res=>{
  400. this.posterSrc = res.data.imageUrl;
  401. // console.log('getPoster',res.data);
  402. }).catch(err=>{
  403. console.log('getPoster',err);
  404. })
  405. },
  406. saveImage() {
  407. let that = this;
  408. uni.showLoading({
  409. title: '保存中'
  410. });
  411. uni.downloadFile({
  412. url: this.posterSrc,
  413. success(res) {
  414. if (res.statusCode === 200) {
  415. uni.saveImageToPhotosAlbum({
  416. filePath: res.tempFilePath,
  417. success() {
  418. uni.showToast({
  419. title: '保存到相册成功',
  420. icon: 'success'
  421. });
  422. },
  423. fail(err) {
  424. console.log('保存图片失败',err);
  425. if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') {
  426. uni.getSetting({
  427. success(res) {
  428. if (!res.authSetting['scope.writePhotosAlbum']) {
  429. uni.showModal({
  430. title: '提示',
  431. content: '您还没有授权访问相册,请前往设置页面打开权限。',
  432. confirmText: '去设置',
  433. success(res) {
  434. if (res.confirm) {
  435. uni.openSetting();
  436. }
  437. }
  438. });
  439. } else {
  440. uni.showToast({
  441. title: '保存图片失败',
  442. icon: 'none'
  443. });
  444. }
  445. }
  446. });
  447. } else {
  448. uni.showToast({
  449. title: '保存图片失败',
  450. icon: 'none'
  451. });
  452. }
  453. },
  454. complete() {
  455. uni.hideLoading();
  456. that.posterShow = false;
  457. }
  458. });
  459. } else {
  460. uni.showToast({
  461. title: '下载图片失败',
  462. icon: 'none'
  463. });
  464. }
  465. },
  466. fail() {
  467. uni.showToast({
  468. title: '下载图片失败',
  469. icon: 'none'
  470. });
  471. }
  472. });
  473. },
  474. // 海报相关结束
  475. }
  476. }
  477. </script>
  478. <style lang="scss" scoped>
  479. .indicator-num {
  480. padding: 2px 0;
  481. background-color: rgba(0, 0, 0, 0.35);
  482. border-radius: 100px;
  483. width: 35px;
  484. @include flex;
  485. justify-content: center;
  486. &__text {
  487. color: #FFFFFF;
  488. font-size: 12px;
  489. }
  490. }
  491. .product-info{
  492. .price-num{
  493. font-size: 60rpx;
  494. }
  495. .exchangeCredit{
  496. font-size: 60rpx;
  497. }
  498. .name{
  499. margin-top: 30rpx;
  500. font-size: 36rpx;
  501. font-weight: 600;
  502. color: #333;
  503. line-height: 50rpx;
  504. }
  505. }
  506. .info-line{
  507. margin-bottom: 20rpx;
  508. }
  509. .info-til{
  510. color: #999;
  511. margin-right: 40rpx;
  512. }
  513. .info-con{
  514. color: #666;
  515. }
  516. .addr{
  517. font-size: 30rpx;
  518. .addr-line:not(:last-child){
  519. margin-bottom: 20rpx;
  520. }
  521. }
  522. .comment{
  523. color: #999;
  524. .til{
  525. font-size: 30rpx;
  526. font-weight: 600;
  527. margin-right: 20rpx;
  528. color: #333;
  529. }
  530. }
  531. .detail{
  532. .til{
  533. font-size: 30rpx;
  534. color: #333;
  535. font-weight: 600;
  536. margin-bottom: 20rpx;
  537. }
  538. .con{
  539. // background-color: #F5F5F5;
  540. img{max-width: 100%;}
  541. }
  542. }
  543. .details-tool-wrap{
  544. height: 98rpx;
  545. .details-tool{
  546. position: fixed;
  547. left: 0;
  548. right: 0;
  549. bottom: 0;
  550. height: 98rpx;
  551. background-color: #fff;
  552. }
  553. .left{
  554. text-align: center;
  555. color: #666;
  556. font-size: 24rpx;
  557. .icon-wrap{
  558. position: relative;
  559. margin-left: 20rpx;
  560. }
  561. }
  562. .right{
  563. .btn{
  564. padding: 19rpx 40rpx;
  565. border-radius: 40rpx;
  566. color: #fff;
  567. margin-right: 20rpx;
  568. }
  569. .add-btn{
  570. background-color: #FFB100;
  571. }
  572. .buy-btn{
  573. background-color: #FF3C3F;
  574. }
  575. .gray{
  576. background-color: #ddd;
  577. color: #999;
  578. }
  579. }
  580. .share-btn{
  581. padding: 0;
  582. margin: 0;
  583. border: 0;
  584. font-size: 24rpx;
  585. color: #666;
  586. line-height: 1;
  587. background-color: transparent;
  588. outline: none;
  589. &::after{
  590. border: none;
  591. }
  592. }
  593. }
  594. .share-option{
  595. transform: translateY(100%);
  596. .overlay{
  597. position: fixed;
  598. left: 0;
  599. top: 0;
  600. width: 100vw;
  601. height: 100vh;
  602. background-color: rgba(0, 0, 0, 0.35);
  603. transform: translateY(-100%);
  604. }
  605. &.shareShow{
  606. transform: translateY(0);
  607. }
  608. position: fixed;
  609. width: 100%;
  610. left: 0;
  611. bottom: 0;
  612. z-index: 50;
  613. background-color: #fff;
  614. .share-option-item{
  615. position: relative;
  616. height: 46px;
  617. line-height: 46px;
  618. border: 0;
  619. background-color: #fff;
  620. text-align: center;
  621. border-radius: 0;
  622. border-bottom: 1px solid #eee;
  623. font-size: 30rpx;
  624. }
  625. .wx-share{
  626. border-bottom: 0;
  627. }
  628. }
  629. .poster-wrap{
  630. position: fixed;
  631. left: 0;
  632. top: 0;
  633. width: 100%;
  634. height: 100vh;
  635. .poster-inner{
  636. flex: 1;
  637. margin: 0 75rpx;
  638. .close-wrap{
  639. display: flex;
  640. justify-content: flex-end;
  641. margin-bottom: 16rpx;
  642. }
  643. }
  644. .poster{
  645. position: relative;
  646. // padding-bottom: 90rpx;
  647. background-color: transparent;
  648. .posterBg{
  649. position: absolute;
  650. left: 0;
  651. bottom: 0;
  652. right: 0;
  653. width: 100%;
  654. z-index: 1;
  655. }
  656. .placard{
  657. position: relative;
  658. z-index: 10;
  659. }
  660. .bottom{
  661. position: relative;
  662. z-index: 20;
  663. margin: 33rpx 40rpx 0;
  664. .left{
  665. margin-right: 58rpx;
  666. .price{
  667. font-size: 22rpx;
  668. font-weight: 600;
  669. color: #FF3538;
  670. line-height: 30rpx;
  671. margin-bottom: 10rpx;
  672. .num{
  673. font-size: 40rpx;
  674. font-weight: 600;
  675. margin-left: 5rpx;
  676. }
  677. }
  678. .goodsName{
  679. font-size: 30rpx;
  680. font-weight: 400;
  681. color: #333333;
  682. line-height: 38rpx;
  683. margin-bottom: 16rpx;
  684. }
  685. .slogan{
  686. font-size: 26rpx;
  687. font-weight: 600;
  688. line-height: 37rpx;
  689. }
  690. }
  691. .right{
  692. text-align: center;
  693. .imgTip{
  694. margin-top: 12rpx;
  695. font-size: 20rpx;
  696. font-weight: 400;
  697. color: #333333;
  698. line-height: 28rpx;
  699. }
  700. .qrcode{
  701. width: 108rpx;
  702. height:108rpx;
  703. }
  704. }
  705. }
  706. }
  707. .poster-btn{
  708. height: 88rpx;
  709. line-height: 88rpx;
  710. border-radius: 44rpx;
  711. text-align: center;
  712. color: #fff;
  713. margin-top: 40rpx;
  714. font-size: 32rpx;
  715. font-weight: 600;
  716. background: linear-gradient(90deg, #00DC84 0%, #00A447 100%);
  717. }
  718. }
  719. </style>