123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317 |
- <template>
- <view class="app">
- <view class="app-top">
- <view class="atop1">
- <view class="top2-bg"></view>
- </view>
- <view class="atop2"></view>
- </view>
- <view class="top" id="mtop">
- <view class="top-body">
- <view class="statusBar" :style="'height:' + statusBarHeight + 'px'"></view>
- <view class="panel fx-r fx-bc fx-ac">
- <image src="/static/img/index-logo.png" mode="aspectFill" class="index-img"></image>
- <view class="fx-g1"></view>
- <image src="/static/img/ic_information.png" class="information"></image>
- </view>
- </view>
- </view>
- <scroll-view scroll-y :style="{height:'calc(100vh - 80rpx - ' + statusBarHeight + 'px - ' + h5Foot + 'px)'}">
- <view class="app-body">
- <view class="swiper-img">
- <u-swiper :list="topData.banner" keyName="img" bgColor="transparent" indicator
- indicatorActiveColor="#DB292B" indicatorInactiveColor="#B7B7B7" previousMargin="15"
- nextMargin="15" indicatorMode="line"></u-swiper>
- </view>
- <view class="grid-bg">
- <!--九宫格-->
- <view class="grid fx-r fx-bc fx-ac" v-if="sysData.is_audit == 0">
- <view class="item fx-h fx-bc fx-ac" @tap="tapOpen2" data-url="/pages/user/order/index">
- <image class="icon" mode="aspectFill" src="/static/ad/1.png"></image>
- <view class="label">提货订单</view>
- </view>
- <view class="item fx-h fx-bc fx-ac" @tap="$refs.customer.open()">
- <image class="icon" mode="aspectFill" src="/static/ad/2.png"></image>
- <view class="label">联系客服</view>
- </view>
- <view class="item fx-h fx-bc fx-ac" @tap="tapOpen" data-url="/pages/merchant/list">
- <image class="icon" mode="aspectFill" src="/static/ad/3.png"></image>
- <view class="label">附近门店</view>
- </view>
- <view class="item fx-h fx-bc fx-ac" @tap="tapOpen2" data-url="/pages/guild/order/order">
- <image class="icon" mode="aspectFill" src="/static/ad/4.png"></image>
- <view class="label">抢购订单</view>
- </view>
- <view class="item fx-h fx-bc fx-ac" @tap="tapOpen" data-url="/pages/news/about">
- <image class="icon" mode="aspectFill" src="/static/ad/5.png"></image>
- <view class="label">关于我们</view>
- </view>
- </view>
- <!--消息通知-->
- <view class="news-panel fx-r fx-bc" v-if="showData">
- <image src="/static/img/news-icon.png" class="icon"></image>
- <view class="label">消息通知</view>
- <view class="fx-g1" style="height: 30px;">
- <maoScroll :data="topData.notice" :showNum="1" :lineHeight="60" :animationScroll="800"
- :animation="4000">
- <template v-slot="{line}">
- <view @tap="tapOpen" :data-url="'../news/index?id=' + line.id" class="line">
- {{ line.title }}
- </view>
- </template>
- </maoScroll>
- </view>
- <image @tap="tapNews" src="/static/img/news-right.png" class="icon-right"></image>
- </view>
- </view>
- <view v-if="sysData.is_audit == 0">
- <!--CBB潮贝抢货通道-->
- <view class="team-buy" @tap="tapOpen" data-url="/pages/guild/itemIndex" v-if="guData!= null">
- <view class="top fx-r fx-bc">
- <view class="label">CBB潮贝抢货通道</view>
- <view class="fx-g1"></view>
- <!-- <view class="sbtn">更多CBB代理团队 ></view> -->
- </view>
- <view class="team-show">
- <view class="bg">
- <image src="../../static/ad/team-bg.png" mode="aspectFill"></image>
- <view class="h"></view>
- </view>
- <view class="body fx-h fx-bc fx-ac">
- <view class="top-input">
- <image src="/static/img/team-top-title.png" class="tbg"></image>
- <view class="inner fx-r fx-bc fx-ac">
- <image src="/static/img/team-top-location.png"></image>
- <view class="label">{{ guData.name }}</view>
- </view>
- </view>
- <view class="info fx-r fx-g1 fx-bc fx-ac">
- <view class="item fx-h fx-bc fx-ac">
- <view class="label" v-if="guData.status == 1">开放中</view>
- <view class="label" style="color: red;" v-else>闭馆中</view>
- <view class="name">状态</view>
- </view>
- <view class="halving"></view>
- <view class="item fx-h fx-bc fx-ac">
- <view class="label">{{ guData.nickname }}</view>
- <view class="name">部门总监</view>
- </view>
- <view class="halving"></view>
- <view class="item fx-h fx-bc fx-ac">
- <view class="people fx-r">
- <image
- :src="index == 0 ? '/static/img/hong_people.png' : '/static/img/while_people.png'"
- v-for="(item,index) in 5"></image>
- </view>
- <view class="name">流畅</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!--文票系统-->
- <!-- <view class="tradeweb">
- <view class="bg">
- <image src="/static/img/wen_bg.png"></image>
- </view>
- <view class="ibody fx-h fx-bc">
- <view class="t1">{{ wenAr.fullname || "" }}</view>
- <view class="name">CBB文票系统</view>
- <view class="wname">价格(CNY):{{ wenAr.openPrice || "0.00" }}</view>
- </view>
- <view class="ivpop fx-h fx-bc fx-ac">
- <view class="lv">
- {{ wenAr.lv || '0' }}%
- </view>
- <view class="v">近24小时涨跌幅</view>
- </view>
- </view> -->
- </view>
- <!--提货好物-->
- <view class="goods">
- <view class="top fx-r fx-bc fx-ac">
- <image class="icon" src="/static/img/goods-icon.png"></image>
- <view class="label">货款提货</view>
- <view class="fx-g1"></view>
- <view class="more fx-r fx-bc fx-ac" @tap="tapOpen" data-url="../goods/list">
- <view class="text">更多</view>
- <image class="prv" src="/static/img/ic-pev.png"></image>
- </view>
- </view>
- <view class="goods-items fx-r">
- <view @tap="tapOpen" :data-url="'../goods/index?id=' + item.id" class="item"
- v-for="(item,index) in topData.product">
- <image :src="item.img" mode="aspectFill" class="nimg"></image>
- <view class="title">
- {{ item.title }}
- </view>
- <view class="iview fx-r">
- <view class="score fx-r fx-be">
- {{ item.commission }}
- <view class="tag" v-if="sysData.is_audit == 0">积分</view>
- <view class="tag" v-else>参考价</view>
- </view>
- <view class="fx-g1"></view>
- <view class="btn" v-if="sysData.is_audit == 0">提货</view>
- </view>
- </view>
- </view>
- </view>
- <!--最新门店-->
- <view class="shop" v-if="sysData.is_audit == 0">
- <view class="top fx-r fx-bc fx-ac">
- <image class="icon" src="/static/img/shop-icon.png"></image>
- <view class="label">易趣C果园({{merchantCount}}家)</view>
- <view class="fx-g1"></view>
- <view class="more fx-r fx-bc fx-ac" @tap="tapOpen" data-url="../merchant/list">
- <view class="text">更多</view>
- <image class="prv" src="/static/img/ic-pev.png"></image>
- </view>
- </view>
- <view class="shop-items">
- <view class="item fx-r" @tap="tapOpen" :data-url="'../merchant/index?id=' + item.id"
- v-for="item in merchantData">
- <image :src="item.logo" class="img" mode="aspectFill"></image>
- <view class="info">
- <view class="iview-top fx-r">
- <view class="title">{{ item.name }}</view>
- <view class="fx-g1"></view>
- <view class="ii fx-r fx-bc">
- <image src="/static/img/shop-small-location.png"></image>
- 距离{{ item.dis_km }}
- </view>
- </view>
- <view class="address fx-r fx-bc">
- <image src="/static/img/address-shop.png" class="icon"></image>
- <view class="value">{{ item.address }}</view>
- </view>
- <view class="tel fx-r fx-bc">
- <image src="/static/img/tel-shop.png" class="icon"></image>
- <view class="value">{{ item.tel }}</view>
- </view>
- <view class="business">
- 营业时间: {{ item.business }}
- </view>
- <view class="wiget fx-r">
- <view class="witem fx-h fx-bc fx-ac" @tap.stop="tapTel(item)">
- <image src="/static/img/shop-tel.png"></image>
- <view class="text">电话</view>
- </view>
- <view class="wline"></view>
- <view class="witem fx-h fx-bc fx-ac" @tap.stop="tapLbs(item)">
- <image src="/static/img/shop-location.png"></image>
- <view class="text">导航</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- <customer-wiget ref="customer"></customer-wiget>
- <view class="popwin fx-h fx-bc fx-ac" v-if="isGg && showData">
- <view class="bg"></view>
- <view class="body fx-h fx-bc fx-ac">
- <image src="/static/img/index_bg.png" class="bgimg"></image>
- <view class="inner-top"></view>
- <view class="inner">
- <view
- style="text-align: center;color: #FC2D47;padding: 25rpx 0rpx;font-size: 36rpx;font-weight: bold;">
- {{title}}
- </view>
- <scroll-view scroll-y class="max-he">
- <u-parse :content="content" :noData="content" />
- </scroll-view>
- <view class="fx-r fx-bc fx-ac foot" style="margin-top: 60rpx;">
- <view class="btn" @tap="tapYGdBtn">未阅读,去查看></view>
- </view>
- </view>
- <view class="m-close">
- <image src="/static/img/btn-close.png" @tap="isGg = false" class="icon"></image>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import uParse from '@/components/gaoyia-parse/parse.vue';
- import maoScroll from '@/components/mao-scroll/mao-scroll.vue';
- import customerWiget from '@/components/ui-public/customer-wiget.vue';
- import {
- mapState,
- mapMutations
- } from 'vuex';
- export default {
- computed: mapState(['user', 'lbs', 'sysData']),
- components: {
- uParse,
- maoScroll,
- customerWiget
- },
- watch: {
- showData(newValue, oldValue) {
- this.isShowInit(newValue);
- }
- },
- data() {
- return {
- statusBarHeight: 20,
- h5Foot: 0, //h5端
- topData: {
- banner: [],
- notice: [],
- product: []
- },
- content: "",
- title: '',
- isGg: false,
- gGid: 0,
- merchantData: [],
- guData: null,
- merchantCount: 0,
- page: {
- page: 1,
- isLoad: false,
- isFoot: false
- },
- wenAr: {},
- isLoad: false,
- // #ifdef APP
- showData: false,
- // #endif
- // #ifndef APP
- showData: true,
- // #endif
- }
- },
- onLoad() {
- this.initView();
- // #ifdef APP
- this.isShowInit(false);
- // #endif
- },
- onReachBottom() {
- if (this.page.isFoot || this.page.isLoad) {
- return;
- }
- this.page.page++;
- this.getData();
- },
- methods: {
- ...mapMutations(['setSys', 'getGps']),
- // #ifdef APP
- isShowInit(type) {
- uni.setTabBarItem({
- index: 1,
- visible: type,
- });
- // uni.setTabBarItem({
- // index:2,
- // visible:type,
- // })
- },
- // #endif
- initView: function() {
- // #ifdef H5
- this.h5Foot = 50;
- // #endif
- uni.getSystemInfo({
- success: (res) => {
- this.statusBarHeight = res.statusBarHeight;
- }
- });
- this
- .request
- .post("indexInit")
- .then(res => {
- uni.hideLoading();
- if (res.code == 200) {
- this.isLoad = true;
- this.topData = res.data;
- this.getData(true);
- //获取文票系统
- this.wenpiao();
- if (this.user != null) {
- //获取自己场馆
- this.getGu();
- }
- let gongId = uni.getStorageSync('gonggao') || '';
- if (this.topData.notice.length > 0 && gongId != this.topData.notice[0].id) {
- this.gGid = this.topData.notice[0].id;
- this.getNoticPop(this.topData.notice[0].id);
- }
- }
- })
- .catch(err => {
- this.utils.Tip("加载失败,重新点击尝试!" + JSON.stringify(error));
- uni.hideLoading();
- });
- // #ifdef APP
- this.initSys();
- // #endif
- // #ifndef APP
- this.setSys({
- is_audit: 0
- });
- this.getGps({
- page: this,
- fn: (res) => {
- console.log(res);
- this.getData(true);
- },
- err: (err) => {
- this.getData(true);
- }
- });
- // #endif
- },
- // #ifdef APP
- /**
- * 基本逻辑
- */
- initSys: function() {
- const that = this;
- const appType = uni.getSystemInfoSync().platform;
- if (plus != null) {
- plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
- let versionCode = wgtinfo.versionCode;
- let arr1 = wgtinfo.version.split('.');
- uni.setStorageSync("showData", false);
- that.showData = false;
- this.request.post("sysInit", {
- code: versionCode
- })
- .then(res => {
- if (res.code == 200) {
- this.setSys(res.data);
- if (appType != "ios") {
- if (wgtinfo.versionCode < res.data.app_code) {
- uni.setStorageSync("showData", true);
- that.showData = false;
- const upDater = uni.requireNativePlugin("CL-UpDater");
- let options = {
- title: "升级",
- con: res.data.app_update,
- downUrl: this.$device.platform == 'ios' ? encodeURI(res
- .data.ios_url) : encodeURI(res.data
- .android_url), //必填
- hidCancelbtn: true, //是否隐藏取消按钮;
- btnBgColor: "#ff3300", //设置按钮背景色颜色
- updateBtnText: "升级", //升级按钮文字,默认为立即升级
- topImgBg: "", //非必填,用于自定义;自定义方法请参考demo,
- hidBackBtn: true, //可选 默认为false(即会显示后台更新按钮), 设置android 整包更新弹框是否显示后台更新按钮,这个只有android整包更新才有这个参数,热更新是是无法设置的。
- verCode: res.data
- .app_version, //最新apk版本号 可选 用于Android整包升级,避免用户取消安装apk时,重复下载问题,如果不传的话,apk将会重新下载,
- downMsgTip: "资源下载中,请稍后...", //可选(android)
- goBackBtnText: "进入后台", //可选(android)
- };
- //必需提供下载地址;
- upDater.startUpdate(options, () => {});
- } else if (wgtinfo.versionCode > res.data.app_code) {
- that.showData = false
- uni.setStorageSync("showData", false)
- } else {
- that.showData = true
- uni.setStorageSync("showData", true)
- }
- }
- if (res.data.is_audit == 0) {
- this.getGps({
- page: this,
- fn: (res) => {
- console.log(res);
- this.getData(true);
- },
- err: (err) => {
- this.getData(true);
- }
- });
- }
- }
- });
- if (appType == "ios") {
- const getIosUpAppUrl = 'https://itunes.apple.com/cn/lookup?id=6474850968'
- const iosAppStroeUrl =
- 'https://apps.apple.com/cn/app/%E6%98%93%E8%B6%A3cbb/id6474850968';
- uni.request({
- url: getIosUpAppUrl,
- method: 'POST',
- data: {},
- success: res => {
- let arr = res.data.results[0].version.split('.');
- for (let i = 0; i < arr.length; i++) {
- // 线上版本号
- const x = +arr[i];
- // 本地版本号
- const y = +arr1[i];
- // 判断线上版本是否小于本地版本
- if (x < y) {
- // 设置显示数据
- uni.setStorageSync("showData", true);
- that.showData = true
- return
- }
- // 判断线上版本是否大于本地版本
- else if (x > y) {
- uni.setStorageSync("showData", false);
- that.showData = false
- uni.showModal({
- title: '提示',
- content: '请更新应用',
- showCancel: false,
- success(e) {
- plus.runtime.openURL(
- iosAppStroeUrl
- );
- }
- });
- return
- }
- // 判断是否本地版本等于线上版本
- else if (x == y && i == arr.length - 1) {
- that.showData = true
- uni.setStorageSync("showData", true)
- return
- }
- }
- },
- fail: res => {
- console.log(res, 'shib');
- }
- });
- }
- });
- }
- },
- // #endif
- /**
- * 重要提示
-
- * @param {Object} id
- */
- getNoticPop: function(id) {
- this
- .request
- .post("getContent", {
- id: id
- })
- .then(res => {
- console.log(res);
- if (res.code == 200) {
- this.title = res.data.title;
- this.content = res.data.content;
- this.isGg = true;
- }
- })
- .catch(err => {
- this.utils.Tip("网络错误,请稍后尝试");
- });
- },
- /**
- * 确认阅读公告
- */
- tapYGdBtn: function() {
- this.isGg = false;
- uni.setStorageSync('gonggao', this.gGid);
- uni.navigateTo({
- url: '../news/index?id=' + this.gGid
- });
- },
- wenpiao: function() {
- this
- .request
- .get("tradeweb")
- .then(res => {
- uni.hideLoading();
- if (res.code == 200) {
- this.wenAr = res.data;
- }
- });
- },
- /**
- * 最新门店
- */
- getData: function(isPull = false) {
- if (this.page.isLoad) return;
- this.page.isLoad = true;
- var post = {};
- post.page = this.page.page;
- //gps位置
- console.log(this.lbs);
- if (this.lbs != null) {
- post.lat = this.utils.isDefine(this.lbs.latitude) ? this.lbs.latitude : 0;
- post.lng = this.utils.isDefine(this.lbs.longitude) ? this.lbs.longitude : 0;
- }
- this
- .request
- .post("merchants", post)
- .then(res => {
- uni.hideLoading();
- if (res.code == 200) {
- this.merchantData = res.data.result;
- this.merchantCount = res.data.count;
- this.page.isFoot = true;
- this.isLoad = true;
- }
- })
- .catch(error => {
- console.log(error);
- uni.hideLoading();
- this.utils.Tip("加载失败,重新点击尝试!");
- });
- },
- getGu: function() {
- this
- .request
- .get("indexGu")
- .then(res => {
- uni.hideLoading();
- if (res.code == 200) {
- this.guData = res.data.guData;
- }
- });
- },
- /**
- * 更多
- */
- tapNews: function() {
- uni.navigateTo({
- url: "../news/list"
- });
- },
- /**
- * 打开
- * @param {Object} ev
- */
- tapOpen: function(ev) {
- let url = ev.currentTarget.dataset.url;
- this.utils.navigateTo(url);
- },
- /**
- * 打开
- * @param {Object} ev
- */
- tapOpen2: function(ev) {
- let url = ev.currentTarget.dataset.url;
- if (!this.utils.isDefine(this.user)) {
- uni.navigateTo({
- url: "/pages/login/index"
- });
- return;
- }
- this.utils.navigateTo(url);
- },
- /**
- * 拨打电话
- */
- tapTel: function(item) {
- if (item.tel == null) {
- this.utils.showAlert({
- title: "系统提示",
- content: "暂无联系方式"
- });
- return;
- }
- const info = uni.getSystemInfoSync();
- if (info.platform == 'android') {
- uni.showModal({
- content: "确认拨打" + item.tel,
- confirmText: "确定",
- cancelText: "取消",
- success: (res) => {
- if (res.confirm) {
- this.$store.dispatch('permission/requestPermissions', 'CALL_PHONE').then(
- res => {
- if (res !== 1) return;
- uni.makePhoneCall({
- phoneNumber: item.tel,
- fail: (res) => {
- console.log("aaaaa");
- uni.showModal({
- content: JSON.stringify(res)
- });
- },
- complete: (xx) => {
- console.log(xx);
- console.log("ad");
- }
- });
- });
- }
- }
- });
- } else {
- uni.makePhoneCall({
- phoneNumber: item.tel,
- });
- }
- },
- tapLbs: function(item) {
- uni.openLocation({
- latitude: Number(item.lat),
- longitude: Number(item.lng),
- name: item.name,
- address: item.address,
- scale: 12,
- success: function() {
- console.log('success');
- },
- fail: function(res) {
- },
- })
- },
- }
- }
- </script>
- <style lang="scss">
- .app-top {
- position: fixed;
- height: 500rpx;
- width: 100%;
- background: #fff;
- .atop1 {
- height: 300rpx;
- overflow: hidden;
- position: relative;
- .top2-bg {
- width: 400vw;
- height: 400vw;
- background: #DB292B;
- border-radius: 50%;
- position: absolute;
- left: -150vw;
- bottom: 0;
- }
- }
- .atop2 {
- background: #fff;
- }
- }
- .top {
- .top-body {
- .panel {
- height: 80rpx;
- padding: 0 35rpx;
- .index-img {
- width: 80rpx;
- height: 48rpx;
- }
- .information {
- width: 38rpx;
- height: 38rpx;
- }
- }
- }
- }
- //消息信息
- .grid-bg {
- padding: 32rpx;
- margin-top: 20rpx;
- background: #fff;
- //9宫格
- .grid {
- .item {
- width: 20%;
- .icon {
- width: 90rpx;
- height: 90rpx;
- }
- .label {
- font-size: 12px;
- color: #0C1732;
- margin-top: 16rpx;
- }
- }
- }
- //消息通知
- .news-panel {
- margin-top: 40rpx;
- background: #F8F8FA;
- border-radius: 8rpx;
- padding: 15rpx 20rpx;
- .icon {
- width: 28rpx;
- height: 28rpx;
- }
- .label {
- margin: 0px 10rpx;
- font-weight: bold;
- font-size: 26rpx;
- color: #FF4C4C;
- }
- .icon-right {
- width: 30rpx;
- height: 6rpx;
- }
- .line {
- height: 60rpx;
- line-height: 32px;
- color: #575656;
- font-size: 26rpx;
- width: calc(100vw - 184rpx - 68rpx - 40rpx);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- //抢货通道
- .team-buy {
- background: #F8F8FA;
- padding: 20rpx 50rpx;
- .top {
- .label {
- color: #DB292B;
- font-size: 30rpx;
- font-weight: bold;
- }
- .sbtn {
- border: 2rpx solid #DB292B;
- border-radius: 10rpx;
- color: #DB292B;
- font-size: 24rpx;
- padding: 14rpx 16rpx;
- }
- }
- .team-show {
- width: 100%;
- height: 260rpx;
- border-radius: 20rpx;
- margin-top: 20rpx;
- position: relative;
- .bg {
- width: 100%;
- height: 260rpx;
- position: absolute;
- image {
- width: 100%;
- height: 100%;
- border-radius: 20rpx;
- }
- .h {
- background-color: rgba(0, 0, 0, 0.2);
- position: absolute;
- z-index: 9;
- width: 100%;
- height: 100%;
- border-radius: 20rpx;
- top: 0;
- }
- }
- .body {
- position: relative;
- z-index: 10;
- height: 100%;
- .top-input {
- position: relative;
- .tbg {
- width: 250rpx;
- height: 70rpx;
- }
- .inner {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- image {
- width: 28rpx;
- height: 28rpx;
- }
- .label {
- color: #fff;
- font-weight: bold;
- font-size: 36rpx;
- margin-left: 6rpx;
- }
- }
- }
- .info {
- width: 100%;
- .item {
- width: calc(33% - 1px);
- .name {
- color: #fff;
- font-size: 30rpx;
- margin-top: 24rpx;
- }
- .label {
- color: #fff;
- width: 80%;
- font-size: 30rpx;
- font-weight: bold;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- text-align: center;
- }
- .people {
- image {
- width: 26rpx;
- height: 34rpx;
- }
- }
- }
- .halving {
- width: 2rpx;
- height: 80rpx;
- background: #fff;
- }
- }
- }
- }
- }
- //文票系统
- .tradeweb {
- padding: 20rpx 50rpx;
- background: #fff;
- position: relative;
- .bg {
- image {
- width: calc(100vw - 100rpx);
- height: calc(27vw - 27rpx);
- }
- }
- .ivpop {
- position: absolute;
- right: 60rpx;
- top: 6vw;
- .lv {
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- border: 1px solid #FFFFFF;
- text-align: center;
- line-height: 100rpx;
- color: #fff;
- font-size: 14px;
- }
- .v {
- font-size: 20rpx;
- color: #FFFFFF;
- }
- }
- .ibody {
- position: absolute;
- top: 20rpx;
- left: 50rpx;
- width: calc(100% - 100rpx);
- height: calc(100% - 27rpx);
- z-index: 1;
- .t1 {
- border-radius: 16rpx;
- font-size: 10px;
- color: #fff;
- padding: 0px 20rpx;
- border: 1px solid #FFFFFF;
- margin-top: 20rpx;
- }
- .name {
- font-weight: 800;
- font-size: 52rpx;
- color: #FFFFFF;
- }
- .wname {
- color: #CA3236;
- font-size: 12px;
- position: absolute;
- bottom: 5vw;
- left: 21vw;
- }
- }
- }
- //产品中心
- .goods {
- background: #fff;
- padding: 20rpx;
- .top {
- .icon {
- width: 36rpx;
- height: 36rpx;
- }
- .label {
- color: #000000;
- font-weight: bold;
- font-size: 34rpx;
- margin-left: 12rpx;
- }
- .more {
- .text {
- color: #9A9A9A;
- font-size: 24rpx;
- }
- .prv {
- width: 10rpx;
- height: 20rpx;
- margin-left: 8rpx;
- }
- }
- }
- .goods-items {
- .item {
- width: calc(50% - 10rpx);
- margin-right: 10rpx;
- margin-top: 20rpx;
- box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.1);
- border-radius: 20rpx;
- &:nth-child(2n) {
- margin-left: 10rpx;
- margin-right: 0;
- }
- .nimg {
- width: 100%;
- height: calc(50vw - 20rpx - 10rpx);
- border-radius: 20rpx 20rpx 0 0;
- }
- .title {
- padding: 20rpx;
- height: 80rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- color: #333333;
- font-weight: bold;
- font-size: 30rpx;
- }
- .iview {
- padding: 20rpx;
- .score {
- color: #FF4C4C;
- font-weight: bold;
- font-size: 36rpx;
- .tag {
- font-weight: bold;
- font-size: 18rpx;
- color: #FF4C4C;
- }
- }
- .btn {
- background: linear-gradient(143.2747deg, #FF6A00, #EE0979);
- border-radius: 40rpx;
- padding: 10rpx 28rpx;
- font-size: 22rpx;
- color: #FFFFFF;
- }
- }
- }
- }
- }
- //最新门店
- .shop {
- background: #fff;
- padding: 20rpx;
- margin-top: 40rpx;
- .top {
- .icon {
- width: 36rpx;
- height: 36rpx;
- }
- .label {
- color: #000000;
- font-weight: bold;
- font-size: 34rpx;
- margin-left: 12rpx;
- }
- .more {
- .text {
- color: #9A9A9A;
- font-size: 24rpx;
- }
- .prv {
- width: 10rpx;
- height: 20rpx;
- margin-left: 8rpx;
- }
- }
- }
- .shop-items {
- .item {
- margin-top: 30rpx;
- .img {
- width: 180rpx;
- height: 180rpx;
- border-radius: 10rpx;
- }
- .info {
- position: relative;
- margin-left: 20rpx;
- width: calc(100% - 200rpx);
- border-bottom: 1px solid #F8F8F8;
- .title {
- font-weight: bold;
- font-size: 34rpx;
- color: #333333;
- width: calc(60%);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .ii {
- image {
- width: 20rpx;
- height: 28rpx;
- margin-right: 8rpx
- }
- font-weight: 400;
- font-size: 22rpx;
- color: #666666;
- }
- .address {
- .icon {
- width: 28rpx;
- height: 28rpx;
- }
- .value {
- font-size: 22rpx;
- color: #666666;
- opacity: 0.5;
- margin-left: 10rpx;
- }
- margin-top: 20rpx;
- }
- .tel {
- margin-top: 16rpx;
- .icon {
- width: 28rpx;
- height: 28rpx;
- }
- .value {
- font-size: 22rpx;
- color: #666666;
- opacity: 0.5;
- margin-left: 10rpx;
- }
- }
- .business {
- font-weight: bold;
- font-size: 24rpx;
- color: #FF6F0F;
- background: rgba(252, 243, 240, 0.8);
- border-radius: 16rpx 16rpx 16rpx 0px;
- padding: 10rpx 10rpx;
- display: inline-block;
- margin-bottom: 20rpx;
- }
- .wiget {
- position: absolute;
- right: 0;
- bottom: 20rpx;
- .wline {
- margin: 0px 24rpx;
- height: 40rpx;
- width: 1px;
- background: #eee;
- }
- .witem {
- image {
- width: 46rpx;
- height: 46rpx;
- }
- .text {
- font-size: 14px;
- color: #666666;
- margin-top: 8rpx;
- }
- }
- }
- }
- }
- }
- }
- /**弹出框 **/
- .popwin {
- position: fixed;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- z-index: 88;
- }
- .popwin .bg {
- background: rgba(0, 0, 0, 0.5);
- height: 100%;
- width: 100%;
- position: absolute;
- left: 0;
- top: 0;
- }
- .popwin .body {
- position: relative;
- border-radius: 8px;
- width: 100%;
- width: 80vw;
- }
- .popwin .body .bgimg {
- width: 80vw;
- height: 120vw;
- position: absolute;
- top: 0;
- }
- .popwin .body .inner {
- position: relative;
- z-index: 99;
- width: calc(100% - 80rpx);
- padding: 0px 40rpx;
- }
- .inner-top {
- height: 30vw;
- }
- .max-he {
- height: 43vw;
- }
- .foot {
- height: 26vw;
- }
- .popwin .btn {
- background: linear-gradient(0deg, #FAC37B, #FFF5B0);
- box-shadow: 2px 7px 7px 0px rgba(161, 23, 36, 0.4);
- border-radius: 15rpx;
- height: 66rpx;
- width: 45vw;
- font-size: 38rpx;
- color: #97000E;
- text-align: center;
- line-height: 66rpx
- }
- .popwin .m-close {
- margin-top: 10px;
- }
- .popwin .m-close image {
- width: 120rpx;
- height: 120rpx;
- }
- </style>
|