From cd58a72cccae3f5c84894ec0cf362fc1b7448371 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 15:20:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_jiaxuan/pages/webView/index.js | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/wechat_jiaxuan/pages/webView/index.js b/wechat_jiaxuan/pages/webView/index.js
index 530c487..000d2cd 100644
--- a/wechat_jiaxuan/pages/webView/index.js
+++ b/wechat_jiaxuan/pages/webView/index.js
@@ -14,18 +14,13 @@
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 })
- })
- }
+
+ 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 })
+ })
},
/**
--
Gitblit v1.9.3