|
|
@ -7,8 +7,9 @@ |
|
|
|
<div class="flex-wrap"> |
|
|
|
<div class="flex-left"> |
|
|
|
<p class="flex-left-desc">销售方向</p> |
|
|
|
<GuipRadio v-model="siteInfo.site_type" :options="siteInfo.site_types" label="" prop="site_type" @change="radioChange" label-key="" value-key="" /> |
|
|
|
|
|
|
|
<div class="flex mt12"> |
|
|
|
<GuipRadio v-model="siteInfo.site_type" :options="siteInfo.site_types" label="" prop="site_type" @change="radioChange" /> |
|
|
|
</div> |
|
|
|
<div class="tem-home"> |
|
|
|
<img class="tem-home-top" src="@/assets/register/tem-img-normal.png" alt=""> |
|
|
|
<div class="tem-home-bottom"> |
|
|
@ -30,7 +31,7 @@ |
|
|
|
<div class="flex-right"></div> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
<GroupFormBtns @cancel="cancelClick" @confirm="updateSiteCustomerService(siteInfo)" /> |
|
|
|
<GroupFormBtns @cancel="cancelClick" @confirm="updateSiteType()" /> |
|
|
|
</div> |
|
|
|
<div class="siteMessage flex-common mt12" id="siteMessage5"> |
|
|
|
<h3>在线客服</h3> |
|
|
@ -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'); |
|
|
|