Browse Source

feat(market): 添加线索标题字段并更新表单验证规则

- 在线索添加页面中增加线索标题输入框
- 更新表单验证规则,添加线索标题的必填验证
- 在 formData 中初始化线索标题字段
master
liutong 12 months ago
parent
commit
22c171784d
  1. 14
      pages/market/clue/add_clues.vue

14
pages/market/clue/add_clues.vue

@ -12,6 +12,14 @@
<view class="title" style="margin-top: 20rpx;">基础信息</view>
<view class="input-style">
<fui-form-item label="线索标题" asterisk asteriskPosition="right" labelSize='26' prop="title"
background='#434544' labelColor='#fff' :bottomBorder='false'>
<view class="input-title" style="margin-right:14rpx;">
<fui-input :borderBottom="false" :padding="[0]" placeholder="点击填写" v-model="formData.title"
backgroundColor="#434544" size="26" color="#fff"></fui-input>
</view>
</fui-form-item>
<fui-form-item label="来源渠道" asterisk asteriskPosition="right" labelSize='26' prop="" background='#434544'
labelColor='#fff' :bottomBorder='false'>
<view class="input-title" style="margin-right:14rpx;">
@ -187,6 +195,11 @@ const rules = [
rule: ["required"],
msg: ["请输入学员姓名"]
},
{
name: "title",
rule: ["required"],
msg: ["请输入线索标题"]
},
{
name: "student_phone",
rule: ["required", "isMobile"],
@ -253,6 +266,7 @@ export default {
//
formData: {
title:'',//线
sex:'1',//|0=,1=,2=
student_name: '',//*
student_phone: '',//*

Loading…
Cancel
Save