软测宝小程序
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.
 
 
 
keysass_app/pages/personal/setup/companyMsg.vue

77 lines
1.5 KiB

<template>
<view class="companyMsg">
<view class="companyInfoBox">
<u-form :model="form" :rules="rules" ref="form" label-position='top' label-width='150'
border-bottom='false'>
<u-form-item label="公司简介:" prop="companyDesc" border>
<u-input type="textarea" height="500" border style="width:100%;" :disabled='istest'
v-model="form.companyDesc" placeholder='输入公司简介' />
</u-form-item>
</u-form>
<view class="descBtn" @click="saveCompanyDesc">
保存
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
form: {},
rules: {
companyDesc: [{
required: true,
message: '请输入公司简介',
trigger: ['blur'],
}]
}
}
},
onReady() {
this.$refs.form.setRules(this.rules)
},
methods: {
// 保存
saveCompanyDesc() {
this.$refs.form.validate().then(res => {
const data = {}
this.http.quickPost('/companyInfo/update', this.data).then(re => {
console.log(re);
})
}).catch(errors => {
})
}
}
}
</script>
<style lang="scss" scoped>
.companyMsg {
height: 100%;
padding: 25rpx;
box-sizing: border-box;
.companyInfoBox {
height: 100%;
padding: 30rpx 20rpx;
background: #FFFFFF;
}
}
.descBtn {
width: 100%;
height: 70rpx;
background: linear-gradient(90deg, #5EA6FD, #1A81F9);
border-radius: 35rpx;
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
line-height: 70rpx;
text-align: center;
margin-top: 50rpx;
}
</style>