From 9605f1856c8ff9c59831e5a051b18f35081abe11 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Sat, 28 Oct 2023 11:04:31 +0800 Subject: [PATCH] 1 --- App.vue | 8 ++++++++ unpackage/dist/build/h5/index.html | 2 +- .../h5/static/js/{index.ab56e499.js => index.a4bfbdeb.js} | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) rename unpackage/dist/build/h5/static/js/{index.ab56e499.js => index.a4bfbdeb.js} (52%) diff --git a/App.vue b/App.vue index 599c6fe..f8db1e2 100644 --- a/App.vue +++ b/App.vue @@ -27,6 +27,14 @@ export default { // uni.hideTabBar() // },100) }, + methods:{ + getQueryString(name) { + let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); + let r = window.location.search.substr(1).match(reg); + if (r !== null) return unescape(r[2]); + return null; + }, + }, onHide: function() { console.log('App Hide'); diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index c3f589c..d80862b 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -1,2 +1,2 @@