12345678910111213141516171819202122232425262728 |
- <template>
- <view>
- <web-view :src="href"></web-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- href:""
- };
- },
- onLoad(option) {
- this.href = option.url + "?token="+uni.getStorageSync('Authorization')
-
- //#ifdef H5
- if(this.href.indexOf('https://mp.weixin.qq.com') != -1){
- window.location.href = this.href;
- }
- //#endif
- }
- }
- </script>
- <style lang="scss">
- </style>
|