diff --git a/pages/comments/comments.js b/pages/comments/comments.js index cab1edcce41f5bb99454f014ee1bf90a70d3d2e9..8da5caae7c544a0f6789e93c6c4900ce43f016a3 100644 --- a/pages/comments/comments.js +++ b/pages/comments/comments.js @@ -18,20 +18,17 @@ var wxRequest = require('../../utils/wxRequest.js') import config from '../../utils/config.js' var pageCount = config.getPageCount; -var webSiteName= config.getWebsiteName; -var domain =config.getDomain + Page({ data: { title: '最新评论列表', showerror: "none", showallDisplay: "block", - readLogs: [], - webSiteName:webSiteName, - domain:domain + readLogs: [] }, onShareAppMessage: function () { - var title = "分享"+webSiteName+"的最新评论"; + var title = "分享"+config.getWebsiteName+"的最新评论"; var path = "pages/comments/comments"; return { title: title, @@ -58,6 +55,14 @@ Page({ }, onLoad: function (options) { var self = this; + wx.showShareMenu({ +       withShareTicket:true, +       menus:['shareAppMessage','shareTimeline'], + success:function(e) + { + //console.log(e); + } + }) self.fetchCommentsData(); }, //获取文章列表数据 diff --git a/pages/detail/detail.js b/pages/detail/detail.js index 0feb6347a9e35fc48eb2eab7b0e93522817aacac..b2aebe13db84ce7530e0adb1b7ddcaa4d178d190 100644 --- a/pages/detail/detail.js +++ b/pages/detail/detail.js @@ -100,6 +100,14 @@ Page({ }, onLoad: function (options) { var self = this; + wx.showShareMenu({ +       withShareTicket:true, +       menus:['shareAppMessage','shareTimeline'], + success:function(e) + { + //console.log(e); + } + }) self.getEnableComment(); self.fetchDetailData(options.id); Auth.setUserInfoData(self); diff --git a/pages/hot/hot.js b/pages/hot/hot.js index 365cec117914edf575ec6b803f6e4add5800b293..fae48e83c3b3baec772fc64b4b4bb0f84f0b2ebe 100644 --- a/pages/hot/hot.js +++ b/pages/hot/hot.js @@ -109,6 +109,14 @@ Page({ onLoad: function (options) { var self = this; + wx.showShareMenu({ +       withShareTicket:true, +       menus:['shareAppMessage','shareTimeline'], + success:function(e) + { + //console.log(e); + } + }) this.fetchPostsData("1"); }, diff --git a/pages/index/index.js b/pages/index/index.js index cb78d42587de92198ccb4e13df6fde5b08c16071..55e4f11b86a80ededcee46d59a6df859c1bc1760 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -114,6 +114,14 @@ Page({ }, onLoad: function (options) { var self = this; + wx.showShareMenu({ +       withShareTicket:true, +       menus:['shareAppMessage','shareTimeline'], + success:function(e) + { + //console.log(e); + } + }) self.fetchTopFivePosts(); self.fetchPostsData(self.data); diff --git a/pages/list/list.js b/pages/list/list.js index 81d33dea75f88e50ba2de36a3850558a209dc2b4..f4a309c48c785859fcbf4e91da1c3872f31ca28d 100644 --- a/pages/list/list.js +++ b/pages/list/list.js @@ -139,6 +139,14 @@ Page({ }, onLoad: function (options) { var self = this; + wx.showShareMenu({ +       withShareTicket:true, +       menus:['shareAppMessage','shareTimeline'], + success:function(e) + { + //console.log(e); + } + }) // 设置插屏广告 this.setInterstitialAd(); if (options.categoryID && options.categoryID != 0) { diff --git a/pages/topic/topic.js b/pages/topic/topic.js index 10c2a5a0b3ff135350af57ce53ecc6c0c9a08e0e..54b13e8e8b5bf386817366bb2877ab9306bcf45f 100644 --- a/pages/topic/topic.js +++ b/pages/topic/topic.js @@ -35,6 +35,15 @@ Page({ wx.setNavigationBarTitle({ title: '专题' }); + + wx.showShareMenu({ +       withShareTicket:true, +       menus:['shareAppMessage','shareTimeline'], + success:function(e) + { + //console.log(e); + } + }) this.fetchCategoriesData(); diff --git a/project.config.json b/project.config.json index 2d3fc1a276bc6cd73ff12d7454a0d7c4505e889b..04e2988b3ccad273f340b17bacf51b0bdf3d4ade 100644 --- a/project.config.json +++ b/project.config.json @@ -8,19 +8,25 @@ "minified": true, "newFeature": true, "coverView": true, + "nodeModules": true, "autoAudits": false, + "scopeDataCheck": false, + "uglifyFileName": true, "checkInvalidKey": true, "checkSiteMap": true, "uploadWithSourceMap": true, + "compileHotReLoad": false, "babelSetting": { "ignore": [], "disablePlugins": [], "outputPath": "" }, - "uglifyFileName": true + "useIsolateContext": true, + "useCompilerModule": true, + "userConfirmedUseCompilerModuleSwitch": false }, "compileType": "miniprogram", - "libVersion": "2.6.6", + "libVersion": "2.11.3", "appid": "wx39075d0bde24f9f7", "projectname": "%22%E5%AE%88%E6%9C%9B%E8%BD%A9%22%E7%BD%91%E7%AB%99%E5%B0%8F%E7%A8%8B%E5%BA%8F", "simulatorType": "wechat",