From 51cca32d236262be90f2d39b8889fa343f1adfa1 Mon Sep 17 00:00:00 2001 From: 13404089107 <puwei@sinata.cn> Date: 星期四, 08 五月 2025 16:13:37 +0800 Subject: [PATCH] 迭代 --- pages/home/webh5/webh5.js | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pages/home/webh5/webh5.js b/pages/home/webh5/webh5.js index 7f793de..39ba25b 100644 --- a/pages/home/webh5/webh5.js +++ b/pages/home/webh5/webh5.js @@ -12,12 +12,21 @@ * 生命周期函数--监听页面加载 */ onLoad: function (options) { - this.setData({ - userId:wx.getStorageSync('userId'), + if (options.act == 1) { + let url = options.url + '?id=' + options.id + this.setData({ + url: url, + userId: wx.getStorageSync('userId'), + }) + } else { + this.setData({ + userId: wx.getStorageSync('userId'), // url:'http://120.220.4.138:9591/user/share/shareIndex.html?uid='+wx.getStorageSync('userId')+'&type='+1, - url:'https://xn95128.cn/user/share/shareIndex.html?uid='+wx.getStorageSync('userId')+'&type='+1, + url: 'https://xn95128.cn/user/share/shareIndex.html?uid=' + wx.getStorageSync('userId') + '&type=' + 1, // url1:'http://39.108.148.228:8080/orderShare/index.html?orderId=1622' - }) + }) + } + }, /** -- Gitblit v1.7.1