|
|
@ -267,8 +267,6 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
// AUTH |
|
|
|
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', |
|
|
|
uid: 0, |
|
|
|
type: 0, |
|
|
|
prodid: 0, |
|
|
@ -323,10 +321,6 @@ export default { |
|
|
|
that.$http('POST', '/agentnew/ajax_get_service_add_list', { |
|
|
|
uid: that.uid, |
|
|
|
prodid: that.prodid, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
that.$nextTick(() => { |
|
|
|
that.menuList = response.data |
|
|
@ -343,10 +337,6 @@ export default { |
|
|
|
that.$http('POST', '/agentnew/ajax_get_service_add_info', { |
|
|
|
uid: that.uid, |
|
|
|
type: that.type, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
if (response.status) { |
|
|
|
that.$nextTick(() => { |
|
|
@ -370,10 +360,6 @@ export default { |
|
|
|
that.$http('POST', '/agentnew/ajax_get_service_info', { |
|
|
|
uid: that.uid, |
|
|
|
type: that.type, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
that.$nextTick(() => { |
|
|
|
//默认未开启 |
|
|
@ -395,10 +381,6 @@ export default { |
|
|
|
that.$http('POST', '/agentnew/ajax_get_service_bind_goods', { |
|
|
|
uid: that.uid, |
|
|
|
type: that.type, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
if (response.status && response.data) { |
|
|
|
that.$nextTick(() => { |
|
|
@ -424,10 +406,6 @@ export default { |
|
|
|
this.$http('POST', '/agentnew/ajax_del_service', { |
|
|
|
uid: that.uid, |
|
|
|
type: that.type, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
if (response.status) { |
|
|
|
that.$message.success('删除成功'); |
|
|
@ -465,10 +443,6 @@ export default { |
|
|
|
unit_price: that.serviceInfo.price, |
|
|
|
b_unit_num: that.serviceInfo.base_unit_num, |
|
|
|
b_unit_price: that.serviceInfo.base_unit_price, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
if (response.status) { |
|
|
|
if (that.service_status === false) { |
|
|
@ -507,10 +481,6 @@ export default { |
|
|
|
unit_piece: that.serviceInfo.unit_piece, |
|
|
|
b_unit_num: that.serviceInfo.base_unit_num, |
|
|
|
b_unit_piece: that.serviceInfo.base_unit_piece, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
if (response.status) { |
|
|
|
if (that.service_status === false) { |
|
|
@ -554,10 +524,6 @@ export default { |
|
|
|
const that = this |
|
|
|
return await that.$http('POST', '/agentnew/ajax_get_pdd_page_code', { |
|
|
|
uid: uid, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
return response.data |
|
|
|
}).catch(error => { |
|
|
@ -591,10 +557,6 @@ export default { |
|
|
|
numiid: that.delRow.row.num_iid, |
|
|
|
skuid: that.delRow.row.sku_id, |
|
|
|
paytype: that.delRow.row.pay_type, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
if (response.status) { |
|
|
|
that.$message.success('删除成功'); |
|
|
@ -614,10 +576,6 @@ export default { |
|
|
|
uid: that.uid, |
|
|
|
type: that.type, |
|
|
|
id: id, |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
if (response.status) { |
|
|
|
that.$message.success('设置成功'); |
|
|
@ -635,11 +593,7 @@ export default { |
|
|
|
//------绑定相关 end------ |
|
|
|
jumpStep() { |
|
|
|
const that = this |
|
|
|
this.$http('POST', '/agentnew/ajax_get_not_finished_site', {},{ |
|
|
|
headers:{ |
|
|
|
'Auth': this.token |
|
|
|
} |
|
|
|
}).then(response => { |
|
|
|
this.$http('POST', '/agentnew/ajax_get_not_finished_site', {}).then(response => { |
|
|
|
if(Object.keys(response.data).length>0){ |
|
|
|
that.$router.push('/agent/siteAdd') |
|
|
|
} else { |
|
|
|