+
-
@@ -56,10 +54,15 @@ export default {
options: {
type: Array,
default: () => [],
+ validator: (value) => {
+ return Array.isArray(value) && value.every(item =>
+ item && typeof item === 'object'
+ )
+ }
},
options_null: {
type: Object,
- default: () => { },
+ default: () => {},
},
placeholder: {
type: String,
@@ -71,7 +74,7 @@ export default {
},
valueKey: {
type: String,
- default: "value",
+ default: "value",
},
displayKey: {
type: String,
@@ -88,9 +91,25 @@ export default {
value: {
immediate: true,
handler(newVal) {
- this.selectedItem = this.options.find((item) => item[this.valueKey] === newVal);
+ if (this.options && this.options.length && newVal !== undefined && newVal !== null) {
+ this.selectedItem = this.options.find((item) =>
+ item && item[this.valueKey] === newVal
+ ) || null;
+ }
},
},
+ options: {
+ immediate: true,
+ handler(newVal) {
+ if (newVal && newVal.length && this.value !== undefined && this.value !== null) {
+ this.selectedItem = newVal.find((item) =>
+ item && item[this.valueKey] === this.value
+ ) || null;
+ } else {
+ this.selectedItem = null;
+ }
+ }
+ }
},
created() {
// 监听关闭所有下拉框的事件
@@ -105,21 +124,24 @@ export default {
this.isOpen = false;
},
toggleDropdown(e) {
- if (e) {
- e.stopPropagation();
+ if(e) e.stopPropagation();
+ if (!this.options || !this.options.length) {
+ console.warn('Dropdown options are empty');
+ return;
}
// 先通知所有下拉框关闭
EventBus.$emit('close-all-dropdowns')
this.isOpen = !this.isOpen;
},
selectItem(item) {
+ if (!item) return;
this.selectedItem = item;
- this.$emit("input", item[this.valueKey]); // Use the specified valueKey
+ this.$emit("input", item[this.valueKey]);
this.$emit("change", item);
this.isOpen = false;
},
isSelected(item) {
- return this.selectedItem && this.selectedItem[this.valueKey] === item[this.valueKey];
+ return item && this.selectedItem && this.selectedItem[this.valueKey] === item[this.valueKey];
},
selectNullItem() {
this.$emit("changeNormal", '');
diff --git a/src/components/GuipDialog.vue b/src/components/GuipDialog.vue
index 630ad65..98ff14c 100644
--- a/src/components/GuipDialog.vue
+++ b/src/components/GuipDialog.vue
@@ -12,7 +12,7 @@
-
+
{{ cancelText }}
{{ confirmText }}
@@ -54,6 +54,11 @@
type: Boolean,
default: true,
},
+ // 是否显示底部按钮
+ showFooterButton: {
+ type: Boolean,
+ default: true,
+ },
// 取消按钮文本
cancelText: {
type: String,
diff --git a/src/components/ImgUpload.vue b/src/components/ImgUpload.vue
new file mode 100644
index 0000000..3a1b759
--- /dev/null
+++ b/src/components/ImgUpload.vue
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择图片
+
+
+
+
+
+
+
+
diff --git a/src/components/domainBind.vue b/src/components/domainBind.vue
new file mode 100644
index 0000000..9c94332
--- /dev/null
+++ b/src/components/domainBind.vue
@@ -0,0 +1,359 @@
+
+
+
+
+
+
+
+
+
+
+
+
添加新域名
+
域名需要在阿里云完成ICP备案并解析到平台服务器
+
如果暂时未准备好,可先选用平台免费域名,随时支持域名修改。
+
+
+ 前往绑定
+
+
+
+
+
+
+
+
+
+
+ 设置自己的域名,需要做 2 步站外操作。如果暂时未准备好,或打算稍后设置,可以先选用平台免费域名,平台随时支持域名修改。
+ 1. 域名必须在阿里云完成 ICP 备案
+ 备案网址:https://beian.aliyun.com
+ 2. 域名要解析到平台服务器上
+ 记录类型:CNAME;记录值:lunwen.kuailedns.com
+ 3. 域名填写
+
+ 4. 域名备案号
+
+
+ 先用平台免费域名
+ 准备完毕,验证自有域名
+
+
+
+
+ 验证域名解析
+
+
+ 域名已解析
+
+
+ 域名未解析
+
+
+
+
+
+
+
+ 验证ICP备案
+
+
+ 验证ICP备案
+
+
+ ICP未备案
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/preview/logoBack_color.vue b/src/components/preview/logoBack_color.vue
index 4420d4e..9233598 100644
--- a/src/components/preview/logoBack_color.vue
+++ b/src/components/preview/logoBack_color.vue
@@ -1,6 +1,6 @@
-
品牌LOGO
+
品牌LOGO
获取帮助
@@ -10,14 +10,14 @@
正在检测文章的滚动条
-
-
检测论文
+
检测上传板块
- 提交论文
+ 提交论文
@@ -28,9 +28,36 @@
export default {
// 站点设置
name: '',
- props: ['themeColor','navColor','tabColor'],
- components: {
-
+ props: {
+ themeColor: {
+ type: String,
+ default: '#3B82F6'
+ },
+ navColor: {
+ type: String,
+ default: '#3B82F6'
+ },
+ tabColor: {
+ type: String,
+ default: '#70A6FF'
+ },
+ },
+ computed: {
+ effectiveThemeColor() {
+ return this.themeColor && this.themeColor.trim() !== ''
+ ? this.themeColor
+ : '#3B82F6';
+ },
+ effectiveNavColor() {
+ return this.navColor && this.navColor.trim() !== ''
+ ? this.navColor
+ : '#3B82F6';
+ },
+ effectiveTabColor() {
+ return this.tabColor && this.tabColor.trim() !== ''
+ ? this.tabColor
+ : '#70A6FF';
+ }
},
data() {
return {
diff --git a/src/components/site/serviceSetting/domainSet.vue b/src/components/site/serviceSetting/domainSet.vue
index 288efb5..bbe23e1 100644
--- a/src/components/site/serviceSetting/domainSet.vue
+++ b/src/components/site/serviceSetting/domainSet.vue
@@ -1,18 +1,54 @@
-
+
+
+
+
+
+ 域名来源
+
+
+
+
+ 当前服务域名: {{info.domain}}
+
+
+
+
+
+
+
+
+
+ 保存
+
\ No newline at end of file
diff --git a/src/components/site/serviceSetting/linkSet.vue b/src/components/site/serviceSetting/linkSet.vue
index 60460c6..2046994 100644
--- a/src/components/site/serviceSetting/linkSet.vue
+++ b/src/components/site/serviceSetting/linkSet.vue
@@ -1,7 +1,7 @@
@@ -68,7 +68,7 @@ export default {
}
},
mounted() {
- this.info = this.serviceInfo
+ this.info = JSON.parse(JSON.stringify(this.serviceInfo))
},
methods: {
toggleSetSyncHome(){
@@ -97,7 +97,7 @@ export default {
that.$emit('saveEvent', that.info)
return true;
}
- that.$message.success(response.info);
+ that.$message.error(response.info);
}).catch(error => {
console.error(error, 'error')
})
diff --git a/src/components/site/serviceSetting/menuColorSet.vue b/src/components/site/serviceSetting/menuColorSet.vue
index 5c6f110..5c81452 100644
--- a/src/components/site/serviceSetting/menuColorSet.vue
+++ b/src/components/site/serviceSetting/menuColorSet.vue
@@ -1,7 +1,7 @@
@@ -9,22 +9,14 @@
-
-
-
+
+
支持png、jpg格式,尺寸32PX*32PX
-
-
-
+
+
支持png、jpg格式,尺寸32PX*32PX
@@ -75,7 +67,6 @@
-
@@ -83,28 +74,33 @@
- 保存
+ 保存
diff --git a/src/components/site/serviceSetting/paymentSet.vue b/src/components/site/serviceSetting/paymentSet.vue
index 3495253..4158ba7 100644
--- a/src/components/site/serviceSetting/paymentSet.vue
+++ b/src/components/site/serviceSetting/paymentSet.vue
@@ -1,7 +1,7 @@
@@ -36,6 +36,7 @@ export default {
data(){
return {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTAwNTM3MjQsIm5iZiI6MTc1MDA1MzcyNCwiZXhwIjoxNzUyNjQ1NzI0LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.xyIqBLelB-k6jCifgRevBJTyg_Qrm6m1e4OcHhOpepU',
+ info:[],
payList:[],
//添加按钮样式
saveBtnStyleObj: {
@@ -47,7 +48,8 @@ export default {
}
},
mounted() {
- if(this.serviceInfo) this.payList = this.serviceInfo.paylist
+ this.info = JSON.parse(JSON.stringify(this.serviceInfo))
+ this.payList = this.info.paylist
},
methods:{
confirmPayment(payList){
@@ -81,7 +83,7 @@ export default {
that.$emit('saveEvent', that.payList)
return true;
}
- that.$message.success(response.info);
+ that.$message.error(response.info);
}).catch(error => {
console.error(error, 'error')
})
diff --git a/src/components/site/serviceSetting/priceSet.vue b/src/components/site/serviceSetting/priceSet.vue
index c04c992..684cd5a 100644
--- a/src/components/site/serviceSetting/priceSet.vue
+++ b/src/components/site/serviceSetting/priceSet.vue
@@ -1,18 +1,67 @@
-
+
\ No newline at end of file
diff --git a/src/components/site/serviceSetting/reportSeoSet.vue b/src/components/site/serviceSetting/reportSeoSet.vue
index 5eca8fc..c3bb966 100644
--- a/src/components/site/serviceSetting/reportSeoSet.vue
+++ b/src/components/site/serviceSetting/reportSeoSet.vue
@@ -1,7 +1,7 @@
@@ -72,7 +72,7 @@ export default {
}
},
mounted() {
- this.info = this.serviceInfo
+ this.info = JSON.parse(JSON.stringify(this.serviceInfo))
},
methods: {
saveConfirm() {
@@ -94,7 +94,7 @@ export default {
that.$emit('saveEvent', that.info)
return true;
}
- that.$message.success(response.info);
+ that.$message.error(response.info);
}).catch(error => {
console.error(error, 'error')
})
diff --git a/src/components/site/serviceSetting/showSet.vue b/src/components/site/serviceSetting/showSet.vue
index e0e3e66..8612c2a 100644
--- a/src/components/site/serviceSetting/showSet.vue
+++ b/src/components/site/serviceSetting/showSet.vue
@@ -1,91 +1,131 @@
-
-
基础信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
支持png、jpg格式,尺寸32PX*32PX
+
+
+
基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
支持png、jpg格式,尺寸32PX*32PX
+
-
-
-
+
+
-
-
展示开关
-
-
-
-
-
-
首页服务显示
-
控制首页是否显示本服务
+
+
展示开关
+
+
+
+
+
+
+
检测页价格展示
+
本服务检测页面是否展示价格
+
+
+
+
+
-
-
-
-
-
-
-
检测页价格展示
-
本服务检测页面是否展示价格
+
+
-
-
-
+
+
+
+
+
+ 返回
+
+
+
+
设置保存成功
+
+
+
+
+
PC端预览
+
+
点击上方网址访问
+
+
+
+
手机H5预览
+
+
微信扫码预览
+
+
+
+
小程序预览
+
+
微信扫码预览
-
-
+
+
+ 返回展示设置
+
+
+
保存
@@ -94,12 +134,12 @@