productdetails.vue 19 KB

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