<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">最新门店</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,
				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;
							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>