index.vue 26 KB

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