提交 49cf4561 authored 作者: matian's avatar matian

修改channel

上级 cf8d6e94
......@@ -101,27 +101,26 @@ export default {
},
enrollQuery() {
const params = {
channel: 19960,
channel: window.localStorage.getItem('channel_num') || 19960,
project_id: this.formInfo.projectId,
name: this.formInfo.name,
phone: this.formInfo.phone
}
return new Promise((resolve, reject) => {
cAction.News.postNes(params)
.then(res => {
if (res && res.status === 200 && res.error === 0) {
resolve({
type: 'enroll',
state: 'success'
})
} else {
reject({
type: 'enroll',
state: 'fail',
msg: res.message || '报名提交失败'
})
}
})
cAction.News.postNes(params).then(res => {
if (res && res.status === 200 && res.error === 0) {
resolve({
type: 'enroll',
state: 'success'
})
} else {
reject({
type: 'enroll',
state: 'fail',
msg: res.message || '报名提交失败'
})
}
})
})
},
getSendCode() {
......@@ -188,7 +187,7 @@ export default {
top: 50%;
right: 10px;
z-index: 9999;
transform:translateY(-50%);
transform: translateY(-50%);
.tab_btns {
width: 72px;
height: 136px;
......@@ -288,10 +287,10 @@ export default {
.right_bar .sendcode .el-input {
width: 170px;
}
.right_bar .el-button{
.right_bar .el-button {
background: #ff8e1a;
border:#ff8e1a 1px solid;
color:rgba(255,255,255,.9);
border: #ff8e1a 1px solid;
color: rgba(255, 255, 255, 0.9);
}
.sendcode .el-button {
width: 94px;
......
......@@ -39,7 +39,7 @@ export default {
ruleForm: {
name: '',
phone: '',
channel: 19960,
channel: window.localStorage.getItem('channel_num') || 19960,
project_id: 1005
},
isLoading: false,
......
......@@ -35,7 +35,6 @@ window.Promise = Promise
* 使用 vue自带事件 $emit 和 $on 进行发布订阅
*/
Vue.prototype.VueEvent = new Vue()
/* 创建实例之前,通过导航守卫,处理部分逻辑,如:是否直接进入系统 */
const before = createBefore()
/* 导航守卫 */
......@@ -43,7 +42,9 @@ router.beforeEach(async (to, from, next) => {
await store.dispatch('generateRoutes')
before.update(to, from, next)
})
if (window.location.search.includes('channel_num')) {
window.localStorage.setItem('channel_num', window.location.search.slice(13))
}
window.G.$instance_vue = new Vue({
router,
store,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论