index.vue 18 KB

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