From 4ff7c0de27a4b80f000dd105d7334737ceafb87a Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Thu, 31 Jul 2025 11:19:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=AF=B7=E6=B1=82=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Page2.vue | 7 +- src/components/SliderMenu.vue | 6 - src/components/bindGoods.vue | 8 - src/components/domainAdd.vue | 21 -- src/components/domainBind.vue | 10 +- src/components/pay/addPay.vue | 20 -- src/components/site/addSiteStep/step1.vue | 13 +- src/components/site/addSiteStep/step2.vue | 26 +- src/components/site/addSiteStep/step3.vue | 25 +- src/components/site/serviceSetting/domainSet.vue | 7 +- src/components/site/serviceSetting/linkSet.vue | 7 +- .../site/serviceSetting/menuColorSet.vue | 8 +- src/components/site/serviceSetting/paymentSet.vue | 7 +- src/components/site/serviceSetting/priceSet.vue | 29 -- .../site/serviceSetting/reportSeoSet.vue | 7 +- src/components/site/serviceSetting/showSet.vue | 2 - .../site/serviceSetting/submitSeoSet.vue | 7 +- src/components/site/serviceSetting/syncPrice.vue | 9 - src/components/site/serviceSetting/valueAdded.vue | 13 - src/store/index.js | 14 +- src/style/franchise.scss | 4 +- src/views/Franchise.vue | 319 --------------------- src/views/agent/Franchise.vue | 319 +++++++++++++++++++++ src/views/agent/checkOrderList.vue | 30 +- src/views/agent/domainList.vue | 28 +- src/views/agent/home.vue | 101 ++----- src/views/agent/noticeList.vue | 24 +- src/views/agent/ocpcList.vue | 6 - src/views/agent/payCertSetting.vue | 40 +-- src/views/agent/payInfoSetting.vue | 18 -- src/views/agent/payList.vue | 34 --- src/views/agent/paySetting.vue | 14 - src/views/agent/siteAdd.vue | 8 +- src/views/agent/siteBaseSetting.vue | 32 +-- src/views/agent/siteList.vue | 18 -- src/views/agent/siteMobileSetting.vue | 34 --- src/views/agent/sitePersonalization.vue | 36 +-- src/views/agent/siteSemSetting.vue | 30 -- src/views/agent/siteServiceAdd.vue | 48 +--- src/views/agent/siteServiceEdit.vue | 10 - src/views/agent/siteServiceList.vue | 24 +- src/views/agent/siteTemplate.vue | 26 +- src/views/agent/supplyList.vue | 6 - src/views/demoPage.vue | 6 +- src/views/super/Ranking/Ranking.vue | 1 - 45 files changed, 409 insertions(+), 1053 deletions(-) delete mode 100644 src/views/Franchise.vue create mode 100644 src/views/agent/Franchise.vue diff --git a/src/components/Page2.vue b/src/components/Page2.vue index 6a4ddd7..a56deab 100644 --- a/src/components/Page2.vue +++ b/src/components/Page2.vue @@ -75,7 +75,6 @@ export default { totalRecords: 0, buttonType: '', totalPages: 1, - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', } }, computed: { @@ -152,11 +151,7 @@ export default { console.log('-----执行了'); this.$emit('changeLoad', true) try { - this.$http('POST', this.apiUrl, this.buildParams(), { - headers: { - 'Auth': this.token - } - }).then(response => { + this.$http('POST', this.apiUrl, this.buildParams()).then(response => { const data = response.data this.hasNextPage = data.is_has_next_page this.minId = data.minid || null diff --git a/src/components/SliderMenu.vue b/src/components/SliderMenu.vue index 8cbd0d6..0c78e37 100644 --- a/src/components/SliderMenu.vue +++ b/src/components/SliderMenu.vue @@ -67,8 +67,6 @@ export default { }, data() { return { - // AUTH - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', isCollapse: false, routerList: [], currentMenuItem:'', @@ -93,10 +91,6 @@ export default { getSiteNo() { const that = this that.$http('POST', '/agentnew/ajax_get_site_no', { - },{ - headers:{ - 'Auth': this.token - } }).then(response => { if(response.status && response.data){ that.$nextTick(() => { diff --git a/src/components/bindGoods.vue b/src/components/bindGoods.vue index 1305a8e..eef46a4 100644 --- a/src/components/bindGoods.vue +++ b/src/components/bindGoods.vue @@ -61,10 +61,6 @@ export default { uid: that.uid, type: that.type, bind_list: that.bindData, - }, { - headers: { - 'Auth': this.token - } }).then(response => { if(response.status){ that.$message.success('绑定成功'); @@ -89,10 +85,6 @@ export default { keywords: that.keywords, pdd_pati: that.pdd_pati, pdd_pagecode: that.pdd_pagecode, - }, { - headers: { - 'Auth': this.token - } }).then(response => { that.loading = true if(response.status){ diff --git a/src/components/domainAdd.vue b/src/components/domainAdd.vue index d157561..90b92bc 100644 --- a/src/components/domainAdd.vue +++ b/src/components/domainAdd.vue @@ -65,10 +65,6 @@ export default { type: Boolean, default: false }, - authToken: { - type: String, - default: '' - }, }, components: { GuipButton, @@ -77,8 +73,6 @@ export default { }, data(){ return { - // AUTH - token: '', dalogVisibleAddDomain: false, formData: { domain: '', @@ -109,9 +103,6 @@ export default { dialogVisible(newVal) { this.$emit('update:visible', newVal); }, - authToken(newVal) { - this.token = newVal; - }, }, mounted(){ @@ -147,10 +138,6 @@ export default { const that = this that.$http('POST', '/agentnew/ajax_check_dns', { domain: that.formData.domain - }, { - headers: { - 'Auth': this.token - } }).then(response => { if(response.status){ that.step1 = 2 @@ -168,10 +155,6 @@ export default { const that = this that.$http('POST', '/agentnew/ajax_check_beian', { domain: that.formData.domain - },{ - headers:{ - 'Auth': this.token - } }).then(response => { if(response.status){ that.addDomain() @@ -188,10 +171,6 @@ export default { that.$http('POST', '/agentnew/ajax_add_domain', { domain: that.formData.domain, beian: that.formData.beian - },{ - headers:{ - 'Auth': this.token - } }).then(response => { if(response.status){ this.init(); diff --git a/src/components/domainBind.vue b/src/components/domainBind.vue index 95b47f1..43465c2 100644 --- a/src/components/domainBind.vue +++ b/src/components/domainBind.vue @@ -27,7 +27,7 @@ - + - \ No newline at end of file diff --git a/src/views/agent/Franchise.vue b/src/views/agent/Franchise.vue new file mode 100644 index 0000000..ba21fec --- /dev/null +++ b/src/views/agent/Franchise.vue @@ -0,0 +1,319 @@ + + + \ No newline at end of file diff --git a/src/views/agent/checkOrderList.vue b/src/views/agent/checkOrderList.vue index 43134d8..05f5b06 100644 --- a/src/views/agent/checkOrderList.vue +++ b/src/views/agent/checkOrderList.vue @@ -279,8 +279,6 @@ export default { return { pageTab: 'check', pageTitle: '查重订单', - // AUTH - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', // 表格加载 tableLoading: false, // 订单列表 @@ -430,10 +428,6 @@ export default { getConfig() { this.$http('POST', '/agentnew/get_agent_config', { - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { @@ -461,11 +455,7 @@ export default { ...params } console.log(requestParams, 'requestParams==='); - this.$http('POST', '/agentnew/ajax_get_check_order_list', requestParams, { - headers: { - 'Auth': this.token - } - }).then(response => { + this.$http('POST', '/agentnew/ajax_get_check_order_list', requestParams).then(response => { this.tableLoading = false this.$nextTick(() => { if (this.intervalId && response.data.maxid && this.orderListPrevMaxId && response.data.maxid > this.orderListPrevMaxId) { @@ -519,9 +509,6 @@ export default { this.$http('GET', '/agentnew/export_order', params, { returnFullResponse: true, - headers: { - 'Auth': this.token, - }, responseType: 'blob' }).then(response => { const { @@ -580,10 +567,6 @@ export default { changeReportNameFormat() { this.$http('POST', '/agentnew/ajax_set_report_name_format', { report_name_format: this.reportNameFormat, - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { @@ -605,10 +588,6 @@ export default { confirmDelReport() { this.$http('POST', '/agentnew/ajax_del_report', { saleid: this.delReportId, - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { @@ -651,9 +630,6 @@ export default { uid: this.pddExportUid, }, { returnFullResponse: true, - headers: { - 'Auth': this.token, - }, responseType: 'blob' }).then(response => { const { @@ -681,10 +657,6 @@ export default { } else if (this.pddSettingActiveName == 2) { this.$http('POST', '/agentnew/ajax_set_pdd_delivered_delayed_submit_hour', { hour: this.selectAllowPddDeliveredDelayedSubmit === true ? this.pddDeliveredDelayedSubmitHour : 0, - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { diff --git a/src/views/agent/domainList.vue b/src/views/agent/domainList.vue index 0297a6b..57442da 100644 --- a/src/views/agent/domainList.vue +++ b/src/views/agent/domainList.vue @@ -88,7 +88,7 @@ - + @@ -109,9 +109,7 @@ export default { }, data() { return { - // AUTH - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', - // 域名列表 + // 域名列表 domainList: [], // 表格加载 tableLoading: false, @@ -131,7 +129,6 @@ export default { }, isShowAddDomainDialog: false, - authToken: '', } }, computed: { @@ -148,10 +145,6 @@ export default { that.payList = [] this.$http('POST', '/agentnew/ajax_get_private_domain_list', { gid: this.gid, - },{ - headers:{ - 'Auth': this.token - } }).then(response => { this.tableLoading = false this.$nextTick(() => { @@ -165,10 +158,6 @@ export default { applyHttpsCert() { this.$http('POST', '/agentnew/ajax_apply_https_cert', { domain: this.applyHttpsDomain.domain, - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { @@ -209,10 +198,6 @@ export default { getHttpsDnsTxt(getHttpsDnsTxt) { this.$http('POST', '/agentnew/ajax_get_https_dns_txt', { keys: getHttpsDnsTxt - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { @@ -247,10 +232,6 @@ export default { verifyHttpsCertDns() { this.$http('POST', '/agentnew/ajax_verify_https_cert_dns', { domain: this.applyHttpsDomain.domain - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { @@ -277,10 +258,6 @@ export default { getVerifyHttpsCertDnsResult(keys) { this.$http('POST', '/agentnew/ajax_get_verify_https_cert_dns_result', { keys: keys - }, { - headers: { - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { if (response.status) { @@ -373,7 +350,6 @@ export default { }, showAddDomainDialog() { this.isShowAddDomainDialog = true; - this.authToken = this.token; }, handleEvent(data) { if(data.domain){ diff --git a/src/views/agent/home.vue b/src/views/agent/home.vue index 4c9837a..256ac45 100644 --- a/src/views/agent/home.vue +++ b/src/views/agent/home.vue @@ -170,8 +170,6 @@ export default { name: 'HomeView', data() { return { - // AUTH - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', // 表格加载 tableLoading: true, type2name:[], @@ -248,13 +246,7 @@ export default { this.tableLoading = true const that = this that.serviceList = [] - this.$http('POST', '/agentnew/ajax_get_supply_services', { - - },{ - headers:{ - 'Auth': this.token - } - }).then(response => { + this.$http('POST', '/agentnew/ajax_get_supply_services', {}).then(response => { this.tableLoading = false this.$nextTick(() => { that.serviceList = response.data.list @@ -270,64 +262,40 @@ export default { }) }, getSaleStats() { - this.$http('POST', '/agentnew/ajax_get_sale_stats', { - - },{ - headers:{ - 'Auth': this.token - } - }).then(response => { - this.$nextTick(() => { - this.saleStats = response.data - }) - }).catch(error => { - console.error(error, 'error') + this.$http('POST', '/agentnew/ajax_get_sale_stats', {}).then(response => { + this.$nextTick(() => { + this.saleStats = response.data }) + }).catch(error => { + console.error(error, 'error') + }) }, getExpireServices() { - this.$http('POST', '/agentnew/ajax_get_expire_services', { - - },{ - headers:{ - 'Auth': this.token - } - }).then(response => { - this.$nextTick(() => { - this.expireServices = response.data - }) - }).catch(error => { - console.error(error, 'error') + this.$http('POST', '/agentnew/ajax_get_expire_services', {}).then(response => { + this.$nextTick(() => { + this.expireServices = response.data }) + }).catch(error => { + console.error(error, 'error') + }) }, getWalletList() { - this.$http('POST', '/agentnew/ajax_get_wallet', { - - },{ - headers:{ - 'Auth': this.token - } - }).then(response => { - this.$nextTick(() => { - this.walletList = response.data - }) - }).catch(error => { - console.error(error, 'error') + this.$http('POST', '/agentnew/ajax_get_wallet', {}).then(response => { + this.$nextTick(() => { + this.walletList = response.data }) + }).catch(error => { + console.error(error, 'error') + }) }, getNoticeList(){ - this.$http('POST', '/agentnew/ajax_get_notice_list', { - - },{ - headers:{ - 'Auth': this.token - } - }).then(response => { - this.$nextTick(() => { - this.noticeList = response.data - }) - }).catch(error => { - console.error(error, 'error') + this.$http('POST', '/agentnew/ajax_get_notice_list', {}).then(response => { + this.$nextTick(() => { + this.noticeList = response.data }) + }).catch(error => { + console.error(error, 'error') + }) }, lookTaoBaoExpire() { // 查看淘宝账号 @@ -349,22 +317,15 @@ export default { }, // 弹框相关方法---start showRecommendedAgentDialog() { - this.$http('POST', '/agentnew/ajax_get_recommended_text', { - - },{ - headers:{ - 'Auth': this.token - } - }).then(response => { - this.tableLoading = false - this.$nextTick(() => { - this.recommendedText = response.data.text - this.dialogVisibleRecommendedAgent = true - }) + this.$http('POST', '/agentnew/ajax_get_recommended_text', {}).then(response => { + this.tableLoading = false + this.$nextTick(() => { + this.recommendedText = response.data.text + this.dialogVisibleRecommendedAgent = true + }) }).catch(error => { console.error(error, 'error') }) - }, // 取消按钮事件 handleCancel() { diff --git a/src/views/agent/noticeList.vue b/src/views/agent/noticeList.vue index adcf716..eec7bf8 100644 --- a/src/views/agent/noticeList.vue +++ b/src/views/agent/noticeList.vue @@ -10,7 +10,7 @@ {{ item.title }} -

{{ item.content }}

+

{{ item.content }}

@@ -29,8 +29,6 @@ export default { }, data() { return { - // AUTH - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', noticeList: [], } }, @@ -44,10 +42,6 @@ export default { getNoticeList(){ this.$http('POST', '/agentnew/ajax_get_notice_list', { - },{ - headers:{ - 'Auth': this.token - } }).then(response => { this.$nextTick(() => { this.noticeList = response.data @@ -60,6 +54,22 @@ export default { }