index.vue 26 KB

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