|
@@ -1,28 +1,19 @@
|
|
|
<template name="supplier">
|
|
|
<!-- 供应商信息 -->
|
|
|
<view class="supplier clearfix">
|
|
|
- <view class="sup-header">
|
|
|
- <view class="header-img">
|
|
|
- <image :src="shopData.logo" mode=""></image>
|
|
|
- </view>
|
|
|
- <view class="header-txt">
|
|
|
- <text>{{shopData.name}}</text>
|
|
|
+ <view class="product-supplier" @click="goSupplier">
|
|
|
+ <view class="logo"><img :src="shopData.logo" alt=""></view>
|
|
|
+ <view class="main">
|
|
|
+ <view class="name">{{ shopData.name }}</view>
|
|
|
+ <view class="massgs">
|
|
|
+ <view class="label">满意度:</view>
|
|
|
+ <view class="p-stars">
|
|
|
+ <uni-stars :stars="6" :iconClass="iconClass" :iconColor="iconColor" :fontSize="36" :widthInfo="176"></uni-stars>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="sup-msg massage-t">
|
|
|
- <view class="sup-h1">
|
|
|
- <text class="line">公司基本信息</text>
|
|
|
- </view>
|
|
|
- <view class="sup-title">
|
|
|
- <text class="tit-l">公司名称:</text>
|
|
|
- <text >{{shopData.name}}</text>
|
|
|
- </view>
|
|
|
- <view class="sup-stars">
|
|
|
- <text class="tit-l">满意度:</text>
|
|
|
- <view class="p-stars">
|
|
|
- <uni-stars :stars="6" :iconClass="iconClass" :iconColor="iconColor" :fontSize="44" :widthInfo="180"></uni-stars>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
<view class="sup-conte">
|
|
|
<view class="conte-l">
|
|
|
<text class="tit-l">经营范围:</text>
|
|
@@ -81,11 +72,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import uniStars from '@/components/uni-stars/uni-stars.vue'
|
|
|
+ import uniGrader from '@/components/uni-grade/uni-grade.vue'
|
|
|
export default{
|
|
|
name:'supplier',
|
|
|
components:{
|
|
|
- uniStars
|
|
|
+ uniGrader
|
|
|
},
|
|
|
props:{
|
|
|
shopId:{
|
|
@@ -95,8 +86,8 @@
|
|
|
data() {
|
|
|
return{
|
|
|
shopData:{},
|
|
|
- iconClass:'icon-xingxing',
|
|
|
- iconColor:'#FF9100'
|
|
|
+ iconClass:'icon-aixin',
|
|
|
+ iconColor:'#ff9100',
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -130,8 +121,10 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
-.supplier{
|
|
|
+page{
|
|
|
background: #FFFFFF;
|
|
|
+}
|
|
|
+.supplier{
|
|
|
width: 100%;
|
|
|
.sup-msg{
|
|
|
width: 100%;
|
|
@@ -139,59 +132,66 @@
|
|
|
.sup-h1{
|
|
|
height: 80rpx;
|
|
|
line-height: 80rpx;
|
|
|
- font-size: $font-size-30;
|
|
|
+ font-size: $font-size-28;
|
|
|
color: $text-color;
|
|
|
text-align: left;
|
|
|
- border-bottom: 1px solid #EFEFEF;
|
|
|
+ font-weight: bold;
|
|
|
.line{
|
|
|
position: relative;
|
|
|
- padding-left: 15rpx;
|
|
|
- &:after{
|
|
|
- content: '';
|
|
|
- width: 6rpx;
|
|
|
- height: 28rpx;
|
|
|
- background: #FFA347;
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- top: 6rpx;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .sup-header{
|
|
|
- height: 158rpx;
|
|
|
- width: 702rpx;
|
|
|
- padding: 28rpx 24rpx 24rpx 24rpx;
|
|
|
- display: flex;
|
|
|
- background: #FFFFFF;
|
|
|
- .header-img{
|
|
|
- width: 216rpx;
|
|
|
- height: 100%;
|
|
|
+ .product-supplier{
|
|
|
+ width: 100%;
|
|
|
+ height: 140rpx;
|
|
|
+ padding:30rpx 24rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ position: relative;
|
|
|
+ box-sizing: border-box;
|
|
|
+ .logo{
|
|
|
+ width: 128rpx;
|
|
|
+ height: 92rpx;
|
|
|
+ float: left;
|
|
|
+ border: 1px solid #efefef;
|
|
|
+ border-radius: 6rpx;
|
|
|
image{
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
+ display: block;
|
|
|
+ border-radius: 6rpx;
|
|
|
}
|
|
|
}
|
|
|
- .header-txt{
|
|
|
- width:460rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- text{
|
|
|
- display: flex;
|
|
|
- flex: 1;
|
|
|
- margin-left: 26rpx;
|
|
|
- line-height: 40rpx;
|
|
|
- -o-text-overflow: ellipsis;
|
|
|
- text-overflow: ellipsis;
|
|
|
- display: -webkit-box;
|
|
|
- word-break: break-all;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
+ .main{
|
|
|
+ width: 470rpx;
|
|
|
+ height: 92rpx;
|
|
|
+ float: left;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ .name{
|
|
|
+ width: 100%;
|
|
|
+ line-height: 46rpx;
|
|
|
+ float: left;
|
|
|
+ font-size: $font-size-28;
|
|
|
+ color: $text-color;
|
|
|
+ float: right;
|
|
|
overflow: hidden;
|
|
|
+ text-overflow:ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
text-align: left;
|
|
|
- font-size: $font-size-30;
|
|
|
- color: $text-color;
|
|
|
- font-weight: bold;
|
|
|
+ }
|
|
|
+ .massgs{
|
|
|
+ width: 100%;
|
|
|
+ line-height: 46rpx;
|
|
|
+ float: left;
|
|
|
+ font-size: $font-size-24;
|
|
|
+ color: #999999;
|
|
|
+ .label{
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ .p-stars{
|
|
|
+ float: left;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -237,28 +237,29 @@
|
|
|
.sup-conte{
|
|
|
width: 100%;
|
|
|
margin-top: 24rpx;
|
|
|
- display: flex;
|
|
|
.conte-l{
|
|
|
- width: 142rpx;
|
|
|
+ width: 100%;
|
|
|
+ margin-bottom: 15rpx;
|
|
|
.tit-l{
|
|
|
text-align: left;
|
|
|
display: inline-block;
|
|
|
line-height: 40rpx;
|
|
|
font-size: $font-size-28;
|
|
|
color: $text-color;
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
.conte-r{
|
|
|
- width: 540rpx;
|
|
|
+ width: 100%;
|
|
|
.age{
|
|
|
display: inline-block;
|
|
|
padding: 0 20rpx;
|
|
|
- background: #FFF6E6;
|
|
|
+ background: #86b2fb;
|
|
|
height: 42rpx;
|
|
|
line-height: 42rpx;
|
|
|
text-align: center;
|
|
|
font-size: $font-size-24;
|
|
|
- color: #666666;
|
|
|
+ color: #FFFFFF;
|
|
|
border-radius: 6rpx;
|
|
|
margin-right: 24rpx;
|
|
|
margin-bottom: 24rpx;
|
|
@@ -271,12 +272,11 @@
|
|
|
}
|
|
|
}
|
|
|
.sup-p{
|
|
|
- padding: 24rpx 0;
|
|
|
- line-height: 40rpx;
|
|
|
+ line-height: 48rpx;
|
|
|
text-align: left;
|
|
|
font-size: $font-size-28;
|
|
|
color: #666666;
|
|
|
- text-indent: 20rpx;
|
|
|
+ text-indent: 40rpx;
|
|
|
&.center{
|
|
|
text-align: center;
|
|
|
}
|