Commit b218d2bf by Lyan

官网零售页面新增

parent e84375aa
......@@ -895,6 +895,14 @@ const routes = [{
},
component: () => import("@/views/News/Retail.vue"),
},
{
path: "/News/Retailcode",
name: "Retailcode",
meta: {
name: "零售二维码",
},
component: () => import("@/views/News/Retailcode.vue"),
},
{
path: "/News/Logistics",
......
......@@ -15,7 +15,7 @@
<div class="div2">
<div class="row">
<div class="col-lg-5">
<div class="col-lg-5" @click="goRetailCode" style="cursor: pointer;">
<p class="div-title">零售2027行动@二维码——GS1全球二维码迁移</p>
<img src="../../assets/image/news/ls2.png" alt="" />
</div>
......@@ -345,6 +345,11 @@ export default {
}
});
},
goRetailCode(){
this.$router.push({
path: '/News/Retailcode',
});
},
// 获取首页最新动态
async getHomeLatestNews() {
const params = {
......
<template>
<div class="cont">
<iframe src="http://www.gs1cn.org/2023/bmhtml/zty.html"
frameborder="0" marginheight="0" marginwidth="0" scrolling="no" id="ifm" name="ifd" height="5375px"
onload="this.height=ifd.document.body.scrollHeight" width="100%">您的浏览器不支持嵌入式框架,或者当前配置为不显示嵌入式框架。 </iframe>
</div>
</template>
<script language="javascript" type="text/javascript">
</script>
<script>
export default {
data() {
return {
};
},
mounted() {
},
created(){
},
methods: {
dyniframesize(down) {
var pTar = null;
if (document.getElementById){
pTar = document.getElementById(down);
}
else{
eval('pTar = ' + down + ';');
}
if (pTar && !window.opera){
//begin resizing iframe
pTar.style.display="block"
if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){
//ns6 syntax
pTar.height = pTar.contentDocument.body.offsetHeight +20;
pTar.width = pTar.contentDocument.body.scrollWidth+20;
}
else if (pTar.Document && pTar.Document.body.scrollHeight){
//ie5+ syntax
pTar.height = pTar.Document.body.scrollHeight;
pTar.width = pTar.Document.body.scrollWidth;
}
}
}
},
};
</script>
<style scoped>
.cont{
height: 100%;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment