12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229 |
- <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';
- // #ifdef APP
- import upApp from "@/library/upapp.js"
- // #endif
- import {
- mapState,
- mapMutations
- } from 'vuex';
- export default {
- computed: mapState(['user', 'lbs', 'sysData','showData']),
- 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,
- }
- },
- onLoad() {
- this.initView();
- // #ifdef APP
- this.isShowInit(false);
- // #endif
- // #ifdef APP
- upApp();
- // #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;
- if (plus != null) {
- plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
- let versionCode = wgtinfo.versionCode;
- this.request.post("sysInit", {
- code: versionCode
- })
- .then(res => {
- if (res.code == 200) {
- this.setSys(res.data);
- if (res.data.is_audit == 0) {
- this.getGps({
- page: this,
- fn: (res) => {
- console.log(res);
- this.getData(true);
- },
- err: (err) => {
- this.getData(true);
- }
- });
- }
- }
- });
- });
- }
- },
- // #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>
|