lin
2026-05-09 e9749370ac9956cd7a5dd76b3da3d14817757379
feat:星享购 领取虚拟权益跳转第三方权益
1 files added
35 ■■■■■ changed files
pages/web/toUrl.vue 35 ●●●●● patch | view | raw | blame | history
pages/web/toUrl.vue
New file
@@ -0,0 +1,35 @@
<template>
  <web-view class="web-view" :webview-styles="webviewStyles" :src="url" :style="{width: windowW + 'px', height: windowH + 'px'}"></web-view>
</template>
<script>
export default {
  data() {
    return {
      windowH: 0,
      windowW: 0,
      webviewStyles: {
        progress: {
          color: 'transparent'
        }
      },
      url: ''
    }
  },
  onLoad(option) {
    if(option.webUel) this.url = decodeURIComponent(option.webUel);
    // 蚂蚁智能客服场景参数
    if(option.scene) this.url += `&scene=${option.scene}`;
    uni.setNavigationBarTitle({
      title: option.title
    })
    try {
      const res = uni.getSystemInfoSync();
      this.windowW = res.windowWidth;
      this.windowH = res.windowHeight;
    } catch (e) {
      // error
    }
  }
}
</script>