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,7 +578,7 @@ | ||
| 578 | </view> | 578 | </view> |
| 579 | </view> | 579 | </view> |
| 580 | <view class="xc_comment-font pj_word_size ellipsis-2"> | 580 | <view class="xc_comment-font pj_word_size ellipsis-2"> |
| 581 | - {{item.content?item.content:''}} | 581 | + {{item.content?item.content:'此用户没有填写评价。'}} |
| 582 | </view> | 582 | </view> |
| 583 | <view class="xc_comment-val"> | 583 | <view class="xc_comment-val"> |
| 584 | <view class="xc_comment-time">{{item.add_time}}</view> | 584 | <view class="xc_comment-time">{{item.add_time}}</view> |
| @@ -795,7 +795,7 @@ | @@ -795,7 +795,7 @@ | ||
| 795 | </view> | 795 | </view> |
| 796 | <view class="xc-pirces"> | 796 | <view class="xc-pirces"> |
| 797 | <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}" > | 797 | <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}" > |
| 798 | - {{item.content?item.content:''}} | 798 | + {{item.content?item.content:'此用户没有填写评价。'}} |
| 799 | </view> | 799 | </view> |
| 800 | </view> | 800 | </view> |
| 801 | <view wx:if='{{item.seeMore}}' data-index='{{cIdx}}' class="s_btn fs30 red-co" catchtap='toggleHandler'>全部显示</view> | 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,8 +88,8 @@ Page({ | ||
| 88 | var a = this; | 88 | var a = this; |
| 89 | if (!a.data.service_rank || !a.data.goods_rank || !a.data.deliver_rank) | 89 | if (!a.data.service_rank || !a.data.goods_rank || !a.data.deliver_rank) |
| 90 | return getApp().my_warnning("请先打分",0,a); | 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 | //this.uploadPhotos(function () { | 94 | //this.uploadPhotos(function () { |
| 95 | var p_data= { | 95 | var p_data= { |