|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div style="height: 100vh">
|
|
|
|
|
|
+ <div class="pageDetail">
|
|
<yx-navbar :isBack="true" :title="title"></yx-navbar>
|
|
<yx-navbar :isBack="true" :title="title"></yx-navbar>
|
|
<iframe class="iframe" v-if="src" :src="src" frameborder="0"></iframe>
|
|
<iframe class="iframe" v-if="src" :src="src" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
@@ -18,10 +18,12 @@ export default {
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.title = options.title
|
|
this.title = options.title
|
|
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')
|
|
|
|
+ let userInfo = this.$store.state.$userInfo
|
|
this.src = `${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', {
|
|
|
|
+ tenant_id: userInfo.tenantId, // 租户id
|
|
attr1: appName, // 应用名称
|
|
attr1: appName, // 应用名称
|
|
attr2: options.id, // 应用id
|
|
attr2: options.id, // 应用id
|
|
attr3: createUserId, // 创建人id
|
|
attr3: createUserId, // 创建人id
|