<!--packageA/member/supplier/SupplierInfo/SupplierInfo.wxml-->

<view class="header">
	<view class="c1">
		<view class="face">
			<image src="{{supplierInfo.logo}}"></image>
		</view>
		<view class="info">
			<view class="desc">{{supplierInfo.store_name?supplierInfo.store_name:supplierInfo.username}}</view>
			<view class="goods_num">商品数量:{{infoData.goods_count}}</view>
		</view>
	</view>

	<view class="c2">
		<view class="evaluate">
			<text>综合评价:</text>
			<van-rate
				value="{{ infoData.average_score }}"
				size="{{ 16 }}"
				color="#ffba00"
				void-color="#d5d5d5"
				void-icon="star"
			/>
			<!-- <icon class="iconfont icon-collect-active active" wx:for="{{infoData.average_score}}" ></icon>
			<icon class="iconfont icon-collect-active" wx:for="{{5-infoData.average_score}}" ></icon> -->
		</view>
		<view class="desc">
			由平台根据用户对供应商订单商品评价结果评估，星星越多评价越高
		</view>
	</view>
</view>

<view class="cutting"></view>


 <view class="basicInfo">
    <view class="name">基本信息</view>
    <view class="items">
		<view class="item">
			<text class="c1">店铺名称</text>
			<text class="c2">{{infoData.store_name}}</text>
		</view>
		<view class="item">
			<text class="c1">服务电话</text>
			<text class="c2" style="color:#f15353;">{{infoData.mobile}}</text>
		</view>
		<view class="item">
			<text class="c1">所在地</text>
			<text class="c2">{{infoData.address}}</text>
		</view>
		<view class="item">
			<text class="c1">开店时间</text>
			<text class="c2">{{infoData.created_at}}</text>
		</view>
    </view>
    <view class="btns">
		<view class="btn" bindtap="goToSupplierShop">
			<icon class="iconfont icon-dianpu"></icon>
			<text>进入店铺</text>
		</view>
		<view style="width: 0.031rem;height: 1.594rem;background-color: #dee2ee;"></view>
		<view class="btn" bindtap="showPop">
			<icon class="iconfont icon-linedesign-20"></icon>
			<text>联系客服</text>
		</view>
    </view>
</view>

<view class="cutting"></view>

<view class="qualifi">
	<view class="name">企业资质</view>
	<view class="desc">根据国家工商总局《网络交易管理办法》要求对网店营业执照等信息公示如下</view>
	<view class="img" wx:for="{{infoData.certificate}}">
		<image mode="widthFix" src="{{item}}"></image>
	</view>
</view>



<van-popup custom-style="border-radius: 38rpx;" show="{{show1}}" overlay="{{true}}">
	<view class="pop-content">
		<view class="pop-top">
			<view class="left">
				<view class="wrap">
					<view>
						<view class="image" style="postion:relative">
							<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_online_contect@2x.png"></image>
						</view>
						<view>在线联系</view>
						<button open-type="contact" bindcontact="handleContact" style="postion:absolute;width:100%;height:80rpx;opacity:0;top:-140rpx;"></button>
					</view>
				</view>
			</view>
			<view style="display:flex;" wx:if="{{!service_mobile==''}}">
				<view class="line"></view>
			</view>
			<view class="right" wx:if="{{!service_mobile==''}}">
				<view class="wrap" bindtap="callPhone">
					<view>
						<view class="image">
							<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_tel_contect@2x.png"></image>
						</view>
						<view>联系电话</view>
						<view style="margin-top:16rpx">{{service_mobile}}</view>
					</view>
				</view>
			</view>
		</view>
		<view class="pop-bottom" wx:if="{{!service_QRcode==''}}">
			<view class="image">
				<image src="{{service_QRcode}}"></image>
			</view>
		</view>
		<icon class="iconfont icon-close11" catchtap="closePop"></icon>
	</view>
</van-popup>


