用户端uniapp修改

This commit is contained in:
linfeng 2022-10-21 15:41:36 +08:00
parent 651bf29e91
commit c0adbaff50
4 changed files with 8 additions and 12 deletions

View File

@ -61,9 +61,6 @@
onLoad() {
this.getLastPost();
},
onShow() {
// this.getMsgNum();
},
onReachBottom() {
if (this.current === 0) {
this.page1++;
@ -80,7 +77,6 @@
this.page1 = 1;
this.followUserPost = [];
this.getFollowUserPost();
// this.getMsgNum();
}
if (this.current === 1) {
this.page2 = 1;
@ -90,11 +86,7 @@
uni.stopPullDownRefresh();
},
methods: {
getMsgNum() {
this.$H.post('message/num').then(res => {
this.$store.state.messegeNum = [0, 0, 0, res.result.allCount, 0];
});
},
tabChange(index) {
this.current = index;
this.followUserPost = [];
@ -103,7 +95,7 @@
if (index === 0) {
this.page1 = 1;
this.getFollowUserPost();
this.getMsgNum();
}
if (index === 1) {
this.page2 = 1;

View File

@ -27,7 +27,7 @@
shape="circle" size="mini">
<text>已关注</text>
</u-button>
<u-button @click="jump('/pages/chat/chat?user='+userJson)" :custom-style="btnStyle2"
<u-button @click="" :custom-style="btnStyle2"
shape="circle" size="mini">
<text style="margin: 0 15rpx;">私信</text>
</u-button>
@ -40,11 +40,15 @@
</view>
</view>
<!-- 发贴入口 -->
<add-post-tag></add-post-tag>
</view>
</template>
<script>
import postList from '../../components/post-list/post-list.vue';
import addPostTag from '../../components/add-post-tag/add-post-tag.vue';
export default {
components: {
postList

View File

@ -67,7 +67,7 @@
<!-- #ifdef MP-WEIXIN -->
<u-grid-item>
<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>
</button>
</u-grid-item>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB