|
@@ -10,12 +10,12 @@
|
|
|
<div style="font-size: 12pt;color: #666666;display: inline-block">意见反馈</div>
|
|
|
<div style="float: right;display: inline-block;" @click="feedBackClose"><svg-icon icon-class="float_反馈_icon_close" /></div><br>
|
|
|
<div style="display:inline-block;font-size: 10pt;color: #666666;margin-top: 20pt">反馈类型</div>
|
|
|
- <el-select v-model="feedBackForm.type" placeholder="请选择" size="small" style="margin-left:10pt;width: 78%;">
|
|
|
+ <el-select v-model="feedBackForm.feedbackType" placeholder="请选择" size="small" style="margin-left:10pt;width: 78%;">
|
|
|
<el-option
|
|
|
v-for="(item,index) in typeOptions"
|
|
|
:key="index"
|
|
|
:label="item"
|
|
|
- :value="item"
|
|
|
+ :value="index + 1"
|
|
|
/>
|
|
|
</el-select>
|
|
|
<div style="display:inline-block;font-size: 10pt;color: #666666;">反馈模块</div>
|
|
@@ -89,6 +89,7 @@
|
|
|
|
|
|
<script>
|
|
|
import imgUrl from '@/assets/home_images/客服群二维码.png'
|
|
|
+import { feedback } from '@/api/common.js'
|
|
|
|
|
|
export default {
|
|
|
name: 'FloatMenu',
|
|
@@ -100,7 +101,8 @@ export default {
|
|
|
QRCodeClassName: 'Float_icon_二维码',
|
|
|
display: 'display: none;',
|
|
|
feedBackForm: {
|
|
|
- type: '',
|
|
|
+ username: '',
|
|
|
+ feedbackType: '',
|
|
|
moduleName: '',
|
|
|
content: ''
|
|
|
},
|
|
@@ -125,7 +127,16 @@ export default {
|
|
|
this.display = 'display: none;'
|
|
|
},
|
|
|
feedbackSummit() {
|
|
|
- this.feedBackClose()
|
|
|
+ this.feedBackForm.username = localStorage.getItem('username')
|
|
|
+ feedback(this.feedBackForm)
|
|
|
+ .then(res => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.$message.success('提交反馈成功')
|
|
|
+ } else {
|
|
|
+ this.$message.error('提交反馈失败')
|
|
|
+ }
|
|
|
+ this.feedBackClose()
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|