Opinion.vue
808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<template>
<view class="page">
<view class="feedback-data">
<view class="content">
<textarea value="" v-model="form.content" placeholder="请输入您的意见/投诉信息" />
</view>
</view>
<view class="submit-btn" @click="submit">
<text>提交</text>
</view>
</view>
</template>
<script>
import BASE_URL from '@/common/config.js'
export default {
components: {
},
data() {
return {
BASE_URL,
form: {
content: "",
},
};
},
onLoad() {
},
methods: {
submit() {
this.API.Createtbidea(this.form).then(res => {
if (res.code == 200) {
uni.showToast({
title: '感谢您的反馈!',
icon: 'none'
});
}
});
},
}
}
</script>
<style scoped lang="scss">
@import 'Opinion.scss';
</style>