index.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  1. <template>
  2. <view class="app">
  3. <view class="app-top">
  4. <view class="atop1">
  5. <view class="top2-bg"></view>
  6. </view>
  7. <view class="atop2"></view>
  8. </view>
  9. <view class="top" id="mtop">
  10. <view class="top-body">
  11. <view class="statusBar" :style="'height:' + statusBarHeight + 'px'"></view>
  12. <view class="panel fx-r fx-bc fx-ac">
  13. <image src="/static/img/index-logo.png" mode="aspectFill" class="index-img"></image>
  14. <view class="fx-g1"></view>
  15. <image src="/static/img/ic_information.png" class="information"></image>
  16. </view>
  17. </view>
  18. </view>
  19. <scroll-view scroll-y :style="{height:'calc(100vh - 80rpx - ' + statusBarHeight + 'px - ' + h5Foot + 'px)'}">
  20. <view class="app-body">
  21. <view class="swiper-img">
  22. <u-swiper :list="topData.banner" keyName="img" bgColor="transparent" indicator
  23. indicatorActiveColor="#DB292B" indicatorInactiveColor="#B7B7B7" previousMargin="15"
  24. nextMargin="15" indicatorMode="line"></u-swiper>
  25. </view>
  26. <view class="grid-bg">
  27. <!--九宫格-->
  28. <view class="grid fx-r fx-bc fx-ac" v-if="sysData.is_audit == 0">
  29. <view class="item fx-h fx-bc fx-ac" @tap="tapOpen2" data-url="/pages/user/order/index">
  30. <image class="icon" mode="aspectFill" src="/static/ad/1.png"></image>
  31. <view class="label">提货订单</view>
  32. </view>
  33. <view class="item fx-h fx-bc fx-ac" @tap="$refs.customer.open()">
  34. <image class="icon" mode="aspectFill" src="/static/ad/2.png"></image>
  35. <view class="label">联系客服</view>
  36. </view>
  37. <view class="item fx-h fx-bc fx-ac" @tap="tapOpen" data-url="/pages/merchant/list">
  38. <image class="icon" mode="aspectFill" src="/static/ad/3.png"></image>
  39. <view class="label">附近门店</view>
  40. </view>
  41. <view class="item fx-h fx-bc fx-ac" @tap="tapOpen2" data-url="/pages/guild/order/order">
  42. <image class="icon" mode="aspectFill" src="/static/ad/4.png"></image>
  43. <view class="label">抢购订单</view>
  44. </view>
  45. <view class="item fx-h fx-bc fx-ac" @tap="tapOpen" data-url="/pages/news/about">
  46. <image class="icon" mode="aspectFill" src="/static/ad/5.png"></image>
  47. <view class="label">关于我们</view>
  48. </view>
  49. </view>
  50. <!--消息通知-->
  51. <view class="news-panel fx-r fx-bc">
  52. <image src="/static/img/news-icon.png" class="icon"></image>
  53. <view class="label">消息通知</view>
  54. <view class="fx-g1" style="height: 30px;">
  55. <maoScroll :data="topData.notice" :showNum="1" :lineHeight="60" :animationScroll="800"
  56. :animation="4000">
  57. <template v-slot="{line}">
  58. <view @tap="tapOpen" :data-url="'../news/index?id=' + line.id" class="line">
  59. {{ line.title }}</view>
  60. </template>
  61. </maoScroll>
  62. </view>
  63. <image @tap="tapNews" src="/static/img/news-right.png" class="icon-right"></image>
  64. </view>
  65. </view>
  66. <view v-if="sysData.is_audit == 0">
  67. <!--CBB潮贝抢货通道-->
  68. <view class="team-buy" @tap="tapOpen" data-url="/pages/guild/itemIndex" v-if="guData!= null">
  69. <view class="top fx-r fx-bc">
  70. <view class="label">CBB潮贝抢货通道</view>
  71. <view class="fx-g1"></view>
  72. <!-- <view class="sbtn">更多CBB代理团队 ></view> -->
  73. </view>
  74. <view class="team-show">
  75. <view class="bg">
  76. <image src="../../static/ad/team-bg.png" mode="aspectFill"></image>
  77. <view class="h"></view>
  78. </view>
  79. <view class="body fx-h fx-bc fx-ac">
  80. <view class="top-input">
  81. <image src="/static/img/team-top-title.png" class="tbg"></image>
  82. <view class="inner fx-r fx-bc fx-ac">
  83. <image src="/static/img/team-top-location.png"></image>
  84. <view class="label">{{ guData.name }}</view>
  85. </view>
  86. </view>
  87. <view class="info fx-r fx-g1 fx-bc fx-ac">
  88. <view class="item fx-h fx-bc fx-ac">
  89. <view class="label" v-if="guData.status == 1">开放中</view>
  90. <view class="label" style="color: red;" v-else>闭馆中</view>
  91. <view class="name">状态</view>
  92. </view>
  93. <view class="halving"></view>
  94. <view class="item fx-h fx-bc fx-ac">
  95. <view class="label">{{ guData.nickname }}</view>
  96. <view class="name">部门总监</view>
  97. </view>
  98. <view class="halving"></view>
  99. <view class="item fx-h fx-bc fx-ac">
  100. <view class="people fx-r">
  101. <image
  102. :src="index == 0 ? '/static/img/hong_people.png' : '/static/img/while_people.png'"
  103. v-for="(item,index) in 5"></image>
  104. </view>
  105. <view class="name">流畅</view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <!--文票系统-->
  112. <!-- <view class="tradeweb">
  113. <view class="bg">
  114. <image src="/static/img/wen_bg.png"></image>
  115. </view>
  116. <view class="ibody fx-h fx-bc">
  117. <view class="t1">{{ wenAr.fullname || "" }}</view>
  118. <view class="name">CBB文票系统</view>
  119. <view class="wname">价格(CNY):{{ wenAr.openPrice || "0.00" }}</view>
  120. </view>
  121. <view class="ivpop fx-h fx-bc fx-ac">
  122. <view class="lv">
  123. {{ wenAr.lv || '0' }}%
  124. </view>
  125. <view class="v">近24小时涨跌幅</view>
  126. </view>
  127. </view> -->
  128. </view>
  129. <!--提货好物-->
  130. <view class="goods">
  131. <view class="top fx-r fx-bc fx-ac">
  132. <image class="icon" src="/static/img/goods-icon.png"></image>
  133. <view class="label">货款提货</view>
  134. <view class="fx-g1"></view>
  135. <view class="more fx-r fx-bc fx-ac" @tap="tapOpen" data-url="../goods/list">
  136. <view class="text">更多</view>
  137. <image class="prv" src="/static/img/ic-pev.png"></image>
  138. </view>
  139. </view>
  140. <view class="goods-items fx-r">
  141. <view @tap="tapOpen" :data-url="'../goods/index?id=' + item.id" class="item"
  142. v-for="(item,index) in topData.product">
  143. <image :src="item.img" mode="aspectFill" class="nimg"></image>
  144. <view class="title">
  145. {{ item.title }}
  146. </view>
  147. <view class="iview fx-r">
  148. <view class="score fx-r fx-be">
  149. {{ item.commission }}
  150. <view class="tag" v-if="sysData.is_audit == 0">积分</view>
  151. <view class="tag" v-else>参考价</view>
  152. </view>
  153. <view class="fx-g1"></view>
  154. <view class="btn" v-if="sysData.is_audit == 0">提货</view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. <!--最新门店-->
  160. <view class="shop" v-if="sysData.is_audit == 0">
  161. <view class="top fx-r fx-bc fx-ac">
  162. <image class="icon" src="/static/img/shop-icon.png"></image>
  163. <view class="label">易趣C果园({{merchantCount}}家)</view>
  164. <view class="fx-g1"></view>
  165. <view class="more fx-r fx-bc fx-ac" @tap="tapOpen" data-url="../merchant/list">
  166. <view class="text">更多</view>
  167. <image class="prv" src="/static/img/ic-pev.png"></image>
  168. </view>
  169. </view>
  170. <view class="shop-items">
  171. <view class="item fx-r" @tap="tapOpen" :data-url="'../merchant/index?id=' + item.id"
  172. v-for="item in merchantData">
  173. <image :src="item.logo" class="img" mode="aspectFill"></image>
  174. <view class="info">
  175. <view class="iview-top fx-r">
  176. <view class="title">{{ item.name }}</view>
  177. <view class="fx-g1"></view>
  178. <view class="ii fx-r fx-bc">
  179. <image src="/static/img/shop-small-location.png"></image>
  180. 距离{{ item.dis_km }}
  181. </view>
  182. </view>
  183. <view class="address fx-r fx-bc">
  184. <image src="/static/img/address-shop.png" class="icon"></image>
  185. <view class="value">{{ item.address }}</view>
  186. </view>
  187. <view class="tel fx-r fx-bc">
  188. <image src="/static/img/tel-shop.png" class="icon"></image>
  189. <view class="value">{{ item.tel }}</view>
  190. </view>
  191. <view class="business">
  192. 营业时间: {{ item.business }}
  193. </view>
  194. <view class="wiget fx-r">
  195. <view class="witem fx-h fx-bc fx-ac" @tap.stop="tapTel(item)">
  196. <image src="/static/img/shop-tel.png"></image>
  197. <view class="text">电话</view>
  198. </view>
  199. <view class="wline"></view>
  200. <view class="witem fx-h fx-bc fx-ac" @tap.stop="tapLbs(item)">
  201. <image src="/static/img/shop-location.png"></image>
  202. <view class="text">导航</view>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. </scroll-view>
  211. <customer-wiget ref="customer"></customer-wiget>
  212. <view class="popwin fx-h fx-bc fx-ac" v-if="isGg">
  213. <view class="bg"></view>
  214. <view class="body fx-h fx-bc fx-ac">
  215. <image src="/static/img/index_bg.png" class="bgimg"></image>
  216. <view class="inner-top"></view>
  217. <view class="inner">
  218. <scroll-view scroll-y class="max-he">
  219. <u-parse :content="content" :noData="content" />
  220. </scroll-view>
  221. <view class="fx-r fx-bc fx-ac foot">
  222. <view class="btn" @tap="tapYGdBtn">点击查看></view>
  223. </view>
  224. </view>
  225. <view class="m-close">
  226. <image src="/static/img/btn-close.png" @tap="isGg = false" class="icon"></image>
  227. </view>
  228. </view>
  229. </view>
  230. </view>
  231. </template>
  232. <script>
  233. import uParse from '@/components/gaoyia-parse/parse.vue';
  234. import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
  235. import customerWiget from '@/components/ui-public/customer-wiget.vue';
  236. import {
  237. mapState,
  238. mapMutations
  239. } from 'vuex';
  240. export default {
  241. computed: mapState(['user', 'lbs', 'sysData']),
  242. components: {
  243. uParse,
  244. maoScroll,
  245. customerWiget
  246. },
  247. data() {
  248. return {
  249. statusBarHeight: 20,
  250. h5Foot: 0, //h5端
  251. topData: {
  252. banner: [],
  253. notice: [],
  254. product: []
  255. },
  256. content: "",
  257. isGg: false,
  258. gGid: 0,
  259. merchantData: [],
  260. guData: null,
  261. merchantCount:0,
  262. page: {
  263. page: 1,
  264. isLoad: false,
  265. isFoot: false
  266. },
  267. wenAr: {},
  268. isLoad: false
  269. }
  270. },
  271. onLoad() {
  272. this.initView();
  273. },
  274. onReachBottom() {
  275. if (this.page.isFoot || this.page.isLoad) {
  276. return;
  277. }
  278. this.page.page++;
  279. this.getData();
  280. },
  281. methods: {
  282. ...mapMutations(['setSys', 'getGps']),
  283. initView: function() {
  284. // #ifdef H5
  285. this.h5Foot = 50;
  286. // #endif
  287. uni.getSystemInfo({
  288. success: (res) => {
  289. this.statusBarHeight = res.statusBarHeight;
  290. }
  291. });
  292. this
  293. .request
  294. .post("indexInit")
  295. .then(res => {
  296. uni.hideLoading();
  297. if (res.code == 200) {
  298. this.isLoad = true;
  299. this.topData = res.data;
  300. this.getData(true);
  301. //获取文票系统
  302. this.wenpiao();
  303. if (this.user != null) {
  304. //获取自己场馆
  305. this.getGu();
  306. }
  307. let gongId = uni.getStorageSync('gonggao') || '';
  308. if (this.topData.notice.length > 0 && gongId != this.topData.notice[0].id) {
  309. this.gGid = this.topData.notice[0].id;
  310. this.getNoticPop(this.topData.notice[0].id);
  311. }
  312. }
  313. })
  314. .catch(err => {
  315. this.utils.Tip("加载失败,重新点击尝试!" + JSON.stringify(error));
  316. uni.hideLoading();
  317. });
  318. // #ifdef APP
  319. this.initSys();
  320. // #endif
  321. // #ifndef APP
  322. this.setSys({
  323. is_audit: 0
  324. });
  325. this.getGps({
  326. page: this,
  327. fn: (res) => {
  328. console.log(res);
  329. this.getData(true);
  330. },
  331. err: (err) => {
  332. this.getData(true);
  333. }
  334. });
  335. // #endif
  336. },
  337. /**
  338. * 基本逻辑
  339. */
  340. initSys: function() {
  341. const appType = uni.getSystemInfoSync().platform;
  342. if (plus != null) {
  343. plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
  344. if (appType == "ios") {
  345. uni.setStorageSync("showData", true)
  346. } else {
  347. uni.setStorageSync("showData", false)
  348. }
  349. let versionCode = wgtinfo.versionCode;
  350. this
  351. .request
  352. .post("sysInit", {
  353. code: versionCode
  354. })
  355. .then(res => {
  356. console.log(res, 'res')
  357. if (res.code == 200) {
  358. this.setSys(res.data);
  359. if (wgtinfo.versionCode < res.data.app_code) {
  360. uni.setStorageSync("showData", true)
  361. const upDater = uni.requireNativePlugin("CL-UpDater");
  362. let options = {
  363. title: "升级",
  364. con: res.data.app_update,
  365. downUrl: this.$device.platform == 'ios' ? encodeURI(res
  366. .data.ios_url) : encodeURI(res.data.android_url), //必填
  367. hidCancelbtn: true, //是否隐藏取消按钮;
  368. btnBgColor: "#ff3300", //设置按钮背景色颜色
  369. updateBtnText: "升级", //升级按钮文字,默认为立即升级
  370. topImgBg: "", //非必填,用于自定义;自定义方法请参考demo,
  371. hidBackBtn: true, //可选 默认为false(即会显示后台更新按钮), 设置android 整包更新弹框是否显示后台更新按钮,这个只有android整包更新才有这个参数,热更新是是无法设置的。
  372. verCode: res.data
  373. .app_version, //最新apk版本号 可选 用于Android整包升级,避免用户取消安装apk时,重复下载问题,如果不传的话,apk将会重新下载,
  374. downMsgTip: "资源下载中,请稍后...", //可选(android)
  375. goBackBtnText: "进入后台", //可选(android)
  376. };
  377. //必需提供下载地址;
  378. upDater.startUpdate(options, () => {});
  379. } else if (wgtinfo.versionCode > res.data.app_code) {
  380. uni.setStorageSync("showData", false)
  381. } else {
  382. uni.setStorageSync("showData", true)
  383. }
  384. if (res.data.is_audit == 0) {
  385. this.getGps({
  386. page: this,
  387. fn: (res) => {
  388. console.log(res);
  389. this.getData(true);
  390. },
  391. err: (err) => {
  392. this.getData(true);
  393. }
  394. });
  395. }
  396. }
  397. });
  398. });
  399. }
  400. },
  401. /**
  402. * 重要提示
  403. * @param {Object} id
  404. */
  405. getNoticPop: function(id) {
  406. this
  407. .request
  408. .post("getContent", {
  409. id: id
  410. })
  411. .then(res => {
  412. console.log(res);
  413. if (res.code == 200) {
  414. this.content = res.data.content;
  415. this.isGg = true;
  416. }
  417. })
  418. .catch(err => {
  419. this.utils.Tip("网络错误,请稍后尝试");
  420. });
  421. },
  422. /**
  423. * 确认阅读公告
  424. */
  425. tapYGdBtn: function() {
  426. this.isGg = false;
  427. uni.setStorageSync('gonggao', this.gGid);
  428. uni.navigateTo({
  429. url: '../news/index?id=' + this.gGid
  430. });
  431. },
  432. wenpiao: function() {
  433. this
  434. .request
  435. .get("tradeweb")
  436. .then(res => {
  437. uni.hideLoading();
  438. if (res.code == 200) {
  439. this.wenAr = res.data;
  440. }
  441. });
  442. },
  443. /**
  444. * 最新门店
  445. */
  446. getData: function(isPull = false) {
  447. if (this.page.isLoad) return;
  448. this.page.isLoad = true;
  449. var post = {};
  450. post.page = this.page.page;
  451. //gps位置
  452. console.log(this.lbs);
  453. if (this.lbs != null) {
  454. post.lat = this.utils.isDefine(this.lbs.latitude) ? this.lbs.latitude : 0;
  455. post.lng = this.utils.isDefine(this.lbs.longitude) ? this.lbs.longitude : 0;
  456. }
  457. this
  458. .request
  459. .post("merchants", post)
  460. .then(res => {
  461. uni.hideLoading();
  462. if (res.code == 200) {
  463. this.merchantData = res.data.result;
  464. this.merchantCount = res.data.count;
  465. this.page.isFoot = true;
  466. this.isLoad = true;
  467. }
  468. })
  469. .catch(error => {
  470. console.log(error);
  471. uni.hideLoading();
  472. this.utils.Tip("加载失败,重新点击尝试!");
  473. });
  474. },
  475. getGu: function() {
  476. this
  477. .request
  478. .get("indexGu")
  479. .then(res => {
  480. uni.hideLoading();
  481. if (res.code == 200) {
  482. this.guData = res.data.guData;
  483. }
  484. });
  485. },
  486. /**
  487. * 更多
  488. */
  489. tapNews: function() {
  490. uni.navigateTo({
  491. url: "../news/list"
  492. });
  493. },
  494. /**
  495. * 打开
  496. * @param {Object} ev
  497. */
  498. tapOpen: function(ev) {
  499. let url = ev.currentTarget.dataset.url;
  500. this.utils.navigateTo(url);
  501. },
  502. /**
  503. * 打开
  504. * @param {Object} ev
  505. */
  506. tapOpen2: function(ev) {
  507. let url = ev.currentTarget.dataset.url;
  508. if (!this.utils.isDefine(this.user)) {
  509. uni.navigateTo({
  510. url: "/pages/login/index"
  511. });
  512. return;
  513. }
  514. this.utils.navigateTo(url);
  515. },
  516. /**
  517. * 拨打电话
  518. */
  519. tapTel: function(item) {
  520. if (item.tel == null) {
  521. this.utils.showAlert({
  522. title: "系统提示",
  523. content: "暂无联系方式"
  524. });
  525. return;
  526. }
  527. const info = uni.getSystemInfoSync();
  528. if (info.platform == 'android') {
  529. uni.showModal({
  530. content: "确认拨打" + item.tel,
  531. confirmText: "确定",
  532. cancelText: "取消",
  533. success: (res) => {
  534. if (res.confirm) {
  535. this.$store.dispatch('permission/requestPermissions', 'CALL_PHONE').then(
  536. res => {
  537. if (res !== 1) return;
  538. uni.makePhoneCall({
  539. phoneNumber: item.tel,
  540. fail: (res) => {
  541. console.log("aaaaa");
  542. uni.showModal({
  543. content: JSON.stringify(res)
  544. });
  545. },
  546. complete: (xx) => {
  547. console.log(xx);
  548. console.log("ad");
  549. }
  550. });
  551. });
  552. }
  553. }
  554. });
  555. } else {
  556. uni.makePhoneCall({
  557. phoneNumber: item.tel,
  558. });
  559. }
  560. },
  561. tapLbs: function(item) {
  562. uni.openLocation({
  563. latitude: Number(item.lat),
  564. longitude: Number(item.lng),
  565. name: item.name,
  566. address: item.address,
  567. scale: 12,
  568. success: function() {
  569. console.log('success');
  570. },
  571. fail: function(res) {
  572. },
  573. })
  574. },
  575. }
  576. }
  577. </script>
  578. <style lang="scss">
  579. .app-top {
  580. position: fixed;
  581. height: 500rpx;
  582. width: 100%;
  583. background: #fff;
  584. .atop1 {
  585. height: 300rpx;
  586. overflow: hidden;
  587. position: relative;
  588. .top2-bg {
  589. width: 400vw;
  590. height: 400vw;
  591. background: #DB292B;
  592. border-radius: 50%;
  593. position: absolute;
  594. left: -150vw;
  595. bottom: 0;
  596. }
  597. }
  598. .atop2 {
  599. background: #fff;
  600. }
  601. }
  602. .top {
  603. .top-body {
  604. .panel {
  605. height: 80rpx;
  606. padding: 0 35rpx;
  607. .index-img {
  608. width: 80rpx;
  609. height: 48rpx;
  610. }
  611. .information {
  612. width: 38rpx;
  613. height: 38rpx;
  614. }
  615. }
  616. }
  617. }
  618. //消息信息
  619. .grid-bg {
  620. padding: 32rpx;
  621. margin-top: 20rpx;
  622. background: #fff;
  623. //9宫格
  624. .grid {
  625. .item {
  626. width: 20%;
  627. .icon {
  628. width: 90rpx;
  629. height: 90rpx;
  630. }
  631. .label {
  632. font-size: 12px;
  633. color: #0C1732;
  634. margin-top: 16rpx;
  635. }
  636. }
  637. }
  638. //消息通知
  639. .news-panel {
  640. margin-top: 40rpx;
  641. background: #F8F8FA;
  642. border-radius: 8rpx;
  643. padding: 15rpx 20rpx;
  644. .icon {
  645. width: 28rpx;
  646. height: 28rpx;
  647. }
  648. .label {
  649. margin: 0px 10rpx;
  650. font-weight: bold;
  651. font-size: 26rpx;
  652. color: #FF4C4C;
  653. }
  654. .icon-right {
  655. width: 30rpx;
  656. height: 6rpx;
  657. }
  658. .line {
  659. height: 60rpx;
  660. line-height: 32px;
  661. color: #575656;
  662. font-size: 26rpx;
  663. width: calc(100vw - 184rpx - 68rpx - 40rpx);
  664. overflow: hidden;
  665. text-overflow: ellipsis;
  666. white-space: nowrap;
  667. }
  668. }
  669. }
  670. //抢货通道
  671. .team-buy {
  672. background: #F8F8FA;
  673. padding: 20rpx 50rpx;
  674. .top {
  675. .label {
  676. color: #DB292B;
  677. font-size: 30rpx;
  678. font-weight: bold;
  679. }
  680. .sbtn {
  681. border: 2rpx solid #DB292B;
  682. border-radius: 10rpx;
  683. color: #DB292B;
  684. font-size: 24rpx;
  685. padding: 14rpx 16rpx;
  686. }
  687. }
  688. .team-show {
  689. width: 100%;
  690. height: 260rpx;
  691. border-radius: 20rpx;
  692. margin-top: 20rpx;
  693. position: relative;
  694. .bg {
  695. width: 100%;
  696. height: 260rpx;
  697. position: absolute;
  698. image {
  699. width: 100%;
  700. height: 100%;
  701. border-radius: 20rpx;
  702. }
  703. .h {
  704. background-color: rgba(0, 0, 0, 0.2);
  705. position: absolute;
  706. z-index: 9;
  707. width: 100%;
  708. height: 100%;
  709. border-radius: 20rpx;
  710. top: 0;
  711. }
  712. }
  713. .body {
  714. position: relative;
  715. z-index: 10;
  716. height: 100%;
  717. .top-input {
  718. position: relative;
  719. .tbg {
  720. width: 250rpx;
  721. height: 70rpx;
  722. }
  723. .inner {
  724. width: 100%;
  725. height: 100%;
  726. position: absolute;
  727. top: 0;
  728. left: 0;
  729. image {
  730. width: 28rpx;
  731. height: 28rpx;
  732. }
  733. .label {
  734. color: #fff;
  735. font-weight: bold;
  736. font-size: 36rpx;
  737. margin-left: 6rpx;
  738. }
  739. }
  740. }
  741. .info {
  742. width: 100%;
  743. .item {
  744. width: calc(33% - 1px);
  745. .name {
  746. color: #fff;
  747. font-size: 30rpx;
  748. margin-top: 24rpx;
  749. }
  750. .label {
  751. color: #fff;
  752. width: 80%;
  753. font-size: 30rpx;
  754. font-weight: bold;
  755. overflow: hidden;
  756. text-overflow: ellipsis;
  757. white-space: nowrap;
  758. text-align: center;
  759. }
  760. .people {
  761. image {
  762. width: 26rpx;
  763. height: 34rpx;
  764. }
  765. }
  766. }
  767. .halving {
  768. width: 2rpx;
  769. height: 80rpx;
  770. background: #fff;
  771. }
  772. }
  773. }
  774. }
  775. }
  776. //文票系统
  777. .tradeweb {
  778. padding: 20rpx 50rpx;
  779. background: #fff;
  780. position: relative;
  781. .bg {
  782. image {
  783. width: calc(100vw - 100rpx);
  784. height: calc(27vw - 27rpx);
  785. }
  786. }
  787. .ivpop {
  788. position: absolute;
  789. right: 60rpx;
  790. top: 6vw;
  791. .lv {
  792. width: 100rpx;
  793. height: 100rpx;
  794. border-radius: 50%;
  795. border: 1px solid #FFFFFF;
  796. text-align: center;
  797. line-height: 100rpx;
  798. color: #fff;
  799. font-size: 14px;
  800. }
  801. .v {
  802. font-size: 20rpx;
  803. color: #FFFFFF;
  804. }
  805. }
  806. .ibody {
  807. position: absolute;
  808. top: 20rpx;
  809. left: 50rpx;
  810. width: calc(100% - 100rpx);
  811. height: calc(100% - 27rpx);
  812. z-index: 1;
  813. .t1 {
  814. border-radius: 16rpx;
  815. font-size: 10px;
  816. color: #fff;
  817. padding: 0px 20rpx;
  818. border: 1px solid #FFFFFF;
  819. margin-top: 20rpx;
  820. }
  821. .name {
  822. font-weight: 800;
  823. font-size: 52rpx;
  824. color: #FFFFFF;
  825. }
  826. .wname {
  827. color: #CA3236;
  828. font-size: 12px;
  829. position: absolute;
  830. bottom: 5vw;
  831. left: 21vw;
  832. }
  833. }
  834. }
  835. //产品中心
  836. .goods {
  837. background: #fff;
  838. padding: 20rpx;
  839. .top {
  840. .icon {
  841. width: 36rpx;
  842. height: 36rpx;
  843. }
  844. .label {
  845. color: #000000;
  846. font-weight: bold;
  847. font-size: 34rpx;
  848. margin-left: 12rpx;
  849. }
  850. .more {
  851. .text {
  852. color: #9A9A9A;
  853. font-size: 24rpx;
  854. }
  855. .prv {
  856. width: 10rpx;
  857. height: 20rpx;
  858. margin-left: 8rpx;
  859. }
  860. }
  861. }
  862. .goods-items {
  863. .item {
  864. width: calc(50% - 10rpx);
  865. margin-right: 10rpx;
  866. margin-top: 20rpx;
  867. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.1);
  868. border-radius: 20rpx;
  869. &:nth-child(2n) {
  870. margin-left: 10rpx;
  871. margin-right: 0;
  872. }
  873. .nimg {
  874. width: 100%;
  875. height: calc(50vw - 20rpx - 10rpx);
  876. border-radius: 20rpx 20rpx 0 0;
  877. }
  878. .title {
  879. padding: 20rpx;
  880. height: 80rpx;
  881. overflow: hidden;
  882. text-overflow: ellipsis;
  883. display: -webkit-box;
  884. -webkit-box-orient: vertical;
  885. -webkit-line-clamp: 2;
  886. color: #333333;
  887. font-weight: bold;
  888. font-size: 30rpx;
  889. }
  890. .iview {
  891. padding: 20rpx;
  892. .score {
  893. color: #FF4C4C;
  894. font-weight: bold;
  895. font-size: 36rpx;
  896. .tag {
  897. font-weight: bold;
  898. font-size: 18rpx;
  899. color: #FF4C4C;
  900. }
  901. }
  902. .btn {
  903. background: linear-gradient(143.2747deg, #FF6A00, #EE0979);
  904. border-radius: 40rpx;
  905. padding: 10rpx 28rpx;
  906. font-size: 22rpx;
  907. color: #FFFFFF;
  908. }
  909. }
  910. }
  911. }
  912. }
  913. //最新门店
  914. .shop {
  915. background: #fff;
  916. padding: 20rpx;
  917. margin-top: 40rpx;
  918. .top {
  919. .icon {
  920. width: 36rpx;
  921. height: 36rpx;
  922. }
  923. .label {
  924. color: #000000;
  925. font-weight: bold;
  926. font-size: 34rpx;
  927. margin-left: 12rpx;
  928. }
  929. .more {
  930. .text {
  931. color: #9A9A9A;
  932. font-size: 24rpx;
  933. }
  934. .prv {
  935. width: 10rpx;
  936. height: 20rpx;
  937. margin-left: 8rpx;
  938. }
  939. }
  940. }
  941. .shop-items {
  942. .item {
  943. margin-top: 30rpx;
  944. .img {
  945. width: 180rpx;
  946. height: 180rpx;
  947. border-radius: 10rpx;
  948. }
  949. .info {
  950. position: relative;
  951. margin-left: 20rpx;
  952. width: calc(100% - 200rpx);
  953. border-bottom: 1px solid #F8F8F8;
  954. .title {
  955. font-weight: bold;
  956. font-size: 34rpx;
  957. color: #333333;
  958. width: calc(60%);
  959. overflow: hidden;
  960. text-overflow: ellipsis;
  961. white-space: nowrap;
  962. }
  963. .ii {
  964. image {
  965. width: 20rpx;
  966. height: 28rpx;
  967. margin-right: 8rpx
  968. }
  969. font-weight: 400;
  970. font-size: 22rpx;
  971. color: #666666;
  972. }
  973. .address {
  974. .icon {
  975. width: 28rpx;
  976. height: 28rpx;
  977. }
  978. .value {
  979. font-size: 22rpx;
  980. color: #666666;
  981. opacity: 0.5;
  982. margin-left: 10rpx;
  983. }
  984. margin-top: 20rpx;
  985. }
  986. .tel {
  987. margin-top: 16rpx;
  988. .icon {
  989. width: 28rpx;
  990. height: 28rpx;
  991. }
  992. .value {
  993. font-size: 22rpx;
  994. color: #666666;
  995. opacity: 0.5;
  996. margin-left: 10rpx;
  997. }
  998. }
  999. .business {
  1000. font-weight: bold;
  1001. font-size: 24rpx;
  1002. color: #FF6F0F;
  1003. background: rgba(252, 243, 240, 0.8);
  1004. border-radius: 16rpx 16rpx 16rpx 0px;
  1005. padding: 10rpx 10rpx;
  1006. display: inline-block;
  1007. margin-bottom: 20rpx;
  1008. }
  1009. .wiget {
  1010. position: absolute;
  1011. right: 0;
  1012. bottom: 20rpx;
  1013. .wline {
  1014. margin: 0px 24rpx;
  1015. height: 40rpx;
  1016. width: 1px;
  1017. background: #eee;
  1018. }
  1019. .witem {
  1020. image {
  1021. width: 46rpx;
  1022. height: 46rpx;
  1023. }
  1024. .text {
  1025. font-size: 14px;
  1026. color: #666666;
  1027. margin-top: 8rpx;
  1028. }
  1029. }
  1030. }
  1031. }
  1032. }
  1033. }
  1034. }
  1035. /**弹出框 **/
  1036. .popwin {
  1037. position: fixed;
  1038. width: 100%;
  1039. height: 100%;
  1040. top: 0;
  1041. left: 0;
  1042. z-index: 88;
  1043. }
  1044. .popwin .bg {
  1045. background: rgba(0, 0, 0, 0.5);
  1046. height: 100%;
  1047. width: 100%;
  1048. position: absolute;
  1049. left: 0;
  1050. top: 0;
  1051. }
  1052. .popwin .body {
  1053. position: relative;
  1054. border-radius: 8px;
  1055. width: 100%;
  1056. width: 80vw;
  1057. }
  1058. .popwin .body .bgimg {
  1059. width: 80vw;
  1060. height: 106vw;
  1061. position: absolute;
  1062. top: 0;
  1063. }
  1064. .popwin .body .inner {
  1065. position: relative;
  1066. z-index: 99;
  1067. width: calc(100% - 80rpx);
  1068. padding: 0px 40rpx;
  1069. }
  1070. .inner-top {
  1071. height: 30vw;
  1072. }
  1073. .max-he {
  1074. height: 50vw;
  1075. }
  1076. .foot {
  1077. height: 26vw;
  1078. }
  1079. .popwin .btn {
  1080. background: linear-gradient(0deg, #FAC37B, #FFF5B0);
  1081. box-shadow: 2px 7px 7px 0px rgba(161, 23, 36, 0.4);
  1082. border-radius: 15rpx;
  1083. height: 66rpx;
  1084. width: 40vw;
  1085. font-size: 38rpx;
  1086. color: #97000E;
  1087. text-align: center;
  1088. line-height: 66rpx
  1089. }
  1090. .popwin .m-close {
  1091. margin-top: 10px;
  1092. }
  1093. .popwin .m-close image {
  1094. width: 120rpx;
  1095. height: 120rpx;
  1096. }
  1097. </style>