Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ijianbo
winxin-app-watch-life.net
提交
6ec34a3b
W
winxin-app-watch-life.net
项目概览
ijianbo
/
winxin-app-watch-life.net
通知
60
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
winxin-app-watch-life.net
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6ec34a3b
编写于
7月 07, 2020
作者:
J
jianbo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加入 wx.showShareMenu支持转发到朋友圈
上级
2844beae
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
60 addition
and
8 deletion
+60
-8
pages/comments/comments.js
pages/comments/comments.js
+11
-6
pages/detail/detail.js
pages/detail/detail.js
+8
-0
pages/hot/hot.js
pages/hot/hot.js
+8
-0
pages/index/index.js
pages/index/index.js
+8
-0
pages/list/list.js
pages/list/list.js
+8
-0
pages/topic/topic.js
pages/topic/topic.js
+9
-0
project.config.json
project.config.json
+8
-2
未找到文件。
pages/comments/comments.js
浏览文件 @
6ec34a3b
...
...
@@ -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
=
"
分享
"
+
webS
iteName
+
"
的最新评论
"
;
var
title
=
"
分享
"
+
config
.
getWebs
iteName
+
"
的最新评论
"
;
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
();
},
//获取文章列表数据
...
...
pages/detail/detail.js
浏览文件 @
6ec34a3b
...
...
@@ -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
);
...
...
pages/hot/hot.js
浏览文件 @
6ec34a3b
...
...
@@ -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
"
);
},
...
...
pages/index/index.js
浏览文件 @
6ec34a3b
...
...
@@ -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
);
...
...
pages/list/list.js
浏览文件 @
6ec34a3b
...
...
@@ -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
)
{
...
...
pages/topic/topic.js
浏览文件 @
6ec34a3b
...
...
@@ -35,6 +35,15 @@ Page({
wx
.
setNavigationBarTitle
({
title
:
'
专题
'
});
wx
.
showShareMenu
({
withShareTicket
:
true
,
menus
:[
'
shareAppMessage
'
,
'
shareTimeline
'
],
success
:
function
(
e
)
{
//console.log(e);
}
})
this
.
fetchCategoriesData
();
...
...
project.config.json
浏览文件 @
6ec34a3b
...
...
@@ -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"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录