From 26fb0b3e76f52212a2cef49a0bc0b94e7425880c Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 29 七月 2024 10:55:10 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_jiaxuan/pages/index/index.js | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/wechat_jiaxuan/pages/index/index.js b/wechat_jiaxuan/pages/index/index.js
index 701604f..2e777c9 100644
--- a/wechat_jiaxuan/pages/index/index.js
+++ b/wechat_jiaxuan/pages/index/index.js
@@ -8,7 +8,9 @@
getZhongTaiVideoPage,
getZhongTaiProductNewsPage
} from '../../api/index'
-const { HYEventBus } = require('hy-event-store')
+const {
+ HYEventBus
+} = require('hy-event-store')
const eventBus = new HYEventBus()
Page({
@@ -93,7 +95,6 @@
url: '/pages/calculator/index'
})
break;
-
case '2':
wx.navigateTo({
url: '/pages/design/design'
@@ -256,7 +257,7 @@
} = e.currentTarget.dataset
const item = e.currentTarget.dataset.item
console.log('item', item);
- if(item.openType){
+ if (item.openType) {
actionDo({
actionType: 'view',
id: item.id
@@ -272,7 +273,12 @@
}
if (item.openType == 'link') {
wx.navigateTo({
- url: '/pages/webView/index?link=' + item.openContent,
+ url: '/pages/webView/index',
+ success: function (res) {
+ res.eventChannel.emit('acceptDataFromOpenerPage', {
+ link: item.openContent || item.content
+ });
+ }
})
}
if (item.openType == 'page') {
--
Gitblit v1.9.3