productdetails.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  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="openShare">
  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. if(this.vuex_member_info.name){
  195. this.getCartList();
  196. this.getAddrList();
  197. this.goodsAddView(this.id)
  198. }
  199. },
  200. methods: {
  201. leftClick(e){
  202. let pages = getCurrentPages();
  203. if(pages.length==1){
  204. uni.$u.route('/pages/index/index')
  205. }else{
  206. uni.navigateBack()
  207. };
  208. },
  209. getCartList(isAdd){
  210. this.$u.api.cartList().then(res=>{
  211. if(isAdd){
  212. if(res.data.total==this.cartTotal){
  213. this.$refs.uToast.show({
  214. type:"success",
  215. message:'已在购物车'
  216. });
  217. }
  218. }
  219. this.cartTotal = res.data.total;
  220. console.log('getCartList',res);
  221. }).catch(err=>{
  222. console.log('getCartList',err.data);
  223. })
  224. },
  225. getDetails(id){
  226. this.$u.api.memberGoodDetails({id:id}).then(res=>{
  227. this.loadingPage = false;
  228. // console.log('res',res.data);
  229. this.details = res.data;
  230. this.logisticsType = res.data.logisticsType?.split(",")||[];
  231. if(!res.data.slideImgList&&res.data.mainImg){
  232. this.details.slideImgList = [];
  233. this.details.slideImgList.push(res.data.mainImg)
  234. }
  235. }).catch(err=>{
  236. console.log('getDetails',err.data);
  237. })
  238. },
  239. goodsAddView(id){
  240. this.$u.api.goodsAddView({id:id}).then(res=>{
  241. // console.log('res',res.data);
  242. }).catch(err=>{
  243. console.log('goodsAddView',err.data);
  244. })
  245. },
  246. async addCart(id,buyNow){
  247. // 检测是否登录
  248. if (!this.checkLogin()) {
  249. return;
  250. }
  251. try {
  252. let authResult = await this.checkAuth();
  253. console.log('实名认证结果:', authResult);
  254. // 在此处可以继续执行需要进行实名认证的业务逻辑
  255. // 例如下单购买商品等操作
  256. } catch (err) {
  257. console.log('实名认证未通过:', err);
  258. return
  259. // 在此处可以处理用户未通过实名认证的情况
  260. // 例如返回上一页或者跳转到实名认证页等操作
  261. }
  262. this.checkAuth();
  263. this.$u.api.addCart({goodsId:id}).then(res=>{
  264. this.$refs.uToast.show({
  265. type:"success",
  266. message:res.msg
  267. });
  268. if(buyNow){
  269. uni.$u.route('/shopping/cart', {
  270. buyNowId: id,
  271. buyNowName:this.details.goodsName
  272. });
  273. }
  274. this.getCartList('isAdd');
  275. console.log('res',res.data);
  276. }).catch(err=>{
  277. console.log('addCart',err);
  278. })
  279. },
  280. checkLogin() {
  281. if (!this.vuex_member_info.name) {
  282. let that = this;
  283. let pageUrl = encodeURIComponent(`shopping/productdetails?id=${that.id}`);
  284. uni.showModal({
  285. title: '提示',
  286. content: '你需要登录后,才可使用此功能!',
  287. success: res => {
  288. if (res.confirm) {
  289. uni.setStorage({
  290. key: 'backUrl',
  291. data: pageUrl,
  292. success: function () {
  293. uni.$u.route('/pages/login/login')
  294. }
  295. });
  296. }
  297. }
  298. });
  299. return false;
  300. }
  301. return true;
  302. },
  303. openShare(){
  304. // 检测是否登录
  305. // if (!this.checkLogin()) {
  306. // return;
  307. // }
  308. this.shareShow = true;
  309. },
  310. async buyNow(id){
  311. // 检测是否登录
  312. if (!this.checkLogin()) {
  313. return;
  314. }
  315. try {
  316. let authResult = await this.checkAuth();
  317. console.log('实名认证结果:', authResult);
  318. // 在此处可以继续执行需要进行实名认证的业务逻辑
  319. // 例如下单购买商品等操作
  320. } catch (err) {
  321. console.log('实名认证未通过:', err);
  322. return
  323. // 在此处可以处理用户未通过实名认证的情况
  324. // 例如返回上一页或者跳转到实名认证页等操作
  325. }
  326. // this.addCart(id,'buyNow')//跳购物车
  327. if(!this.hasAddr){
  328. uni.showModal({
  329. title: '温馨提示',
  330. content: '请先设置地址!',
  331. success: res => {
  332. if (res.confirm) {
  333. let url = encodeURIComponent(`/shopping/productdetails?id=${that.id}`) ;
  334. uni.$u.route('/center/addrlist', {
  335. from: 'productdetails',
  336. backUrl:url
  337. });
  338. }
  339. }
  340. })
  341. return
  342. }
  343. this.$u.vuex('buyNowGoods',[{goodsId:this.id,quantity:1}]);
  344. uni.$u.route('/shopping/submitorder', {fromPage: 'productdetails'});
  345. },
  346. async addCreditOrder(id){
  347. // 检测是否登录
  348. if (!this.checkLogin()) {
  349. return;
  350. }
  351. try {
  352. let authResult = await this.checkAuth();
  353. console.log('实名认证结果:', authResult);
  354. // 在此处可以继续执行需要进行实名认证的业务逻辑
  355. // 例如下单购买商品等操作
  356. } catch (err) {
  357. console.log('实名认证未通过:', err);
  358. return
  359. // 在此处可以处理用户未通过实名认证的情况
  360. // 例如返回上一页或者跳转到实名认证页等操作
  361. }
  362. let that = this;
  363. let creditGoods = [];
  364. creditGoods.push({id:that.details.id,quantity:1})
  365. // console.log('creditGoods',creditGoods);
  366. that.$u.vuex('cartGoods',creditGoods);
  367. uni.$u.route('/shopping/submitorder', {fromPage:'creditOrder'});
  368. },
  369. onShareAppMessage: function( options ){
  370. var that = this;
  371. // 设置菜单中的转发按钮触发转发事件时的转发内容
  372. var shareObj = {
  373. title: this.details.goodsName, // 默认是小程序的名称(可以写slogan等)
  374. path: '/shopping/productdetails', // 默认是当前页面,必须是以‘/'开头的完整路径
  375. imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
  376. success: function(res){
  377. // 转发成功之后的回调
  378. if(res.errMsg == 'shareAppMessage:ok'){
  379. }
  380. },
  381. fail: function(){
  382. // 转发失败之后的回调
  383. if(res.errMsg == 'shareAppMessage:fail cancel'){
  384. // 用户取消转发
  385. }else if(res.errMsg == 'shareAppMessage:fail'){
  386. // 转发失败,其中 detail message 为详细失败信息
  387. }
  388. },
  389. complete:function(){
  390. // 转发结束之后的回调(转发成不成功都会执行)
  391. }
  392. };
  393. // 来自页面内的按钮的转发
  394. if( options.from == 'button' ){
  395. var eData = options.target.dataset;
  396. console.log('options.target.dataset',options.target.dataset);
  397. console.log('id' ,this.details.id); // shareBtn
  398. // 此处可以修改 shareObj 中的内容
  399. shareObj.path = '/shopping/productdetails?id='+this.details.id;
  400. }
  401. // 返回shareObj
  402. return shareObj;
  403. },
  404. getAddrList(){
  405. this.$u.api.addrList().then(res=>{
  406. // this.dataList = res.data.rows;
  407. console.log('getAddrList',res);
  408. if( res.data.total>0){
  409. this.hasAddr = true;
  410. }else{
  411. this.hasAddr = false;
  412. }
  413. }).catch(err=>{
  414. console.log('getAddrList',err.data);
  415. })
  416. },
  417. checkAuth() {
  418. // console.log('details-----',this.details);
  419. let that = this;
  420. return new Promise((resolve, reject) => {
  421. console.log('vuex_member_info', this.vuex_member_info.isAuth);
  422. if (that.details.isBuy!=1&&that.details.isAuth==1) {
  423. uni.showModal({
  424. title: '温馨提示',
  425. content: '购买该商品需要实名认证,请先实名认证!',
  426. success: res => {
  427. if (res.confirm) {
  428. let url = encodeURIComponent(`/shopping/productdetails?id=${that.id}`);
  429. uni.$u.route('/center/factorauth', {
  430. from: 'productdetails',
  431. backUrl: url
  432. });
  433. reject('needAuth'); // 实名认证未通过,使用 reject 方法返回结果
  434. }
  435. }
  436. });
  437. } else {
  438. resolve('noNeedAuth'); // 实名认证已通过,使用 resolve 方法返回结果
  439. }
  440. });
  441. },
  442. // 海报相关开始
  443. getPoster(){
  444. this.posterShow = true;
  445. this.shareShow = false;
  446. this.$u.api.getPoster({goodsId:this.id}).then(res=>{
  447. this.posterSrc = res.data.imageUrl;
  448. // console.log('getPoster',res.data);
  449. }).catch(err=>{
  450. console.log('getPoster',err);
  451. })
  452. },
  453. saveImage() {
  454. let that = this;
  455. uni.showLoading({
  456. title: '保存中'
  457. });
  458. uni.downloadFile({
  459. url: this.posterSrc,
  460. success(res) {
  461. if (res.statusCode === 200) {
  462. uni.saveImageToPhotosAlbum({
  463. filePath: res.tempFilePath,
  464. success() {
  465. uni.showToast({
  466. title: '保存到相册成功',
  467. icon: 'success'
  468. });
  469. },
  470. fail(err) {
  471. console.log('保存图片失败',err);
  472. if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') {
  473. uni.getSetting({
  474. success(res) {
  475. if (!res.authSetting['scope.writePhotosAlbum']) {
  476. uni.showModal({
  477. title: '提示',
  478. content: '您还没有授权访问相册,请前往设置页面打开权限。',
  479. confirmText: '去设置',
  480. success(res) {
  481. if (res.confirm) {
  482. uni.openSetting();
  483. }
  484. }
  485. });
  486. } else {
  487. uni.showToast({
  488. title: '保存图片失败',
  489. icon: 'none'
  490. });
  491. }
  492. }
  493. });
  494. } else {
  495. uni.showToast({
  496. title: '保存图片失败',
  497. icon: 'none'
  498. });
  499. }
  500. },
  501. complete() {
  502. uni.hideLoading();
  503. that.posterShow = false;
  504. }
  505. });
  506. } else {
  507. uni.showToast({
  508. title: '下载图片失败',
  509. icon: 'none'
  510. });
  511. }
  512. },
  513. fail() {
  514. uni.showToast({
  515. title: '下载图片失败',
  516. icon: 'none'
  517. });
  518. }
  519. });
  520. },
  521. // 海报相关结束
  522. }
  523. }
  524. </script>
  525. <style lang="scss" scoped>
  526. .indicator-num {
  527. padding: 2px 0;
  528. background-color: rgba(0, 0, 0, 0.35);
  529. border-radius: 100px;
  530. width: 35px;
  531. @include flex;
  532. justify-content: center;
  533. &__text {
  534. color: #FFFFFF;
  535. font-size: 12px;
  536. }
  537. }
  538. .product-info{
  539. .price-num{
  540. font-size: 60rpx;
  541. font-family: PingFangSC-Semibold, PingFang SC;
  542. }
  543. .exchangeCredit{
  544. font-size: 60rpx;
  545. }
  546. .name{
  547. margin-top: 30rpx;
  548. font-size: 36rpx;
  549. font-weight: 600;
  550. color: #333;
  551. line-height: 50rpx;
  552. }
  553. }
  554. .info-line{
  555. margin-bottom: 20rpx;
  556. }
  557. .info-til{
  558. color: #999;
  559. margin-right: 40rpx;
  560. }
  561. .info-con{
  562. color: #666;
  563. }
  564. .addr{
  565. font-size: 30rpx;
  566. .addr-line:not(:last-child){
  567. margin-bottom: 20rpx;
  568. }
  569. }
  570. .comment{
  571. color: #999;
  572. .til{
  573. font-size: 30rpx;
  574. font-weight: 600;
  575. margin-right: 20rpx;
  576. color: #333;
  577. }
  578. }
  579. .detail{
  580. .til{
  581. font-size: 30rpx;
  582. color: #333;
  583. font-weight: 600;
  584. margin-bottom: 20rpx;
  585. }
  586. .con{
  587. // background-color: #F5F5F5;
  588. img{max-width: 100%;}
  589. }
  590. }
  591. .details-tool-wrap{
  592. height: 98rpx;
  593. .details-tool{
  594. position: fixed;
  595. left: 0;
  596. right: 0;
  597. bottom: 0;
  598. height: 98rpx;
  599. background-color: #fff;
  600. }
  601. .left{
  602. text-align: center;
  603. color: #666;
  604. font-size: 24rpx;
  605. .icon-wrap{
  606. position: relative;
  607. margin-left: 20rpx;
  608. }
  609. }
  610. .right{
  611. .btn{
  612. padding: 19rpx 40rpx;
  613. border-radius: 40rpx;
  614. color: #fff;
  615. margin-right: 20rpx;
  616. }
  617. .add-btn{
  618. background-color: #FFB100;
  619. }
  620. .buy-btn{
  621. background-color: #FF3C3F;
  622. }
  623. .gray{
  624. background-color: #ddd;
  625. color: #999;
  626. }
  627. }
  628. .share-btn{
  629. padding: 0;
  630. margin: 0;
  631. border: 0;
  632. font-size: 24rpx;
  633. color: #666;
  634. line-height: 1;
  635. background-color: transparent;
  636. outline: none;
  637. &::after{
  638. border: none;
  639. }
  640. }
  641. }
  642. .share-option{
  643. transform: translateY(100%);
  644. .overlay{
  645. position: fixed;
  646. left: 0;
  647. top: 0;
  648. width: 100vw;
  649. height: 100vh;
  650. background-color: rgba(0, 0, 0, 0.35);
  651. transform: translateY(-100%);
  652. }
  653. &.shareShow{
  654. transform: translateY(0);
  655. }
  656. position: fixed;
  657. width: 100%;
  658. left: 0;
  659. bottom: 0;
  660. z-index: 50;
  661. background-color: #fff;
  662. .share-option-item{
  663. position: relative;
  664. height: 46px;
  665. line-height: 46px;
  666. border: 0;
  667. background-color: #fff;
  668. text-align: center;
  669. border-radius: 0;
  670. border-bottom: 1px solid #eee;
  671. font-size: 30rpx;
  672. }
  673. .wx-share{
  674. border-bottom: 0;
  675. }
  676. }
  677. .poster-wrap{
  678. position: fixed;
  679. left: 0;
  680. top: 0;
  681. width: 100%;
  682. height: 100vh;
  683. .poster-inner{
  684. flex: 1;
  685. margin: 0 75rpx;
  686. .close-wrap{
  687. display: flex;
  688. justify-content: flex-end;
  689. margin-bottom: 16rpx;
  690. }
  691. }
  692. .poster{
  693. position: relative;
  694. // padding-bottom: 90rpx;
  695. background-color: transparent;
  696. .posterBg{
  697. position: absolute;
  698. left: 0;
  699. bottom: 0;
  700. right: 0;
  701. width: 100%;
  702. z-index: 1;
  703. }
  704. .placard{
  705. position: relative;
  706. z-index: 10;
  707. }
  708. .bottom{
  709. position: relative;
  710. z-index: 20;
  711. margin: 33rpx 40rpx 0;
  712. .left{
  713. margin-right: 58rpx;
  714. .price{
  715. font-size: 22rpx;
  716. font-weight: 600;
  717. color: #FF3538;
  718. line-height: 30rpx;
  719. margin-bottom: 10rpx;
  720. .num{
  721. font-size: 40rpx;
  722. font-weight: 600;
  723. margin-left: 5rpx;
  724. }
  725. }
  726. .goodsName{
  727. font-size: 30rpx;
  728. font-weight: 400;
  729. color: #333333;
  730. line-height: 38rpx;
  731. margin-bottom: 16rpx;
  732. }
  733. .slogan{
  734. font-size: 26rpx;
  735. font-weight: 600;
  736. line-height: 37rpx;
  737. }
  738. }
  739. .right{
  740. text-align: center;
  741. .imgTip{
  742. margin-top: 12rpx;
  743. font-size: 20rpx;
  744. font-weight: 400;
  745. color: #333333;
  746. line-height: 28rpx;
  747. }
  748. .qrcode{
  749. width: 108rpx;
  750. height:108rpx;
  751. }
  752. }
  753. }
  754. }
  755. .poster-btn{
  756. height: 88rpx;
  757. line-height: 88rpx;
  758. border-radius: 44rpx;
  759. text-align: center;
  760. color: #fff;
  761. margin-top: 40rpx;
  762. font-size: 32rpx;
  763. font-weight: 600;
  764. background: linear-gradient(90deg, #00DC84 0%, #00A447 100%);
  765. }
  766. }
  767. </style>