From f1bcbcb10006807787247219df78e0408742604b Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 22 八月 2025 10:59:09 +0800 Subject: [PATCH] 1.采购台账开发联调 --- src/pages/common/webview/index.vue | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/src/pages/common/webview/index.vue b/src/pages/common/webview/index.vue new file mode 100644 index 0000000..8388c76 --- /dev/null +++ b/src/pages/common/webview/index.vue @@ -0,0 +1,34 @@ +<template> + <view v-if="params.url"> + <web-view :webview-styles="webviewStyles" :src="`${params.url}`"></web-view> + </view> +</template> + +<script> + export default { + data() { + return { + params: {}, + webviewStyles: { + progress: { + color: "#FF3333" + } + } + } + }, + props: { + src: { + type: [String], + default: null + } + }, + onLoad(event) { + this.params = event + if (event.title) { + uni.setNavigationBarTitle({ + title: event.title + }) + } + } + } +</script> -- Gitblit v1.9.3