diff --git a/src/components/site/ConfigAppInformation.vue b/src/components/site/ConfigAppInformation.vue index b6cd23d..888b492 100644 --- a/src/components/site/ConfigAppInformation.vue +++ b/src/components/site/ConfigAppInformation.vue @@ -8,10 +8,10 @@

- 1. 开发者令牌Developer token + 2. 开发者令牌Developer token 联系开户人员获取

- diff --git a/src/components/site/ConfigOffLineConversion.vue b/src/components/site/ConfigOffLineConversion.vue index f4fe53d..4e00d10 100644 --- a/src/components/site/ConfigOffLineConversion.vue +++ b/src/components/site/ConfigOffLineConversion.vue @@ -1,6 +1,6 @@ @@ -26,17 +26,14 @@ import GuipInput from '@/components/GuipInput.vue'; export default { // 站点设置 name: '', - props: [''], + props: ['siteInfo'], components: { GuipInput, // GuipFormItem, }, data() { return { - formConfig: { - id: '', - merchantID: '' - } + // localSiteInfo: { ...this.siteInfo } } }, computed: { @@ -46,7 +43,12 @@ export default { // store.commit('SET_PAGETITLE', '营销推广'); }, methods: { - + updateField(field, value) { + this.$emit('update-field', { + field, + value + }) + } } } diff --git a/src/components/site/CreateOffLine.vue b/src/components/site/CreateOffLine.vue index b720afb..bec0e5e 100644 --- a/src/components/site/CreateOffLine.vue +++ b/src/components/site/CreateOffLine.vue @@ -1,12 +1,15 @@ @@ -17,17 +20,14 @@ import GuipInput from '@/components/GuipInput.vue'; export default { // 站点设置 name: '', - props: [''], + props: ['siteInfo'], components: { GuipInput, // GuipFormItem, }, data() { return { - formConfig: { - id: '', - merchantID: '' - } + // localSiteInfo: { ...this.siteInfo } } }, computed: { @@ -37,7 +37,12 @@ export default { // store.commit('SET_PAGETITLE', '营销推广'); }, methods: { - + updateField(field, value) { + this.$emit('update-field', { + field, + value + }) + } } } diff --git a/src/views/agent/siteSemSetting.vue b/src/views/agent/siteSemSetting.vue index afc71fb..4ae40b3 100644 --- a/src/views/agent/siteSemSetting.vue +++ b/src/views/agent/siteSemSetting.vue @@ -38,8 +38,7 @@

搜索引擎竞价(SEM) 通过SEM设置,获得流量、提高网站在搜索引擎中的排名

- +

百度OCPC竞价 自动化的出价和优化,以实现更高的广告投放效果和ROI

@@ -87,7 +86,7 @@

- +

360OCPC竞价 自动化的出价和优化,以实现更高的广告投放效果和ROI

@@ -139,7 +138,7 @@

- +

必应TCPA竞价 自动化的出价和优化,以实现更高的广告投放效果和ROI

@@ -182,23 +181,32 @@

在微软云平台,获得应用程序(客户端) ID。并联系开户人员,获得开发者令牌Developer token

-
+
已设置 管理设置
+
+ 未设置 + 立即设置 +
配置离线转化信息 -

前往微软云,左上角切换有效的账户,从浏览器地址栏链接中获取aid的值和cid的值

+

前往微软广告,左上角切换有效的账户,从浏览器地址栏链接中获取aid的值和cid的值

-
+
+ 已设置 + 管理设置 +
+
未设置 立即设置 @@ -212,60 +220,53 @@

在微软云平台创建离线转化,创建成功后2个小时才生效,转化数据查看最晚有5-6小时延迟。

-
+
+ 已设置 + 立即设置 +
+
未设置 立即设置
-
+
-
- 登陆微软云 -

确认前3步完成,点击右侧“登录”按钮,登录微软云。

+
+ 登陆 +

确认前3步完成,点击右侧“登录”按钮。

+
+
+ 请先完善上方信息 +

确认前3步完成。

-
- 登录 +
+ 登录
-

访问统计 输入统计代码,便于统计浏览点击量(可以不填)

- - + + - +
- - - - {{ - bidAddList[key] }}{{ bidList.includes(key) ? '(已添加)' : '' }} - - - + - - - + + + @@ -313,20 +314,14 @@ export default { bing_conversion_name: '', bing_customer_account_id: '', bing_customer_id: '', - domain: "测试一下回显", bing_developer_token: '', + bing_isexist_accesstoken: false, + bing_authurl: '', }, bdurl: '', configType: '', diaTitle: '配置应用信息', - bidList: ['baidu', '360', 'mast'], - bidAddRadio: '', - bidAddList: { - 'baidu': '百度OCPC竞价', - '360': '360OCPC竞价', - 'mast': '必应TCPA竞价', - }, configTitle: { createOffline: '创建离线转化', configOffline: '配置离线转化信息', @@ -334,31 +329,9 @@ export default { }, dialogVisibleBid: false, dialogVisibleConfig: false, - semForm2: { - title: '', - keyWord: '', - desc: '' - }, - semForm3: { - code: '', - }, - semFormbid1: { - token: '', - url: '' - - }, - semFormbid2: { - appKey: '', - appSecret: '' - }, - - semFormbid3: { - - } } }, computed: { - ...mapState(['pageTitle']) // 从Vuex映射showSidebar状态到组件的计算属性中 }, created(){ @@ -377,19 +350,6 @@ export default { [field]: value } }, - postRequest(url, params, headers = { 'Auth': this.token }) { - this.$http('POST', url, params, { headers: headers }).then(response => { - this.$nextTick(() => { - if (response.status) { - this.$Message.success(response.info); - } else { - this.$Message.error(response.info); - } - }) - }).catch(error => { - console.error(error, 'error') - }) - }, // 获取站点信息 getSiteInfo() { const that = this @@ -491,25 +451,55 @@ export default { console.error(error, 'error') }) }, - cancleUpdateSiteInfo() { - this.getSiteInfo(); - }, - - addBid() { - this.dialogVisibleBid = true; - }, - semFormConmit(type, key) { - console.log(key, 'key---'); + saveBingTcpc() { + this.$http('POST', '/agentnew/ajax_save_bing_tcpa', { + uid: this.$route.query.uid, + client_id: this.siteInfo.bing_client_id, + developer_token: this.siteInfo.bing_developer_token, + customer_id: this.siteInfo.bing_customer_id, + customer_account_id: this.siteInfo.bing_customer_account_id, + conversion_name: this.siteInfo.bing_conversion_name + }, { + headers: { + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + if (response.status) { + this.$Message.success(response.info); + } else { + this.$Message.error(response.info); + } + }) + }).catch(error => { + console.error(error, 'error') + }) }, - radioChange(data) { - console.log(data, 'radio--data'); + saveSiteAccessStat() { + this.$http('POST', '/agentnew/ajax_update_site_access_stat', { + uid: this.$route.query.uid, + access_stats_code: this.siteInfo.access_stats_code, + }, { + headers: { + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + if (response.status) { + this.$Message.success(response.info); + } else { + this.$Message.error(response.info); + } + }) + }).catch(error => { + console.error(error, 'error') + }) }, - cancelClick() { - - console.log('quxiao'); + openLink(url) { + window.open(url, '_blank'); }, - confirmClick(type) { - console.log(type, '确认'); + cancleUpdateSiteInfo() { + this.getSiteInfo(); }, // 确认按钮事件 handleConfirm() { @@ -527,8 +517,9 @@ export default { }, // 确认按钮事件 handleConfirmConfig() { - console.log(this.siteInfo.bing_client_id,this.siteInfo.domain,'看一下修改数据'); + this.saveBingTcpc(); this.dialogVisibleConfig = false; + }, // 取消按钮事件 handleCancelConfig() { @@ -537,10 +528,6 @@ export default { dialogVisibleChange(data) { console.log(data, 'data098908090'); }, - deleteBid(type) { - let index = this.bidList.indexOf(type) - this.bidList.splice(index, index + 1) - } } }