vr跳转
This commit is contained in:
parent
17940d484e
commit
4ddb9bfd5c
23
page_user/webViewVR/webViewVR.vue
Normal file
23
page_user/webViewVR/webViewVR.vue
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<template>
|
||||
<view class="pages">
|
||||
<web-view ref="webview" :src="https"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
https: "",
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.id = decodeURIComponent(option.id);
|
||||
this.https = "http://192.168.2.129:4500/guide?id=" + this.id;
|
||||
console.log("id:" + option.id);
|
||||
},
|
||||
methods: {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
@ -245,6 +245,12 @@
|
|||
"navigationBarTitleText": "上传",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "webViewVR/webViewVR",
|
||||
"style": {
|
||||
"navigationBarTitleText": "VR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
@click="toggleAudio"
|
||||
></image>
|
||||
</view>
|
||||
<view class="tubiao-item">
|
||||
<view class="tubiao-item" @click="goToVR">
|
||||
<image :src="pageConfig.topIcons.bottomIcon.img" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -446,6 +446,13 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
goToVR() {
|
||||
let id = "15";
|
||||
uni.navigateTo({
|
||||
url: "/page_user/webViewVR/webViewVR?id=" + id,
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 切换音频播放状态
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user