反馈接口接入

master
吃肉的饺子 2022-07-31 16:59:35 +08:00
parent fe6faae0cf
commit 4109e8348f
1 changed files with 15 additions and 2 deletions

View File

@ -38,7 +38,7 @@
</view> </view>
<view class="disjcac pad-zy20 mar-s30"> <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;"> <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> </view>
<view class="disjcac mar-s70"> <view class="disjcac mar-s70">
@ -52,7 +52,8 @@
data() { data() {
return { return {
typeList:['满意','不满意'], typeList:['满意','不满意'],
typeText:'满意' typeText:'满意',
content:''
} }
}, },
methods: { methods: {
@ -64,6 +65,18 @@
this.typeText = this.typeList[res.tapIndex]; 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){
}
})
} }
} }
} }