Commit f9e8d8d47bc50ec203b00ecaa0d4deede62fddc6

Authored by vking
1 parent 9c8e2f1b

taocan-share-pinglun

... ... @@ -5,7 +5,7 @@ Component({
* 组件的属性列表
*/
properties: {
post:Object,
},
/**
... ... @@ -14,7 +14,11 @@ Component({
data: {
},
attached(){
this.setData({
enclosure:JSON.parse(this.data.post.enclosure||null)
})
},
/**
* 组件的方法列表
*/
... ...
<!--components/2.0/pinglun/card.wxml-->
<wxs src="../../../utils/util.wxs" module="util" />
<view class="view flex align-center justify-center margin-bottom">
<view class="cu-avatar round lg" style="background-image: url('{{post.author_image}}')"></view>
<view class="flex-treble flex flex-direction margin-left-sm">
<view class="txt-24-h text-bold margin-bottom-sm">{{post.author}}</view>
<stat value="{{post.grade}}" cla="card" disabled></stat>
</view>
<view class="text-gray txt-24-h">{{util.unixtoTime(post.create_time,'YYYY-MM-DD')}}</view>
</view>
<view class="view flex align-start justify-center">
<view class="cu-avatar round lg" style="background-color: rgba(0,0,0,0);"></view>
<view class="flex-treble flex flex-direction margin-left-sm">
<view class="text-df margin-bottom-xs" wx:if="{{post.text}}">{{post.text}}</view>
<view class="text-df margin-bottom-xs text-blue">#{{post.eval_label}}</view>
<view class="grid col-3 grid-square" wx:if="{{enclosure.length>0}}">
<block wx:for="{{enclosure}}" wx:key="enclosure">
<view class="bg-image" style="background-image: url('{{item.url}}.lim.jpg')">
<view class="bg-image-video view" wx:if="{{item.avinfo}}"></view>
</view>
</block>
</view>
</view>
</view>
... ...
/* components/2.0/pinglun/card.wxss */
@import "../../../colorui/main.wxss";
\ No newline at end of file
@import "../../../colorui/main.wxss";
.bg-image{
background-size: cover;
margin-bottom: 20rpx;
position: relative;
}
.bg-image-video{
position: absolute;
background-image: url("http://nosqn.colorcun.com/pinglun/p%20%287%29.png");
width: 60rpx;
height: 60rpx;
top:calc(50% - 30rpx);
left:calc(50% - 30rpx);
}
\ No newline at end of file
... ...
... ... @@ -22,6 +22,7 @@ Component({
type:Boolean,
value:false,
},
cla:String,
},
/**
... ...
... ... @@ -17,4 +17,14 @@
color: #666666;
line-height: 44rpx;
margin-left: 10rpx;
}
.card .stat{
width: 28rpx;
height: 28rpx;
margin-right: 6rpx;
}
.card .stat-txt{
height: 34rpx;
font-size: 24rpx;
line-height: 34rpx;
}
\ No newline at end of file
... ...
... ... @@ -20,6 +20,6 @@
"select-room":"/components/reserve/select-room/select-room",
"service":"/components/tips/service",
"taocan":"/components/2.0/taocan/lists",
"plcard":"/components/2.0/pinlun/card"
"plcard":"/components/2.0/pinglun/card"
}
}
\ No newline at end of file
... ...
... ... @@ -192,8 +192,31 @@
</view>
</view>
</navigator>
</block>
<block wx:if="{{seller.comment_info}}">
<view class="black20line"></view>
<view class="black20line"></view>
<navigator url="/pack-cookbook/pages/index?rid=18599&oid=273&identity=1&seeAll={{seller.sellername}}&sid={{seller.id}}" hover-class="navigator-hover">
<view class="view padding-tb-lg">
<view class="view flex justify-between align-center">
<view class="view txt-40-h text-bold">用户评价</view>
<view class="view flex justify-end align-center">
<view style="font-size: 28rpx;margin-right: 20rpx;">所有评价</view>
<view class="more"></view>
</view>
</view>
</view>
</navigator>
<view class="view padding-bottom-xl">
<view class="view flex flex-wrap">
<view class="view tab-item round solids padding">的范德萨发</view>
<view class="view tab-item round solids padding">的范德萨发</view>
<view class="view tab-item round solids padding">的范德萨发</view>
<view class="view tab-item round solids padding margin-bottom-sm">的范德萨发</view>
</view>
<view class="margin-top-lg">
<plcard post="{{seller.comment_info}}"></plcard>
</view>
</view>
</block>
</view>
</view>
... ...
... ... @@ -737,7 +737,7 @@
{
"name": "pages/pinglun/create",
"pathName": "pages/pinglun/create",
"query": "sid=80&oid=118852&sellername=秦风面庄001",
"query": "sid=80&oid=118853&sellername=秦风面庄001",
"scene": null
},
{
... ...