|
|
@@ -16,8 +16,8 @@
|
|
|
</view>
|
|
|
<template v-if="title == '商户'">
|
|
|
<view class="tag">
|
|
|
- <view class="word"
|
|
|
- v-for="(item, index) in jstag" :key="index"
|
|
|
+ <view class="word"
|
|
|
+ v-for="(item, index) in jstag" :key="index"
|
|
|
@click="addJsComment(item)">
|
|
|
{{item.value}}
|
|
|
</view>
|
|
|
@@ -25,8 +25,8 @@
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<view class="tag">
|
|
|
- <view class="word"
|
|
|
- v-for="(item, index) in tag" :key="index"
|
|
|
+ <view class="word"
|
|
|
+ v-for="(item, index) in tag" :key="index"
|
|
|
@click="addComment(item)">
|
|
|
{{item.value}}
|
|
|
</view>
|
|
|
@@ -67,6 +67,7 @@
|
|
|
orderId: '',
|
|
|
openId: '',
|
|
|
name: '',
|
|
|
+ nickName:'',
|
|
|
nStar: 0,
|
|
|
title: '',
|
|
|
jstag: [{
|
|
|
@@ -102,8 +103,9 @@
|
|
|
this.orderNo = options.orderNo
|
|
|
|
|
|
this.jsId = options.cJsId
|
|
|
- this.name = options.cNickName
|
|
|
+ this.name = options.cName
|
|
|
|
|
|
+ this.nickName = options.nickName
|
|
|
this.title = options.title
|
|
|
this.openId = options.cOpenId
|
|
|
},
|
|
|
@@ -124,11 +126,12 @@
|
|
|
submit() {
|
|
|
if (this.comment.trim() == '') return;
|
|
|
let params = {
|
|
|
+ openId:uni.getStorageSync('wx_copenid'),
|
|
|
orderId: this.orderId,
|
|
|
orderNo: this.orderNo,
|
|
|
jsId: this.jsId,
|
|
|
name: this.name,
|
|
|
- nickName: 'xiaoxiao',
|
|
|
+ nickName: this.nickName,
|
|
|
|
|
|
star: this.nStar,
|
|
|
text: this.comment.trim(),
|
|
|
@@ -284,4 +287,4 @@
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|