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.
85 lines
1.8 KiB
85 lines
1.8 KiB
<template>
|
|
<view class="container">
|
|
<view class="main">
|
|
<uni-forms ref="valiForm" :rules="rules" :modelValue="form">
|
|
<!-- <uni-forms-item label="标题" required name="title">
|
|
<uni-easyinput v-model="form.title" :inputBorder="false" placeholder="请输入标题" />
|
|
</uni-forms-item> -->
|
|
<view style="font-size: 14px;color: #606266;margin-left: 10rpx;">提问公司:</view>
|
|
<view style="margin:20rpx 0 20rpx 40rpx;">11222</view>
|
|
<uni-forms-item label="问题" required name="content">
|
|
<uni-easyinput type="textarea" v-model="form.content" maxlength="-1" :inputBorder="false"
|
|
placeholder="请输入提问内容"></uni-easyinput>
|
|
</uni-forms-item>
|
|
</uni-forms>
|
|
</view>
|
|
<fixedButton :title="msg" :flag="flag" @click="backPage()"></fixedButton>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import fixedButton from '@/components/fixedButton/fixedButton.vue'
|
|
export default {
|
|
data() {
|
|
return {
|
|
flag: false,
|
|
// 校验规则
|
|
rules: {
|
|
title: {
|
|
rules: [{
|
|
required: true,
|
|
errorMessage: '标题不能为空'
|
|
}]
|
|
},
|
|
content: {
|
|
rules: [{
|
|
required: true,
|
|
errorMessage: '内容不能为空'
|
|
}],
|
|
},
|
|
},
|
|
msg: '提交',
|
|
form: {
|
|
//问题内容
|
|
content: '',
|
|
//企业信用代码
|
|
uniscid: '',
|
|
|
|
},
|
|
//企业名称
|
|
mainName: ''
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
},
|
|
|
|
methods: {
|
|
backPage() {
|
|
this.$refs.valiForm.validate().then(res => {
|
|
})
|
|
},
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.container {
|
|
padding: 30rpx 0 160rpx 0;
|
|
|
|
}
|
|
|
|
::v-deep .uni-easyinput__content-input {
|
|
padding-left: 0rpx !important;
|
|
}
|
|
|
|
.main {
|
|
width: 90%;
|
|
height: auto;
|
|
background-color: white;
|
|
border-radius: 14rpx;
|
|
margin: 0 auto;
|
|
padding: 20rpx;
|
|
}
|
|
</style> |