|
|
@@ -23,6 +23,16 @@
|
|
|
<el-form-item prop="city">
|
|
|
<el-input placeholder="加盟城市" v-model="form.city"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item prop="project">
|
|
|
+ <el-select placeholder="合作项目" v-model="form.project">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in projectList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.title"
|
|
|
+ :value="item.title">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<div class="submit" @click="handleSubmit('ruleForm')">提交申请</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
@@ -150,16 +160,44 @@ export default {
|
|
|
trigger: "blur",
|
|
|
},
|
|
|
],
|
|
|
- email: [
|
|
|
- { required: true, message: "请输入邮箱地址", trigger: "blur" },
|
|
|
- {
|
|
|
- type: "email",
|
|
|
- message: "请输入正确的邮箱地址",
|
|
|
- trigger: ["blur", "change"],
|
|
|
- },
|
|
|
- ],
|
|
|
+ // email: [
|
|
|
+ // { required: true, message: "请输入邮箱地址", trigger: "blur" },
|
|
|
+ // {
|
|
|
+ // type: "email",
|
|
|
+ // message: "请输入正确的邮箱地址",
|
|
|
+ // trigger: ["blur", "change"],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
city: [{ required: true, message: "请输入加盟城市", trigger: "blur" }],
|
|
|
},
|
|
|
+ // 1-家庭(专柜)1-逻辑狗思维游戏HOME&PLUS馆 2-思维芯游戏室 2-“思维芯”四大课程体系 4-逻辑狗·探索小镇
|
|
|
+ projectList: [
|
|
|
+ {
|
|
|
+ id: 1,
|
|
|
+ value: 1,
|
|
|
+ title: '家庭(专柜)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ value: 1,
|
|
|
+ title: '逻辑狗思维游戏HOME&PLUS馆'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ value: 2,
|
|
|
+ title: '思维芯游戏室'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4,
|
|
|
+ value: 2,
|
|
|
+ title: '“思维芯”四大课程体系'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 5,
|
|
|
+ value: 4,
|
|
|
+ title: '逻辑狗·探索小镇'
|
|
|
+ }
|
|
|
+ ],
|
|
|
}
|
|
|
},
|
|
|
head() {
|
|
|
@@ -194,6 +232,16 @@ export default {
|
|
|
async handleSubmit(formName) {
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
+ // const index = this.projectList.findIndex(item => {
|
|
|
+ // return item.id === this.form.project;
|
|
|
+ // })
|
|
|
+ // if(index == -1) {
|
|
|
+ // this.$notify({
|
|
|
+ // title: '失败',
|
|
|
+ // message: '选择数据有误',
|
|
|
+ // type: 'info'
|
|
|
+ // });
|
|
|
+ // }
|
|
|
const { data } = await axios.post(`${this.$store.state.wordpressAPI}/official-api/joinIn`,{
|
|
|
...this.form
|
|
|
});
|