index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  1. <template>
  2. <view class="container">
  3. <!-- 顶部logo and 搜索 start-->
  4. <view class="status_bar"></view>
  5. <view class="top-bg"></view>
  6. <view class="top-search flex">
  7. <view class="search-box flex" @click="clickSearch()">
  8. <image class="search" src="../../static/icon/search-w.png" mode=""></image>
  9. <view class="search-font">输入关键词搜索</view>
  10. </view>
  11. </view>
  12. <!-- 顶部logo and 搜索 end-->
  13. <view class="jg" style="background-color: #fff;"></view>
  14. <!-- 轮播图 start -->
  15. <swiper class="top-swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  16. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
  17. @click="bannerNavToUrl(item)">
  18. <image :src="item.pic" />
  19. </swiper-item>
  20. </swiper>
  21. <!-- 轮播图 end -->
  22. <!-- 分类 start -->
  23. <!-- 分类 ed -->
  24. <view class="jg">
  25. </view>
  26. <image src="/static/img/in4.png" mode="widthFix" class="pb-bg"></image>
  27. <!-- 商品列表 start -->
  28. <view class="hot-wrap">
  29. <!-- <image src="../../static/icon/bktj.png" mode="heightFix" class="tit"></image> -->
  30. <view class="hot-list">
  31. <view class="hotgoods-item" v-for="jfitem in goodList" :key="jfitem.id"
  32. @click="navto('/pages/product/product?id=' + jfitem.id)" style="height: 520rpx;">
  33. <view class="image-wrapper">
  34. <image class="image" :src="jfitem.image" mode="scaleToFill"></image>
  35. </view>
  36. <view class="flex"
  37. style="flex-direction: column;justify-content: space-between;align-items: flex-start;height: 170rpx;">
  38. <view class="title clamp2">{{jfitem.store_name}}</view>
  39. <view class="hot-price">
  40. <view class="price">
  41. <text>¥{{ jfitem.price * 1 }}</text>
  42. <!-- <text class="ot-pirce">¥{{jfitem.ot_price}}</text> -->
  43. </view>
  44. <image src="../../static/icon/gobuy.png" mode="" style="width: 60rpx;height:50rpx;"></image>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 商品列表 ed-->
  51. <uni-popup ref="popupkf" type="center">
  52. <view class="popup-box">
  53. <view class="img">
  54. <image src="../../static/img/img009.png" mode=""></image>
  55. </view>
  56. <view class="mian">
  57. <view class="delivery">
  58. <view class="title">已经为您定制专属客服</view>
  59. <image src="../../static/img/img010.png" mode=""></image>
  60. </view>
  61. <view class="nocancel">客服VX:{{ text }}</view>
  62. <view class="comfirm-box">
  63. <view class="cancel" @click="cancel">取消</view>
  64. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  65. </view>
  66. </view>
  67. </view>
  68. </uni-popup>
  69. </view>
  70. </template>
  71. <script>
  72. import {
  73. loadIndexs,
  74. groom1
  75. } from '@/api/index.js';
  76. import {
  77. getUserInfo,
  78. spread
  79. } from '@/api/user.js';
  80. import {
  81. getBargainList,
  82. getProducts,
  83. goodsDetail,
  84. poster
  85. } from '@/api/product.js';
  86. import {
  87. saveUrl,
  88. interceptor
  89. } from '@/utils/loginUtils';
  90. import {
  91. mapState,
  92. mapMutations
  93. } from 'vuex';
  94. // #ifdef H5
  95. import {
  96. weixindata,
  97. shareLoad
  98. } from '@/utils/wxAuthorized';
  99. // #endif
  100. export default {
  101. data() {
  102. return {
  103. bastList: [], //爆款推荐
  104. muted: false,
  105. cateList: [
  106. {
  107. link: '/pages/index/gift?id=7',
  108. img: '../../static/icon/in1.png',
  109. tit: '传统海鲜干'
  110. },
  111. {
  112. link: '/pages/index/gift?id=4',
  113. img: '../../static/icon/in2.png',
  114. tit: '黄鱼预制菜'
  115. },
  116. {
  117. link: '/pages/index/gift?id=3',
  118. wap_link: 'kf',
  119. img: '../../static/icon/in3.png',
  120. tit: '休闲零食'
  121. },
  122. {
  123. link: '/pages/index/gift?id=8',
  124. img: '../../static/icon/in4.png',
  125. tit: '老字号非遗'
  126. },
  127. {
  128. link: '/pages/index/gift?id=9',
  129. img: '../../static/icon/in5.png',
  130. tit: '农合联产品'
  131. },
  132. ],
  133. text: '13105637866', //客服微信
  134. // page: 1,
  135. limitt: 20,
  136. loadingType: 'more',
  137. current: 0,
  138. shareShow: false, //分享海报
  139. pageProportion: 0, //保存页面基于750宽度的比例
  140. swiperHeight: 0,
  141. checkid: 0,
  142. titleNViewBackground: '',
  143. swiperCurrent: 0,
  144. swiperLength: 0,
  145. carouselList: [], //轮播列表
  146. page: 1,
  147. limit: 5,
  148. firstList: [],
  149. goodList: [], //商品列表
  150. shopList: [],
  151. period: 1,
  152. shareImage: '',
  153. fgList: '', //复购商品
  154. };
  155. },
  156. computed: {
  157. ...mapState('user', ['hasLogin', 'userInfo'])
  158. },
  159. onShareAppMessage(options) {
  160. // 设置菜单中的转发按钮触发转发事件时的转发内容
  161. let pages = getCurrentPages(); //获取加载的页面
  162. let currentPage = pages[pages.length - 1]; //获取当前页面的对象
  163. let url = currentPage.route; //当前页面url
  164. let item = currentPage.options; //如果要获取url中所带的参数可以查看options
  165. let shareObj = {}
  166. if (this.userInfo.uid) {
  167. shareObj = {
  168. title: this.userInfo.nickname + '邀请您加入松门白鲞', // 默认是小程序的名称(可以写slogan等)
  169. path: url + '?scene=' + this.userInfo.uid, // 默认是当前页面,必须是以‘/’开头的完整路径
  170. imageUrl: '',
  171. success: function(res) {
  172. // 转发成功之后的回调
  173. if (res.errMsg == 'shareAppMessage:ok') {}
  174. },
  175. fail: function() {
  176. // 转发失败之后的回调
  177. if (res.errMsg == 'shareAppMessage:fail cancel') {
  178. // 用户取消转发
  179. } else if (res.errMsg == 'shareAppMessage:fail') {
  180. // 转发失败,其中 detail message 为详细失败信息
  181. }
  182. }
  183. };
  184. } else {
  185. shareObj = {
  186. title: '7131', // 默认是小程序的名称(可以写slogan等)
  187. path: url, // 默认是当前页面,必须是以‘/’开头的完整路径
  188. imageUrl: '',
  189. success: function(res) {
  190. // 转发成功之后的回调
  191. if (res.errMsg == 'shareAppMessage:ok') {}
  192. },
  193. fail: function() {
  194. // 转发失败之后的回调
  195. if (res.errMsg == 'shareAppMessage:fail cancel') {
  196. // 用户取消转发
  197. } else if (res.errMsg == 'shareAppMessage:fail') {
  198. // 转发失败,其中 detail message 为详细失败信息
  199. }
  200. }
  201. };
  202. }
  203. return shareObj;
  204. },
  205. onReachBottom() {
  206. console.log('到底')
  207. // this.getGoodList()
  208. },
  209. onLoad: function(option) {
  210. // #ifdef MP
  211. if (option.scene) {
  212. // 存储小程序邀请人
  213. uni.setStorage({
  214. key: 'spread_code',
  215. data: option.scene
  216. });
  217. }
  218. // #endif
  219. // #ifdef H5
  220. shareLoad()
  221. if (option.spread) {
  222. // 存储小程序邀请人
  223. uni.setStorage({
  224. key: 'spread',
  225. data: option.spread
  226. });
  227. }
  228. // #endif
  229. },
  230. onShow: function() {
  231. this.getGoodList()
  232. this.loadData();
  233. },
  234. onHide() {},
  235. methods: {
  236. gogogo(item) {
  237. let url = item.link + '&tit=' + item.tit + '&isgift=0'
  238. if(url.indexOf('http') != -1 ) {
  239. // #ifdef H5
  240. window.location.href = url
  241. // #endif
  242. }else if (url == '' || url == '#' || url == '/' || url.length < 2) {
  243. uni.navigateTo({
  244. url: '/pages/index/dkf'
  245. })
  246. }else if(url == 'kf') {
  247. this.$refs.popupkf.open()
  248. }else if( url == 'gongzhonghao') {
  249. }else {
  250. uni.navigateTo({
  251. url,
  252. fail() {
  253. uni.switchTab({
  254. url,
  255. })
  256. }
  257. })
  258. }
  259. },
  260. getGoodList() {
  261. let obj = this
  262. if (obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  263. return
  264. }
  265. obj.loadingType = 'loading'
  266. getProducts({
  267. page: 1,
  268. limit: 50,
  269. is_type: 1
  270. }).then(res => {
  271. obj.goodList = res.data
  272. if (obj.limit == res.data.length) {
  273. obj.loadingType = 'more'
  274. } else {
  275. obj.loadingType = 'noMore'
  276. }
  277. })
  278. },
  279. navto(url, type = 0) {
  280. if (type == 1) {
  281. if (!this.hasLogin) {
  282. // 保存地址
  283. saveUrl();
  284. // 登录拦截
  285. interceptor();
  286. } else {
  287. uni.navigateTo({
  288. url,
  289. fail() {
  290. uni.switchTab({
  291. url
  292. })
  293. }
  294. })
  295. }
  296. } else {
  297. uni.navigateTo({
  298. url,
  299. fail() {
  300. uni.switchTab({
  301. url
  302. })
  303. }
  304. })
  305. }
  306. },
  307. navTo(url) {
  308. if (url == '') {
  309. this.$api.msg('暂未开通,敬请期待');
  310. } else {
  311. this.navto(url)
  312. }
  313. },
  314. // 點擊搜索框
  315. clickSearch() {
  316. uni.navigateTo({
  317. url: '/pages/product/search'
  318. });
  319. },
  320. // 监听图片加载完成
  321. onImageError(key, index) {
  322. this[key][index].image = '/static/error/errorImage.jpg';
  323. },
  324. // 请求载入数据
  325. async loadData() {
  326. loadIndexs({})
  327. .then(({
  328. data
  329. }) => {
  330. let goods = data.info;
  331. console.log(goods, '商品信息');
  332. this.carouselList = data.banner;
  333. this.swiperLength = this.carouselList.length;
  334. // this.bastList = data.likeInfo; //会员礼包
  335. data.info.firstList.forEach(e => {
  336. e.isVip = e.store_type ? "3" : "0"
  337. })
  338. this.firstList = data.info.firstList //首页商品
  339. if(data.lovely.length > 0) {
  340. this.cateList = data.lovely
  341. }
  342. uni.stopPullDownRefresh();
  343. })
  344. .catch(e => {
  345. uni.stopPullDownRefresh();
  346. });
  347. },
  348. //轮播图切换修改背景色
  349. swiperChange(e) {
  350. const index = e.detail.current;
  351. this.swiperCurrent = index;
  352. this.titleNViewBackground = this.carouselList[index].background;
  353. },
  354. // 轮播图跳转
  355. bannerNavToUrl(item) {
  356. // #ifdef H5
  357. console.log(item.wap_url.indexOf('http'), 'banner');
  358. if (item.wap_url.indexOf('http') >= 0) {
  359. window.location.href = item.wap_url;
  360. }
  361. // uni.navigateTo({
  362. // url: '/pages/zero/order'
  363. // })
  364. // #endif
  365. //测试数据没有写id,用title代替
  366. uni.navigateTo({
  367. url: item.wap_url,
  368. fail() {
  369. uni.switchTab({
  370. url: item.wap_url
  371. })
  372. }
  373. });
  374. },
  375. comfirm(text) {
  376. console.log(text);
  377. const result = this.uniCopy(text);
  378. if (result === false) {
  379. uni.showToast({
  380. title: '不支持'
  381. });
  382. } else {
  383. uni.showToast({
  384. title: '复制成功',
  385. icon: 'none'
  386. });
  387. }
  388. this.$refs.popupkf.close();
  389. },
  390. uniCopy(content) {
  391. /**
  392. * 小程序端 和 app端的复制逻辑
  393. */
  394. //#ifndef H5
  395. uni.setClipboardData({
  396. data: content,
  397. success: function() {
  398. console.log('success');
  399. return true;
  400. }
  401. });
  402. //#endif
  403. /**
  404. * H5端的复制逻辑
  405. */
  406. // #ifdef H5
  407. if (!document.queryCommandSupported('copy')) {
  408. //为了兼容有些浏览器 queryCommandSupported 的判断
  409. // 不支持
  410. return false;
  411. }
  412. let textarea = document.createElement('textarea');
  413. textarea.value = content;
  414. textarea.readOnly = 'readOnly';
  415. document.body.appendChild(textarea);
  416. textarea.select(); // 选择对象
  417. textarea.setSelectionRange(0, content.length); //核心
  418. let result = document.execCommand('copy'); // 执行浏览器复制命令
  419. textarea.remove();
  420. return result;
  421. // #endif
  422. },
  423. // 打开客服
  424. openKf() {
  425. this.$refs.popupkf.open();
  426. },
  427. // 关闭客服
  428. cancel() {
  429. this.$refs.popupkf.close();
  430. },
  431. }
  432. };
  433. </script>
  434. <style lang="scss">
  435. page {
  436. min-height: 100%;
  437. height: auto;
  438. background-color: #fff;
  439. }
  440. // 顶部搜索
  441. .top-search {
  442. height: 80rpx;
  443. padding: 0 20rpx;
  444. position: relative;
  445. .top-logo {
  446. width: 50rpx;
  447. // height: 50rpx;
  448. margin-right: 10rpx;
  449. image {
  450. width: 48rpx;
  451. }
  452. }
  453. .search-box {
  454. justify-content: center;
  455. width: 698rpx;
  456. height: 60rpx;
  457. background: rgba(255, 255, 255, 0.5);
  458. color: #fff;
  459. // box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  460. border-radius: 30rpx;
  461. .search {
  462. width: 34rpx;
  463. height: 34rpx;
  464. }
  465. .search-font {
  466. margin-left: 14rpx;
  467. font-size: 28rpx;
  468. font-weight: 500;
  469. color: #fff;
  470. }
  471. }
  472. }
  473. // 顶部轮播图
  474. .top-swiper {
  475. background-color: #fff;
  476. width: 690rpx;
  477. height: 320rpx;
  478. margin: auto;
  479. .carousel-item {
  480. image {
  481. width: 100%;
  482. height: 100%;
  483. border-radius: 20rpx;
  484. }
  485. }
  486. // margin: 20rpx 0 0;
  487. }
  488. .swiper-btm {
  489. height: 60rpx;
  490. width: 750rpx;
  491. background-color: #fff;
  492. margin-bottom: 20rpx;
  493. font-size: 26rpx;
  494. font-weight: 500;
  495. color: #333333;
  496. .btm-item {
  497. flex-grow: 1;
  498. justify-content: center;
  499. image {
  500. width: 25rpx;
  501. height: 25rpx;
  502. margin-right: 14rpx;
  503. }
  504. }
  505. }
  506. .jg {
  507. height: 20rpx;
  508. background: #F8F8F8;
  509. }
  510. // 分类
  511. .cate-section {
  512. justify-content: flex-start;
  513. background-color: #fff;
  514. padding: 0 0 30rpx;
  515. flex-wrap: wrap;
  516. .cate-item {
  517. padding-top: 30rpx;
  518. flex-grow: 0;
  519. width: 20%;
  520. flex-direction: column;
  521. text-align: center;
  522. align-items: center;
  523. justify-content: center;
  524. .img-wrapper {
  525. width: 123rpx;
  526. height: 123rpx;
  527. border-radius: 20rpx;
  528. position: relative;
  529. image {
  530. width: 100%;
  531. height: 100%;
  532. position: absolute;
  533. left: 50%;
  534. top: 50%;
  535. transform: translate(-50%, -50%);
  536. }
  537. }
  538. .item-title {
  539. margin-top: 15rpx;
  540. font-size: 26rpx;
  541. font-weight: 500;
  542. }
  543. }
  544. }
  545. .hot-wrap {
  546. background-color: #fff;
  547. padding-top: 20rpx;
  548. .tit {
  549. display: block;
  550. height: 40rpx;
  551. margin: 20rpx auto 40rpx;
  552. }
  553. .hot-list {
  554. // margin-top: 38rpx;
  555. width: 100%;
  556. display: flex;
  557. flex-wrap: wrap;
  558. padding: 0 20rpx 30rpx;
  559. justify-content: space-between;
  560. .hotgoods-item {
  561. width: 345rpx;
  562. background-color: #ffffff;
  563. border-radius: 12rpx;
  564. box-shadow: 0 0 15rpx rgba(0, 0, 0, 0.2);
  565. margin-bottom: 15rpx;
  566. .image-wrapper {
  567. width: 345rpx;
  568. height: 345rpx;
  569. border-radius: 3px;
  570. overflow: hidden;
  571. position: relative;
  572. .image-bg {
  573. position: absolute;
  574. top: 0;
  575. left: 0;
  576. right: 0;
  577. bottom: 0;
  578. width: 100%;
  579. height: 100%;
  580. opacity: 1;
  581. border-radius: 12rpx 12rpx 0 0;
  582. z-index: 2;
  583. }
  584. .image {
  585. width: 100%;
  586. height: 100%;
  587. opacity: 1;
  588. border-radius: 12rpx 12rpx 0 0;
  589. }
  590. }
  591. .title {
  592. margin-top: 24rpx;
  593. padding: 0 20rpx;
  594. font-size: 32rpx;
  595. font-weight: 500;
  596. }
  597. .hot-price {
  598. display: flex;
  599. justify-content: flex-start;
  600. align-items: center;
  601. width: 100%;
  602. padding: 0 10rpx;
  603. // padding: 14rpx 0 30rpx;
  604. .hotPrice-box {
  605. padding: 2rpx 6rpx;
  606. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  607. border-radius: 5rpx;
  608. text-align: center;
  609. line-height: 28rpx;
  610. font-size: 20rpx;
  611. font-family: Source Han Sans CN;
  612. font-weight: 400;
  613. color: #ffffff;
  614. }
  615. .price {
  616. margin-left: 10rpx;
  617. font-size: 36rpx;
  618. color: #ff0000;
  619. font-weight: 500;
  620. display: flex;
  621. width: 100%;
  622. justify-content: flex-start;
  623. align-items: center;
  624. .jf {
  625. font-size: 20rpx;
  626. }
  627. .give-jf {
  628. display: inline-block;
  629. padding: 8rpx;
  630. background: linear-gradient(90deg, #FF834D, #FF2600);
  631. border-radius: 12rpx 0px 12rpx 0px;
  632. font-size: 22rpx;
  633. font-weight: 500;
  634. color: #FFFFFF;
  635. margin-left: 22rpx;
  636. }
  637. .ot-pirce {
  638. margin-left: 7rpx;
  639. font-size: 26rpx;
  640. font-weight: 500;
  641. text-decoration: line-through;
  642. color: #999999;
  643. align-self: flex-end;
  644. }
  645. }
  646. .yuanPrice {
  647. margin-left: 10rpx;
  648. font-size: 20rpx;
  649. font-family: PingFang SC;
  650. font-weight: 500;
  651. text-decoration: line-through;
  652. color: #999999;
  653. }
  654. .cart-icon {
  655. image {
  656. width: 44rpx;
  657. height: 44rpx;
  658. }
  659. }
  660. }
  661. }
  662. }
  663. }
  664. .popup-box {
  665. width: 522rpx;
  666. height: 605rpx;
  667. background-color: #ffffff;
  668. border-radius: 20rpx;
  669. position: relative;
  670. .img {
  671. position: relative;
  672. top: -56rpx;
  673. left: 0;
  674. width: 522rpx;
  675. height: 132rpx;
  676. display: flex;
  677. justify-content: center;
  678. image {
  679. border-radius: 20rpx 20rpx 0 0;
  680. width: 450rpx;
  681. height: 132rpx;
  682. }
  683. }
  684. .mian {
  685. margin-top: -44rpx;
  686. display: flex;
  687. flex-direction: column;
  688. align-items: center;
  689. // padding: 32rpx 32rpx;
  690. background-color: #ffffff;
  691. border-radius: 0 0 20rpx 20rpx;
  692. text-align: center;
  693. .delivery {
  694. font-size: 40rpx;
  695. color: #333333;
  696. display: flex;
  697. align-items: center;
  698. flex-direction: column;
  699. image {
  700. margin-top: 48rpx;
  701. width: 172rpx;
  702. height: 160rpx;
  703. }
  704. }
  705. .nocancel {
  706. font-size: 32rpx;
  707. color: #333333;
  708. margin-top: 14rpx;
  709. }
  710. .comfirm-box {
  711. margin-top: 52rpx;
  712. display: flex;
  713. // margin-bottom: 32rpx;
  714. // justify-content: space-around;
  715. .cancel {
  716. display: flex;
  717. align-items: center;
  718. justify-content: center;
  719. width: 197rpx;
  720. height: 74rpx;
  721. border: 1px solid #dcc786;
  722. border-radius: 38rpx;
  723. font-size: 32rpx;
  724. color: #605128;
  725. }
  726. .comfirm {
  727. margin-left: 32rpx;
  728. display: flex;
  729. align-items: center;
  730. justify-content: center;
  731. width: 197rpx;
  732. height: 74rpx;
  733. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  734. border-radius: 38px;
  735. font-size: 32rpx;
  736. color: #605128;
  737. }
  738. }
  739. }
  740. }
  741. .top-bg {
  742. height: 450rpx;
  743. //#f53934
  744. background-image: linear-gradient(to bottom, $base-color, #fff);
  745. position: absolute;
  746. top: 0;
  747. width: 100%;
  748. }
  749. .gsjs {
  750. width: 100%;
  751. }
  752. .status_bar {
  753. height: var(--status-bar-height);
  754. width: 100%;
  755. }
  756. .gzh {
  757. width: 522rpx;
  758. background-color: #fff;
  759. border-radius: 20rpx;
  760. padding:35rpx 20rpx;
  761. image {
  762. display: block;
  763. margin: auto;
  764. width: 400rpx;
  765. height: 400rpx;
  766. }
  767. text-align: center;
  768. font-size: 32rpx;
  769. }
  770. .pb-bg {
  771. display: block;
  772. margin: 0 auto 20rpx;
  773. width: 380rpx;
  774. }
  775. </style>