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

修改channel

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