Procházet zdrojové kódy

扫码优化

wulanhaote
庞东旭 před 2 roky
rodič
revize
b0e28b6cea
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. +2
    -3
      src/views/lawEnforcement/retrospect/retrospectDetail.vue

+ 2
- 3
src/views/lawEnforcement/retrospect/retrospectDetail.vue Zobrazit soubor

@@ -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');


Načítá se…
Zrušit
Uložit