detail.vue
690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template>
<view>
<web-view :src="visualBoardUrl"></web-view>
</view>
</template>
<script>
import config from '../../../../config/baseUrl.js'
export default {
data(){
return {
visualBoardUrl:'',
}
},
async onLoad(e){
const url = await this.createShareUrl({id:e.id})
console.log(url,'url')
this.visualBoardUrl = url
},
methods:{
getUrl(id,userId){
return `/appPage/${id}/${userId}`
},
async createShareUrl(record){
const userInfo = uni.getStorageSync('userInfo')
const { id } = record;
// http://192.168.10.131:8083
return `${config.baseVisualUrl}${this.getUrl(id,userInfo.userId)}`;
}
}
}
</script>
<style>
</style>