|
@@ -35,16 +35,17 @@
|
|
|
<view class="stars">
|
|
|
<uni-rate size="18" :readonly="true" :value="item.goods_score" />
|
|
|
</view>
|
|
|
- <view class="other1">{{item.reply[0].content||'暂无'}}</view>
|
|
|
+ <view class="other1"><text>{{item.reply[0].content||'暂无'}}</text></view>
|
|
|
<view class="other2">规格:{{item.goodsSpec.name}}</view>
|
|
|
<view class="other2" v-for="(itm, indexx) in item.reply" :key="indexx">
|
|
|
- <view class="reply">
|
|
|
+ <view :class="[item.customer._id!=user._id?'reply_2':'reply']">
|
|
|
<text>用户评论:{{itm.content||'暂无'}}</text>
|
|
|
<text v-if="itm.reply">商家回复:{{itm.reply||'暂无'}}</text>
|
|
|
</view>
|
|
|
- <view @tap="toReply(item)">回复</view>
|
|
|
+ <view v-if="item.customer._id==user._id" @tap="toReply(item)">回复</view>
|
|
|
</view>
|
|
|
- <input v-if="reply.reply" @confirm="confirm" class="input" placeholder="回复商家" />
|
|
|
+ <uni-easyinput v-if="reply.reply" class="input" maxlength=-1 type="textarea"
|
|
|
+ @change="confirm" placeholder="回复商家" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -107,7 +108,7 @@
|
|
|
const that = this;
|
|
|
let reply = that.reply
|
|
|
let obj = {
|
|
|
- content: e.detail.value,
|
|
|
+ content: e,
|
|
|
time: moment().format('YYYY-MM-DD HH:mm:ss')
|
|
|
}
|
|
|
reply.reply.push(obj)
|
|
@@ -328,6 +329,8 @@
|
|
|
|
|
|
.other1 {
|
|
|
margin: 1vw 0 0 0;
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
}
|
|
|
|
|
|
.flie {
|
|
@@ -353,6 +356,14 @@
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
width: 70vw;
|
|
|
+ word-wrap: break-word;
|
|
|
+ word-break: break-all;
|
|
|
+ }
|
|
|
+ .reply_2{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ word-wrap: break-word;
|
|
|
+ word-break: break-all;
|
|
|
}
|
|
|
}
|
|
|
}
|