Showing
8 changed files
with
51 additions
and
4 deletions
| 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"> | 3 | +<view class="view flex align-center justify-center margin-bottom {{cla}}"> |
| 4 | <view class="cu-avatar round lg" style="background-image: url('{{post.author_image}}')"></view> | 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"> | 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> | 6 | <view class="txt-24-h text-bold margin-bottom-sm">{{post.author}}</view> |
| @@ -42,4 +42,10 @@ | @@ -42,4 +42,10 @@ | ||
| 42 | background-size: 100% 100%; | 42 | background-size: 100% 100%; |
| 43 | min-width: 12rpx; | 43 | min-width: 12rpx; |
| 44 | background-repeat: no-repeat; | 44 | background-repeat: no-repeat; |
| 45 | +} | ||
| 46 | +.yunying .status-1:after{ | ||
| 47 | + background-image: url("http://nosqn.colorcun.com/pinglun/p%20%2816%29.png"); | ||
| 48 | +} | ||
| 49 | +.yunying .status-2:after{ | ||
| 50 | + background-image: url("http://nosqn.colorcun.com/pinglun/p%20%2815%29.png"); | ||
| 45 | } | 51 | } |
| @@ -13,11 +13,17 @@ Page({ | @@ -13,11 +13,17 @@ Page({ | ||
| 13 | /** | 13 | /** |
| 14 | * 生命周期函数--监听页面加载 | 14 | * 生命周期函数--监听页面加载 |
| 15 | * act=seller&sid=80 | 15 | * act=seller&sid=80 |
| 16 | + * act=yunying | ||
| 16 | */ | 17 | */ |
| 17 | onLoad: function (options) { | 18 | onLoad: function (options) { |
| 18 | this.options=options | 19 | this.options=options |
| 20 | + let titles={ | ||
| 21 | + seller:'所有评价', | ||
| 22 | + yunying:'评价审核', | ||
| 23 | + } | ||
| 19 | this.setData({ | 24 | this.setData({ |
| 20 | - title:options.act=='seller'?'所有评价':'我的评价' | 25 | + title:titles[options.act]||'我的评价', |
| 26 | + optionsAct:options.act, | ||
| 21 | }) | 27 | }) |
| 22 | if(options.act=='seller'){ | 28 | if(options.act=='seller'){ |
| 23 | App.Customer.GetCountCommentLabel({sid:options.sid}).then(res=>{ | 29 | App.Customer.GetCountCommentLabel({sid:options.sid}).then(res=>{ |
| @@ -86,6 +92,11 @@ Page({ | @@ -86,6 +92,11 @@ Page({ | ||
| 86 | if(this.commentLabelActive!='全部'){ | 92 | if(this.commentLabelActive!='全部'){ |
| 87 | params.label=this.commentLabelActive | 93 | params.label=this.commentLabelActive |
| 88 | } | 94 | } |
| 95 | + }else if(this.options.act=='yunying'){ | ||
| 96 | + params={ | ||
| 97 | + scene:4, | ||
| 98 | + status:2, | ||
| 99 | + } | ||
| 89 | } | 100 | } |
| 90 | App.Customer.GetSellerComments(params).then(res=>{ | 101 | App.Customer.GetSellerComments(params).then(res=>{ |
| 91 | this.setData({ | 102 | this.setData({ |
| @@ -100,4 +111,9 @@ Page({ | @@ -100,4 +111,9 @@ Page({ | ||
| 100 | this.setData({commentLabelActive:this.commentLabelActive}) | 111 | this.setData({commentLabelActive:this.commentLabelActive}) |
| 101 | this.getList() | 112 | this.getList() |
| 102 | }, | 113 | }, |
| 114 | + CheckComment(e) { | ||
| 115 | + App.Customer.CheckComment(util.attr(e)).then(res => { | ||
| 116 | + this.getList() | ||
| 117 | + }) | ||
| 118 | + }, | ||
| 103 | }) | 119 | }) |
| @@ -10,7 +10,13 @@ | @@ -10,7 +10,13 @@ | ||
| 10 | </view> | 10 | </view> |
| 11 | <view class="view" wx:for="{{posts}}" wx:key="posts"> | 11 | <view class="view" wx:for="{{posts}}" wx:key="posts"> |
| 12 | <view class="view margin-lg solid-bottom padding-bottom-lg"> | 12 | <view class="view margin-lg solid-bottom padding-bottom-lg"> |
| 13 | - <plcard post="{{item}}" hasSeller hasStatus></plcard> | 13 | + <plcard post="{{item}}" hasSeller hasStatus cla="{{optionsAct}}"></plcard> |
| 14 | + <view class="view flex justify-end margin-top-sm" wx:if="{{optionsAct=='yunying'}}"> | ||
| 15 | + <view bindtap="CheckComment" data-status="3" data-cid="{{item.id}}" | ||
| 16 | + class="view yunying padding-lr-sm margin-bottom-sm margin-right">不通过</view> | ||
| 17 | + <view bindtap="CheckComment" data-status="1" data-cid="{{item.id}}" | ||
| 18 | + class="view yunying padding-lr-sm margin-bottom-sm">通过</view> | ||
| 19 | + </view> | ||
| 14 | </view> | 20 | </view> |
| 15 | </view> | 21 | </view> |
| 16 | </block> | 22 | </block> |
| @@ -15,4 +15,17 @@ | @@ -15,4 +15,17 @@ | ||
| 15 | .commentLabel.active{ | 15 | .commentLabel.active{ |
| 16 | background: #E6F3FF; | 16 | background: #E6F3FF; |
| 17 | color:#42A5FF; | 17 | color:#42A5FF; |
| 18 | +} | ||
| 19 | +.yunying{ | ||
| 20 | + height: 54rpx; | ||
| 21 | + border-radius: 27rpx; | ||
| 22 | + border: 2rpx solid #CCCCCC; | ||
| 23 | + | ||
| 24 | + font-size: 24rpx; | ||
| 25 | + font-family: PingFangSC-Regular, PingFang SC; | ||
| 26 | + font-weight: 400; | ||
| 27 | + color: #666666; | ||
| 28 | + line-height: 54rpx; | ||
| 29 | + text-align: center; | ||
| 30 | + | ||
| 18 | } | 31 | } |
| @@ -748,7 +748,7 @@ | @@ -748,7 +748,7 @@ | ||
| 748 | { | 748 | { |
| 749 | "name": "pages/pinglun/mylist", | 749 | "name": "pages/pinglun/mylist", |
| 750 | "pathName": "pages/pinglun/mylist", | 750 | "pathName": "pages/pinglun/mylist", |
| 751 | - "query": "_act=seller&sid=80", | 751 | + "query": "act=yunying&_act=seller&sid=80", |
| 752 | "scene": null | 752 | "scene": null |
| 753 | } | 753 | } |
| 754 | ] | 754 | ] |
| @@ -551,6 +551,11 @@ export default { | @@ -551,6 +551,11 @@ export default { | ||
| 551 | //获取商家评价的每个标签的统计 | 551 | //获取商家评价的每个标签的统计 |
| 552 | 'App.Customer.GetCountCommentLabel':null, | 552 | 'App.Customer.GetCountCommentLabel':null, |
| 553 | 553 | ||
| 554 | + //修改评论状态、审核人、时间 | ||
| 555 | + 'App.Customer.CheckComment':{ | ||
| 556 | + openid:'openid', | ||
| 557 | + }, | ||
| 558 | + | ||
| 554 | //获取商家优惠对接人信息 | 559 | //获取商家优惠对接人信息 |
| 555 | 'App.Customer.GetSellerPreferentialDocking':null, | 560 | 'App.Customer.GetSellerPreferentialDocking':null, |
| 556 | //接单人,获得商家设置的接单人列表 | 561 | //接单人,获得商家设置的接单人列表 |
-
Please register or login to post a comment