diff --git a/pages.json b/pages.json
index 906021f..fb224cb 100644
--- a/pages.json
+++ b/pages.json
@@ -8,6 +8,13 @@
}
},
"pages": [
+ // {
+ // "path" : "pages/common/commentArea/commentArea",
+ // "style" :
+ // {
+ // "navigationBarTitleText" : "评论区"
+ // }
+ // },
{
"path": "pages/index",
"style": {
@@ -187,7 +194,22 @@
"style": {
"navigationBarTitleText": "添加好友"
}
+ },
+ {
+ "path" : "pages/post/postInfo/postInfo",
+ "style" :
+ {
+ "navigationBarTitleText" : "话题详情"
+ }
+ },
+ {
+ "path" : "pages/post/postPublish/postPublish",
+ "style" :
+ {
+ "navigationBarTitleText" : "发布话题"
+ }
}
+
// {
// "path": "pages/signln/signiddetails",
// "style": {
diff --git a/pages/common/commentArea/commentArea.vue b/pages/common/commentArea/commentArea.vue
new file mode 100644
index 0000000..e69de29
diff --git a/pages/common/postview/index.vue b/pages/common/postview/index.vue
index ced057d..09b93c2 100644
--- a/pages/common/postview/index.vue
+++ b/pages/common/postview/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -18,8 +18,8 @@
- 关注
- 已关注
+ 关注
+ 已关注
{{postValue.title}}
@@ -29,7 +29,7 @@
+ @tap.stop="previewImage(postValue.media[0], postValue.media)">
@@ -62,7 +62,7 @@
- {{ postValue.likeCount }}
+ {{ postValue.likeCount }}
@@ -80,7 +80,7 @@
- {{ postValue.favoriteCount }}
+ {{ postValue.favoriteCount }}
@@ -91,7 +91,6 @@
-
@@ -128,6 +127,13 @@
// favoriteCount: 136
// }
// );
+ const { proxy } = getCurrentInstance();
+ const toPostInfoView = () => {
+ if(props.postViewType == 1) {
+ return;
+ }
+ proxy.$tab.navigateTo('/pages/post/postInfo/postInfo')
+ }
const previewImage = (url, urls) => {
uni.previewImage({
@@ -170,7 +176,7 @@
.center-content-post {
}
.center-content-post-padding {
- padding: 46rpx 32rpx;
+ padding: 46rpx 32rpx 28rpx 32rpx;
}
.center-content-post-head {
display: flex;
@@ -238,7 +244,7 @@
font-weight: 400;
/* width: 670rpx; */
// height: 80rpx;
- font-size: 32rpx;
+ font-size: 30rpx;
text-align: left;
color: #333333;
margin-top: 18rpx;
@@ -253,7 +259,7 @@
font-weight: 400;
/* width: 670rpx; */
// height: 80rpx;
- font-size: 32rpx;
+ font-size: 30rpx;
text-align: left;
color: #333333;
margin-top: 18rpx;
@@ -278,11 +284,12 @@
.center-content-post-tab{
margin-top: 20rpx;
- margin-bottom: 20rpx;
+ // margin-bottom: 20rpx;
}
.post-list-bottom {
+ margin-top: 20rpx;
display: flex;
justify-content: center; /* 水平居中 */
}
@@ -326,6 +333,30 @@
margin-left: 10rpx;
}
+ .count-like{
+ font-weight: 400;
+ width: 48rpx;
+ /* height: 23rpx; */
+ font-size: 28rpx;
+ text-align: left;
+ color: #FA3939;
+ margin-left: 10rpx;
+ }
+
+ .count-favorite{
+ font-weight: 400;
+ width: 48rpx;
+ /* height: 23rpx; */
+ font-size: 28rpx;
+ text-align: left;
+ color: #FFC729;
+ margin-left: 10rpx;
+ }
+
+ .avatar-container {
+ position: relative;
+ }
+
.avatar-1 {
position: relative;
}
diff --git a/pages/index.vue b/pages/index.vue
index 93a7e1d..b91ad44 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -65,6 +65,7 @@
+
@@ -245,7 +246,10 @@ import PostView from "@/pages/common/postview/index.vue";
]);
const publishTalk = (item) => {
- console.log()
+ if(item.id === 1){
+ //todo 判断用户是否有增加活动的接口调用权限
+ proxy.$tab.navigateTo('/pages/post/postPublish/postPublish')
+ }
if(item.id === 2){
//todo 判断用户是否有增加活动的接口调用权限
proxy.$tab.navigateTo('/pages/activity/publish')
@@ -529,22 +533,6 @@ import PostView from "@/pages/common/postview/index.vue";
.box-d {
border-color: #91b4ff;
}
-
- .avatar-container {
- position: relative;
- }
-
- .avatar-1 {
- position: relative;
- }
-
- .official-1 {
- position: absolute;
- width: 32rpx;
- height: 32rpx;
- bottom: 0;
- right: 0;
- }
.image-container {
display: inline-block;
diff --git a/pages/post/postInfo/postInfo.vue b/pages/post/postInfo/postInfo.vue
new file mode 100644
index 0000000..304b998
--- /dev/null
+++ b/pages/post/postInfo/postInfo.vue
@@ -0,0 +1,221 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/post/postPublish/postPublish.vue b/pages/post/postPublish/postPublish.vue
new file mode 100644
index 0000000..4960278
--- /dev/null
+++ b/pages/post/postPublish/postPublish.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加话题(最多可添加2条)
+
+
+
+
+
+
+ 添加定位
+
+
+
+
+
+ 发布
+
+ 存草稿
+
+
+
+
+
\ No newline at end of file
diff --git a/static/images/icon/no_comment.png b/static/images/icon/no_comment.png
new file mode 100644
index 0000000..61ff8a6
Binary files /dev/null and b/static/images/icon/no_comment.png differ
diff --git a/static/images/icon/no_comment@2x.png b/static/images/icon/no_comment@2x.png
new file mode 100644
index 0000000..ebd0798
Binary files /dev/null and b/static/images/icon/no_comment@2x.png differ