提交 068db53c authored 作者: lihuihui's avatar lihuihui

update

上级 cd2c8b54
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
} }
}, },
async fetch() { async fetch() {
const params = { project_id: process.env.projectId, type_tag: 'ad_banner' } const params = { project_id: process.env.newProjectId, type_tag: 'ad_banner' }
this.list = await this.$axios.get('/api/cms/api/v1/advertisements', { params }).then(res => res.data.data) this.list = await this.$axios.get('/api/cms/api/v1/advertisements', { params }).then(res => res.data.data)
}, },
......
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
AppLink AppLink
}, },
async fetch() { async fetch() {
const params = { project_id: process.env.projectId, type_tag: 'article_news_hot', page: 1, limit: 4 } const params = { project_id: process.env.newProjectId, type_tag: 'article_news_hot', page: 1, limit: 4 }
await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => { await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => {
this.data = res.data.data || [] this.data = res.data.data || []
}) })
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
} }
}, },
async fetch() { async fetch() {
const params = { project_id: process.env.projectId, type_tag: 'article_publish_class' } const params = { project_id: process.env.newProjectId, type_tag: 'article_publish_class' }
this.listData = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data) this.listData = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data)
}, },
computed: { computed: {
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
name: '', name: '',
phone: '', phone: '',
// channel: 19960, // channel: 19960,
project_id: process.env.projectId project_id: process.env.newProjectId
}, },
value: '', value: '',
titleParams: { titleParams: {
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
} }
}, },
async fetch() { async fetch() {
const params = { project_id: process.env.projectId, type_tag: 'kelley_alumni_share' } const params = { project_id: process.env.newProjectId, type_tag: 'kelley_alumni_share' }
this.listData = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data) this.listData = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data)
}, },
computed: { computed: {
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
}, },
async fetch() { async fetch() {
const params = { const params = {
project_id: process.env.projectId, project_id: process.env.newProjectId,
type_tag: 'article_news_hot', type_tag: 'article_news_hot',
is_recommend: 1, is_recommend: 1,
page: 1, page: 1,
......
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
<!-- <p><el-input v-model="projectName" size="small" :readonly="true"></el-input></p> --> <!-- <p><el-input v-model="projectName" size="small" :readonly="true"></el-input></p> -->
<p> <p>
<el-input v-model="projectName" placeholder="请输入您的电话" size="small" disabled></el-input> <el-input v-model="projectName" placeholder="请输入您的电话" size="small" disabled></el-input>
<!-- <select name="" id="" v-model="formInfo.projectId" disabled> <!-- <select name="" id="" v-model="formInfo.newProjectId" disabled>
<option :value="item.value" v-for="(item, index) in projectList" :key="index">{{ item.label }}</option> <option :value="item.value" v-for="(item, index) in projectList" :key="index">{{ item.label }}</option>
</select> --> </select> -->
<!-- <span class="icon el-icon-arrow-down"></span> --> <!-- <span class="icon el-icon-arrow-down"></span> -->
<!-- <el-select v-model="formInfo.projectId" placeholder="请选择" size="small"> <!-- <el-select v-model="formInfo.newProjectId" placeholder="请选择" size="small">
<el-option <el-option
v-for="item in projectList" v-for="item in projectList"
:key="item.value" :key="item.value"
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
enrollQuery() { enrollQuery() {
const params = { const params = {
channel: 19960, channel: 19960,
project_id: this.formInfo.projectId, project_id: this.formInfo.newProjectId,
name: this.formInfo.name, name: this.formInfo.name,
phone: this.formInfo.phone phone: this.formInfo.phone
} }
......
...@@ -6,7 +6,8 @@ let config = {} ...@@ -6,7 +6,8 @@ let config = {}
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
config = { config = {
env: { env: {
projectId: '6805762100502200320', projectId: '1012',
newProjectId: '6805762100502200320',
baseURL: 'https://project-api.ezijing.com', baseURL: 'https://project-api.ezijing.com',
loginURL: 'https://login.ezijing.com/auth' loginURL: 'https://login.ezijing.com/auth'
}, },
...@@ -15,7 +16,8 @@ if (process.env.NODE_ENV === 'production') { ...@@ -15,7 +16,8 @@ if (process.env.NODE_ENV === 'production') {
} else { } else {
config = { config = {
env: { env: {
projectId: '6805762100502200320', projectId: '1012',
newProjectId: '6805762100502200320',
baseURL: 'https://project-api.ezijing.com', baseURL: 'https://project-api.ezijing.com',
loginURL: 'https://login.ezijing.com/auth' loginURL: 'https://login.ezijing.com/auth'
}, },
......
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
newsItem newsItem
}, },
async fetch() { async fetch() {
const params = { project_id: process.env.projectId, type_tag: 'kelley_alumni_share' } const params = { project_id: process.env.newProjectId, type_tag: 'kelley_alumni_share' }
this.newsList = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data) this.newsList = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data)
}, },
data() { data() {
......
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
newsItem newsItem
}, },
async fetch() { async fetch() {
const params = { project_id: process.env.projectId, type_tag: this.$route.query.type || 'article_news_hot' } const params = { project_id: process.env.newProjectId, type_tag: this.$route.query.type || 'article_news_hot' }
this.newsList = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data) this.newsList = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data)
}, },
data() { data() {
......
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
newsItem newsItem
}, },
async fetch() { async fetch() {
const params = { project_id: process.env.projectId, type_tag: 'kelley_interview' } const params = { project_id: process.env.newProjectId, type_tag: 'kelley_interview' }
this.newsList = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data) this.newsList = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => res.data.data)
}, },
data() { data() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论