From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交
---
wechat_jiaxuan/pages/webView/index.js | 21 +++++++--------------
1 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/wechat_jiaxuan/pages/webView/index.js b/wechat_jiaxuan/pages/webView/index.js
index 530c487..5c21ada 100644
--- a/wechat_jiaxuan/pages/webView/index.js
+++ b/wechat_jiaxuan/pages/webView/index.js
@@ -12,20 +12,13 @@
link: ''
},
onLoad: function (options) {
- let that = this
- const eventChannel = this.getOpenerEventChannel()
-
- if (options.link) {
- that.setData({ link: options.link, id: options.id })
- } else {
- // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- eventChannel.on('acceptDataFromOpenerPage', function(data) {
- console.log('鍙傛暟', data)
- if (data.title) wx.setNavigationBarTitle({ title: data.title })
- that.setData({ link: data.link, id: data.id })
- // saveBannerLookNum({ id: data.id })
- })
- }
+ let that = this
+ const eventChannel = this.getOpenerEventChannel()
+ eventChannel.on('acceptDataFromOpenerPage', function(data) {
+ console.log('鍙傛暟', data)
+ if (data.title) wx.setNavigationBarTitle({ title: data.title })
+ that.setData({ link: data.link, id: data.id })
+ })
},
/**
--
Gitblit v1.9.3