diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/components/add-post-tag/add-post-tag.vue b/src/main/resources/static/linfeng-community-uniapp-ky/components/add-post-tag/add-post-tag.vue
index b488143..a1e2575 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/components/add-post-tag/add-post-tag.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/components/add-post-tag/add-post-tag.vue
@@ -10,13 +10,13 @@
export default {
data() {
return {
-
+
};
},
methods: {
goPostAdd() {
uni.navigateTo({
- url:'/pages/post/add'
+ url: '/pages/post/add'
})
}
}
@@ -24,18 +24,17 @@
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue b/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue
index 6145645..18e868d 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue
@@ -3,24 +3,25 @@
-
-
-
-
-
-
- 官方
- {{ item.userInfo.username.substring(0, 10) }}
- 置顶
- 审核中
- 已下架
+
+
+
-
- {{ item.createTime}}
+
+
+ 官方
+ {{ item.userInfo.username.substring(0, 10) }}
+ 置顶
+ 审核中
+ 已下架
+
+
+ {{ item.createTime}}
+
-
-
+
@@ -56,9 +57,9 @@
-
+
-
+
@@ -78,17 +79,17 @@
{{ item.collectionCount }}
-
+
{{ item.commentCount }}
-
+
-
+
@@ -128,7 +129,7 @@
},
methods: {
-
+
cancelCollection(id, index) {
this.$H
.post('post/cancelCollection', {
@@ -160,7 +161,7 @@
urls: urls // 需要预览的图片http链接列表
});
},
-
+
jump(e) {
let url;
@@ -173,7 +174,7 @@
url: url
});
},
-
+
toUser(uid) {
uni.navigateTo({
url: '/pages/user/home?uid=' + uid
@@ -198,7 +199,7 @@
height: 600rpx;
border-radius: 5px;
overflow: hidden;
-
+
}
.img-style-2 {
@@ -206,7 +207,7 @@
image {
margin: 5rpx;
-
+
width: 100%;
height: 305rpx;
}
@@ -220,19 +221,19 @@
width: 31.3%;
height: 200rpx;
margin: 0.6%;
-
+
}
}
-
+
.img-style-4 {
display: flex;
flex-wrap: wrap;
-
+
image {
width: 48%;
height: 320rpx;
margin: 0.5%;
-
+
}
}
}
@@ -255,26 +256,28 @@
.post-list-item {
display: flex;
align-items: center;
+
.avatar {
width: 85rpx;
height: 85rpx;
border-radius: 50%;
margin-right: 20rpx;
}
-
- .center{
+
+ .center {
flex: 1;
display: flex;
flex-direction: column;
font-size: 24rpx;
color: #999;
- .username{
+
+ .username {
font-size: 32rpx;
font-weight: 600;
color: #616161;
}
-
- .official{
+
+ .official {
display: inline-block;
font-size: 20rpx;
color: #ffffff;
@@ -283,7 +286,8 @@
border-radius: 10rpx;
margin-right: 10rpx;
}
- .officials{
+
+ .officials {
display: inline-block;
font-size: 25rpx;
color: #ffffff;
@@ -293,11 +297,13 @@
margin-left: 30rpx;
}
}
- .right{
+
+ .right {
height: 85rpx;
- .arrow-down{
+
+ .arrow-down {
color: #999;
- }
+ }
}
}
@@ -330,9 +336,4 @@
display: none !important;
}
}
-
-
-
-
-
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/components/user-list/user-list.vue b/src/main/resources/static/linfeng-community-uniapp-ky/components/user-list/user-list.vue
index 5e51a03..cb459f8 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/components/user-list/user-list.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/components/user-list/user-list.vue
@@ -8,102 +8,113 @@
- 关注
- 互相关注
- 已关注
+ 关注
+ 互相关注
+ 已关注
-
-
+
+
+
+
+
+
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue
index ec00902..2582834 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue
@@ -43,7 +43,7 @@
}
],
current: 1,
-
+
};
},
computed: {
@@ -97,15 +97,15 @@
},
tabChange(index) {
this.current = index;
- this.followUserPost=[];
- this.lastPost=[];
-
- if(index===0){
+ this.followUserPost = [];
+ this.lastPost = [];
+
+ if (index === 0) {
this.page1 = 1;
this.getFollowUserPost();
this.getMsgNum();
}
- if(index===1){
+ if (index === 1) {
this.page2 = 1;
this.getLastPost();
}
@@ -123,17 +123,17 @@
page: this.page1
})
.then(res => {
- if(res.code==0&&res.result){
+ if (res.code == 0 && res.result) {
this.followUserPost = this.followUserPost.concat(res.result.data);
if (res.result.current_page >= res.result.total || res.result.last_page === 0) {
this.loadStatus1 = 'nomore';
} else {
this.loadStatus1 = 'loadmore';
}
- }else{
+ } else {
this.loadStatus1 = 'nomore';
}
-
+
});
},
//获取最新帖子
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue
index 15ace73..cb1cdc0 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/category.vue
@@ -1,70 +1,71 @@
-
选择圈子类目
- {{ item.cateName }}
+ {{ item.cateName }}
-
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue
index e05b3fd..4725477 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/post/post.vue
@@ -55,7 +55,7 @@
-
+
@@ -108,7 +108,7 @@
{{ item.createTime }}
-
+
@@ -251,9 +251,9 @@
success: function() {
uni.hideToast();
uni.showToast({
- title: '复制成功快分享给好友叭~' ,
- icon: 'success',
- duration: 2000,
+ title: '复制成功快分享给好友叭~',
+ icon: 'success',
+ duration: 2000,
})
that.showShare = false;
}
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue
index 5fd781f..0a2ed25 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue
@@ -49,12 +49,12 @@
classList: [{
cateId: 0,
cateName: '推荐'
- } ],
+ }],
swiperList: [],
postList: [],
loadPostStatus: 'loadmore',
- classId:0,
- page:1,
+ classId: 0,
+ page: 1,
}
},
onLoad() {
@@ -63,22 +63,22 @@
this.getClassList();
},
onReachBottom() {
- if(this.pageCurrent == 0){
+ if (this.pageCurrent == 0) {
this.page++;
this.getPostList()
}
- if(this.pageCurrent == 1){
-
+ if (this.pageCurrent == 1) {
+
}
},
onPullDownRefresh() {
- if(this.pageCurrent == 0){
- this.page=1
- this.pageList=[]
+ if (this.pageCurrent == 0) {
+ this.page = 1
+ this.pageList = []
this.getPostList()
}
- if(this.pageCurrent == 1){
-
+ if (this.pageCurrent == 1) {
+
}
},
methods: {
@@ -100,20 +100,20 @@
},
tabChange(index) {
this.current = index
- this.page=1
- this.classId=this.classList[index].cateId
- this.postList=[]
+ this.page = 1
+ this.classId = this.classList[index].cateId
+ this.postList = []
this.getPostList()
},
- getClassList(){
- this.$H.get('topic/classList').then(res=>{
+ getClassList() {
+ this.$H.get('topic/classList').then(res => {
console.log(res.result)
- this.classList=this.classList.concat(res.result)
+ this.classList = this.classList.concat(res.result)
})
},
// 根据分页和分类展示帖子列表
getPostList() {
- console.log('classId:',this.classId)
+ console.log('classId:', this.classId)
this.loadPostStatus = 'loading';
this.$H
.post('post/list', {
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js b/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js
index 9ab43b3..4ff9062 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js
@@ -11,15 +11,15 @@ export default {
if (response.statusCode == 200 || response.statusCode == 0) {
if (response.data.code == 401 || response.data.code == 420) {
// #ifdef MP-WEIXIN
- uni.navigateTo({
- url: "/pages/login/weixin"
- })
+ uni.navigateTo({
+ url: "/pages/login/weixin"
+ })
// #endif
-
+
// #ifdef H5
- uni.navigateTo({
- url: "/pages/login/login"
- })
+ uni.navigateTo({
+ url: "/pages/login/login"
+ })
// #endif
}
@@ -64,4 +64,4 @@ export default {
return this.request(options);
}
-};
\ No newline at end of file
+};