You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
<template>
|
|
<view class="table_index">
|
|
<uni-section title="建议与反馈" type="line"></uni-section>
|
|
<uni-forms :modelValue="formData">
|
|
<uni-forms-item label="手机" name="mobile">
|
|
<uni-easyinput type="text" v-model="formData.mobile" placeholder="请输入手机号码" />
|
|
</uni-forms-item>
|
|
<uni-forms-item required name="content" label="内容">
|
|
<uni-easyinput type="textarea" v-model="formData.content" placeholder="请输入您要反馈的内容" />
|
|
</uni-forms-item>
|
|
<button class="uni-button" size="mini" type="primary" @click="toTable">提交</button>
|
|
</uni-forms>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import { mapMutations, mapState } from 'vuex'
|
|
export default {
|
|
data() {
|
|
return {
|
|
formData: {
|
|
mobile: '',
|
|
content: '',
|
|
},
|
|
}
|
|
},
|
|
methods:{
|
|
toTable(){
|
|
console.log(this.formData.mobile);
|
|
console.log(this.formData.content);
|
|
},
|
|
setTable(mobile,content){
|
|
this.formData.mobile = mobile//获取到的名称
|
|
this.formData.content = content//获取到的单位名称
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
.table_index {
|
|
background-color: #fff;
|
|
height: 100%;
|
|
padding: 20px 30px;
|
|
}
|
|
.uni-button{
|
|
font-size: 18px;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
</style>
|