1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255 |
- <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">
- <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">
- <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">
- <scroll-view scroll-y class="max-he">
- <u-parse :content="content" :noData="content" />
- </scroll-view>
- <view class="fx-r fx-bc fx-ac foot">
- <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
- },
- data() {
- return {
- statusBarHeight: 20,
- h5Foot: 0, //h5端
- topData: {
- banner: [],
- notice: [],
- product: []
- },
- content: "",
- isGg: false,
- gGid: 0,
- merchantData: [],
- guData: null,
- merchantCount:0,
- page: {
- page: 1,
- isLoad: false,
- isFoot: false
- },
- wenAr: {},
- isLoad: false
- }
- },
- onLoad() {
- this.initView();
- },
- onReachBottom() {
- if (this.page.isFoot || this.page.isLoad) {
- return;
- }
- this.page.page++;
- this.getData();
- },
- methods: {
- ...mapMutations(['setSys', 'getGps']),
- 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
- },
- /**
- * 基本逻辑
- */
- initSys: function() {
- const appType = uni.getSystemInfoSync().platform;
- if (plus != null) {
- plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
- if (appType == "ios") {
- uni.setStorageSync("showData", true)
- } else {
- uni.setStorageSync("showData", false)
- }
- let versionCode = wgtinfo.versionCode;
- this
- .request
- .post("sysInit", {
- code: versionCode
- })
- .then(res => {
- console.log(res, 'res')
- if (res.code == 200) {
- this.setSys(res.data);
- if (wgtinfo.versionCode < res.data.app_code) {
- uni.setStorageSync("showData", true)
- 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) {
- uni.setStorageSync("showData", false)
- } else {
- 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);
- }
- });
- }
- }
- });
- });
- }
- },
- /**
- * 重要提示
-
- * @param {Object} id
- */
- getNoticPop: function(id) {
- this
- .request
- .post("getContent", {
- id: id
- })
- .then(res => {
- console.log(res);
- if (res.code == 200) {
- 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: 106vw;
- 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: 50vw;
- }
- .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: 40vw;
- 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>
|