| 1234567891011121314151617181920212223242526272829303132333435 |
- <template>
- <view class="blacklog-container">
- <web-view v-if="isShow" :src="webViewUrl"></web-view>
- </view>
- </template>
- <script>
- export default{
- data(){
- return{
- isShow:false,
- webViewUrl:''
- }
- },
- onLoad(option = {}) {
- let headers = {};
- const value = uni.getStorageSync("token"); //取存本地的token
- headers = {
- "content-type": "application/json",
- "zoomwin-token": value,
- Authorization: value,
- "zoomwin-sid": uni.getStorageSync("userInfo").sessionId,
- };
- setTimeout(()=>{
- const params = JSON.parse(option.params)
- let html = params.type =='add'? 'a.html':'c.html'
- this.webViewUrl = `/hybrid/html/${html}?params=${JSON.stringify(params)}&headers=${JSON.stringify(headers)}`
- this.isShow = true
- })
- },
- }
- </script>
- <style>
- </style>
|