|
@@ -120,7 +120,7 @@
|
|
|
v-for="(item, index) in projectList"
|
|
v-for="(item, index) in projectList"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:label="item.title"
|
|
:label="item.title"
|
|
|
- :value="item.title">
|
|
|
|
|
|
|
+ :value="item.id">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -337,26 +337,32 @@ export default {
|
|
|
imgUrlSel: require("~/assets/images/cooperate/coopreate_03_sel@2x.png")
|
|
imgUrlSel: require("~/assets/images/cooperate/coopreate_03_sel@2x.png")
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
|
|
+ // 1-家庭(专柜)1-逻辑狗思维游戏HOME&PLUS馆 2-思维芯游戏室 2-“思维芯”四大课程体系 4-逻辑狗·探索小镇
|
|
|
projectList: [
|
|
projectList: [
|
|
|
{
|
|
{
|
|
|
id: 1,
|
|
id: 1,
|
|
|
- title: '逻辑狗·探索小镇'
|
|
|
|
|
|
|
+ value: 1,
|
|
|
|
|
+ title: '家庭(专柜)'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 2,
|
|
id: 2,
|
|
|
- title: '逻辑狗专柜'
|
|
|
|
|
|
|
+ value: 1,
|
|
|
|
|
+ title: '逻辑狗思维游戏HOME&PLUS馆'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 3,
|
|
id: 3,
|
|
|
- title: '逻辑狗思维体验Plus'
|
|
|
|
|
|
|
+ value: 2,
|
|
|
|
|
+ title: '思维芯游戏室'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 4,
|
|
id: 4,
|
|
|
- title: '逻辑狗思维体验Home'
|
|
|
|
|
|
|
+ value: 2,
|
|
|
|
|
+ title: '“思维芯”四大课程体系'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 5,
|
|
id: 5,
|
|
|
- title: '逻辑狗体验中心'
|
|
|
|
|
|
|
+ value: 4,
|
|
|
|
|
+ title: '逻辑狗·探索小镇'
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
rules: {
|
|
rules: {
|
|
@@ -369,14 +375,14 @@ export default {
|
|
|
trigger: "blur",
|
|
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" }],
|
|
city: [{ required: true, message: "请输入加盟城市", trigger: "blur" }],
|
|
|
project: [{ required: true, message: "请选择合作项目", trigger: "blur" }]
|
|
project: [{ required: true, message: "请选择合作项目", trigger: "blur" }]
|
|
|
},
|
|
},
|
|
@@ -408,6 +414,17 @@ export default {
|
|
|
async handleSubmit(formName) {
|
|
async handleSubmit(formName) {
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
|
+ // const index = this.projectList.findIndex(item => {
|
|
|
|
|
+ // return item.id === this.form.project;
|
|
|
|
|
+ // })
|
|
|
|
|
+ // if(index == -1) {
|
|
|
|
|
+ // this.$notify({
|
|
|
|
|
+ // title: '失败',
|
|
|
|
|
+ // message: '选择数据有误',
|
|
|
|
|
+ // type: 'info'
|
|
|
|
|
+ // });
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
this.disabled = true;
|
|
this.disabled = true;
|
|
|
const { data } = await axios.post(`${this.$store.state.wordpressAPI}/official-api/joinIn`,{
|
|
const { data } = await axios.post(`${this.$store.state.wordpressAPI}/official-api/joinIn`,{
|