反馈接口接入
parent
fe6faae0cf
commit
4109e8348f
|
@ -38,7 +38,7 @@
|
|||
</view>
|
||||
<view class="disjcac pad-zy20 mar-s30">
|
||||
<view class="disjbac radius30 width100 pad-sx20 pad-zy30" style="border: 2rpx solid #d9d9d9;box-sizing: border-box;">
|
||||
<textarea class="col9 fon30" style="height: 272rpx;" placeholder="请输入反馈信息"></textarea>
|
||||
<textarea class="col9 fon30" v-model="content" style="height: 272rpx;" placeholder="请输入反馈信息"></textarea>
|
||||
</view>
|
||||
</view>
|
||||
<view class="disjcac mar-s70">
|
||||
|
@ -52,7 +52,8 @@
|
|||
data() {
|
||||
return {
|
||||
typeList:['满意','不满意'],
|
||||
typeText:'满意'
|
||||
typeText:'满意',
|
||||
content:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -64,6 +65,18 @@
|
|||
this.typeText = this.typeList[res.tapIndex];
|
||||
}
|
||||
})
|
||||
},
|
||||
// 反馈提交
|
||||
setFeedBack(){
|
||||
let params = {
|
||||
satisfied:this.typeText=="满意"?1:0,
|
||||
content:this.content
|
||||
}
|
||||
this.$requst.post('user/create-feedback').then(res=>{
|
||||
if(res.code==0){
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue