index.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537
  1. <template>
  2. <view class="container">
  3. <!-- 小程序头部兼容 -->
  4. <view class="input-box flex" @click="clickSearch">
  5. <view class=" input-content flex">
  6. <view class="iconfont iconsearch"></view>
  7. <view class="input"><input type="text" disabled placeholder="请输入搜索内容" /></view>
  8. </view>
  9. </view>
  10. <view class="mp-height"></view>
  11. <!-- 头部轮播 -->
  12. <view class="carousel-section">
  13. <!-- 标题栏和状态栏占位符 -->
  14. <view class="titleNview-placing"></view>
  15. <!-- 背景色区域 -->
  16. <view class="titleNview-background" :style="{ backgroundColor: '#fff' }"></view>
  17. <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  18. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
  19. @click="bannerNavToUrl(item)">
  20. <image :src="item.pic" />
  21. </swiper-item>
  22. </swiper>
  23. <!-- 自定义swiper指示器 -->
  24. <!-- <view class="swiper-dots">
  25. <text class="num">{{ swiperCurrent + 1 }}</text>
  26. <text class="sign">/</text>
  27. <text class="num">{{ swiperLength }}</text>
  28. </view> -->
  29. </view>
  30. <!-- 分类 -->
  31. <view class="cate-section">
  32. <view class="cate-item" @click="navToTab('/pages/category/category')">
  33. <image src="/static/icon/c3.png"></image>
  34. <text>全部分类</text>
  35. </view>
  36. <navigator url="/pages/store/storeList">
  37. <view class="cate-item">
  38. <image src="/static/icon/c5.png"></image>
  39. <text>线下门店</text>
  40. </view>
  41. </navigator>
  42. <navigator url="/pages/product/construction">
  43. <view class="cate-item">
  44. <image src="/static/icon/c7.png"></image>
  45. <text>施工产品</text>
  46. </view>
  47. </navigator>
  48. <navigator url="/pages/user/shareQrCode">
  49. <view class="cate-item">
  50. <image src="/static/icon/c8.png"></image>
  51. <text>分享有礼</text>
  52. </view>
  53. </navigator>
  54. <view class="ewm" @click="openewm()" v-if="wechat_qrcode">
  55. <image :src="wechat_qrcode" mode=""></image>
  56. </view>
  57. </view>
  58. <!-- 秒杀楼层 -->
  59. <!-- <seckill></seckill> -->
  60. <!-- 附近门店 -->
  61. <view class="store-wrapper" v-if="storeList.length != 0">
  62. <view class="title-wrapper flex">
  63. <image src="/static/icon/t2.png" mode=""></image>
  64. <view class="">附近门店</view>
  65. <view class="title-b">门店好物随心购</view>
  66. </view>
  67. <view class="store flex" v-for="item in storeList" @click="navTo('/pages/store/storeDetail?id=' + item.id)"
  68. :key="item.id">
  69. <image :src="item.image" mode="" class="store-img"></image>
  70. <view class="store-info">
  71. <view class="store-name">{{ item.name }}</view>
  72. <view class="store-detail">{{ item.detailed_address }}</view>
  73. <view class="store-tip">门店</view>
  74. <view class="store-des">
  75. <image src="../../static/icon/dingwei.png" mode=""></image>
  76. 距离 {{ item.space }}
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 好货推荐 -->
  82. <view class="store-wrapper">
  83. <view class="title-wrapper flex">
  84. <image src="/static/icon/t3.png" mode=""></image>
  85. <view class="">好货推荐</view>
  86. <view class="title-b">优选商品低价入手</view>
  87. </view>
  88. <view class="goods-wrapper flex">
  89. <view class="good" v-for="item in bastList"
  90. @click="navTo('/pages/product/product?id='+ item.id + '&spread=' + userInfo.uid )" :key="item.id">
  91. <image :src="item.image" mode="" class="good-img"></image>
  92. <view class="good-name clamp">{{ item.store_name }}</view>
  93. <!-- <view class="good-info clamp">纯植物无香精</view> -->
  94. <view class="good-price">
  95. <text class="new-price">{{ item.price }}</text>
  96. <text class="old-price">{{ item.ot_price }}</text>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="Mask" v-show="shareShow">
  102. <image @click="share" src="http://shicai.liuniu946.com/static/img/shareimg4.png"></image>
  103. <view class="Toshare" @click="Toshare"></view>
  104. <view class="Tocancel" @click="Tocancel"></view>
  105. </view>
  106. <uni-popup ref="popup" type="center">
  107. <view class="popup-box">
  108. <image :src="wechat_qrcode" mode="" class="gzhqr"></image>
  109. <view>长按关注公众号</view>
  110. </view>
  111. </uni-popup>
  112. </view>
  113. </template>
  114. <script>
  115. // import weixinObj from "@/plugin/jweixin-module/index.js";
  116. import {
  117. timeComputed,
  118. space,
  119. openMap
  120. } from '@/utils/rocessor.js';
  121. import {
  122. loadIndexs,
  123. getStoreList
  124. } from '@/api/index.js';
  125. import {
  126. getUserInfo
  127. } from '@/api/user.js';
  128. import {
  129. setCoupons
  130. } from '@/api/functionalUnit.js';
  131. import {
  132. getBargainList,
  133. getProducts
  134. } from '@/api/product.js';
  135. import {
  136. saveUrl,
  137. interceptor
  138. } from '@/utils/loginUtils';
  139. import {
  140. mapState,
  141. mapMutations
  142. } from 'vuex';
  143. // #ifdef H5
  144. import {
  145. weixindata,
  146. weixinlocation,
  147. shareLoad
  148. } from '@/utils/wxAuthorized';
  149. // #endif
  150. export default {
  151. components: {
  152. // seckill
  153. },
  154. watch: {
  155. //自适应swiper高度
  156. checkid(newValue, oldValue) {
  157. let obj = this;
  158. if (newValue == 0) {
  159. let bHeight = Math.ceil(obj.bastList.length / 2);
  160. obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
  161. }
  162. if (newValue == 1) {
  163. let bHeight = Math.ceil(obj.goodsList.length / 2);
  164. obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
  165. }
  166. if (newValue == 2) {
  167. let bHeight = Math.ceil(obj.bastBanner.length / 2);
  168. obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
  169. }
  170. }
  171. },
  172. data() {
  173. return {
  174. wechat_qrcode: '', //公众号二维码
  175. storeList: [], //门店列表
  176. shareShow: false, //分享海报
  177. pageProportion: 0, //保存页面基于750宽度的比例
  178. swiperHeight: 0,
  179. checkid: 0,
  180. titleNViewBackground: '',
  181. swiperCurrent: 0,
  182. swiperLength: 0,
  183. bargainlist: [], //砍价商品
  184. carouselList: [], //轮播列表
  185. goodsList: [], //最新商品列表
  186. bastList: [], //精品推荐列表
  187. bastBanner: [], //促销商品列表
  188. menusList: [], //头部菜单
  189. page: 1,
  190. limit: 5,
  191. userServant: [{
  192. image: ''
  193. }], //用户推广服务
  194. couponArray: [], //可领取优惠券
  195. recommend: [{
  196. id: 0,
  197. re_title: '精选',
  198. re_name: '为你推荐'
  199. },
  200. {
  201. id: 1,
  202. re_title: '最新',
  203. re_name: '最新好货优选'
  204. },
  205. {
  206. id: 2,
  207. re_title: '便宜好货',
  208. re_name: '90天便宜好货'
  209. }
  210. ],
  211. actTime: new Date()
  212. };
  213. },
  214. computed: {
  215. ...mapState(['loginInterceptor', 'weichatObj', 'baseURL', 'urlFile']),
  216. ...mapState('user', ['hasLogin', 'userInfo']),
  217. ...mapState('latlon', ['lat', 'lon'])
  218. },
  219. onLoad: function(option) {
  220. // #ifndef MP
  221. if (option.spread) {
  222. // 存储其他邀请人
  223. uni.setStorageSync('spread', option.spread);
  224. }
  225. if (!this.hasLogin) {
  226. // 保存地址
  227. saveUrl();
  228. // 登录拦截
  229. interceptor();
  230. }
  231. // #endif
  232. // #ifdef MP
  233. if (option.scene) {
  234. // 存储小程序邀请人
  235. uni.setStorage({
  236. key: 'spread_code',
  237. data: option.scene
  238. });
  239. }
  240. // #endif
  241. // weixinObj.showAllNonBaseMenuItem();
  242. this.getaddress();
  243. },
  244. onShow: function() {
  245. // 判断是否强制登录
  246. this.loadData();
  247. this.getBargainList();
  248. this.IndexShare()
  249. // this.getProducts()
  250. },
  251. //下拉刷新
  252. onPullDownRefresh() {
  253. this.loadData();
  254. },
  255. // #ifndef MP
  256. // 监听导航栏输入框点击事件
  257. onNavigationBarSearchInputClicked(e) {
  258. //跳转到搜索页面
  259. this.clickSearch();
  260. },
  261. //点击导航栏 buttons 时触发
  262. onNavigationBarButtonTap(e) {
  263. const index = e.index;
  264. if (index === 0) {
  265. this.$api.msg('点击了扫描');
  266. } else if (index === 1) {
  267. // #ifdef APP-PLUS
  268. const pages = getCurrentPages();
  269. const page = pages[pages.length - 1];
  270. const currentWebview = page.$getAppWebview();
  271. currentWebview.hideTitleNViewButtonRedDot({
  272. index
  273. });
  274. // #endif
  275. uni.navigateTo({
  276. url: '/pages/user/notice'
  277. });
  278. }
  279. },
  280. // #endif
  281. methods: {
  282. // #ifdef H5
  283. IndexShare() {
  284. let obj = this;
  285. let pages = getCurrentPages();
  286. // 获取当前页面
  287. let page = pages[pages.length - 1];
  288. let path = '/#/pages/index/index' + '?';
  289. // 保存传值
  290. for (let i in page.options) {
  291. path += i + '=' + page.options[i] + '&';
  292. }
  293. console.log(obj.Path)
  294. // 保存邀请人
  295. path += 'spread=' + this.userInfo.uid;
  296. let data = {
  297. link: this.baseURL + path,
  298. title: this.userInfo.nickname + '邀请您进入Xingwang鑫旺',
  299. desc: '欢迎加入Xingwang鑫旺',
  300. imgUrl: 'http://xw.liuniu946.com/static/img/logo.png'
  301. };
  302. console.log(data, '分享数据');
  303. shareLoad(data);
  304. },
  305. // #endif
  306. openewm() {
  307. this.$refs.popup.open()
  308. },
  309. navTo(url) {
  310. uni.navigateTo({
  311. url: url
  312. })
  313. },
  314. ...mapMutations('latlon', ['setLat', 'setLon']),
  315. ...mapMutations('user', ['setSpread']),
  316. navToTab(url) {
  317. uni.switchTab({
  318. url: url
  319. });
  320. },
  321. //砍价商品推荐详情页
  322. navToDetailPages(item) {
  323. let id = item.product_id;
  324. //let type = 2;
  325. uni.navigateTo({
  326. url: '/pages/product/product?id=' + id
  327. });
  328. },
  329. openSubscribe: function(e) {
  330. let page = e;
  331. // #ifndef MP
  332. uni.navigateTo({
  333. url: page
  334. });
  335. // #endif
  336. // #ifdef MP
  337. uni.showLoading({
  338. title: '正在加载'
  339. });
  340. openBargainSubscribe()
  341. .then(res => {
  342. uni.hideLoading();
  343. uni.navigateTo({
  344. url: page
  345. });
  346. })
  347. .catch(err => {
  348. uni.hideLoading();
  349. });
  350. // #endif
  351. },
  352. getBargainList() {
  353. let that = this;
  354. getBargainList({
  355. page: that.page,
  356. limit: that.limit
  357. })
  358. .then(function(res) {
  359. that.$set(that, 'bargainlist', res.data.slice(0, 2));
  360. })
  361. .catch(res => {
  362. console.log(res, 'getBargainList');
  363. });
  364. },
  365. Mask() {
  366. this.MaskShow = false;
  367. this.shareShow = true;
  368. uni.setStorage({
  369. key: 'FirstEntry',
  370. data: true,
  371. success: function() {
  372. console.log(uni.getStorageSync('FirstEntry'), 'Mask');
  373. }
  374. });
  375. },
  376. Toshare() {
  377. if (this.userInfo == '') {
  378. getUserInfo({})
  379. .then(({
  380. data
  381. }) => {
  382. this.setUserInfo(data);
  383. this.userInfo = data;
  384. })
  385. .catch(e => {});
  386. } else {
  387. this.shareShow = false;
  388. uni.navigateTo({
  389. url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
  390. });
  391. }
  392. },
  393. Tocancel() {
  394. this.shareShow = false;
  395. },
  396. // 监听切换事件
  397. listChange(e) {
  398. this.checkid = e.detail.current;
  399. },
  400. // 點擊搜索框
  401. clickSearch() {
  402. uni.navigateTo({
  403. url: '/pages/product/search'
  404. });
  405. },
  406. // 点击触发领取优惠券
  407. setCoupons(item) {
  408. // 判断是否已经领取了优惠券
  409. let obj = this;
  410. uni.showModal({
  411. title: '领取提示',
  412. content: '是否领取优惠券',
  413. success(e) {
  414. if (e.confirm) {
  415. setCoupons({
  416. couponId: item.id
  417. }).then(e => {
  418. item.is_use = true;
  419. uni.showToast({
  420. title: '领取成功',
  421. type: 'top',
  422. duration: 2000
  423. });
  424. });
  425. }
  426. }
  427. });
  428. },
  429. //商品种类切换
  430. change(item) {
  431. let id = item;
  432. this.checkid = id;
  433. if (this.checkid == 1) {
  434. // console.log(1);
  435. this.detail = this.selected_detail;
  436. } else if (this.checkid == 2) {
  437. // console.log(2);
  438. this.detail = this.new_product;
  439. } else {
  440. this.detail = this.cheap_good;
  441. }
  442. },
  443. // 监听图片加载完成
  444. onImageError(key, index) {
  445. this[key][index].image = '/static/error/errorImage.jpg';
  446. },
  447. // 请求载入数据
  448. async loadData() {
  449. loadIndexs({})
  450. .then(({
  451. data
  452. }) => {
  453. let goods = data.info;
  454. this.carouselList = data.banner;
  455. this.swiperLength = this.carouselList.length;
  456. this.menusList = data.menus;
  457. this.goodsList = goods.firstList; //最新商品
  458. this.bastList = goods.bastList; //精品推荐
  459. console.log(this.bastList, 'this.bastList6666666666666666666666');
  460. this.wechat_qrcode = data.wechat_qrcode
  461. console.log(data.wechat_qrcode)
  462. this.bastBanner = data.benefit; //促销单品
  463. this.$set(this, 'couponArray', data.couponList); //保存卡包券
  464. uni.stopPullDownRefresh();
  465. })
  466. .catch(e => {
  467. uni.stopPullDownRefresh();
  468. });
  469. },
  470. //轮播图切换修改背景色
  471. swiperChange(e) {
  472. const index = e.detail.current;
  473. this.swiperCurrent = index;
  474. this.titleNViewBackground = this.carouselList[index].background;
  475. },
  476. //详情页
  477. navToDetailPage(item) {
  478. let id = item.id;
  479. uni.navigateTo({
  480. url: '/pages/product/product?id=' + id
  481. });
  482. },
  483. // 轮播图跳转
  484. bannerNavToUrl(item) {
  485. console.log(item)
  486. // #ifdef H5
  487. console.log(item.wap_url.indexOf('http'), '66666666666')
  488. if (item.wap_url.indexOf('http') > -1) {
  489. console.log('hello word')
  490. window.location.href = item.wap_url;
  491. }
  492. // #endif
  493. //测试数据没有写id,用title代替
  494. uni.navigateTo({
  495. url: item.wap_url
  496. });
  497. },
  498. //获取定位信息
  499. getaddress() {
  500. console.log('dizhi+++++++++++')
  501. let obj = this;
  502. uni.getLocation({
  503. type: 'gcj02',
  504. success: res => {
  505. console.log('66666666666666666666')
  506. let latitude = Math.abs(+res.latitude);
  507. let longitude = Math.abs(+res.longitude);
  508. obj.setLat(latitude);
  509. obj.setLon(longitude);
  510. console.log(obj.lat, obj.lon, '经纬度数据');
  511. obj.getStoreList(latitude, longitude);
  512. },
  513. fail: err => {
  514. console.log(err, 'shi+++++++++++++++')
  515. openMap().then(e => {
  516. this.getaddress();
  517. });
  518. }
  519. });
  520. },
  521. //获取门店列表
  522. getStoreList(latitude, longitude) {
  523. let obj = this;
  524. getStoreList({
  525. page: 1,
  526. limit: 3,
  527. latitude: latitude,
  528. longitude: longitude
  529. }).then(({
  530. data
  531. }) => {
  532. data.list = data.list.map(item => {
  533. item.space = obj.space(obj.lat, obj.lon, item.latitude * 1, item.longitude * 1);
  534. console.log(item.space, 'item.space++++++++++');
  535. return item;
  536. });
  537. obj.storeList = data.list;
  538. });
  539. },
  540. space(lat1, lng1, lat2, lng2) {
  541. console.log(lat1, lng1, lat2, lng2, '位置信息');
  542. var radLat1 = (lat1 * Math.PI) / 180.0;
  543. var radLat2 = (lat2 * Math.PI) / 180.0;
  544. var a = radLat1 - radLat2;
  545. var b = (lng1 * Math.PI) / 180.0 - (lng2 * Math.PI) / 180.0;
  546. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLat1) * Math.cos(radLat2) * Math
  547. .pow(Math.sin(b / 2), 2)));
  548. s = s * 6378.137;
  549. s = Math.round(s * 10000) / 10000;
  550. // return s * 1000;
  551. if (s > 1) {
  552. return s.toFixed(2) + 'km';
  553. } else {
  554. return (s * 1000).toFixed(2) + 'm'; // 单位米
  555. }
  556. }
  557. }
  558. };
  559. </script>
  560. <style lang="scss">
  561. .Mask {
  562. width: 100%;
  563. height: 100vh;
  564. position: fixed;
  565. z-index: 99999;
  566. background-color: rgba(0, 0, 0, 0.7);
  567. top: 0;
  568. image {
  569. width: 100%;
  570. height: 100vh;
  571. }
  572. }
  573. // 热销商品
  574. .hot-goods {
  575. margin: 0 25rpx;
  576. padding: 5rpx 25rpx 30rpx 25rpx;
  577. background-color: #fff;
  578. border-radius: 10rpx;
  579. .hot-headers {
  580. margin: 25rpx 0;
  581. width: 100%;
  582. display: flex;
  583. .img {
  584. width: 32rpx;
  585. height: 32rpx;
  586. margin-right: 10rpx;
  587. }
  588. .hot-title {
  589. font-size: 30rpx;
  590. margin-right: 15rpx;
  591. }
  592. .more {
  593. line-height: 1;
  594. padding: 5rpx 10rpx 5rpx 15rpx;
  595. text-align: center;
  596. font-size: 20rpx;
  597. border-radius: 15rpx;
  598. color: #ffffff;
  599. background: linear-gradient(90deg, rgba(250, 52, 38, 1) 0%, rgba(249, 30, 83, 1) 100%);
  600. image {
  601. width: 20rpx;
  602. height: 20rpx;
  603. }
  604. }
  605. }
  606. .hot-lists {
  607. line-height: 1;
  608. display: flex;
  609. .hot-produce {
  610. width: 100%;
  611. height: 260rpx;
  612. border-top: 1px solid #f0f0f0;
  613. display: flex;
  614. padding-top: 28rpx;
  615. .produce-image {
  616. width: 200rpx;
  617. height: 200rpx;
  618. image {
  619. width: 200rpx;
  620. height: 200rpx;
  621. border: 1px solid #f0f0f0;
  622. }
  623. }
  624. .produce-content {
  625. // flex-direction: column;
  626. margin-left: 30rpx;
  627. height: 200rpx;
  628. position: relative;
  629. width: calc(100% - 200rpx - 30rpx);
  630. .produce-name {
  631. font-size: 28rpx;
  632. font-weight: bold;
  633. line-height: 35rpx;
  634. color: #343434;
  635. }
  636. .produce-info {
  637. font-size: 20rpx;
  638. margin-top: 25rpx;
  639. }
  640. .produce-price {
  641. display: flex;
  642. align-items: flex-end;
  643. color: #ff383e;
  644. font-size: 24rpx;
  645. margin-top: 70rpx;
  646. font-weight: bold;
  647. text {
  648. font-size: 36rpx;
  649. }
  650. .produce-price-1 {
  651. font-size: 22rpx;
  652. font-weight: 500;
  653. text-decoration: line-through;
  654. color: rgba(170, 170, 170, 1);
  655. margin-left: 20rpx;
  656. }
  657. }
  658. .produce-price1 {
  659. height: 100%;
  660. letter-spacing: 3rpx;
  661. color: #ff383e;
  662. font-size: 24rpx;
  663. font-weight: bold;
  664. .produce-center {
  665. width: 100%;
  666. position: absolute;
  667. bottom: 0;
  668. display: flex;
  669. justify-content: space-between;
  670. align-items: center;
  671. .kanjia_word {
  672. .word-1 {
  673. font-size: 22rpx;
  674. color: #666666;
  675. }
  676. .word-2 {
  677. font-size: 28rpx;
  678. color: #ff383e;
  679. margin-top: 10rpx;
  680. }
  681. }
  682. .kanjia_button {
  683. height: 50rpx;
  684. width: 150rpx;
  685. border-radius: 25rpx;
  686. font-size: 26rpx;
  687. font-weight: 500;
  688. color: #ff383e;
  689. border: 1px solid rgba(255, 56, 62, 1);
  690. }
  691. }
  692. }
  693. }
  694. }
  695. }
  696. }
  697. .input-box {
  698. position: absolute;
  699. width: 100%;
  700. padding: 25rpx;
  701. background-color: rgba(0, 0, 0, 0);
  702. z-index: 999;
  703. height: 44px;
  704. .iconsearch {
  705. font-size: 50rpx;
  706. }
  707. .input-content {
  708. border-radius: 99rpx;
  709. flex-grow: 1;
  710. padding: 10rpx 200rpx;
  711. background-color: #fff;
  712. // justify-content: center;
  713. .input {
  714. flex-grow: 1;
  715. input {
  716. font-size: $font-lg;
  717. }
  718. }
  719. }
  720. .input-button {
  721. padding-left: 20rpx;
  722. font-size: $font-lg;
  723. height: 100%;
  724. }
  725. }
  726. /* #ifdef MP */
  727. .mp-height {
  728. height: 44px;
  729. }
  730. .input-box {
  731. position: fixed;
  732. top: 0;
  733. left: 0;
  734. width: 100%;
  735. padding: 25rpx;
  736. background-color: #ffffff;
  737. z-index: 999;
  738. height: 44px;
  739. .iconsearch {
  740. font-size: 50rpx;
  741. }
  742. .input-content {
  743. border-radius: 99rpx;
  744. flex-grow: 1;
  745. padding: 10rpx 30rpx;
  746. background-color: rgba(231, 231, 231, 0.7);
  747. .input {
  748. flex-grow: 1;
  749. input {
  750. font-size: $font-lg;
  751. }
  752. }
  753. }
  754. .input-button {
  755. padding-left: 20rpx;
  756. font-size: $font-lg;
  757. height: 100%;
  758. }
  759. }
  760. page {
  761. .cate-section {
  762. position: relative;
  763. z-index: 5;
  764. border-radius: 16rpx 16rpx 0 0;
  765. margin-top: -20rpx;
  766. }
  767. .carousel-section {
  768. padding: 0;
  769. .titleNview-placing {
  770. padding-top: 0;
  771. height: 0;
  772. }
  773. .carousel {
  774. .carousel-item {
  775. padding: 0;
  776. }
  777. }
  778. .swiper-dots {
  779. left: 45rpx;
  780. bottom: 40rpx;
  781. }
  782. }
  783. }
  784. /* #endif */
  785. page {
  786. background: #f7f8f7;
  787. }
  788. .m-t {
  789. margin-top: 16rpx;
  790. }
  791. /* 头部 轮播图 */
  792. .carousel-section {
  793. position: relative;
  794. // padding-top: 10px;
  795. overflow: hidden;
  796. .titleNview-placing {
  797. height: var(--status-bar-height);
  798. // padding-top: 44px;
  799. box-sizing: content-box;
  800. }
  801. .titleNview-background {
  802. position: absolute;
  803. top: 0;
  804. left: 0;
  805. width: 100%;
  806. height: 426rpx;
  807. transition: 0.4s;
  808. }
  809. .carousel {
  810. width: 100%;
  811. height: 426rpx;
  812. .carousel-item {
  813. width: 100%;
  814. height: 100%;
  815. // padding: 0 28rpx;
  816. overflow: hidden;
  817. }
  818. image {
  819. width: 100%;
  820. height: 100%;
  821. // border-radius: $border-radius-sm;
  822. }
  823. }
  824. }
  825. .swiper-dots {
  826. display: flex;
  827. position: absolute;
  828. left: 60rpx;
  829. bottom: 15rpx;
  830. width: 72rpx;
  831. height: 36rpx;
  832. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);
  833. background-size: 100% 100%;
  834. .num {
  835. width: 36rpx;
  836. height: 36rpx;
  837. border-radius: 50px;
  838. font-size: 24rpx;
  839. color: #fff;
  840. text-align: center;
  841. line-height: 36rpx;
  842. }
  843. .sign {
  844. position: absolute;
  845. top: 0;
  846. left: 50%;
  847. line-height: 36rpx;
  848. font-size: 12rpx;
  849. color: #fff;
  850. transform: translateX(-50%);
  851. }
  852. }
  853. /* 分类 */
  854. .cate-section {
  855. display: flex;
  856. justify-content: space-around;
  857. align-items: center;
  858. flex-wrap: wrap;
  859. padding: 30rpx 22rpx;
  860. background-color: #fff;
  861. margin-bottom: 20rpx;
  862. position: relative;
  863. .cate-item {
  864. display: flex;
  865. flex-direction: column;
  866. align-items: center;
  867. font-size: $font-sm + 2rpx;
  868. color: $font-color-dark;
  869. }
  870. /* 原图标颜色太深,不想改图了,所以加了透明度 */
  871. image {
  872. width: 88rpx;
  873. height: 88rpx;
  874. margin-bottom: 14rpx;
  875. border-radius: 50%;
  876. opacity: 0.7;
  877. }
  878. }
  879. // 中间广告图片
  880. .ad-1 {
  881. width: 100%;
  882. height: 210rpx;
  883. padding: 10rpx 0;
  884. background: #fff;
  885. image {
  886. width: 100%;
  887. height: 100%;
  888. }
  889. }
  890. /*公用边框样式*/
  891. %icon {
  892. margin-right: 10rpx;
  893. display: inline-block;
  894. padding: 2rpx 10rpx;
  895. border: 1rpx solid $color-yellow;
  896. color: $color-yellow;
  897. line-height: 1;
  898. font-size: $font-base;
  899. border-radius: 10rpx;
  900. }
  901. .f-header {
  902. display: flex;
  903. align-items: center;
  904. height: 92rpx;
  905. padding: 6rpx 30rpx 8rpx;
  906. image {
  907. flex-shrink: 0;
  908. width: 80rpx;
  909. height: 80rpx;
  910. margin-right: 20rpx;
  911. }
  912. .tit-box {
  913. @extend %font-title-box;
  914. }
  915. .tit {
  916. @extend %font-title;
  917. }
  918. .iconenter {
  919. font-size: $font-lg + 2rpx;
  920. color: $font-color-light;
  921. }
  922. .f-left-icon {
  923. @extend %f-left-icon;
  924. }
  925. .iconfont {
  926. font-size: $font-sm - 2rpx;
  927. }
  928. }
  929. // 会员升级礼包
  930. .uservip {
  931. border-radius: $border-radius-sm;
  932. background-color: white;
  933. box-shadow: $box-shadow;
  934. height: 300rpx;
  935. margin: 0 30rpx;
  936. image {
  937. height: 100%;
  938. width: 300rpx;
  939. }
  940. .detail {
  941. position: relative;
  942. padding: 20rpx;
  943. height: 100%;
  944. .icon {
  945. @extend %icon;
  946. }
  947. .price-box {
  948. position: absolute;
  949. bottom: 20rpx;
  950. width: calc(100% - 40rpx);
  951. .price {
  952. font-size: $font-lg + 2rpx;
  953. font-weight: bold;
  954. color: $font-color-base;
  955. }
  956. .text {
  957. color: $color-gray;
  958. font-size: $font-sm;
  959. }
  960. }
  961. .title {
  962. font-size: $font-lg;
  963. font-weight: bold;
  964. }
  965. }
  966. }
  967. /* 猜你喜欢 */
  968. .guess-section {
  969. display: flex;
  970. flex-wrap: wrap;
  971. padding: 0 30rpx;
  972. .guess-item {
  973. overflow: hidden;
  974. display: flex;
  975. flex-direction: column;
  976. width: 48%;
  977. margin-bottom: 4%;
  978. border-radius: $border-radius-sm;
  979. background-color: white;
  980. box-shadow: $box-shadow;
  981. &:nth-child(2n + 1) {
  982. margin-right: 4%;
  983. }
  984. }
  985. .image-wrapper {
  986. width: 100%;
  987. height: 330rpx;
  988. border-radius: 3px;
  989. overflow: hidden;
  990. image {
  991. width: 100%;
  992. height: 100%;
  993. opacity: 1;
  994. }
  995. }
  996. .title {
  997. font-size: $font-base;
  998. color: $font-color-dark;
  999. font-weight: bold;
  1000. line-height: 80rpx;
  1001. }
  1002. .price {
  1003. font-size: $font-lg;
  1004. color: $font-color-base;
  1005. font-weight: bold;
  1006. line-height: 1;
  1007. line-height: 80rpx;
  1008. }
  1009. .icon {
  1010. @extend %icon;
  1011. }
  1012. .detail {
  1013. line-height: 1;
  1014. }
  1015. .tip {
  1016. color: white;
  1017. background-color: $color-yellow;
  1018. line-height: 1.5;
  1019. font-size: $font-sm;
  1020. padding-left: 20rpx;
  1021. }
  1022. }
  1023. // 推荐
  1024. .recommend {
  1025. width: 95%;
  1026. height: 155rpx;
  1027. margin: 0rpx auto;
  1028. padding-top: 30rpx;
  1029. font-size: 26rpx;
  1030. text-align: center;
  1031. color: #333333;
  1032. align-items: flex-start;
  1033. .recommend_list {
  1034. width: 33%;
  1035. }
  1036. .re_title {
  1037. font-size: 32rpx;
  1038. font-weight: bold;
  1039. }
  1040. .re_name {
  1041. color: #999999;
  1042. padding-top: 10rpx;
  1043. }
  1044. .selected_icon {
  1045. width: 25rpx;
  1046. height: 10rpx;
  1047. margin: 0px auto;
  1048. display: none;
  1049. image {
  1050. width: 100%;
  1051. height: 100%;
  1052. }
  1053. }
  1054. .active {
  1055. display: block;
  1056. }
  1057. .active_color {
  1058. color: #dc4d46 !important;
  1059. }
  1060. }
  1061. // 列表
  1062. .list-box-h {
  1063. height: 1550rpx;
  1064. }
  1065. // 优惠券
  1066. .coupon-list {
  1067. display: inline-block;
  1068. }
  1069. .row {
  1070. border-radius: 15rpx;
  1071. margin: 25rpx;
  1072. height: 155rpx;
  1073. // width: 552rpx;
  1074. overflow: hidden;
  1075. background-color: #ffffff;
  1076. padding-right: 25rpx;
  1077. .list-interval {
  1078. border: 1px dashed $border-color-light;
  1079. height: 100%;
  1080. .top,
  1081. .bottom {
  1082. border-radius: 100rpx;
  1083. width: 30rpx;
  1084. height: 30rpx;
  1085. position: absolute;
  1086. background-color: $page-color-base;
  1087. right: -15rpx;
  1088. }
  1089. .top {
  1090. top: -18rpx;
  1091. }
  1092. .bottom {
  1093. bottom: -18rpx;
  1094. }
  1095. }
  1096. .list-money {
  1097. height: 100%;
  1098. min-width: 155rpx;
  1099. text-align: center;
  1100. image {
  1101. height: 100%;
  1102. width: 20rpx;
  1103. }
  1104. .list-money-text {
  1105. flex-grow: 1;
  1106. padding: 0 25rpx;
  1107. .tit {
  1108. text-align: center;
  1109. padding: 15rpx 0rpx;
  1110. font-size: 55rpx;
  1111. color: $color-red;
  1112. font-weight: bold;
  1113. &.noAction {
  1114. color: $font-color-light;
  1115. }
  1116. }
  1117. .price {
  1118. padding-bottom: 25rpx;
  1119. color: $font-color-light;
  1120. }
  1121. }
  1122. }
  1123. .row_list_right {
  1124. // flex-grow: 1;
  1125. min-width: 200rpx;
  1126. padding-left: 25rpx;
  1127. line-height: 1;
  1128. .right_time {
  1129. padding: 10rpx 0rpx;
  1130. color: $font-color-light;
  1131. font-size: $font-sm;
  1132. }
  1133. .right_top {
  1134. margin: 15rpx 0;
  1135. .right_name {
  1136. font-size: $font-base;
  1137. color: #bc253a;
  1138. font-weight: bold;
  1139. }
  1140. .right_title {
  1141. font-size: $font-base;
  1142. color: $font-base;
  1143. font-weight: bold;
  1144. &.noAction {
  1145. color: $font-color-light;
  1146. }
  1147. }
  1148. }
  1149. }
  1150. .right_use {
  1151. margin: 15rpx 0;
  1152. padding: 10rpx;
  1153. width: 160rpx;
  1154. text-align: center;
  1155. color: #fff;
  1156. background-color: #bc253a;
  1157. border-radius: 50rpx;
  1158. font-size: $font-sm;
  1159. &.noAction {
  1160. background-color: $font-color-light;
  1161. }
  1162. }
  1163. .iconlocation {
  1164. font-size: 36rpx;
  1165. color: $font-color-light;
  1166. }
  1167. }
  1168. .store-wrapper {
  1169. margin: 20rpx 0;
  1170. background-color: #fff;
  1171. padding: 0 0rpx 25rpx;
  1172. .title-wrapper {
  1173. padding-left: 20rpx;
  1174. justify-content: flex-start;
  1175. align-items: center;
  1176. height: 86rpx;
  1177. line-height: 86rpx;
  1178. image {
  1179. width: 36rpx;
  1180. height: 36rpx;
  1181. background: linear-gradient(43deg, #ffc063, #ffa163);
  1182. border-radius: 50%;
  1183. }
  1184. view {
  1185. padding-left: 10rpx;
  1186. font-size: 32rpx;
  1187. font-family: PingFang SC;
  1188. font-weight: bold;
  1189. color: #242424;
  1190. }
  1191. .title-b {
  1192. font-size: 24rpx;
  1193. font-family: PingFang SC;
  1194. font-weight: 500;
  1195. color: #8b8b8b;
  1196. }
  1197. }
  1198. .goods-wrapper {
  1199. padding: 0 20rpx;
  1200. justify-content: space-between;
  1201. flex-wrap: wrap;
  1202. .good {
  1203. margin-bottom: 20rpx;
  1204. width: 345rpx;
  1205. height: 480rpx;
  1206. background: #ffffff;
  1207. box-shadow: 0px 0px 10rpx rgba(50, 50, 52, 0.2);
  1208. border-radius: 10rpx;
  1209. .good-img {
  1210. width: 345rpx;
  1211. height: 345rpx;
  1212. border-radius: 10rpx;
  1213. }
  1214. .good-name {
  1215. font-size: 30rpx;
  1216. font-family: PingFang SC;
  1217. font-weight: bold;
  1218. color: #333333;
  1219. line-height: 35rpx;
  1220. padding-left: 21rpx;
  1221. }
  1222. .good-info {
  1223. padding-top: 10rpx;
  1224. padding-left: 21rpx;
  1225. font-size: 26rpx;
  1226. font-family: PingFang SC;
  1227. font-weight: 500;
  1228. color: #666666;
  1229. line-height: 35rpx;
  1230. }
  1231. .good-price {
  1232. padding-left: 21rpx;
  1233. padding-top: 30rpx;
  1234. font-size: 36rpx;
  1235. font-family: PingFang SC;
  1236. font-weight: bold;
  1237. color: #ff4c4c;
  1238. line-height: 35rpx;
  1239. height: 35rpx;
  1240. .old-price {
  1241. display: inline-block;
  1242. padding-left: 8rpx;
  1243. font-size: 26rpx;
  1244. font-family: PingFang SC;
  1245. font-weight: bold;
  1246. text-decoration: line-through;
  1247. color: #999999;
  1248. }
  1249. }
  1250. }
  1251. }
  1252. .store {
  1253. margin: 0 auto 20rpx;
  1254. width: 710rpx;
  1255. height: 210rpx;
  1256. background: #ffffff;
  1257. box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
  1258. border-radius: 10rpx;
  1259. padding: 19rpx 25rpx 11rpx 20rpx;
  1260. justify-content: flex-start;
  1261. .store-img {
  1262. flex-shrink: 0;
  1263. width: 180rpx;
  1264. height: 180rpx;
  1265. border-radius: 10rpx;
  1266. // background-color: red;
  1267. }
  1268. .store-info {
  1269. width: 100%;
  1270. height: 100%;
  1271. padding-left: 19rpx;
  1272. position: relative;
  1273. .store-name {
  1274. font-size: 30rpx;
  1275. font-family: PingFang SC;
  1276. font-weight: bold;
  1277. color: #333333;
  1278. }
  1279. .store-detail {
  1280. padding-top: 10rpx;
  1281. font-size: 22rpx;
  1282. font-family: PingFang SC;
  1283. font-weight: 500;
  1284. color: #666666;
  1285. }
  1286. .store-tip {
  1287. width: 66rpx;
  1288. height: 40rpx;
  1289. background: linear-gradient(120deg, #ffc063, #ffa163);
  1290. border-radius: 8rpx;
  1291. position: absolute;
  1292. right: 0;
  1293. top: 0;
  1294. font-size: 24rpx;
  1295. font-family: PingFang SC;
  1296. font-weight: 500;
  1297. color: #ffffff;
  1298. line-height: 40rpx;
  1299. text-align: center;
  1300. }
  1301. .store-des {
  1302. // width: 400rpx;
  1303. position: absolute;
  1304. bottom: 0;
  1305. font-size: 24rpx;
  1306. font-family: PingFang SC;
  1307. font-weight: 500;
  1308. color: #999999;
  1309. height: 35rpx;
  1310. image {
  1311. margin-right: 8rpx;
  1312. width: 17rpx;
  1313. height: 24rpx;
  1314. }
  1315. }
  1316. }
  1317. }
  1318. }
  1319. .ewm {
  1320. width: 75rpx;
  1321. height: 75rpx;
  1322. position: absolute;
  1323. right: 10rpx;
  1324. bottom: -75rpx;
  1325. background-color: #fff;
  1326. border-radius: 50%;
  1327. box-shadow: 0 0 10rpx rgba($color: #000000, $alpha: 0.6);
  1328. image {
  1329. width: 50rpx;
  1330. height: 50rpx;
  1331. position: absolute;
  1332. top: 0;
  1333. left: 0;
  1334. bottom: 0;
  1335. right: 0;
  1336. margin: auto;
  1337. }
  1338. .ewm-tit {
  1339. position: absolute;
  1340. bottom: 10rpx;
  1341. font-size: 10rpx;
  1342. }
  1343. .closeEwm {
  1344. width: 40rpx;
  1345. height: 40rpx;
  1346. position: absolute;
  1347. top: -40rpx;
  1348. right: -20rpx;
  1349. image {
  1350. width: 100%;
  1351. height: 100%;
  1352. }
  1353. }
  1354. }
  1355. .popup-box {
  1356. width: 400rpx;
  1357. height: 450rpx;
  1358. background-color: #fff;
  1359. border-radius: 20rpx;
  1360. padding-top: 20rpx;
  1361. position: relative;
  1362. .gzhqr {
  1363. display: block;
  1364. width: 360rpx;
  1365. height: 360rpx;
  1366. margin: 0 auto 20rpx;
  1367. }
  1368. view {
  1369. text-align: center;
  1370. }
  1371. .close-img {
  1372. position: absolute;
  1373. width: 50rpx;
  1374. height: 50rpx;
  1375. top: -20rpx;
  1376. right: -20rpx;
  1377. }
  1378. }
  1379. </style>