Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Jason_HeSL
一个小demo
提交
5ebe2eb4
一
一个小demo
项目概览
Jason_HeSL
/
一个小demo
通知
10
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
一
一个小demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5ebe2eb4
编写于
6月 04, 2021
作者:
K
kongbai121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
页面下拉
上级
07221063
变更
28
隐藏空白更改
内联
并排
Showing
28 changed file
with
140 addition
and
47 deletion
+140
-47
app.js
app.js
+2
-2
pages/chat/chat.js
pages/chat/chat.js
+6
-1
pages/chat/chat.json
pages/chat/chat.json
+2
-1
pages/chatDetailed/chatDetailed.js
pages/chatDetailed/chatDetailed.js
+7
-1
pages/chatDetailed/chatDetailed.json
pages/chatDetailed/chatDetailed.json
+2
-1
pages/chatRelease/chatRelease.json
pages/chatRelease/chatRelease.json
+2
-1
pages/data/data.js
pages/data/data.js
+7
-1
pages/data/data.json
pages/data/data.json
+2
-1
pages/forum/forum.js
pages/forum/forum.js
+4
-0
pages/forum/forum.json
pages/forum/forum.json
+2
-1
pages/information/information.json
pages/information/information.json
+2
-1
pages/letterList/letterList.js
pages/letterList/letterList.js
+21
-0
pages/letterList/letterList.wxml
pages/letterList/letterList.wxml
+48
-21
pages/newInformation/newInformation.js
pages/newInformation/newInformation.js
+1
-1
pages/newInformation/newInformation.json
pages/newInformation/newInformation.json
+2
-1
pages/newInformationthree/newInformationthree.json
pages/newInformationthree/newInformationthree.json
+2
-1
pages/newInformationtwo/newInformationtwo.js
pages/newInformationtwo/newInformationtwo.js
+1
-1
pages/newInformationtwo/newInformationtwo.json
pages/newInformationtwo/newInformationtwo.json
+2
-1
pages/own/own.js
pages/own/own.js
+6
-1
pages/own/own.json
pages/own/own.json
+2
-1
pages/ownData/ownData.json
pages/ownData/ownData.json
+2
-1
pages/ownTreeData/ownTreeData.js
pages/ownTreeData/ownTreeData.js
+1
-1
pages/ownTreeData/ownTreeData.json
pages/ownTreeData/ownTreeData.json
+2
-1
pages/release/release.json
pages/release/release.json
+2
-1
pages/resources/resources.js
pages/resources/resources.js
+1
-1
pages/resources/resources.json
pages/resources/resources.json
+2
-1
pages/resourcesDetails/resourcesDetails.js
pages/resourcesDetails/resourcesDetails.js
+5
-1
pages/resourcesDetails/resourcesDetails.json
pages/resourcesDetails/resourcesDetails.json
+2
-1
未找到文件。
app.js
浏览文件 @
5ebe2eb4
...
...
@@ -32,11 +32,11 @@ App({
token
:
null
,
//图片网络路径
// httpUrl:"http://
10.170.15.123
:8088/images",
// httpUrl:"http://
localhost
:8088/images",
httpUrl
:
"
https://kongbai121.xyz/images
"
,
//后台地址
// myUrl:"http://
10.170.15.123
:8080",
// myUrl:"http://
localhost
:8080",
myUrl
:
"
https://kongbai121.xyz/miniapp
"
,
//(为了减轻服务器负担,只在演示时开)
...
...
pages/chat/chat.js
浏览文件 @
5ebe2eb4
...
...
@@ -200,7 +200,12 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{},
onPullDownRefresh
:
function
()
{
this
.
listTree
();
this
.
setData
({
grade_name
:
'
分类
'
})
},
/**
* 页面上拉触底事件的处理函数
...
...
pages/chat/chat.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/chatDetailed/chatDetailed.js
浏览文件 @
5ebe2eb4
...
...
@@ -284,7 +284,13 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
setData
({
treeId
:
options
.
id
,
hasLogin
:
app
.
globalData
.
hasLogin
,
// treeId: 33
});
this
.
tree
();
this
.
opinion
();
},
/**
...
...
pages/chatDetailed/chatDetailed.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"树洞详情"
"navigationBarTitleText"
:
"树洞详情"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/chatRelease/chatRelease.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"发布"
"navigationBarTitleText"
:
"发布"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/data/data.js
浏览文件 @
5ebe2eb4
...
...
@@ -332,7 +332,13 @@ toggleDialogtwo(e) {
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
setData
({
articleId
:
options
.
id
,
hasLogin
:
app
.
globalData
.
hasLogin
,
// articleId: 33
});
this
.
article
();
this
.
comment
();
},
/**
...
...
pages/data/data.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"文章详细"
"navigationBarTitleText"
:
"文章详细"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/forum/forum.js
浏览文件 @
5ebe2eb4
...
...
@@ -172,6 +172,10 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
setData
({
inputData
:
''
});
this
.
listArticle
();
},
/**
...
...
pages/forum/forum.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/information/information.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"关于我们"
"navigationBarTitleText"
:
"关于我们"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/letterList/letterList.js
浏览文件 @
5ebe2eb4
...
...
@@ -7,6 +7,7 @@ Page({
* 页面的初始数据
*/
data
:
{
userid
:
null
,
chatList
:[]
},
...
...
@@ -41,6 +42,25 @@ Page({
})
return
;
}
wx
.
request
({
url
:
app
.
globalData
.
myUrl
+
'
/user/getUserId
'
,
data
:
{
token
:
app
.
globalData
.
token
},
success
:
(
res
)
=>
{
// console.log(res);
if
(
res
.
data
.
success
)
{
that
.
setData
({
userid
:
res
.
data
.
msg
})
}
else
{
that
.
errShowToast
(
res
.
data
.
msg
)
}
// console.log(that.data.chatList);
},
fail
:
(
res
)
=>
{},
complete
:
(
res
)
=>
{},
})
wx
.
request
({
url
:
app
.
globalData
.
myUrl
+
'
/chat/list
'
,
data
:
{
...
...
@@ -55,6 +75,7 @@ Page({
}
else
{
that
.
errShowToast
(
res
.
data
.
msg
)
}
// console.log(that.data.userid);
// console.log(that.data.chatList);
},
fail
:
(
res
)
=>
{},
...
...
pages/letterList/letterList.wxml
浏览文件 @
5ebe2eb4
<!-- 私信 -->
<view class="all" wx:for="{{chatList}}" wx:key="index">
<!-- 单个聊天框 -->
<view class="single" bindtap="beng" data-idd="{{item.toUser.id}}">
<!-- 未读信息数量 -->
<view class="marks" wx:if="{{item.unreadNum != 0}}">
<text>{{item.unreadNum}}</text>
</view>
<view class="left">
<!-- 左边头像 -->
<image src="{{item.toUser.avatarUrl}}"></image>
</view>
<!-- 右边个人信息 -->
<view class="right">
<view class="flex">
<!-- 用户id -->
<text class="title">{{item.toUser.nickName}}</text>
<!-- 最近一条聊天记录 -->
<text class="nextTitle">{{item.content}}</text>
<view wx:if="{{userid==item.toUserId}}">
<!-- 单个聊天框 -->
<view class="single" bindtap="beng" data-idd="{{item.user.id}}">
<!-- 未读信息数量 -->
<view class="marks" wx:if="{{item.unreadNum != 0}}">
<text>{{item.unreadNum}}</text>
</view>
<view class="left">
<!-- 左边头像 -->
<image src="{{item.user.avatarUrl}}"></image>
</view>
<!-- 右边个人信息 -->
<view class="right">
<view class="flex">
<!-- 用户id -->
<text class="title">{{item.user.nickName}}</text>
<!-- 最近一条聊天记录 -->
<text class="nextTitle">{{item.content}}</text>
</view>
</view>
<!-- 最右边的时间 -->
<view class="rightEnd">
<text class="time">{{item.ofTime}}</text>
</view>
</view>
<!-- 最右边的时间 -->
<view class="rightEnd">
<text class="time">{{item.ofTime}}</text>
</view>
<view wx:if="{{userid!=item.toUserId}}">
<!-- 单个聊天框 -->
<view class="single" bindtap="beng" data-idd="{{item.toUser.id}}">
<!-- 未读信息数量 -->
<view class="marks" wx:if="{{item.unreadNum != 0}}">
<text>{{item.unreadNum}}</text>
</view>
<view class="left">
<!-- 左边头像 -->
<image src="{{item.toUser.avatarUrl}}"></image>
</view>
<!-- 右边个人信息 -->
<view class="right">
<view class="flex">
<!-- 用户id -->
<text class="title">{{item.toUser.nickName}}</text>
<!-- 最近一条聊天记录 -->
<text class="nextTitle">{{item.content}}</text>
</view>
</view>
<!-- 最右边的时间 -->
<view class="rightEnd">
<text class="time">{{item.ofTime}}</text>
</view>
</view>
</view>
</view>
\ No newline at end of file
pages/newInformation/newInformation.js
浏览文件 @
5ebe2eb4
...
...
@@ -98,7 +98,7 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
commentLiseByUser
();
},
/**
...
...
pages/newInformation/newInformation.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"文章评论"
"navigationBarTitleText"
:
"文章评论"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/newInformationthree/newInformationthree.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/newInformationtwo/newInformationtwo.js
浏览文件 @
5ebe2eb4
...
...
@@ -97,7 +97,7 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
opinionLiseByUser
()
},
/**
...
...
pages/newInformationtwo/newInformationtwo.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"树洞评论"
"navigationBarTitleText"
:
"树洞评论"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/own/own.js
浏览文件 @
5ebe2eb4
...
...
@@ -375,7 +375,12 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
if
(
app
.
globalData
.
hasLogin
&&
!
app
.
globalData
.
openTime
)
{
this
.
getArticleNum
();
this
.
getTreeHoleNum
();
this
.
getNewCommentNum
();
this
.
getNewOpinionNum
();
}
},
/**
...
...
pages/own/own.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"个人中心"
"navigationBarTitleText"
:
"个人中心"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/ownData/ownData.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"您发过的帖子"
"navigationBarTitleText"
:
"您发过的帖子"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/ownTreeData/ownTreeData.js
浏览文件 @
5ebe2eb4
...
...
@@ -113,7 +113,7 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
list
Articl
e
();
this
.
list
Tre
e
();
// console.log(123);
},
...
...
pages/ownTreeData/ownTreeData.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"您发过的树洞"
"navigationBarTitleText"
:
"您发过的树洞"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/release/release.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"发帖"
"navigationBarTitleText"
:
"发帖"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/resources/resources.js
浏览文件 @
5ebe2eb4
...
...
@@ -150,7 +150,7 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
resourcesList
();
},
/**
...
...
pages/resources/resources.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"资源共享"
"navigationBarTitleText"
:
"资源共享"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
pages/resourcesDetails/resourcesDetails.js
浏览文件 @
5ebe2eb4
...
...
@@ -92,7 +92,11 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
this
.
setData
({
resourcesId
:
options
.
id
});
// console.log(this.data.resourcesId);
this
.
getResources
();
},
/**
...
...
pages/resourcesDetails/resourcesDetails.json
浏览文件 @
5ebe2eb4
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"资源详细"
"navigationBarTitleText"
:
"资源详细"
,
"enablePullDownRefresh"
:
true
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录