|
@ -68,6 +68,20 @@ |
|
|
<GroupFormBtns @cancel="cancelClick" @confirm="updateSiteDomain()" /> |
|
|
<GroupFormBtns @cancel="cancelClick" @confirm="updateSiteDomain()" /> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="siteMessage flex-common" id="siteMessage2"> |
|
|
|
|
|
<h3>销售渠道</h3> |
|
|
|
|
|
<el-form ref="domainFormRef"> |
|
|
|
|
|
<div class="flex-wrap"> |
|
|
|
|
|
<div class="flex-left"> |
|
|
|
|
|
<div class="flex mt12"> |
|
|
|
|
|
<GuipRadio v-model="saleChannel" :options="saleChannels" prop="key" label-key="name" value-key="channel" @change="changeSaleChannel" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<GroupFormBtns @cancel="cancelClick" @confirm="updateSaleChannel()" /> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
<div class="siteMessage flex-common" id="siteMessage3"> |
|
|
<div class="siteMessage flex-common" id="siteMessage3"> |
|
|
<h3>收款方式<span>至少需要配置1种收款方式</span></h3> |
|
|
<h3>收款方式<span>至少需要配置1种收款方式</span></h3> |
|
|
<el-form ref="formRef"> |
|
|
<el-form ref="formRef"> |
|
@ -394,6 +408,9 @@ export default { |
|
|
{ required: true, message: '请设置站点域名', trigger: [] } |
|
|
{ required: true, message: '请设置站点域名', trigger: [] } |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
saleChannels: [], |
|
|
|
|
|
saleChannel: 0, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -516,6 +533,8 @@ export default { |
|
|
this.siteDomain = response.data.domain; |
|
|
this.siteDomain = response.data.domain; |
|
|
this.domainPrefix = response.data.domain_prefix |
|
|
this.domainPrefix = response.data.domain_prefix |
|
|
this.domainName = response.data.domain_name |
|
|
this.domainName = response.data.domain_name |
|
|
|
|
|
this.saleChannels = response.data.sale_channels; |
|
|
|
|
|
this.saleChannel = Number(response.data.sale_channel); |
|
|
|
|
|
|
|
|
if ( |
|
|
if ( |
|
|
response.data && |
|
|
response.data && |
|
@ -643,6 +662,9 @@ export default { |
|
|
domainChange(){ |
|
|
domainChange(){ |
|
|
this.domainData.domainPrefix = this.domainPrefix |
|
|
this.domainData.domainPrefix = this.domainPrefix |
|
|
}, |
|
|
}, |
|
|
|
|
|
changeSaleChannel(data) { |
|
|
|
|
|
console.log(data, 'changeSaleChannel'); |
|
|
|
|
|
}, |
|
|
onSwitchChange(data) { |
|
|
onSwitchChange(data) { |
|
|
console.log(data, '---'); |
|
|
console.log(data, '---'); |
|
|
}, |
|
|
}, |
|
@ -761,6 +783,24 @@ export default { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
updateSaleChannel() { |
|
|
|
|
|
this.$http('POST', '/agentnew/ajax_update_site_sale_channel', { |
|
|
|
|
|
uid: this.$route.query.uid, |
|
|
|
|
|
sale_channel: this.saleChannel, |
|
|
|
|
|
}).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') |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|