|
@@ -8,7 +8,7 @@
|
|
|
<view class="content-box">
|
|
|
<view class="title">评价内容:</view>
|
|
|
<view class="comment-box">
|
|
|
- <u--textarea v-model="queryParams.content" count placeholder="请输入评价内容" ></u--textarea>
|
|
|
+ <u--textarea v-model="queryParams.remark" count placeholder="请输入评价内容" ></u--textarea>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -23,7 +23,7 @@
|
|
|
return{
|
|
|
queryParams:{
|
|
|
score:0,//评价打分
|
|
|
- content:'',//评价内容
|
|
|
+ remark:'',//评价内容
|
|
|
goodsId: "", // 商品id
|
|
|
orderId: "", // 订单id
|
|
|
merchantId: "", // 商家id
|
|
@@ -31,13 +31,15 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(option){
|
|
|
- this.queryParams.orderId = option.orderList.orderId
|
|
|
- this.queryParams.goodsId = option.goodsList.goodsId
|
|
|
- this.queryParams.merchantId = option.orderList.merchantId
|
|
|
+ let { goodsList , orderList } = option
|
|
|
+ this.queryParams.orderId = goodsList.orderId
|
|
|
+ this.queryParams.goodsId = goodsList.goodsId
|
|
|
+ this.queryParams.merchantId = orderList.merchantId
|
|
|
},
|
|
|
methods:{
|
|
|
// 测试提交
|
|
|
handlerContextSumbit(){
|
|
|
+ console.log("@@@queryParams",this.queryParams)
|
|
|
goodsCommentsAdd(this.queryParams).then(res=>{
|
|
|
console.log('@@@@res',res);
|
|
|
if(res.code === 'OK'){
|