用户端uniapp修改
This commit is contained in:
parent
651bf29e91
commit
c0adbaff50
@ -61,9 +61,6 @@
|
|||||||
onLoad() {
|
onLoad() {
|
||||||
this.getLastPost();
|
this.getLastPost();
|
||||||
},
|
},
|
||||||
onShow() {
|
|
||||||
// this.getMsgNum();
|
|
||||||
},
|
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.current === 0) {
|
if (this.current === 0) {
|
||||||
this.page1++;
|
this.page1++;
|
||||||
@ -80,7 +77,6 @@
|
|||||||
this.page1 = 1;
|
this.page1 = 1;
|
||||||
this.followUserPost = [];
|
this.followUserPost = [];
|
||||||
this.getFollowUserPost();
|
this.getFollowUserPost();
|
||||||
// this.getMsgNum();
|
|
||||||
}
|
}
|
||||||
if (this.current === 1) {
|
if (this.current === 1) {
|
||||||
this.page2 = 1;
|
this.page2 = 1;
|
||||||
@ -90,11 +86,7 @@
|
|||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getMsgNum() {
|
|
||||||
this.$H.post('message/num').then(res => {
|
|
||||||
this.$store.state.messegeNum = [0, 0, 0, res.result.allCount, 0];
|
|
||||||
});
|
|
||||||
},
|
|
||||||
tabChange(index) {
|
tabChange(index) {
|
||||||
this.current = index;
|
this.current = index;
|
||||||
this.followUserPost = [];
|
this.followUserPost = [];
|
||||||
@ -103,7 +95,7 @@
|
|||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
this.page1 = 1;
|
this.page1 = 1;
|
||||||
this.getFollowUserPost();
|
this.getFollowUserPost();
|
||||||
this.getMsgNum();
|
|
||||||
}
|
}
|
||||||
if (index === 1) {
|
if (index === 1) {
|
||||||
this.page2 = 1;
|
this.page2 = 1;
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
shape="circle" size="mini">
|
shape="circle" size="mini">
|
||||||
<text>已关注</text>
|
<text>已关注</text>
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button @click="jump('/pages/chat/chat?user='+userJson)" :custom-style="btnStyle2"
|
<u-button @click="" :custom-style="btnStyle2"
|
||||||
shape="circle" size="mini">
|
shape="circle" size="mini">
|
||||||
<text style="margin: 0 15rpx;">私信</text>
|
<text style="margin: 0 15rpx;">私信</text>
|
||||||
</u-button>
|
</u-button>
|
||||||
@ -40,11 +40,15 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 发贴入口 -->
|
||||||
|
<add-post-tag></add-post-tag>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import postList from '../../components/post-list/post-list.vue';
|
import postList from '../../components/post-list/post-list.vue';
|
||||||
|
import addPostTag from '../../components/add-post-tag/add-post-tag.vue';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
postList
|
postList
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
<!-- #ifdef MP-WEIXIN -->
|
<!-- #ifdef MP-WEIXIN -->
|
||||||
<u-grid-item>
|
<u-grid-item>
|
||||||
<button open-type="contact" class="u-reset-button">
|
<button open-type="contact" class="u-reset-button">
|
||||||
<image class="gn-icon" style="margin-bottom: unset;" src="/static/m_8.png"></image>
|
<image class="gn-icon" style="margin-bottom: unset;" src="/static/img/kefu.png"></image>
|
||||||
<view class="grid-text">客服</view>
|
<view class="grid-text">客服</view>
|
||||||
</button>
|
</button>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
Loading…
Reference in New Issue
Block a user