mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 20:06:48 +08:00
提交
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
{"path" : "pages/study/courseAssess","style" : {"navigationBarTitleText": "课程评估","enablePullDownRefresh": false}},
|
{"path" : "pages/study/courseAssess","style" : {"navigationBarTitleText": "课程评估","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/study/loaddetail","style" : {"navigationBarTitleText": "学习任务详细信息","enablePullDownRefresh": false}},
|
{"path" : "pages/study/loaddetail","style" : {"navigationBarTitleText": "学习任务详细信息","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/study/studydetail","style" : {"navigationBarTitleText": "自主学习详细信息","enablePullDownRefresh": false}},
|
{"path" : "pages/study/studydetail","style" : {"navigationBarTitleText": "自主学习详细信息","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/news/index","style" : {"navigationBarTitleText": "消息","enablePullDownRefresh": true}},
|
{"path" : "pages/news/index","style" : {"navigationBarTitleText": "消息","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/index","style" : {"navigationBarTitleText": "我的","enablePullDownRefresh": false}},
|
{"path" : "pages/my/index","style" : {"navigationBarTitleText": "我的","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/myub","style" : {"navigationBarTitleText": "我的u币","enablePullDownRefresh": false}},
|
{"path" : "pages/my/myub","style" : {"navigationBarTitleText": "我的u币","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/myubrules","style" : {"navigationBarTitleText": "u币规则","enablePullDownRefresh": false}},
|
{"path" : "pages/my/myubrules","style" : {"navigationBarTitleText": "u币规则","enablePullDownRefresh": false}},
|
||||||
@@ -45,9 +45,9 @@
|
|||||||
{"path" : "pages/my/headimg","style" : {"navigationBarTitleText": "修改头像","enablePullDownRefresh": false}},
|
{"path" : "pages/my/headimg","style" : {"navigationBarTitleText": "修改头像","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/uCurrencyRules","style" : {"navigationBarTitleText": "U币规则","enablePullDownRefresh": false}},
|
{"path" : "pages/my/uCurrencyRules","style" : {"navigationBarTitleText": "U币规则","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/rankingList","style" : {"navigationBarTitleText": "排行榜","enablePullDownRefresh": false}},
|
{"path" : "pages/my/rankingList","style" : {"navigationBarTitleText": "排行榜","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/follow","style" : {"navigationBarTitleText": "关注列表","enablePullDownRefresh": true}},
|
{"path" : "pages/my/follow","style" : {"navigationBarTitleText": "关注列表","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/myQa","style" : {"navigationBarTitleText": "我的问答","enablePullDownRefresh": true}},
|
{"path" : "pages/my/myQa","style" : {"navigationBarTitleText": "我的问答","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/my/myMedal","style" : {"navigationBarTitleText": "我的勋章","enablePullDownRefresh": true}},
|
{"path" : "pages/my/myMedal","style" : {"navigationBarTitleText": "我的勋章","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/login/login","style" : { "navigationBarTitleText": "","enablePullDownRefresh": false}},
|
{"path" : "pages/login/login","style" : { "navigationBarTitleText": "","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/login/loading","style" : { "navigationBarTitleText": "正在加载","enablePullDownRefresh": false}},
|
{"path" : "pages/login/loading","style" : { "navigationBarTitleText": "正在加载","enablePullDownRefresh": false}},
|
||||||
{"path" : "pages/plus/index","style" : {"navigationBarTitleText": "发布内容"}},
|
{"path" : "pages/plus/index","style" : {"navigationBarTitleText": "发布内容"}},
|
||||||
|
|||||||
@@ -91,12 +91,14 @@
|
|||||||
pageIndex:1,
|
pageIndex:1,
|
||||||
pageSize:10,
|
pageSize:10,
|
||||||
list:[],
|
list:[],
|
||||||
|
count:0
|
||||||
},
|
},
|
||||||
follow:{
|
follow:{
|
||||||
aid:'',
|
aid:'',
|
||||||
pageIndex:1,
|
pageIndex:1,
|
||||||
pageSize:10,
|
pageSize:10,
|
||||||
list:[],
|
list:[],
|
||||||
|
count:0
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -105,10 +107,10 @@
|
|||||||
this.onReachBottom();
|
this.onReachBottom();
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if(this.tab == 1) {//关注我的
|
if(this.tab == 1 && this.followMe.list.length<this.followMe.count) {//关注我的
|
||||||
this.followMe.pageIndex ++;
|
this.followMe.pageIndex ++;
|
||||||
this.getMyPage();
|
this.getMyPage();
|
||||||
} else {//我关注的
|
} else if(this.tab == 2 && this.follow.list.length<this.follow.count){//我关注的
|
||||||
this.follow.pageIndex ++;
|
this.follow.pageIndex ++;
|
||||||
this.getPage();
|
this.getPage();
|
||||||
}
|
}
|
||||||
@@ -159,8 +161,10 @@
|
|||||||
apiFollow.save(item.userFollow.aid).then(res=>{
|
apiFollow.save(item.userFollow.aid).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
$this.followMe.list[index].has = true;
|
$this.followMe.list[index].has = true;
|
||||||
|
// 手动把关注成功的数据push进我关注的列表
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message);
|
// this.$message.error(res.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -174,9 +178,7 @@
|
|||||||
apiFollow.mypage(this.followMe).then(res=>{
|
apiFollow.mypage(this.followMe).then(res=>{
|
||||||
setTimeout(function(){ uni.hideLoading() },100);
|
setTimeout(function(){ uni.hideLoading() },100);
|
||||||
if(res.status== 200) {
|
if(res.status== 200) {
|
||||||
if($this.followMe.pageIndex>=res.result.totalPages){
|
this.followMe.count = res.result.count;
|
||||||
$this.loadStatus='noMore';
|
|
||||||
}
|
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''}
|
item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''}
|
||||||
})
|
})
|
||||||
@@ -194,9 +196,7 @@
|
|||||||
apiFollow.page(this.follow).then(res=>{
|
apiFollow.page(this.follow).then(res=>{
|
||||||
setTimeout(function(){ uni.hideLoading() },100);
|
setTimeout(function(){ uni.hideLoading() },100);
|
||||||
if(res.status== 200) {
|
if(res.status== 200) {
|
||||||
if($this.follow.pageIndex>=res.result.totalPages){
|
this.follow.count = res.result.count;
|
||||||
$this.loadStatus='noMore';
|
|
||||||
}
|
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''}
|
item.userFollow.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null ,sign:''}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user