Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
e14dc05c
Great Teamwork
项目概览
_milo
/
Great Teamwork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Great Teamwork
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e14dc05c
编写于
5月 25, 2023
作者:
赵十四
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改详情页面bug
上级
bb56aab5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
9 deletion
+12
-9
teamwork/pages/post/post-detail.vue
teamwork/pages/post/post-detail.vue
+2
-2
teamwork/pages/post/post.vue
teamwork/pages/post/post.vue
+10
-7
teamwork/static/post/message.png
teamwork/static/post/message.png
+0
-0
未找到文件。
teamwork/pages/post/post-detail.vue
浏览文件 @
e14dc05c
...
...
@@ -17,8 +17,8 @@
<text
class=
"text-content"
>
{{
postDetail
.
content
}}
</text>
<view
class=
"img-conetent"
>
<!-- 多张图片 -->
<view
class=
"one-img"
v-for=
"(img,imgIndex) in
item
.pictureList"
>
<view
class=
"post-pic"
@
click
.stop=
"showPic(imgIndex,item
.pictureList)"
<view
class=
"one-img"
v-for=
"(img,imgIndex) in
postDetail
.pictureList"
>
<view
class=
"post-pic"
@
click
=
"showPic(imgIndex,postDetail
.pictureList)"
:style=
"'background: url('+img+') no-repeat center/cover #eeeeee;'"
></view>
</view>
...
...
teamwork/pages/post/post.vue
浏览文件 @
e14dc05c
...
...
@@ -14,6 +14,10 @@
</u-tabs>
<!-- 所有帖子 -->
<view
v-if=
"current == 1"
>
<view
class=
"message"
>
新增
{{
messageNum
}}
条消息~
</view>
<view
v-for=
"(item,index) in allPost"
:key=
"index"
>
<!-- 单个帖子 -->
<view
class=
"one-post"
@
click=
"toDetial(item.postId)"
>
...
...
@@ -56,10 +60,8 @@
</view>
<!-- 我的帖子 -->
<view
v-if=
"current == 0"
>
<view
class=
"message"
>
您一共收到
{{
messageNum
}}
条消息~
</view>
<!-- 消息按钮 -->
<image
:src=
"'/static/post/message.png'"
style=
"float: right;width: 30px;height:30px; margin-right: 10%; "
></image>
<!-- 单个帖子 -->
<view
v-for=
"(item,index) in myPost"
:key=
"index"
>
...
...
@@ -149,6 +151,7 @@
};
},
methods
:
{
//转到帖子的详情页面
toDetial
(
postId
)
{
uni
.
navigateTo
({
url
:
'
/pages/post/post-detail?postId=
'
+
postId
...
...
@@ -174,7 +177,7 @@
})
.
then
(
res
=>
{
this
.
allPost
=
res
.
result
.
data
.
postList
;
//console.log(res.result.data);
});
},
//获得我的帖子
...
...
@@ -187,7 +190,7 @@
})
.
then
(
res
=>
{
this
.
myPost
=
res
.
result
.
data
.
postList
;
console
.
log
(
res
.
result
.
data
);
});
},
// 图片放大
...
...
@@ -300,7 +303,7 @@
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
background-color
:
rgb
(
245
154
35
/
3
0%
);
background-color
:
rgb
(
245
154
35
/
6
0%
);
}
.one-post
{
...
...
teamwork/static/post/message.png
0 → 100644
浏览文件 @
e14dc05c
2.7 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录