-
+
@@ -196,13 +196,18 @@ export default {
}
\ No newline at end of file
diff --git a/src/utils/common.js b/src/utils/common.js
index f2af514..a3a9bf8 100644
--- a/src/utils/common.js
+++ b/src/utils/common.js
@@ -8,11 +8,11 @@ export function setHighActive(dom) {
},1000)
}
-export function getServicePriceDesc(price, price_unit, unit_num) {
+export function getServicePriceDesc(price, price_unit, unit_num, unit_name) {
let unit = 0;
let unit_str = "";
- if (unit_num == 1) return price + price_unit +'/篇';
+ if (unit_num == 1) return price + price_unit +'/'+unit_name;
if (unit_num/10000 < 10) {
unit = Math.ceil(unit_num/10000);
@@ -27,6 +27,6 @@ export function getServicePriceDesc(price, price_unit, unit_num) {
unit_str = unit == 1 ? '百' : unit+'百';
}
- return price + price_unit + "/" +unit_str + "字符";
+ return price + price_unit + "/" +unit_str + unit_name;
}
diff --git a/src/views/agent/siteServiceList.vue b/src/views/agent/siteServiceList.vue
index 7ad2724..853151b 100644
--- a/src/views/agent/siteServiceList.vue
+++ b/src/views/agent/siteServiceList.vue
@@ -40,9 +40,9 @@
-
+
/
-
+
@@ -362,6 +362,17 @@ export default {
item.removeAttribute('aria-hidden')
})
},
+ inputPrice(row){
+ if(row.freedom_set){
+ if(row.unit_num == 1) {
+ row.unit_name = '篇';
+ }else{
+ row.unit_name = '字符';
+ }
+ }else{
+ row.unit_name = row.supply_unit_name;
+ }
+ },
// 保存价格
saveEdit(row, type) {
row[type + 'PopoverVisible'] = false; // 关闭弹框
@@ -388,7 +399,7 @@ export default {
let obj = {}
obj.uid = this.uid
obj.type = row.type
- obj.unit_num = row.price_unit_num
+ obj.unit_num = row.unit_num
if(row.price_unit == '元'){
obj.unit_price = row.price
}else{
@@ -396,7 +407,7 @@ export default {
}
const res = await this.saveRequest('/agentnew/ajax_set_service_price', obj)
- if(res) row.price_desc = getServicePriceDesc(row.price, row.price_unit, row.price_unit_num);
+ if(res) row.price_desc = getServicePriceDesc(row.price, row.price_unit, row.unit_num, row.unit_name);
},
async onSwitchChange(row){
let obj = {}
From 0da7bf4d12e2228168a08e14ac6e4aa8f8158225 Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Fri, 8 Aug 2025 15:01:26 +0800
Subject: [PATCH 02/12] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E7=AC=AC=E4=B8=80?=
=?UTF-8?q?=E6=AD=A5=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/domainBind.vue | 18 +++--
src/components/site/addSiteStep/step1.vue | 115 +++++++++++++++++-------------
src/views/agent/siteAdd.vue | 13 +++-
src/views/agent/siteTemplate.vue | 32 ++++++---
4 files changed, 115 insertions(+), 63 deletions(-)
diff --git a/src/components/domainBind.vue b/src/components/domainBind.vue
index cffda83..cb497f9 100644
--- a/src/components/domainBind.vue
+++ b/src/components/domainBind.vue
@@ -1,10 +1,11 @@
-
+
-
-
+
+
+
{{data.domain}}
@@ -55,7 +56,7 @@ export default {
},
rules:{
prefix: [
- { required: true, message: '请输入域名前缀', trigger: 'blur' }
+ { required: true, message: '请输入域名前缀', trigger: []}
],
},
isShowAddDomainDialog: false,
@@ -74,6 +75,8 @@ export default {
}
},
mounted(){
+ this.data.prefix = this.defaultPrefix
+ this.data.domain = this.defaultDomain
this.getDomainList()
},
methods:{
@@ -86,7 +89,9 @@ export default {
label: '.'+item,
value: '.'+item
}));
- if(!response.data.includes(this.data.domain) || !this.data.domain) this.data.domain = '.'+response.data[0]
+
+ let domain = this.data.domain.startsWith('.') ? this.data.domain.slice(1) : this.data.domain;
+ if(!response.data.includes(domain) || !domain) this.data.domain = '.'+response.data[0]
} else {
if(!this.data.domain) this.data.domain = '暂无域名'
}
@@ -97,6 +102,9 @@ export default {
console.error(error, 'error')
})
},
+ handleClear() {
+ this.data.prefix = '';
+ },
toggleDrop(e) {
this.$refs.dropDomain.toggleDropdown(e)
},
diff --git a/src/components/site/addSiteStep/step1.vue b/src/components/site/addSiteStep/step1.vue
index 04cce5e..1c756ea 100644
--- a/src/components/site/addSiteStep/step1.vue
+++ b/src/components/site/addSiteStep/step1.vue
@@ -23,16 +23,19 @@
域名来源
-
+
-
+
域名设置
-
-
- {{formData.domain_name}}
+
+
+ {{formData.plat_domain}}
-
+
+
+ 域名设置
+
@@ -142,9 +145,15 @@ export default {
},
computed: {
submitData() {
+ let domain = "";
+ if (this.formData.domain_type === '1') {
+ domain = this.formData.domain_prefix + this.formData.plat_domain
+ } else if (this.formData.domain_type === '2') {
+ domain = this.formData.domain_prefix + this.formData.domain_name
+ }
return {
short_name: this.formData.short_name,
- domain: this.formData.domain_prefix + this.formData.domain_name,
+ domain: domain,
sale_channel: this.formData.sale_channel,
site_type: this.formData.site_type,
site_tpl: this.formData.site_tpl,
@@ -163,6 +172,7 @@ export default {
return true;
}
+ console.log(this.siteInfo)
this.getAddInfo()
},
methods:{
@@ -172,19 +182,12 @@ export default {
this.formData.site_tpl = siteTplInfo.site_tpl
this.formData.site_tpl_name = siteTplInfo.site_tpl_name
this.formData.picture = siteTplInfo.picture
- localStorage.removeItem('site_tpl_info')
}
const ico = await db.get('ico')
- if(ico){
- this.formData.site_tpl_ico = ico
- await db.remove('ico')
- }
+ if(ico) this.formData.site_tpl_ico = ico
const logo = await db.get('logo')
- if(logo){
- this.formData.site_tpl_logo = logo
- await db.remove('logo')
- }
+ if(logo) this.formData.site_tpl_logo = logo
},
getAddInfo() {
const that = this
@@ -197,7 +200,6 @@ export default {
that.formData.domain_type = String(addInfo.domain_type)
that.formData.domain_types = addInfo.domain_types
that.formData.plat_domain = addInfo.plat_domain
- that.formData.domain_name = addInfo.plat_domain
that.formData.site_type = String(addInfo.site_type)
that.formData.site_types = addInfo.site_types
@@ -218,12 +220,9 @@ export default {
that.formData.picture = that.siteInfo.picture
that.formData.not_finished_uid = that.siteInfo.uid
- //域名存在且不是平台主域名
- if(that.siteInfo.domain){
- that.formData.domain_type = String(that.siteInfo.domain_type)
- that.formData.domain_prefix = that.siteInfo.domain_prefix;
- that.formData.domain_name = that.siteInfo.domain_name;
- }
+ that.formData.domain_type = String(that.siteInfo.domain_type)
+ that.formData.domain_prefix = that.siteInfo.domain_prefix;
+ that.formData.domain_name = that.siteInfo.domain_name;
})
}
return true
@@ -238,9 +237,6 @@ export default {
const value = this.formData.sale_channel;
this.formData.sale_channel_label = labels && labels[value] ? labels[value] : '';
},
- radioDomainChange(){
- this.formData.domain_name = this.formData.domain_type === '1' ? this.formData.plat_domain : ''
- },
radioTypeChange(){
if(this.formData.site_type){
this.formData.site_tpl = this.formData.site_type_tpl[this.formData.site_type].site_tpl
@@ -264,32 +260,55 @@ export default {
return false;
}
localStorage.setItem('formData', JSON.stringify(this.formData))
- this.$router.push(`/agent/siteTemplate?site_type=${this.formData.site_type}`)
+ if(this.formData.not_finished_uid){
+ this.$router.push(`/agent/siteTemplate?uid=${this.formData.not_finished_uid}`)
+ }else{
+ this.$router.push(`/agent/siteTemplate?site_type=${this.formData.site_type}`)
+ }
},
saveConfirm() {
const that = this
+ let formValid = false;
that.$refs.formRef.validate((valid) => {
- if (valid) {
- const that = this
- that.$http('POST', '/agentnew/ajax_add_new_site', that.submitData).then(response => {
- if(response.status && response.data.uid){
- that.formData.uid = response.data.uid
- that.$emit('handelSiteInfo', that.formData)
+ formValid = valid
+ });
- if(that.formData.sale_channel === '2'){
- //自用站点无需设置收款方式
- that.$emit('handelStep', 3)
- }else{
- that.$emit('handelStep', 2)
- }
- return true;
+ let domainValid = false;
+ if(that.formData.domain_type === '2'){
+ that.$refs.domainBind.$refs.bindFormRef.validate(valid => {
+ domainValid = valid
+ })
+ }else{
+ domainValid = true
+ }
+
+ if (formValid && domainValid) {
+ that.$http('POST', '/agentnew/ajax_add_new_site', that.submitData).then(async response => {
+ if(response.status && response.data.uid){
+ await that.deleteSiteTplData()
+
+ that.formData.uid = response.data.uid
+ that.$emit('handelSiteInfo', that.formData)
+
+ if(that.formData.sale_channel === '2'){
+ //自用站点无需设置收款方式
+ that.$emit('handelStep', 3)
+ }else{
+ that.$emit('handelStep', 2)
}
- that.$message.error(response.info);
- }).catch(error => {
- console.error(error, 'error')
- })
- }
- });
+ return true;
+ }
+ that.$message.error(response.info);
+ }).catch(error => {
+ console.error(error, 'error')
+ })
+ }
+ },
+ async deleteSiteTplData(){
+ localStorage.removeItem('activeStep')
+ localStorage.removeItem('site_tpl_info')
+ await db.remove('ico')
+ await db.remove('logo')
},
}
}
@@ -357,7 +376,7 @@ export default {
}
.channel-radio .el-radio{
min-width: 120px;
- margin-bottom: 12px;
+ line-height: 16px;
}
}
\ No newline at end of file
diff --git a/src/views/agent/siteAdd.vue b/src/views/agent/siteAdd.vue
index 2f7e46d..8b9712c 100644
--- a/src/views/agent/siteAdd.vue
+++ b/src/views/agent/siteAdd.vue
@@ -51,7 +51,7 @@
-
+
\ No newline at end of file
From ac649f48b5bbc83140b4e16642f8d5cbe0c89ecd Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Fri, 8 Aug 2025 15:23:58 +0800
Subject: [PATCH 06/12] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E7=A7=BB=E5=8A=A8bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/paymentMethod.vue | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/components/paymentMethod.vue b/src/components/paymentMethod.vue
index 8ac2009..6eece63 100644
--- a/src/components/paymentMethod.vue
+++ b/src/components/paymentMethod.vue
@@ -2,7 +2,7 @@
-
+
@@ -56,10 +56,11 @@ export default {
checkMove(evt) {
// 获取将要移动到的位置索引
const targetIndex = this.list.length - 1; // 最后一项的索引是列表长度减1
- // 如果当前拖拽项即将移动到最后一项,则不允许移动
- // console.log(evt.relatedContext.index === evt.draggedContext.index,targetIndex === evt.draggedContext.index,'0000targetIndex00');
- if ((evt.relatedContext.index === targetIndex) || (targetIndex === evt.draggedContext.index)) {
- return false; // 不允许移动到最后一项
+ if(evt.draggedContext.index == targetIndex && evt.draggedContext.element.pay_type == 1) {
+ return false;//检测卡不允许移动
+ }
+ if (evt.relatedContext.index === targetIndex && this.list[targetIndex].pay_type == 1) {
+ return false;//最后一项是检测卡 不允许移动到最后一项
}
return true; // 其他情况允许移动
}
From 358cc88e17482686f67779330922b6771f7132e6 Mon Sep 17 00:00:00 2001
From: rainbro <33367671@qq.com>
Date: Fri, 8 Aug 2025 15:36:14 +0800
Subject: [PATCH 07/12] =?UTF-8?q?=E7=AB=99=E7=82=B9=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/agent/siteList.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/agent/siteList.vue b/src/views/agent/siteList.vue
index 06443d8..0d48b73 100644
--- a/src/views/agent/siteList.vue
+++ b/src/views/agent/siteList.vue
@@ -331,7 +331,7 @@ export default {
// 筛选表格数据
filteredSites() {
let result = this.siteList;
- if (this.currentGroup) {
+ if (Number(this.currentGroup) > 0) {
result = result.filter(site => site.groupid == this.currentGroup);
}
From 98966a1bc6920582ac07002532f918f4a8c6c188 Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Fri, 8 Aug 2025 15:57:44 +0800
Subject: [PATCH 08/12] =?UTF-8?q?=E6=9C=8D=E5=8A=A1logo=E8=AE=BE=E7=BD=AEb?=
=?UTF-8?q?ug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../site/serviceSetting/menuColorSet.vue | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/src/components/site/serviceSetting/menuColorSet.vue b/src/components/site/serviceSetting/menuColorSet.vue
index 9edd051..88247e7 100644
--- a/src/components/site/serviceSetting/menuColorSet.vue
+++ b/src/components/site/serviceSetting/menuColorSet.vue
@@ -158,20 +158,14 @@ export default {
}
},
saveConfirm() {
- let obj = {}
- obj.uid = this.info.uid
- obj.type = this.info.type
- obj.logo_bgcolor = this.tabColor.replace('#','')
- obj.link_btn_color = this.themeColor.replace('#','')
- obj.selected_nav_bgcolor = this.navColor.replace('#','')
-
- if(!this.sub_logo_file || !this.rep_logo_file){
- this.$message.warning(`请上传logo图`);
- return false;
- }
-
- obj.submit_logo = this.sub_logo_file
- obj.report_logo = this.rep_logo_file
+ let obj = new FormData()
+ obj.set('uid', this.info.uid)
+ obj.set('type', this.info.type)
+ if(this.tabColor) obj.set('logo_bgcolor', this.tabColor.replace('#',''))
+ if(this.themeColor) obj.set('link_btn_color', this.themeColor.replace('#',''))
+ if(this.navColor) obj.set('selected_nav_bgcolor', this.navColor.replace('#',''))
+ if(this.sub_logo_file) obj.set('submit_logo', this.sub_logo_file)
+ if(this.rep_logo_file) obj.set('report_logo', this.rep_logo_file)
const that = this
this.$http('POST', '/agentnew/ajax_update_service_style', obj).then(response => {
From ed24dfc058748c0e44ce14d7938ae5c5599f223e Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Fri, 8 Aug 2025 16:34:51 +0800
Subject: [PATCH 09/12] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=A0=8Fbug=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/SetLeftMenu.vue | 2 +-
src/router/index.js | 42 +++++++++++++++++++++---------------------
2 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/src/components/SetLeftMenu.vue b/src/components/SetLeftMenu.vue
index 0598ce7..375582d 100644
--- a/src/components/SetLeftMenu.vue
+++ b/src/components/SetLeftMenu.vue
@@ -9,7 +9,7 @@
{{ item.name }}
- {{ item1.name }}
diff --git a/src/router/index.js b/src/router/index.js
index 1321d3c..2991605 100755
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -51,7 +51,7 @@ const blackFooterList = [
const routes = [{
path: '/',
name: '首页',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/home.vue'),
+ component: () => import( /* webpackChunkName: "home" */ '../views/agent/home.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '首页', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -61,7 +61,7 @@ const routes = [{
{
path: '/agent/supplyList',
name: '供货价格',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/supplyList.vue'),
+ component: () => import( /* webpackChunkName: "supplyList" */ '../views/agent/supplyList.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '供货价格', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -72,7 +72,7 @@ const routes = [{
{
path: '/agent/domainList',
name: '域名列表',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/domainList.vue'),
+ component: () => import( /* webpackChunkName: "domainList" */ '../views/agent/domainList.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '首页', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -82,7 +82,7 @@ const routes = [{
{
path: '/agent/noticeList',
name: '首页',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/noticeList.vue'),
+ component: () => import( /* webpackChunkName: "noticeList" */ '../views/agent/noticeList.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '系统通知', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -116,7 +116,7 @@ const routes = [{
path: '/agent/checkOrderList',
name: '查重订单',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/checkOrderList.vue'),
+ component: () => import( /* webpackChunkName: "checkOrderList" */ '../views/agent/checkOrderList.vue'),
props: {
list_type: 'check',
},
@@ -130,7 +130,7 @@ const routes = [{
path: '/agent/aiOrderList',
name: 'AI写作订单',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/checkOrderList.vue'),
+ component: () => import( /* webpackChunkName: "aiOrderList" */ '../views/agent/checkOrderList.vue'),
props: {
list_type: 'ai',
},
@@ -144,7 +144,7 @@ const routes = [{
path: '/agent/ocpcList',
name: 'OCPC订单',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/ocpcList.vue'),
+ component: () => import( /* webpackChunkName: "ocpcList" */ '../views/agent/ocpcList.vue'),
meta: {
title: 'OCPC订单',
breadcrumbParent: '首页',
@@ -167,7 +167,7 @@ const routes = [{
name: '添加站点',
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteAdd.vue'),
+ component: () => import( /* webpackChunkName: "siteAdd" */ '../views/agent/siteAdd.vue'),
meta: {
title: '添加站点',
hideBreadcrumb: true, // 一级页面不显示面包屑
@@ -177,7 +177,7 @@ const routes = [{
path: '/agent/siteAddFinally',
name: '添加站点-添加服务',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceAdd.vue'),
+ component: () => import( /* webpackChunkName: "siteAddFinally" */ '../views/agent/siteServiceAdd.vue'),
meta: {
title: '添加服务',
breadcrumbParent: '添加站点',
@@ -188,7 +188,7 @@ const routes = [{
path: '/agent/siteServiceList',
name: '服务列表',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceList.vue'),
+ component: () => import( /* webpackChunkName: "siteServiceList" */ '../views/agent/siteServiceList.vue'),
meta: {
title: '服务列表',
breadcrumbParent: '站点列表',
@@ -199,7 +199,7 @@ const routes = [{
path: '/agent/siteServiceAdd',
name: '服务列表-添加',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceAdd.vue'),
+ component: () => import( /* webpackChunkName: "siteServiceAdd" */ '../views/agent/siteServiceAdd.vue'),
meta: {
title: '添加服务',
breadcrumbParent: '服务列表',
@@ -210,7 +210,7 @@ const routes = [{
path: '/agent/siteServiceEdit',
name: '服务列表-修改',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceEdit.vue'),
+ component: () => import( /* webpackChunkName: "siteServiceEdit" */ '../views/agent/siteServiceEdit.vue'),
meta: {
title: '修改服务',
breadcrumbParent: '服务列表',
@@ -220,7 +220,7 @@ const routes = [{
{
path: '/agent/siteBaseSetting',
name: '站点基本设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteBaseSetting.vue'),
+ component: () => import( /* webpackChunkName: "siteBaseSetting" */ '../views/agent/siteBaseSetting.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -232,7 +232,7 @@ const routes = [{
{
path: '/agent/siteMobileSetting',
name: '移动端设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteMobileSetting.vue'),
+ component: () => import( /* webpackChunkName: "siteMobileSetting" */ '../views/agent/siteMobileSetting.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -244,7 +244,7 @@ const routes = [{
{
path: '/agent/siteSemSetting',
name: '营销推广',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteSemSetting.vue'),
+ component: () => import( /* webpackChunkName: "siteSemSetting" */ '../views/agent/siteSemSetting.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -253,7 +253,7 @@ const routes = [{
{
path: '/agent/sitePersonalization',
name: '个性化设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/sitePersonalization.vue'),
+ component: () => import( /* webpackChunkName: "sitePersonalization" */ '../views/agent/sitePersonalization.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -262,7 +262,7 @@ const routes = [{
{
path: '/agent/siteTemplate',
name: '个性化设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteTemplate.vue'),
+ component: () => import( /* webpackChunkName: "siteTemplate" */ '../views/agent/siteTemplate.vue'),
// meta: {
// title: '站点设置',
// breadcrumbParent: '站点列表' // 手动指定父级
@@ -275,7 +275,7 @@ const routes = [{
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/payList.vue'),
+ component: () => import( /* webpackChunkName: "payList" */ '../views/agent/payList.vue'),
meta: {
title: '收款方式',
breadcrumbParent: '首页',
@@ -285,7 +285,7 @@ const routes = [{
{
path: '/agent/payInfoSetting',
name: '收款方式设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/payInfoSetting.vue'),
+ component: () => import( /* webpackChunkName: "payInfoSetting" */ '../views/agent/payInfoSetting.vue'),
meta: {
title: '收款方式设置',
breadcrumbParent: '收款方式' // 手动指定父级
@@ -297,7 +297,7 @@ const routes = [{
{
path: '/agent/paySetting',
name: '收款方式设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/paySetting.vue'),
+ component: () => import( /* webpackChunkName: "paySetting" */ '../views/agent/paySetting.vue'),
meta: {
title: '收款方式设置',
breadcrumbParent: '收款方式' // 手动指定父级
@@ -309,7 +309,7 @@ const routes = [{
{
path: '/agent/payCertSetting',
name: '钱款交易设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/payCertSetting.vue'),
+ component: () => import( /* webpackChunkName: "payCertSetting" */ '../views/agent/payCertSetting.vue'),
meta: {
title: '钱款交易设置',
breadcrumbParent: '收款方式' // 手动指定父级
From 3e0ba23fa8ce46d5680d8ce5fe4862b288e2565a Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Fri, 8 Aug 2025 17:52:58 +0800
Subject: [PATCH 10/12] =?UTF-8?q?=E5=9F=9F=E5=90=8D=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/domainBind.vue | 20 ++-----
src/components/site/serviceSetting/domainSet.vue | 74 +++++++++++++-----------
2 files changed, 44 insertions(+), 50 deletions(-)
diff --git a/src/components/domainBind.vue b/src/components/domainBind.vue
index cb497f9..9ba87da 100644
--- a/src/components/domainBind.vue
+++ b/src/components/domainBind.vue
@@ -62,21 +62,9 @@ export default {
isShowAddDomainDialog: false,
}
},
- watch: {
- defaultPrefix(newVal) {
- if(newVal){
- this.data.prefix = newVal
- }
- },
- defaultDomain(newVal) {
- if(newVal){
- this.data.domain = newVal
- }
- }
- },
mounted(){
- this.data.prefix = this.defaultPrefix
- this.data.domain = this.defaultDomain
+ this.data.prefix = this.defaultPrefix ? this.defaultPrefix : ''
+ this.data.domain = this.defaultDomain ? this.defaultDomain : ''
this.getDomainList()
},
methods:{
@@ -90,8 +78,8 @@ export default {
value: '.'+item
}));
- let domain = this.data.domain.startsWith('.') ? this.data.domain.slice(1) : this.data.domain;
- if(!response.data.includes(domain) || !domain) this.data.domain = '.'+response.data[0]
+ let domain = that.data.domain.startsWith('.') ? that.data.domain.slice(1) : that.data.domain;
+ if(!response.data.includes(domain) || !domain) that.data.domain = '.'+response.data[0]
} else {
if(!this.data.domain) this.data.domain = '暂无域名'
}
diff --git a/src/components/site/serviceSetting/domainSet.vue b/src/components/site/serviceSetting/domainSet.vue
index 847f536..37214ed 100644
--- a/src/components/site/serviceSetting/domainSet.vue
+++ b/src/components/site/serviceSetting/domainSet.vue
@@ -9,13 +9,14 @@
域名来源
-
+
当前服务域名:{{info.domain}}
-
+
@@ -55,17 +56,20 @@ export default {
borderRadius: '4px',
background: '#006AFF',
},
- domainFrom: '0',
- domainFromOptions: {
- '0': '平台免费域名',
- '1': '我自己有域名'
- },
- newDomain: {}
+ domain_type: '',
+ domain_types: {},
+ newDomain: {
+ prefix: '',
+ domain: ''
+ }
}
},
mounted() {
this.info = JSON.parse(JSON.stringify(this.serviceInfo))
- if(this.info.ser_domain) this.domainFrom = '1'
+ this.domain_type = String(this.info.domain_type)
+ this.domain_types = this.info.domain_types
+ this.newDomain.prefix = this.info.domain_prefix
+ this.newDomain.domain = this.info.domain_name
},
methods:{
handleEvent(data){
@@ -75,35 +79,37 @@ export default {
let obj = {}
obj.uid = this.info.uid
obj.type = this.info.type
- if(this.domainFrom === '1'){
- if(!this.newDomain.prefix || !this.newDomain.domain) return false
- obj.domain = this.newDomain.prefix + this.newDomain.domain
- }else{
- obj.domain = ''
- }
+ obj.domain = ''
+ if(this.domain_type === '2') obj.domain = this.newDomain.prefix + this.newDomain.domain
const that = this
- this.$http('POST', '/agentnew/ajax_update_service_domain', obj).then(response => {
- if(response.status){
- that.$message.success('保存成功');
+ let domainValid = true;
+ if(that.domain_type === '2'){
+ that.$refs.domainBind.$refs.bindFormRef.validate(valid => {
+ domainValid = valid
+ })
+ }
+ if (domainValid) {
+ that.$http('POST', '/agentnew/ajax_update_service_domain', obj).then(response => {
+ if (response.status) {
+ that.$message.success('保存成功');
- //替换域名
- const protocol = new URL(that.info.domain).protocol;
- if(this.domainFrom === '1'){
- that.info.domain = protocol + "//" +obj.domain;
- that.info.ser_domain = protocol + "//" +obj.domain;
- }else{
- that.info.domain = that.info.site_domain;
- that.info.ser_domain = '';
- }
+ //替换域名
+ const protocol = new URL(that.info.domain).protocol;
+ if (that.domain_type === '2') {
+ that.info.domain = protocol + "//" + obj.domain;
+ } else {
+ that.info.domain = that.info.site_domain;
+ }
- that.$emit('saveEvent', that.info)
- return true;
- }
- that.$message.error(response.info);
- }).catch(error => {
- console.error(error, 'error')
- })
+ that.$emit('saveEvent', that.info)
+ return true;
+ }
+ that.$message.error(response.info);
+ }).catch(error => {
+ console.error(error, 'error')
+ })
+ }
},
}
}
From ba8bce9a10d517102df3c683de8905262b249ef5 Mon Sep 17 00:00:00 2001
From: pengda <1111@qq.com>
Date: Fri, 8 Aug 2025 18:23:59 +0800
Subject: [PATCH 11/12] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A8=A1?=
=?UTF-8?q?=E6=9D=BF=E5=9B=9E=E6=98=BE=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/site/tpl_customize_big.svg | 1 +
src/views/agent/sitePersonalization.vue | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
create mode 100644 src/assets/site/tpl_customize_big.svg
diff --git a/src/assets/site/tpl_customize_big.svg b/src/assets/site/tpl_customize_big.svg
new file mode 100644
index 0000000..8939569
--- /dev/null
+++ b/src/assets/site/tpl_customize_big.svg
@@ -0,0 +1 @@
+