Showing
8 changed files
with
80 additions
and
6 deletions
| @@ -5,7 +5,7 @@ Component({ | @@ -5,7 +5,7 @@ Component({ | ||
| 5 | * 组件的属性列表 | 5 | * 组件的属性列表 |
| 6 | */ | 6 | */ |
| 7 | properties: { | 7 | properties: { |
| 8 | - | 8 | + post:Object, |
| 9 | }, | 9 | }, |
| 10 | 10 | ||
| 11 | /** | 11 | /** |
| @@ -14,7 +14,11 @@ Component({ | @@ -14,7 +14,11 @@ Component({ | ||
| 14 | data: { | 14 | data: { |
| 15 | 15 | ||
| 16 | }, | 16 | }, |
| 17 | - | 17 | + attached(){ |
| 18 | + this.setData({ | ||
| 19 | + enclosure:JSON.parse(this.data.post.enclosure||null) | ||
| 20 | + }) | ||
| 21 | + }, | ||
| 18 | /** | 22 | /** |
| 19 | * 组件的方法列表 | 23 | * 组件的方法列表 |
| 20 | */ | 24 | */ |
| 1 | <!--components/2.0/pinglun/card.wxml--> | 1 | <!--components/2.0/pinglun/card.wxml--> |
| 2 | <wxs src="../../../utils/util.wxs" module="util" /> | 2 | <wxs src="../../../utils/util.wxs" module="util" /> |
| 3 | +<view class="view flex align-center justify-center margin-bottom"> | ||
| 4 | + <view class="cu-avatar round lg" style="background-image: url('{{post.author_image}}')"></view> | ||
| 5 | + <view class="flex-treble flex flex-direction margin-left-sm"> | ||
| 6 | + <view class="txt-24-h text-bold margin-bottom-sm">{{post.author}}</view> | ||
| 7 | + <stat value="{{post.grade}}" cla="card" disabled></stat> | ||
| 8 | + </view> | ||
| 9 | + <view class="text-gray txt-24-h">{{util.unixtoTime(post.create_time,'YYYY-MM-DD')}}</view> | ||
| 10 | +</view> | ||
| 11 | +<view class="view flex align-start justify-center"> | ||
| 12 | + <view class="cu-avatar round lg" style="background-color: rgba(0,0,0,0);"></view> | ||
| 13 | + <view class="flex-treble flex flex-direction margin-left-sm"> | ||
| 14 | + <view class="text-df margin-bottom-xs" wx:if="{{post.text}}">{{post.text}}</view> | ||
| 15 | + <view class="text-df margin-bottom-xs text-blue">#{{post.eval_label}}</view> | ||
| 16 | + <view class="grid col-3 grid-square" wx:if="{{enclosure.length>0}}"> | ||
| 17 | + <block wx:for="{{enclosure}}" wx:key="enclosure"> | ||
| 18 | + <view class="bg-image" style="background-image: url('{{item.url}}.lim.jpg')"> | ||
| 19 | + <view class="bg-image-video view" wx:if="{{item.avinfo}}"></view> | ||
| 20 | + </view> | ||
| 21 | + </block> | ||
| 22 | + </view> | ||
| 23 | + </view> | ||
| 24 | +</view> | ||
| 25 | + |
| 1 | /* components/2.0/pinglun/card.wxss */ | 1 | /* components/2.0/pinglun/card.wxss */ |
| 2 | -@import "../../../colorui/main.wxss"; | ||
| 2 | +@import "../../../colorui/main.wxss"; | ||
| 3 | +.bg-image{ | ||
| 4 | + background-size: cover; | ||
| 5 | + margin-bottom: 20rpx; | ||
| 6 | + position: relative; | ||
| 7 | +} | ||
| 8 | +.bg-image-video{ | ||
| 9 | + position: absolute; | ||
| 10 | + background-image: url("http://nosqn.colorcun.com/pinglun/p%20%287%29.png"); | ||
| 11 | + width: 60rpx; | ||
| 12 | + height: 60rpx; | ||
| 13 | + top:calc(50% - 30rpx); | ||
| 14 | + left:calc(50% - 30rpx); | ||
| 15 | +} |
| @@ -17,4 +17,14 @@ | @@ -17,4 +17,14 @@ | ||
| 17 | color: #666666; | 17 | color: #666666; |
| 18 | line-height: 44rpx; | 18 | line-height: 44rpx; |
| 19 | margin-left: 10rpx; | 19 | margin-left: 10rpx; |
| 20 | +} | ||
| 21 | +.card .stat{ | ||
| 22 | + width: 28rpx; | ||
| 23 | + height: 28rpx; | ||
| 24 | + margin-right: 6rpx; | ||
| 25 | +} | ||
| 26 | +.card .stat-txt{ | ||
| 27 | + height: 34rpx; | ||
| 28 | + font-size: 24rpx; | ||
| 29 | + line-height: 34rpx; | ||
| 20 | } | 30 | } |
| @@ -20,6 +20,6 @@ | @@ -20,6 +20,6 @@ | ||
| 20 | "select-room":"/components/reserve/select-room/select-room", | 20 | "select-room":"/components/reserve/select-room/select-room", |
| 21 | "service":"/components/tips/service", | 21 | "service":"/components/tips/service", |
| 22 | "taocan":"/components/2.0/taocan/lists", | 22 | "taocan":"/components/2.0/taocan/lists", |
| 23 | - "plcard":"/components/2.0/pinlun/card" | 23 | + "plcard":"/components/2.0/pinglun/card" |
| 24 | } | 24 | } |
| 25 | } | 25 | } |
| @@ -192,8 +192,31 @@ | @@ -192,8 +192,31 @@ | ||
| 192 | </view> | 192 | </view> |
| 193 | </view> | 193 | </view> |
| 194 | </navigator> | 194 | </navigator> |
| 195 | + </block> | ||
| 196 | + <block wx:if="{{seller.comment_info}}"> | ||
| 195 | <view class="black20line"></view> | 197 | <view class="black20line"></view> |
| 196 | - <view class="black20line"></view> | 198 | + <navigator url="/pack-cookbook/pages/index?rid=18599&oid=273&identity=1&seeAll={{seller.sellername}}&sid={{seller.id}}" hover-class="navigator-hover"> |
| 199 | + <view class="view padding-tb-lg"> | ||
| 200 | + <view class="view flex justify-between align-center"> | ||
| 201 | + <view class="view txt-40-h text-bold">用户评价</view> | ||
| 202 | + <view class="view flex justify-end align-center"> | ||
| 203 | + <view style="font-size: 28rpx;margin-right: 20rpx;">所有评价</view> | ||
| 204 | + <view class="more"></view> | ||
| 205 | + </view> | ||
| 206 | + </view> | ||
| 207 | + </view> | ||
| 208 | + </navigator> | ||
| 209 | + <view class="view padding-bottom-xl"> | ||
| 210 | + <view class="view flex flex-wrap"> | ||
| 211 | + <view class="view tab-item round solids padding">的范德萨发</view> | ||
| 212 | + <view class="view tab-item round solids padding">的范德萨发</view> | ||
| 213 | + <view class="view tab-item round solids padding">的范德萨发</view> | ||
| 214 | + <view class="view tab-item round solids padding margin-bottom-sm">的范德萨发</view> | ||
| 215 | + </view> | ||
| 216 | + <view class="margin-top-lg"> | ||
| 217 | + <plcard post="{{seller.comment_info}}"></plcard> | ||
| 218 | + </view> | ||
| 219 | + </view> | ||
| 197 | </block> | 220 | </block> |
| 198 | </view> | 221 | </view> |
| 199 | </view> | 222 | </view> |
| @@ -737,7 +737,7 @@ | @@ -737,7 +737,7 @@ | ||
| 737 | { | 737 | { |
| 738 | "name": "pages/pinglun/create", | 738 | "name": "pages/pinglun/create", |
| 739 | "pathName": "pages/pinglun/create", | 739 | "pathName": "pages/pinglun/create", |
| 740 | - "query": "sid=80&oid=118852&sellername=秦风面庄001", | 740 | + "query": "sid=80&oid=118853&sellername=秦风面庄001", |
| 741 | "scene": null | 741 | "scene": null |
| 742 | }, | 742 | }, |
| 743 | { | 743 | { |
-
Please register or login to post a comment