This commit is contained in:
luyuan 2020-08-14 10:00:27 +08:00
parent 90e9e06915
commit bc2731f1f9
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
6 changed files with 26 additions and 6 deletions

View File

@ -419,6 +419,12 @@ export default {
order: order, order: order,
}); });
}, },
//取消红点
dynamicRead({id}) {
return vm.$u.post('message/dynamicRead', {
friend_tomid:id
});
},
} }
} }
} }

View File

@ -82,14 +82,20 @@ export default {
this.member_id = option.id; this.member_id = option.id;
this.getUserInfo(option.id); this.getUserInfo(option.id);
this.getArticlelist(); this.getArticlelist();
}, },
methods:{ methods:{
// //
getUserInfo(id) { getUserInfo(id) {
this.$u.post("MemberExpert/expertInfo",{member_id: id}).then(res => { this.$u.post("MemberExpert/expertInfo",{member_id: id}).then(res => {
// console.log(res); console.log(res);
this.userInfo = res.data.info; this.userInfo = res.data.info;
// console.log(this.userInfo); console.log(this.userInfo.is_attention);
if(this.userInfo.is_attention == 1){
this.$u.api.dynamicRead({id}).then((res)=>{
console.log(res)
})
}
}) })
}, },
// //

View File

@ -63,7 +63,7 @@
this.attention = res.data.data; this.attention = res.data.data;
} }
this.status = "loadmore" this.status = "loadmore"
if(res.data.data.length < 15){ if(res.data.data.length < parseInt(res.data.per_page)){
this.status = "nomore" this.status = "nomore"
} }
}) })

View File

@ -504,7 +504,7 @@
{ {
"path": "attention/attention", "path": "attention/attention",
"style": { "style": {
"navigationBarTitleText": "关注消息", "navigationBarTitleText": "达人消息",
"app-plus": { "app-plus": {
"titleSize": "36px", "titleSize": "36px",
"titleColor": "#333333", "titleColor": "#333333",

View File

@ -59,7 +59,7 @@
{ {
id: 0, id: 0,
url: '../../static/pageD/info(15).png', url: '../../static/pageD/info(15).png',
text: '关注消息' text: '达人消息'
}, },
], ],

View File

@ -338,13 +338,21 @@ export default {
danmulist:[] danmulist:[]
}; };
}, },
onBackPress(options) {
uni.setKeepScreenOn({
keepScreenOn: false
});
return false;
},
onLoad(a) { onLoad(a) {
this.url = a.url; this.url = a.url;
this.id = a.id this.id = a.id
console.log(this.url); console.log(this.url);
let that = this; let that = this;
uni.setKeepScreenOn({
keepScreenOn: true
});
uni.getSystemInfo({ uni.getSystemInfo({
success(a) { success(a) {