diff --git a/src/views/agent/sitePersonalization.vue b/src/views/agent/sitePersonalization.vue index 03df269..4443d28 100644 --- a/src/views/agent/sitePersonalization.vue +++ b/src/views/agent/sitePersonalization.vue @@ -7,8 +7,9 @@

销售方向

- - +
+ +
@@ -30,7 +31,7 @@
- +

在线客服

@@ -296,6 +297,8 @@ export default { }).then(response => { this.$nextTick(() => { that.siteInfo = response.data + console.log(that.siteInfo.site_types) + that.siteInfo.is_display_outchain = Number(response.data.is_display_outchain) 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) @@ -303,8 +306,6 @@ export default { 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') @@ -431,6 +432,26 @@ export default { console.error(error, 'error') }) }, + updateSiteType() { + this.$http('POST', '/agentnew/ajax_update_site_type', { + uid: this.$route.query.uid, + site_type: this.siteInfo.site_type, + }, { + 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') + }) + }, updateSitWebCustomerService() { // for(let [key,value] of this.formData){ // console.log(key,value,'=====key');