提交 4d0e218b authored 作者: 郑伟娜's avatar 郑伟娜

优化接口

上级 b2fd98ea
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
xhttp.open("post", '//'+ ssa +'/api/v1/channelSite/domain/info', true); xhttp.open("post", '//'+ ssa +'/api/v1/channelSite/domain/info', true);
let data = { let data = {
domain: ssa, domain: ssa,
type: 2, type: 1,
site_type: 4 site_type: 4
} }
xhttp.send(JSON.stringify(data)); xhttp.send(JSON.stringify(data));
......
...@@ -23,7 +23,7 @@ export function getdomain(params) { ...@@ -23,7 +23,7 @@ export function getdomain(params) {
// 获取官网设置接口 // 获取官网设置接口
export function webSite(data) { export function webSite(data) {
return request({ return request({
url: '//sysapi.jxhh.com/api/v1/channelSite/info', url: '//sysapi.jxhh.com/api/v1/channelSite/domain/info',
// url: '//192.168.26.179:6601/api/v1/oem/common/counsel', // url: '//192.168.26.179:6601/api/v1/oem/common/counsel',
// url: '//newsys.jxhh.com/api/v1/oem/common/counsel', // url: '//newsys.jxhh.com/api/v1/oem/common/counsel',
method: 'post', method: 'post',
......
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
watch: { watch: {
channelInfo() { channelInfo() {
if (this.channelInfo) { if (this.channelInfo) {
this.channel_id = this.channelInfo.channel.id this.channel_id = this.channelInfo.channel_site[0].channel_id
} }
}, },
}, },
......
...@@ -634,7 +634,7 @@ ...@@ -634,7 +634,7 @@
if (res.code == 1) { if (res.code == 1) {
this.ssourl = res.data.channel_site[0].domain this.ssourl = res.data.channel_site[0].domain
this.channel_id = res.data.channel.id this.channel_id = res.data.channel_site[0].channel_id
this.keyTitle = res.data.channel_site[0].title; this.keyTitle = res.data.channel_site[0].title;
this.keyWords = res.data.channel_site[0].keywords; this.keyWords = res.data.channel_site[0].keywords;
this.keyDescriptions = res.data.channel_site[0].describe; this.keyDescriptions = res.data.channel_site[0].describe;
...@@ -670,7 +670,7 @@ ...@@ -670,7 +670,7 @@
} }
indexInfo(data).then(res => { indexInfo(data).then(res => {
if (res.code == 1) { if (res.code == 1) {
this.channel_id = res.data.channel.id this.channel_id = res.data.channel_site[0].channel_id
this.keyTitle = res.data.channel_site[0].title; this.keyTitle = res.data.channel_site[0].title;
this.keyWords = res.data.channel_site[0].keywords; this.keyWords = res.data.channel_site[0].keywords;
this.keyDescriptions = res.data.channel_site[0].describe; this.keyDescriptions = res.data.channel_site[0].describe;
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
let op = 'open' let op = 'open'
let ssa = window.location.host let ssa = window.location.host
const data = { const data = {
type: 2, type: 1,
site_type: 4, site_type: 4,
// domain: ssa, // domain: ssa,
} }
......
...@@ -408,7 +408,7 @@ ...@@ -408,7 +408,7 @@
getChannelId() { getChannelId() {
let ssa = window.location.host let ssa = window.location.host
const data = { const data = {
type: 2, type: 1,
site_type: 4, site_type: 4,
// domain: ssa, // domain: ssa,
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论