|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div style="height: 100vh">
|
|
<div style="height: 100vh">
|
|
<yx-navbar :isBack="true" :title="title"></yx-navbar>
|
|
<yx-navbar :isBack="true" :title="title"></yx-navbar>
|
|
- <iframe class="iframe" v-if="url" :src="url" frameborder="0"></iframe>
|
|
|
|
|
|
+ <iframe class="iframe" v-if="src" :src="src" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -12,7 +12,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
title: '详情',
|
|
title: '详情',
|
|
- url: '',
|
|
|
|
|
|
+ src: '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -20,7 +20,7 @@ export default {
|
|
appDetail({appId: options.id}).then(res => {
|
|
appDetail({appId: options.id}).then(res => {
|
|
let {createUserId,appName}= res.data
|
|
let {createUserId,appName}= res.data
|
|
let token = Cookies.get('congress')
|
|
let token = Cookies.get('congress')
|
|
- this.url = `${window._CONFIG.APP_READY}?path=miniapp&appid=${options.id}&token=${token}#/newbi/auth`
|
|
|
|
|
|
+ this.src = `${window._CONFIG.APP_READY}?path=miniapp&appid=${options.id}&token=${token}#/newbi/auth`
|
|
window.$sensors.track('appPreview', {
|
|
window.$sensors.track('appPreview', {
|
|
attr1: appName, // 应用名称
|
|
attr1: appName, // 应用名称
|
|
attr2: options.id, // 应用id
|
|
attr2: options.id, // 应用id
|