|
|
@ -3,7 +3,7 @@ |
|
|
|
|
|
|
|
<PromptText text='平台针对不同品牌产品,已做了风险提醒义务,请安全规避销售。平台仅保障货品正版,针对有风险的产品,请具备安全销售方案后再开展销售。' :type="3" /> |
|
|
|
|
|
|
|
<div class="supply-list" v-for="(vers, classify_id) in classifyId2Vers" :key="classify_id"> |
|
|
|
<div class="supply-list" v-for="(vers, classify_id) in classifyId2Vers" :key="classify_id" :id="'section_'+classify_id"> |
|
|
|
<div class="classify-title mr-20">{{ classifyId2Name[classify_id] }}</div> |
|
|
|
<div class="classify"> |
|
|
|
<div class="ver-anchor-point flex" v-for="verid in vers" :key="verid"> |
|
|
@ -91,6 +91,14 @@ export default { |
|
|
|
store.commit('SET_PAGETITLE', '基本设置'); |
|
|
|
|
|
|
|
this.getSupplyServiceList(); |
|
|
|
if (this.$route.hash) { |
|
|
|
setTimeout(() => { |
|
|
|
const el = document.querySelector(this.$route.hash) |
|
|
|
if (el) { |
|
|
|
el.scrollIntoView({ behavior: 'smooth', block: 'start' }) |
|
|
|
} |
|
|
|
}, 500) |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
scrollToAnchor(ver) { |
|
|
@ -102,23 +110,23 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
getSupplyServiceList() { |
|
|
|
this.$http('POST', '/agentnew/ajax_get_supply_services', { |
|
|
|
|
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.classifyId2Name = response.data.classifyid2name; |
|
|
|
this.classifyId2Vers = response.data.classifyid2vers; |
|
|
|
this.ver2types = response.data.ver2types; |
|
|
|
this.ver2info = response.data.ver2info; |
|
|
|
this.type2name = response.data.type2name; |
|
|
|
this.type2info = response.data.type2info; |
|
|
|
this.supplyPriceList = response.data.supply_price; |
|
|
|
this.salePolicy = response.data.sale_policy; |
|
|
|
this.$http('POST', '/agentnew/ajax_get_supply_services', { |
|
|
|
|
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.classifyId2Name = response.data.classifyid2name; |
|
|
|
this.classifyId2Vers = response.data.classifyid2vers; |
|
|
|
this.ver2types = response.data.ver2types; |
|
|
|
this.ver2info = response.data.ver2info; |
|
|
|
this.type2name = response.data.type2name; |
|
|
|
this.type2info = response.data.type2info; |
|
|
|
this.supplyPriceList = response.data.supply_price; |
|
|
|
this.salePolicy = response.data.sale_policy; |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|