|
...
|
...
|
@@ -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 |
...
|
...
|
|