diff --git a/src/views/agent/sitePersonalization.vue b/src/views/agent/sitePersonalization.vue
index e3df0ef..03df269 100644
--- a/src/views/agent/sitePersonalization.vue
+++ b/src/views/agent/sitePersonalization.vue
@@ -7,7 +7,8 @@
销售方向
-
+
+
@@ -34,8 +35,8 @@
在线客服
-
-
{{ textObj[activeName] }}
+
+
{{ textObj[customerServiceTab] }}
@@ -43,65 +44,71 @@
QQ客服
-
-
-
-
-
- 上传二维码
-
-
支持 jpg、png 格式,大小不超过 2MB
+
+
![]()
+
+
+
+
+ 重新上传
+ 上传二维码
+
+
+
仅支持JPG格式,图片尺寸不大于200px * 200px
+
微信客服
-
![]()
-

+
-
-
-
+
+
- 重新上传
+ 重新上传
+ 上传二维码
- 支持 jpg、png 格式,大小不超过 2MB
+ 仅支持JPG格式,图片尺寸不大于200px * 200px
+
微信客服
-
![]()
-

+
-
-
-
+
+
- 重新上传
+ 重新上传
+ 上传二维码
- 支持 jpg、png 格式,大小不超过 2MB
+ 仅支持JPG格式,图片尺寸不大于200px * 200px
-
+
+
-
功能显隐
@@ -177,7 +184,7 @@
查重60分钟内不可提交重复内容,AI产品3分钟内不能重复提交
-
+
识别重复标题
识别重复作者
识别重复正文/辅助信息
@@ -226,7 +233,7 @@ export default {
GuipSwitch,
GuipToolTip,
GroupFormBtns,
- GuipRadio
+ GuipRadio,
},
data() {
return {
@@ -234,13 +241,15 @@ export default {
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTAwNTM3MjQsIm5iZiI6MTc1MDA1MzcyNCwiZXhwIjoxNzUyNjQ1NzI0LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.xyIqBLelB-k6jCifgRevBJTyg_Qrm6m1e4OcHhOpepU',
// 站点信息
siteInfo: [],
+ formData:new FormData(),
+ repeatSubmitFields: [],
textObj: {
- 'web_customer_service': '展示在网站右侧悬浮栏的客服,请至少设置1个',
- 'web_report_page_customer_service': '展示在报告页右侧悬浮栏的客服,请至少设置1个',
+ 'web_customer_service': '展示在网站悬浮栏的客服,请至少设置1个',
+ 'web_report_page_customer_service': '展示在报告页悬浮栏的客服,请至少设置1个',
'web_wx_customer_service': '显示在微信、支付宝账单详情中,方便用户联系'
},
- activeName: 'web_customer_service',
+ customerServiceTab: 'web_customer_service',
checkList1: ['识别重复辅助信息'],
// 在线客服
personalForm3: {
@@ -291,7 +300,11 @@ export default {
that.siteInfo.is_display_price = Number(response.data.is_display_price)
that.siteInfo.is_display_submit_page_price = Number(response.data.is_display_submit_page_price)
that.siteInfo.is_allow_repeat_submit = Number(response.data.is_allow_repeat_submit)
- console.log(that.siteInfo.is_allow_repeat_submit)
+ if (response.data.repeat_submit_fields) {
+ this.repeatSubmitFields = response.data.repeat_submit_fields
+ }
+
+ console.log(that.siteInfo.repeat_submit_fields, 'repeat_submit_fields')
})
}).catch(error => {
console.error(error, 'error')
@@ -362,7 +375,7 @@ export default {
this.$http('POST', '/agentnew/ajax_update_site_repeatsubmit_config', {
uid: this.$route.query.uid,
is_allow_repeat_submit: this.siteInfo.is_allow_repeat_submit==1 ? 0 : 1,
- repeat_submit_fields: this.siteInfo.repeat_submit_fields.join(',')
+ repeat_submit_fields: this.repeatSubmitFields.join(',')
}, {
headers: {
'Auth': this.token
@@ -393,6 +406,7 @@ export default {
},
cancelClick() {
console.log('quxiao');
+ this.getSiteInfo();
},
updateSiteCustomerService(row) {
console.log(row, 'row');
@@ -417,6 +431,74 @@ export default {
console.error(error, 'error')
})
},
+ updateSitWebCustomerService() {
+ // for(let [key,value] of this.formData){
+ // console.log(key,value,'=====key');
+ // }
+ this.formData.set('wangwang', this.siteInfo.wangwang)
+ this.formData.set('uid', this.$route.query.uid)
+ this.$http('POST', '/agentnew/ajax_update_site_kefu',
+ this.formData
+ , {
+ headers: {
+ 'Auth': this.token,
+ 'Content-Type':'multipart/form-data'
+ }
+ }).then(response => {
+ this.$nextTick(() => {
+ if (response.status) {
+ this.$Message.success(response.info);
+ this.getSiteInfo();
+ } else {
+ this.$Message.error(response.info);
+ }
+ })
+ }).catch(error => {
+ console.error(error, 'error')
+ })
+ this.dialogVisibleCert = false;
+ },
+ updateSiteReportCustomerService() {
+ // for(let [key,value] of this.formData){
+ // console.log(key,value,'=====key');
+ // }
+ this.formData.set('uid', this.$route.query.uid)
+ this.$http('POST', '/agentnew/ajax_update_site_kefu',
+ this.formData
+ , {
+ headers: {
+ 'Auth': this.token,
+ 'Content-Type':'multipart/form-data'
+ }
+ }).then(response => {
+ this.$nextTick(() => {
+ if (response.status) {
+ this.$Message.success(response.info);
+ this.getSiteInfo();
+ } else {
+ this.$Message.error(response.info);
+ }
+ })
+ }).catch(error => {
+ console.error(error, 'error')
+ })
+ this.dialogVisibleCert = false;
+ },
+ handleQQkfChange(file, fileList) {
+ console.log(file, fileList)
+ let fileObj = file.raw
+ this.formData.set('qq_qrcode', fileObj)
+ },
+ handleWxkfChange(file, fileList) {
+ console.log(file, fileList)
+ let fileObj = file.raw
+ this.formData.set('wxqrcode', fileObj)
+ },
+ handleReportkfChange(file, fileList) {
+ console.log(file, fileList)
+ let fileObj = file.raw
+ this.formData.set('wx_report_qrcode', fileObj)
+ },
// 上传图片
handleAvatarSuccess(res, file) {
this.imageUrl1 = URL.createObjectURL(file.raw);
@@ -435,7 +517,11 @@ export default {
},
handleClick(tab, event) {
console.log(tab, event);
- }
+ },
+ // 监听单选框组变化
+ radioChange(data) {
+ console.log(data, 'radio--data');
+ },
}
}
@@ -455,6 +541,10 @@ export default {
margin-bottom: 0;
}
+.mr-12 {
+ margin-right: 12px;
+}
+
.site-personal-wrap {
width: 100%;
@@ -564,9 +654,9 @@ export default {
// flex-direction: column;
}
- .qqCode-wrap.right {
- margin: 0 0 8px 12px;
- }
+ // .qqCode-wrap.right {
+ // margin: 0 0 8px 12px;
+ // }
.avatar-desc {
/* regular/body3-Regular */
@@ -584,6 +674,12 @@ export default {
}
}
.avatar-uploader{
+ .upload-button {
+ border-radius: 4px;
+ background: #F2F3F5;
+ box-sizing: border-box;
+ border: 1px solid #BABDC2;
+ }
.bgImg{
width: 20px;
height: 16px;