添加@映射、路由改为懒加载、报名表验证中将建议改为非必选项、

main
hcj 7 months ago
parent da1431dcb2
commit 10528a725b
  1. 2
      .env.development
  2. 4
      .env.production
  3. 2
      src/config/teacherTrain.js
  4. 5
      src/page/homepage/traininstitute/teacherSign.vue
  5. 79
      src/router/router.js
  6. 6
      vue.config.js

@ -5,7 +5,7 @@ ENV = 'development'
VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_TARGET = 'http://192.168.0.230:9999'
VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999'
# VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999'
# VUE_APP_BASE_TARGET = 'http://172.16.36.176:9998'

@ -9,6 +9,6 @@ VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_TARGET = 'https://www.keyitest.cn/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api'
VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://192.168.0.230:9999'
VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'

@ -2,7 +2,7 @@ const teachTrainData = [
{
time: "8月5号",
content: [
"政府、高校领导行业动态分享。"
"政府、高校及企业领导分享行业动态。"
]
},
{

@ -76,7 +76,10 @@ export default {
this.detailForm.map((it) => {
if (it.type == 'radio') {
this.rules[it.key] = { required: true, message: `请选择一项`, trigger: 'change' }
} else {
}else if(it.key == 'suggestion'){
// this.rules[it.key] = { required: true, message: ``, trigger: 'change' }
}
else {
this.rules[it.key] = { required: true, message: `请输入${it[it.key]}`, trigger: 'blur' }
}
})

@ -3,46 +3,45 @@ import Router from 'vue-router'
import store from "@/store";
// import { Message,MessageBox } from 'element-ui'
//自定义组件
import login from "../page/logpage/log/login.vue"
import index from "../page/homepage/index.vue"
import home from "../page/homepage/home/home.vue"
import toolmarker from "../page/homepage/tool/toolmarker.vue"
import tooldetails from "../page/homepage/tool/tooldetails.vue"
import crowd from "../page/homepage/crowdsourcing/crowd.vue"
import crowddetails from "../page/homepage/crowdsourcing/crowddetails.vue"
import userhome from "../page/homepage/crowdsourcing/userhome.vue"
import publishtasks from "../page/homepage/crowdsourcing/publishtasks.vue"
import train from "../page/homepage/traininstitute/train.vue"
import teacherSign from "../page/homepage/traininstitute/teacherSign.vue"
import teacherDetail from "../page/homepage/traininstitute/teacherDetail.vue"
import ability from "../page/homepage/personability/ability.vue"
import abilityUser from "../page/homepage/personability/abilityUser.vue"
import abilityUserD from "../page/homepage/personability/abilityUserDetail.vue"
import abilityMore from "../page/homepage/personability/abilityMore.vue"
import abilityMoreDetail from "../page/homepage/personability/abilityMoreDetail.vue"
import abilityApply from "../page/homepage/personability/abilityApply.vue"
import aboutwo from "../page/homepage/aboutus/aboutwo.vue"
import personal from "../page/personalpage/index.vue"
import personalcenter from "../page/personalpage/home/personalcenter.vue"
import resume from "../page/personalpage/home/resume.vue"
import stationmessage from "../page/personalpage/home/stationmessage.vue"
import myorder from "../page/personalpage/testtool/myorder.vue"
import mytask from "../page/personalpage/testmanagement/mytask.vue"
import mytool from "../page/personalpage/testmanagement/mytool.vue"
import myparticipate from "../page/personalpage/testcrowd/myparticipate.vue"
import myrelease from "../page/personalpage/testcrowd/myrelease.vue"
import edittasks from "../page/personalpage/testcrowd/edittasks.vue"
import testKit from "../page/personalpage/testtreasure/testKit.vue"
import demand from "../page/personalpage/demand/index.vue"
import myreview from '../page/personalpage/myreview/index.vue'
import myBm from '../page/personalpage/myBm/index.vue'
import currentcrowd from "../page/personalpage/testcrowd/currentcrowd.vue"
import jobM from '../page/personalpage/jobm/job.vue'
import addJob from '../page/personalpage/jobm/addjob.vue'
import jobUser from '../page/personalpage/jobm/jobuser.vue'
import jobuserDetail from '../page/personalpage/jobm/userdetail.vue'
import login from "@/page/logpage/log/login.vue"
// import index from "@/page/homepage/index.vue"
const index = () => import("@/page/homepage/index.vue")
const home = () => import("@/page/homepage/home/home.vue")
const toolmarker = () => import("@/page/homepage/tool/toolmarker.vue")
const tooldetails = () => import("@/page/homepage/tool/tooldetails.vue")
const crowd = () => import("@/page/homepage/crowdsourcing/crowd.vue")
const crowddetails = () => import("@/page/homepage/crowdsourcing/crowddetails.vue")
const userhome = () => import("@/page/homepage/crowdsourcing/userhome.vue")
const publishtasks = () => import("@/page/homepage/crowdsourcing/publishtasks.vue")
const train = () => import("@/page/homepage/traininstitute/train.vue")
const teacherSign = () => import("@/page/homepage/traininstitute/teacherSign.vue")
const teacherDetail = () => import("@/page/homepage/traininstitute/teacherDetail.vue")
const ability = () => import("@/page/homepage/personability/ability.vue")
const abilityUser = () => import("@/page/homepage/personability/abilityUser.vue")
const abilityUserD = () => import("@/page/homepage/personability/abilityUserDetail.vue")
const abilityMore = () => import("@/page/homepage/personability/abilityMore.vue")
const abilityMoreDetail = () => import("@/page/homepage/personability/abilityMoreDetail.vue")
const abilityApply = () => import("@/page/homepage/personability/abilityApply.vue")
const aboutwo = () => import("@/page/homepage/aboutus/aboutwo.vue")
const personal = () => import("@/page/personalpage/index.vue")
const personalcenter = () => import("@/page/personalpage/home/personalcenter.vue")
const resume = () => import("@/page/personalpage/home/resume.vue")
const stationmessage = () => import("@/page/personalpage/home/stationmessage.vue")
const myorder = () => import("@/page/personalpage/testtool/myorder.vue")
const mytask = () => import("@/page/personalpage/testmanagement/mytask.vue")
const mytool = () => import("@/page/personalpage/testmanagement/mytool.vue")
const myparticipate = () => import("@/page/personalpage/testcrowd/myparticipate.vue")
const myrelease = () => import("@/page/personalpage/testcrowd/myrelease.vue")
const edittasks = () => import("@/page/personalpage/testcrowd/edittasks.vue")
const testKit = () => import("@/page/personalpage/testtreasure/testKit.vue")
const demand = () => import("@/page/personalpage/demand/index.vue")
const myreview = () => import('@/page/personalpage/myreview/index.vue')
const myBm = () => import('@/page/personalpage/myBm/index.vue')
const currentcrowd = () => import("@/page/personalpage/testcrowd/currentcrowd.vue")
const jobM = () => import('@/page/personalpage/jobm/job.vue')
const addJob = () => import('@/page/personalpage/jobm/addjob.vue')
const jobUser = () => import('@/page/personalpage/jobm/jobuser.vue')
const jobuserDetail = () => import('@/page/personalpage/jobm/userdetail.vue')
Vue.use(Router)
//为组件配置路径

@ -1,4 +1,5 @@
const webpack = require('webpack')
const path = require('path')
/**
* 配置参考:
* https://cli.vuejs.org/zh/config/
@ -39,6 +40,11 @@ module.exports = {
// }
},
configureWebpack: {
resolve:{
alias:{
'@':path.resolve(__dirname,'src')
}
},
plugins: [
//
new webpack.ProvidePlugin({

Loading…
Cancel
Save