@@ -22,7 +22,9 @@
"ignore": [],
"disablePlugins": [],
"outputPath": ""
- }
+ },
+ "useCompilerModule": false,
+ "userConfirmedUseCompilerModuleSwitch": false
},
"compileType": "miniprogram",
"libVersion": "2.14.1",
@@ -37,6 +39,8 @@
"hidedInDevtools": []
"scripts": {},
+ "simulatorType": "wechat",
+ "simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
@@ -39,8 +39,9 @@ export default {
wx.navigateTo({ url });
}else if(type == 'web_view'){
// webview
+ wx.setStorageSync('webviewUrl', item.redirectPath)
wx.navigateTo({
- url: '/pages/h5Page/main?src='+url
+ url: '/pages/h5Page/main'
})
}
@@ -19,17 +19,20 @@ export default {
onHide() {
- onUnload() {
+ onShareAppMessage: function (res) {
+ onShareTimeline: function(res) {
onShow() {
+ wx.show
onLoad(options) {
wx.showLoading({
title: '加载中',
- console.log(options.src)
- this.src = options.src
-
+ // 获取页面地址
+ this.src = wx.getStorageSync('webviewUrl') + '&win=mini'
+ console.log(this.src)
setTimeout(function() {
wx.hideLoading()
}, 3000);
@@ -95,8 +95,9 @@ export default {