Commit f0cf46338bbc7ed46469a073b8eed11af04f8572

Authored by wangfan
1 parent 573bb02b

C端调整

... ... @@ -31,6 +31,10 @@ Component({
type:Boolean,
value:true,
},
sellerStyle:{//特殊样式
type:String,
value:'',
}
},
/**
... ...
<!--components/showModal/showModal.wxml-->
<view class="seller flex-ll" >
<view class="seller flex-ll {{sellerStyle}}" >
<view class="image">
<image mode="aspectFill"
src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://qn.colorcun.com/custom/lite-online/image/seller-def.png'}}"></image>
... ... @@ -8,14 +8,13 @@
<view class="info flex-tb">
<view>
<view class="name Semibold">{{seller.sellername}}</view>
<view wx:if="{{hasSlogan && seller.slogan}}" class="slogan">
“{{seller.slogan}}”
</view>
<view wx:if="{{hasSlogan && seller.slogan}}" class="slogan">“{{seller.slogan}}”</view>
<view class="text">{{seller.cate[0].name?seller.cate[0].name+' | ':''}}距当前位置{{seller.distance}}</view>
<view wx:if="{{hasStat}}" class="stat">
<stat stat="{{seller.score}}"></stat>
</view>
<view wx:if="{{hasActivity && seller.activity.length>0}}" class="activity-swiper">
<view wx:if="{{hasActivity && seller.activity.length>0}}" class="activity-swiper flex-ll">
<view class="icon-hui"></view>
<swiper
indicator-dots="{{false}}"
autoplay
... ...
... ... @@ -9,6 +9,10 @@
border-radius: 6rpx;
box-shadow: 0 4rpx 8rpx 0 #E0E0E0;
}
.seller.noborder{
border-width: 0;
box-shadow: none;
}
.seller image{
width: 100%;
height: 100%;
... ... @@ -42,6 +46,8 @@
font-size: 32rpx;
height: 44rpx;
line-height: 44rpx;
overflow: hidden;
white-space:nowrap;
}
.seller .slogan{
font-size: 26rpx;
... ... @@ -116,12 +122,12 @@
height: 32rpx;
overflow: hidden;
}
.activity-swiper swiper{
width: 100%;
height: 32rpx;
}
.activity-swiper .activity-item{
background-image: url("http://qn.colorcun.com/reserve/images/%E6%83%A0.png");
background-size: auto 100%;
text-indent: 42rpx;
background-repeat: no-repeat;
text-indent: 10rpx;
height: 32rpx;
width: 100%;
line-height: 32rpx;
... ... @@ -130,6 +136,13 @@
overflow: hidden;
white-space:nowrap;
}
.activity-swiper .icon-hui{
background-image: url("http://qn.colorcun.com/reserve/images/%E6%83%A0.png");
background-size: 100% 100%;
height: 32rpx;
width: 32rpx;
min-width: 32rpx;
}
.reserve-text{
text-shadow:0 2rpx 6rpx #505050;
}
\ No newline at end of file
... ...
... ... @@ -6,7 +6,9 @@
<view class="follow">
<view class="seller" wx:for="{{sellers}}" wx:key="sellers.key"
bindtap="gotoDetail" data-sid="{{item.id}}" wx:if="{{item.hasFollow}}">
<sb-tr seller="{{item}}" hasActivity="{{true}}" hasAverage="{{false}}" hasSlogan="{{true}}"></sb-tr>
<sb-tr seller="{{item}}"
hasActivity="{{true}}" hasAverage="{{false}}"
hasSlogan="{{true}}" sellerStyle="noborder"></sb-tr>
</view>
<view class="flex-vc" wx:if="{{!hasMore}}">没有更多了</view>
</view>
... ...