<!--pages/HomeSeller/HomeSeller.wxml-->
<!-- <import src="../../../wxParse/wxParse.wxml" /> -->
<view class="all">
	<view class="home_seller" wx:if="{{false}}">
		<view class="banner">
			<image
				src="{{mainInfo.store_barnner_thumb?mainInfo.store_barnner_thumb:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/loading.jpg'}}"
				mode='widthFix' />
		</view>
		<view class="header_box">
			<view class="img">
				<image src="{{mainInfo.store_thumb?mainInfo.store_thumb:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/loading.jpg'}}"
					mode='widthFix' style="border-radius: {{mainInfo.logo_style?'0;':'50%;'}}" />
			</view>
			<view class="ul name">
				<view class="li">{{mainInfo.store_name}}</view>
			</view>
			<view class="btn" catchtap="goToCrash" wx:if="{{mainInfo.is_open_cashier==1}}">
				<view class="button">优惠买单</view>
			</view>
		</view>
		<view class="top">
			<view class="ul item">
				<view class="li" catchtap="goToAdress">
					<icon class="iconfont icon-seller-position"></icon>
					<view class="span">{{mainInfo.store_address}}</view>
				</view>
				<view class="li">
					<icon class="iconfont icon-seller_phone"></icon>
					<view class="phone" catchtap="gophone">{{mainInfo.store_mobile}}</view>
				</view>
			</view>
		</view>
		<view class="ul into_store">
			<view class="li" catchtap="goToShop">
				<view class="left">
					<icon class="iconfont icon-seller-car"></icon>
				</view>
				<view class="center">
					<view class="span">进店选购</view>
				</view>
				<view class="right">
					<van-icon name="arrow" size="48rpx" color="#c9c9c9" />
				</view>
			</view>
		</view>
		<!-- <view class="ul into_store" wx:if='{{pet_status}}' bindtap="yuyue">
			<view class="li">
				<view class="left">
					<view class="nibox">
						<image class="nisimg" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/pre_order.png" mode="scaleToFill"></image>
					</view>
				</view>
				<view class="center">
					<view class="span">在线预约</view>
				</view>
				<view class="right">
					<van-icon name="arrow" size="48rpx" color="#c9c9c9" />
				</view>
			</view>
		</view> -->
		<view class="ul store_time">
			<view class="li">
				<icon class="iconfont icon-seller-time"></icon>
				<view class="span">营业时间：{{mainInfo.business_hours}}</view>
			</view>
		</view>
		<cComment commentInfo='{{commentList.new_comment}}' type="{{2}}" score="{{commentList.average_score}}"
			total='{{commentList.comment_total}}' storeid="{{store_id}}"></cComment>
		<view class="store_info">
			<view class="introduce">
				<view class="ul text">
					<view class="li">
						<icon class="iconfont icon-seller-home"></icon>
						<view class="span">门店简介：</view>
						<view class="p">{{mainInfo.store_introduce}}</view>
					</view>
				</view>
			</view>
			<view class="detail">
				<view class="detail_a">
					<icon class="iconfont icon-seller-detail"></icon>
					<view class="span">商家详情：</view>
				</view>
				<view wx:if="{{!infoShow}}" class="p">
					暂无详情...
				</view>
				<view wx:if="{{infoShow}}" class="p">
					<rich-text nodes="{{info}}"></rich-text>
					<!-- 	<template is="wxParse" data="{{wxParseData:article.nodes}}" /> -->
				</view>
			</view>
		</view>
		<view class="living_title" wx:if="{{store_room.length>0}}">
			<view class="left">
				<view class="iconfont icon-all_zhibojian"></view>
			</view>
			<view class="right">直播间</view>
		</view>
		<view class="living_content" wx:if="{{store_room.length>0}}">
			<view class="living" catchtap="gopage" data-status="{{item.play_type}}" wx:for="{{store_room}}" wx:key="*this"
				data-id="{{item.id}}" data-backid="{{item.back_id}}">
				<view class="bg">
					<image src="{{item.cover}}" mode='aspectFill' />
					<view class="content">
						<view class="live_top" wx:if="{{item.play_type==3}}">
							<view class="advance_left">
								<view class="left">预告</view>
							</view>
						</view>
						<view class="live_top" wx:if="{{item.play_type==1||item.play_type==2}}">
							<view class="live_top_left" wx:if="{{item.play_type==1}}">
								<view class="left">直播中</view>
								<view class="right">{{item.view_num}}观看</view>
							</view>
							<view class="seeding_left" wx:if="{{item.play_type==2}}">
								<view class="left">回放</view>
								<view class="right">{{item.view_num}}观看</view>
							</view>
							<view class="live_top_right">
								<view class="little_icon">
									<view class="iconfont icon-zb_goods"></view>
								</view>
								<view class="num" wx:if="{{item.goods_num}}">{{item.goods_num}}</view>
							</view>
						</view>
					</view>
					<view class="live_bottom">{{item.title}}</view>
				</view>
				<view class="bootom">
					<view class="left">
						<image src="{{item.avatar}}" mode='aspectFill' />
					</view>
					<view class="right">{{item.nickname}}</view>
				</view>
			</view>
		</view>
	</view>
	<view class="home_seller2" wx:if="{{isShow}}">
		<view class="header_box">
			<view class="img">
				<image src="{{mainInfo.store_thumb?mainInfo.store_thumb:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/loading.jpg'}}"
					mode='aspectFill' />
			</view>
			<view class="ul name">
				<view class="li">{{ mainInfo.store_name }}</view>
				<view class="tel li">
					<view class="a phone" catchtap="gophone">店铺咨询： {{mainInfo.store_mobile}}</view>
				</view>
			</view>
			<view class="btn" catchtap="goToCrash" wx:if="{{mainInfo.is_open_cashier==1}}">
				<view class="button">优惠买单</view>
			</view>
		</view>
		<!-- 门店独立余额 -->
		<view class="circleBox" wx:if="{{is_open}}">
			<view class="circleLeft" catchtap="toStoreBalance">
				<view class="span">{{balanceTitle}}</view>
				<view class="priceCir">
					<text class="span">{{language['money']}}</text>
					<text class="pric">{{member_balance}}</text>
				</view>
			</view>
			<view class="circleRight" catchtap="toStoreBalance" data-key="balance" wx:if="{{show_button}}">充值</view>
		</view>
		<!-- 门店独立余额end -->
		<view class="ul tab-box">
			<view class="li {{tabName == item.name ? 'choose' : ''}}" wx:for="{{tabList}}" wx:if="{{item.is_show}}"
				wx:for-index="index" wx:for-item="item" wx:key="index" catchtap="chooseTab" data-item="{{item}}"
				data-index="{{index}}">{{item.name}}</view>
		</view>
		<view class="detail-box" wx:if="{{tabName == '门店详情'}}">
			<view class="detail-item">
				<view class="p detail-title">营业时间</view>
				<view class="p time">{{ mainInfo.business_hours }}</view>
			</view>
			<view class="detail-item">
				<view class="p" style="display: flex">
					<view class="p detail-title">门店地址</view>
					<view catchtap="goToAdress" class="iconfont icon-all_daohang"></view>
				</view>
				<view class="p">{{ mainInfo.store_address }}</view>
			</view>
			<view class="detail-item" wx:if="{{delivery_amount}}" style="margin: 20rpx 0;">
				<text>门店配送起送价</text>
				<text
					style="color:#ed0606; margin-left: 20rpx;font-size: 28rpx;">{{language['money']}}{{delivery_amount}}</text>
			</view>
			<!-- 门店配送 -->
			<view class="delivery_info" wx:if="{{delivery_status==1}}">
				<view class="detail_a">
					<icon class="iconfont icon-service_o"></icon>
					<view class="span">配送范围</view>
				</view>
				<view class="p">
					<rich-text nodes="{{delivery_note}}"></rich-text>
				</view>
				<!-- 配送范围地图 -->
				<view style="width:100%; height:18.75rem">
					<map id="map" longitude="{{delivery.longitude}}" latitude="{{delivery.latitude}}" scale="12"
						markers="{{markers_2}}" style="width: 100%; height: 100%" show-location="{{true}}" polygons="{{polygons_2}}"
						bindtap="testbtn"></map>
				</view>
			</view>
			<cComment commentInfo='{{commentList.new_comment}}' type="{{2}}" score="{{commentList.average_score}}"
				total='{{commentList.comment_total}}' storeid="{{store_id}}"></cComment>
			<view class="detail-item">
				<view class="p detail-title">门店简介</view>
				<view class="p">{{ mainInfo.store_introduce }}</view>
			</view>
			<view class="detail-item">
				<view class="p detail-title">门店详情介绍</view>
				<view class="p" wx:if="{{!infoShow}}" style="margin-left: 2rem;">暂无详情...</view>
				<view wx:if="{{infoShow}}" class="p">
					<!-- <rich-text nodes="{{info}}"></rich-text> -->
					<mp-html content="{{info}}"></mp-html>
				</view>
			</view>
			<view class="detail-item" wx:if="{{get_recommend_goods.length > 0}}">
				<view class="detail-title p">推荐商品</view>
				<view class="goods-box">
					<view class="good-item" wx:for="{{get_recommend_goods}}" wx:for-index="i" wx:for-item="good" wx:key="i"
						catchtap="toGood" data-id="{{good.goods_id}}">
						<view class="good-img">
							<image src="{{good.change_thumb}}" mode='aspectFill' />
						</view>
						<view class="p good-title">{{good.title}}</view>

						<view class="goods_content_show" wx:if="{{good.goods_content_show}}">
							<!-- 商品内容显示 #81889-->
							<block wx:for="{{good.goods_content_show}}" wx:for-item="contentChild" style="font-size:10px;color:#666;">
								<view class="goods_content_show_item">
									{{ contentChild.name }}{{ contentChild.value }}%
								</view>
							</block>
						</view>

						<view class="p good-price" wx:if="{{!good.goods_show||good.goods_show.length<=0}}">
							{{language['money']}}{{good.price}}</view>
						<view class="show_price_box" wx:if="{{good.goods_show&&good.goods_show.length>0}}">
							<view class="show_price {{index % 2 == 0 ? 'red_white' : 'white_red'}}" wx:for="{{good.goods_show}}">
								{{ item.name }}:{{ item.value }}
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="community-box" wx:if="{{tabName == '门店微贴'}}">
			<Waterfalls_flow goodsData="{{menuList[tabIndex].list}}"></Waterfalls_flow>
		</view>
		<view class="live-box" wx:if="{{tabName == '门店直播'}}">
			<view class="blank" wx:if="{{menuList[tabIndex].list.length <= 0}}">
				<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png" mode='widthFix' />
			</view>
			<view class="living_content" wx:if="{{menuList[tabIndex].list.length>0}}">
				<view class="living" catchtap="gopage" data-status="{{item.play_type}}" wx:for="{{menuList[tabIndex].list}}"
					wx:key="*this" data-id="{{item.id}}" data-backid="{{item.back_id}}">
					<view class="bg">
						<image src="{{item.cover}}" mode='aspectFill' />
						<view class="content">
							<view class="live_top" wx:if="{{item.play_type==3}}">
								<view class="advance_left">
									<view class="left">预告</view>
								</view>
							</view>
							<view class="live_top" wx:if="{{item.play_type==1||item.play_type==2}}">
								<view class="live_top_left" wx:if="{{item.play_type==1}}">
									<view class="left">直播中</view>
									<view class="right">{{item.view_num}}观看</view>
								</view>
								<view class="seeding_left" wx:if="{{item.play_type==2}}">
									<view class="left">回放</view>
									<view class="right">{{item.view_num}}观看</view>
								</view>
								<view class="live_top_right">
									<view class="little_icon">
										<view class="iconfont icon-zb_goods"></view>
									</view>
									<view class="num" wx:if="{{item.goods_num}}">{{item.goods_num}}</view>
								</view>
							</view>
						</view>
						<view class="live_bottom">{{item.title}}</view>
					</view>
					<view class="bootom">
						<view class="left">
							<image src="{{item.avatar}}" mode='aspectFill' />
						</view>
						<view class="right">{{item.nickname}}</view>
					</view>
				</view>
			</view>
		</view>
		<view class="member-box" wx:if="{{tabName == '门店员工'}}">
			<view class="member-item" wx:for-index="i" wx:for-item="member" wx:for="{{menuList[tabIndex].list}}" wx:key="i">
				<view class="img-box" catchtap="toCard" data-cardid="{{member.card_id}}">
					<image src="{{member.avatar}}" mode='aspectFill' />
				</view>
				<view class="text-box" catchtap="toCard" data-cardid="{{member.card_id}}">
					<view class="p name">{{member.realname}}</view>
					<view class="p">联系方式：{{member.phone}}</view>
					<view class="p">微信号：{{member.wechat || '无'}}</view>
				</view>
				<view class="phone-box">
					<view class="a" catchtap="gomenphone" data-phone="{{member.phone}}" style="display: flex;align-self: center">
						<view class="icon-box">
							<view class="iconfont icon-all_phone"></view>
							<!-- 		<view class="p">拨电话</view> -->
						</view>
					</view>
					<view class="icon-box" style="margin-left: 16rpx;" catchtap="copybtn" data-wechat="{{member.wechat}}">
						<view class="iconfont icon-card_weixin1"></view>
						<!-- 	<view class="p">添加微信</view> -->
					</view>
					<view class="iconfont icon-advertise-next" catchtap="toCard" data-cardid="{{member.card_id}}"></view>
				</view>
			</view>
			<view class="loading" wx:if="{{menuList[tabIndex].list.length<=0}}">
				<view class="content">
					<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png" mode='widthFix' />
				</view>
			</view>
		</view>

		<view class="group-box" wx:if="{{tabName == '门店拼团'}}">
			<cGrouplist grouplist="{{menuList[tabIndex].list}}" store_id='{{store_id}}'></cGrouplist>
		</view>

		<view class="group-box" wx:if="{{tabName == '定金阶梯团'}}">
			<deposit-ladder-cell wx:for="{{menuList[tabIndex].list}}" thumb="{{item.bind_goods.thumb_src}}"
				title="{{item.activity_name}}" price="{{item.bind_goods.price}}" deposit="{{item.deposit}}"
				count="{{item.order_count}}" store_id="{{store_id}}" aid="{{item.id}}"></deposit-ladder-cell>
		</view>
		<view class="fixed-box" catchtap="goToShop">
			<view class="red-box span">进店选购</view>
		</view>
		<view class="fixed-box2" catchtap="goToCode" wx:if="{{show_qr_code}}">
			<view class="red-box span" style="font-size:24rpx;">我的二维码</view>
		</view>
	</view>
</view>
<!-- <shopfoot></shopfoot> -->