index.vue 26 KB

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