From e9749370ac9956cd7a5dd76b3da3d14817757379 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Sat, 09 May 2026 17:32:30 +0800
Subject: [PATCH] feat:星享购 领取虚拟权益跳转第三方权益
---
pages/web/toUrl.vue | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/pages/web/toUrl.vue b/pages/web/toUrl.vue
new file mode 100644
index 0000000..9d3dae4
--- /dev/null
+++ b/pages/web/toUrl.vue
@@ -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>
--
Gitblit v1.9.3