瀏覽代碼

扫码优化

wulanhaote
庞东旭 2 年之前
父節點
當前提交
b0e28b6cea
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. +2
    -3
      src/views/lawEnforcement/retrospect/retrospectDetail.vue

+ 2
- 3
src/views/lawEnforcement/retrospect/retrospectDetail.vue 查看文件

@@ -25,8 +25,7 @@
<div class="main_box">
<a style="font-size: 14px;display: block;width: 100%;text-align: center;">{{scanLink}}</a>
</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>
</div>

@@ -106,8 +105,8 @@
watch: {
$route (to, from ) {
// 监听路由变化, 实现类似 小程序的 onShow 事件
console.log(to.path)
if (to.path === '/lawEnforcement/retrospectDetail') {
console.log(this.scanLink)
// do anything you want
if (Cookies.get('scanLink')){
this.scanLink = Cookies.get('scanLink');


Loading…
取消
儲存