1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view>
- <web-view update-title :src="href"></web-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- href: ""
- };
- },
- onLoad(option) {
- // #ifndef APP-NVUE
- const eventChannel = this.getOpenerEventChannel();
- // #endif
- // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
- eventChannel.on('acceptDataFromOpenerPage', (data) => {
- console.log(data)
-
- let url = escape(data.url)
- console.log(url)
- console.log(unescape(url))
-
- // this.href = "http://oa_system.nxjiewei.com:8011/oa_login?staff_num=" + uni.getStorageSync('user').staff_num + "&url=" + url
-
-
- this.href = "http://webdevelop.nxjiewei.com/assets/html/zhks-quankuang/ningdongyunying/download/oa_login/?staff_num=" + uni.getStorageSync('user').staff_num + "&url=" + url
-
- // this.href = "http://oa_system.nxjiewei.com:8011/?m=ying&d=we&mnum=carmrese&show=we&hideheader=true"
- })
-
- // this.href = "http://oa_system.nxjiewei.com:8011/oa_login?staff_num=" + uni.getStorageSync('user').staff_num + "&url=" + escape("http://oa_system.nxjiewei.com:8011/?m=ying&d=we&num=flow&hideheader=true")
- }
- }
- </script>
- <style lang="scss">
- </style>
|