index.vue 18 KB

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