Commit 560b6e02a1a7fc2bd3a3d8f55007e62f0b50b160

Authored by vking
1 parent f8029145

taocan-share-pinglun

... ... @@ -8,6 +8,7 @@ Component({
post:Object,
hasSeller:Boolean,//显示商户信息
hasStatus:Boolean,//显示审核状态
cla:String,
},
/**
... ...
<!--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="view flex align-center justify-center margin-bottom {{cla}}">
<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>
... ...
... ... @@ -42,4 +42,10 @@
background-size: 100% 100%;
min-width: 12rpx;
background-repeat: no-repeat;
}
.yunying .status-1:after{
background-image: url("http://nosqn.colorcun.com/pinglun/p%20%2816%29.png");
}
.yunying .status-2:after{
background-image: url("http://nosqn.colorcun.com/pinglun/p%20%2815%29.png");
}
\ No newline at end of file
... ...
... ... @@ -13,11 +13,17 @@ Page({
/**
* 生命周期函数--监听页面加载
* act=seller&sid=80
* act=yunying
*/
onLoad: function (options) {
this.options=options
let titles={
seller:'所有评价',
yunying:'评价审核',
}
this.setData({
title:options.act=='seller'?'所有评价':'我的评价'
title:titles[options.act]||'我的评价',
optionsAct:options.act,
})
if(options.act=='seller'){
App.Customer.GetCountCommentLabel({sid:options.sid}).then(res=>{
... ... @@ -86,6 +92,11 @@ Page({
if(this.commentLabelActive!='全部'){
params.label=this.commentLabelActive
}
}else if(this.options.act=='yunying'){
params={
scene:4,
status:2,
}
}
App.Customer.GetSellerComments(params).then(res=>{
this.setData({
... ... @@ -100,4 +111,9 @@ Page({
this.setData({commentLabelActive:this.commentLabelActive})
this.getList()
},
CheckComment(e) {
App.Customer.CheckComment(util.attr(e)).then(res => {
this.getList()
})
},
})
\ No newline at end of file
... ...
... ... @@ -10,7 +10,13 @@
</view>
<view class="view" wx:for="{{posts}}" wx:key="posts">
<view class="view margin-lg solid-bottom padding-bottom-lg">
<plcard post="{{item}}" hasSeller hasStatus></plcard>
<plcard post="{{item}}" hasSeller hasStatus cla="{{optionsAct}}"></plcard>
<view class="view flex justify-end margin-top-sm" wx:if="{{optionsAct=='yunying'}}">
<view bindtap="CheckComment" data-status="3" data-cid="{{item.id}}"
class="view yunying padding-lr-sm margin-bottom-sm margin-right">不通过</view>
<view bindtap="CheckComment" data-status="1" data-cid="{{item.id}}"
class="view yunying padding-lr-sm margin-bottom-sm">通过</view>
</view>
</view>
</view>
</block>
... ...
... ... @@ -15,4 +15,17 @@
.commentLabel.active{
background: #E6F3FF;
color:#42A5FF;
}
.yunying{
height: 54rpx;
border-radius: 27rpx;
border: 2rpx solid #CCCCCC;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 54rpx;
text-align: center;
}
\ No newline at end of file
... ...
... ... @@ -748,7 +748,7 @@
{
"name": "pages/pinglun/mylist",
"pathName": "pages/pinglun/mylist",
"query": "_act=seller&sid=80",
"query": "act=yunying&_act=seller&sid=80",
"scene": null
}
]
... ...
... ... @@ -551,6 +551,11 @@ export default {
//获取商家评价的每个标签的统计
'App.Customer.GetCountCommentLabel':null,
//修改评论状态、审核人、时间
'App.Customer.CheckComment':{
openid:'openid',
},
//获取商家优惠对接人信息
'App.Customer.GetSellerPreferentialDocking':null,
//接单人,获得商家设置的接单人列表
... ...