Opinion.vue 808 Bytes
<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>