|
@@ -25,8 +25,7 @@ |
|
|
<div class="main_box"> |
|
|
<div class="main_box"> |
|
|
<a style="font-size: 14px;display: block;width: 100%;text-align: center;">{{scanLink}}</a> |
|
|
<a style="font-size: 14px;display: block;width: 100%;text-align: center;">{{scanLink}}</a> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="iframe-wrap" v-if="scanLink.indexOf('http')>0"> |
|
|
|
|
|
|
|
|
<div class="iframe-wrap" v-if="scanLink.indexOf('http')>-1"> |
|
|
<iframe id="iframe" :src="scanLink" class="iframe" width="100%" frameborder="0"></iframe> |
|
|
<iframe id="iframe" :src="scanLink" class="iframe" width="100%" frameborder="0"></iframe> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
@@ -106,8 +105,8 @@ |
|
|
watch: { |
|
|
watch: { |
|
|
$route (to, from ) { |
|
|
$route (to, from ) { |
|
|
// 监听路由变化, 实现类似 小程序的 onShow 事件 |
|
|
// 监听路由变化, 实现类似 小程序的 onShow 事件 |
|
|
|
|
|
console.log(to.path) |
|
|
if (to.path === '/lawEnforcement/retrospectDetail') { |
|
|
if (to.path === '/lawEnforcement/retrospectDetail') { |
|
|
console.log(this.scanLink) |
|
|
|
|
|
// do anything you want |
|
|
// do anything you want |
|
|
if (Cookies.get('scanLink')){ |
|
|
if (Cookies.get('scanLink')){ |
|
|
this.scanLink = Cookies.get('scanLink'); |
|
|
this.scanLink = Cookies.get('scanLink'); |
|
|