Commit ffc9b6f129f8d93e414a282903c9a6af3ea261e1
1 parent
acda5d3b
评价为空默认值
Showing
2 changed files
with
4 additions
and
4 deletions
pages/goods/goodsInfo/goodsInfo.wxml
... | ... | @@ -578,7 +578,7 @@ |
578 | 578 | </view> |
579 | 579 | </view> |
580 | 580 | <view class="xc_comment-font pj_word_size ellipsis-2"> |
581 | - {{item.content?item.content:''}} | |
581 | + {{item.content?item.content:'此用户没有填写评价。'}} | |
582 | 582 | </view> |
583 | 583 | <view class="xc_comment-val"> |
584 | 584 | <view class="xc_comment-time">{{item.add_time}}</view> |
... | ... | @@ -795,7 +795,7 @@ |
795 | 795 | </view> |
796 | 796 | <view class="xc-pirces"> |
797 | 797 | <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}" > |
798 | - {{item.content?item.content:''}} | |
798 | + {{item.content?item.content:'此用户没有填写评价。'}} | |
799 | 799 | </view> |
800 | 800 | </view> |
801 | 801 | <view wx:if='{{item.seeMore}}' data-index='{{cIdx}}' class="s_btn fs30 red-co" catchtap='toggleHandler'>全部显示</view> | ... | ... |
pages/user/add_comment/add_comment.js
... | ... | @@ -88,8 +88,8 @@ Page({ |
88 | 88 | var a = this; |
89 | 89 | if (!a.data.service_rank || !a.data.goods_rank || !a.data.deliver_rank) |
90 | 90 | return getApp().my_warnning("请先打分",0,a); |
91 | - if(a.data.content=="") | |
92 | - return getApp().my_warnning("请填写评价内容",0,a); | |
91 | + // if(a.data.content=="") | |
92 | + // return getApp().my_warnning("请填写评价内容",0,a); | |
93 | 93 | |
94 | 94 | //this.uploadPhotos(function () { |
95 | 95 | var p_data= { | ... | ... |