提交 eb73a085 authored 作者: matian's avatar matian

修改channel

上级 e790b3cc
......@@ -36,7 +36,7 @@ import * as api from '@/api'
export default {
data() {
return {
ruleForm: { name: '', phone: '', project_id: '1008', channel: 19960 },
ruleForm: { name: '', phone: '', project_id: '1008', channel: localStorage.getItem('channel_num') || 19960 },
projectList: [
{ label: '金融工商管理硕士', value: '1000' },
{ label: '本科 / 硕士课程', value: '1008' },
......
......@@ -7,9 +7,7 @@
@mouseleave="handleMsOut"
> -->
<app-link to="/my/account">
<li
:class="{ enroll: true, active: tabBtnActive && tabBtnTarget === 'enroll' }"
>
<li :class="{ enroll: true, active: tabBtnActive && tabBtnTarget === 'enroll' }">
<p>{{ $t('aside.apply') }}</p>
</li>
</app-link>
......@@ -54,11 +52,13 @@
</p>
<p class="sendcode">
<el-input v-model="sendCode" :placeholder="$t('aside.code')" size="small"></el-input
><el-button class="btn" :disabled="isBtnDisabled" id="checkedCode" @click="getSendCode"
>{{ $t('aside.codeBtn') }}</el-button
>
><el-button class="btn" :disabled="isBtnDisabled" id="checkedCode" @click="getSendCode">{{
$t('aside.codeBtn')
}}</el-button>
</p>
<p>
<el-button style="width: 100%" @click="submitEnroll">{{ $t('aside.formBtn') }}</el-button>
</p>
<p><el-button style="width: 100%" @click="submitEnroll">{{ $t('aside.formBtn') }}</el-button></p>
</div>
<div class="wx_cont" v-show="tabBtnTarget === 'wx'">
<h5>{{ $t('aside.follow') }}</h5>
......@@ -137,7 +137,7 @@ export default {
},
enrollQuery() {
const params = {
channel: 19960,
channel: localStorage.getItem('channel_num') || 19960,
project_id: this.formInfo.newProjectId,
name: this.formInfo.name,
phone: this.formInfo.phone
......
......@@ -4,6 +4,11 @@
<script>
import AppLayout from '@/components/layout'
export default {
components: { AppLayout }
components: { AppLayout },
mounted() {
if (this.$route.query.channel_num) {
localStorage.setItem('channel_num', this.$route.query.channel_num)
}
}
}
</script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论