gdpaomg
This commit is contained in:
@@ -251,6 +251,23 @@
|
||||
this.getArticlelist();
|
||||
this.getSwiper();
|
||||
},
|
||||
onLoad(){
|
||||
if(this.$store.state.hasLogin){
|
||||
const user = uni.getStorageSync('user_info');
|
||||
console.log(user)
|
||||
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)
|
||||
this.imService.connectIM()
|
||||
let that = this
|
||||
setTimeout(function(){
|
||||
that.imService.disconnect()
|
||||
console.log("guanbi")
|
||||
},1000)
|
||||
setTimeout(function(){
|
||||
console.log("lianjie")
|
||||
that.imService.connectIM()
|
||||
},2000)
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.getArticlelist();
|
||||
// this.getManicureList({ load: 'reload' });
|
||||
@@ -428,4 +445,4 @@
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
<view class="title">{{item.name}}</view>
|
||||
<view class="contentes u-line-1">{{item.text}}</view>
|
||||
<view class="times">{{item.time}}</view>
|
||||
<view class="tishi" v-if="item.unReadMessage"></view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -100,21 +102,7 @@
|
||||
if (this.hasLogin) {
|
||||
this.messageIndex();
|
||||
}
|
||||
if(this.$store.state.hasLogin){
|
||||
const user = uni.getStorageSync('user_info');
|
||||
console.log(user)
|
||||
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)
|
||||
this.imService.connectIM()
|
||||
let that = this
|
||||
setTimeout(function(){
|
||||
that.imService.disconnect()
|
||||
console.log("guanbi")
|
||||
},1000)
|
||||
setTimeout(function(){
|
||||
console.log("lianjie")
|
||||
that.imService.connectIM()
|
||||
},2000)
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
gochat(id){
|
||||
@@ -173,10 +161,14 @@
|
||||
},
|
||||
// 清空消息
|
||||
delMessage(){
|
||||
|
||||
this.$u.api.delMessage({
|
||||
type : "all"
|
||||
}).then((res)=>{
|
||||
console.log(res)
|
||||
this.imService.friends = {};
|
||||
this.information_dl = [];
|
||||
uni.setStorageSync('imlist',JSON.stringify([]));
|
||||
if(res.errCode == 0){
|
||||
this.$refs.uToast.show({
|
||||
title: '清除成功',
|
||||
@@ -194,6 +186,15 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.tishi{
|
||||
position: absolute;
|
||||
bottom: 30rpx;
|
||||
right: 30rpx;
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #FF0000;
|
||||
}
|
||||
.sousuo {
|
||||
height: 113rpx;
|
||||
border: 1px #f00 solid;
|
||||
@@ -236,6 +237,7 @@
|
||||
padding-bottom: 23rpx;
|
||||
border-bottom: 1px #ececec solid;
|
||||
padding: 20rpx 5rpx 23rpx 5rpx;
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
width: 84rpx;
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
<view class="member-service" @click="toOtherPage('/mine/MemberServe')">会员服务</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<!-- <view @click="toOtherPage('/mine/GoodsCollection')">
|
||||
<view @click="toOtherPage('/mine/GoodsCollection')">
|
||||
<view>{{ userInfo.member_fav_goods_num || 0 }}</view>
|
||||
<view>商品收藏</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- <view @click="toOtherPage('/mine/StoreCollection')">
|
||||
<view>{{ userInfo.member_fav_store_num || 0 }}</view>
|
||||
<view>店铺收藏</view>
|
||||
@@ -158,7 +158,7 @@ export default {
|
||||
methods: {
|
||||
getUserInfo() {
|
||||
this.$u.api.getMemberInfo().then(res => {
|
||||
uni.stopPullDownRefresh();
|
||||
// uni.stopPullDownRefresh();
|
||||
if (res.errCode == 0) {
|
||||
// this.userInfo = res.data.MemberArray;
|
||||
this.$set(this, 'userInfo', res.data.MemberArray);
|
||||
@@ -329,6 +329,12 @@ export default {
|
||||
}
|
||||
.content {
|
||||
justify-content: space-between;
|
||||
> view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
> view:nth-child(1){
|
||||
@include image-size($image-width: 33rpx, $image-height: 36rpx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user