Commit 5e1bf5a0 authored by Mac's avatar Mac

1

parent 6927701f
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
</view> </view>
</u-popup> </u-popup>
</view> </view>
<tabbar></tabbar> <tabbar v-if='barshow==0'></tabbar>
</div> </div>
</template> </template>
...@@ -420,7 +420,8 @@ ...@@ -420,7 +420,8 @@
controls:false,//显示默认控件 controls:false,//显示默认控件
dianindex:0,//点的索引 dianindex:0,//点的索引
inputheight:0,//键盘的高度 inputheight:0,//键盘的高度
is_bang:0 is_bang:0,
barshow:0,
} }
}, },
created() { created() {
...@@ -447,7 +448,15 @@ ...@@ -447,7 +448,15 @@
}); });
}, },
onLoad() { onLoad(options) {
if(options ){
if(options.ID){
this.msg.UserTeacher=options.ID
}
if(options.barshow){
this.barshow=options.barshow
}
}
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
......
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
</view> </view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gob'></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gob'></auth>
</view> </view>
<u-modal v-model="showdelete" content="是否关注查看更多?" :show-cancel-button='true' @cancel='gourlfriend' @confirm='setFollowTeacher(1)'></u-modal>
</scroll-view> </scroll-view>
</template> </template>
...@@ -213,6 +213,7 @@ ...@@ -213,6 +213,7 @@
nowbofo: false, nowbofo: false,
playindex:0, playindex:0,
showdelete:false,
} }
}, },
components: { components: {
...@@ -297,7 +298,7 @@ ...@@ -297,7 +298,7 @@
scrollTopHandler() { scrollTopHandler() {
this.scrollTop = 0; this.scrollTop = 0;
}, },
setFollowTeacher(){//关注和取消老师 setFollowTeacher(type=0){//关注和取消老师
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
...@@ -306,11 +307,11 @@ ...@@ -306,11 +307,11 @@
}; };
this.showAuth = true; this.showAuth = true;
}else{ }else{
this.followTeacher() this.followTeacher(type)
} }
}, },
followTeacher(){ followTeacher(type){
this.request2({ this.request2({
url: '/api/AppletEducation/FollowTeacher', url: '/api/AppletEducation/FollowTeacher',
data: { data: {
...@@ -335,8 +336,9 @@ ...@@ -335,8 +336,9 @@
); );
} }
}) })
if(type==1){
that.gourlfriend()
}
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none', icon: 'none',
...@@ -417,18 +419,24 @@ ...@@ -417,18 +419,24 @@
}, },
godetails(x,i){//跳入详情 godetails(x,i){//跳入详情
uni.navigateTo({ uni.navigateTo({
url: '/pages/friendcircle/mydetails?ID=' + x.id+'&index='+i url: '/pages/friendcircle/mydetails?ID=' + x.id
}) })
innerAudioContext.stop(); innerAudioContext.stop();
}, },
seeMore(){//查看更多 seeMore(){//查看更多
let DynamicStatus = this.teacher.teacherResult.DynamicStatus; let DynamicStatus = this.teacher.teacherResult.DynamicStatus;
if(DynamicStatus==1 || DynamicStatus==3){ if(DynamicStatus==1 || DynamicStatus==3){
uni.navigateTo({ this.gourlfriend()
url: '/pages/friendcircle/friendcircle?ID=' + x.id+'&index='+i
}) }else if(DynamicStatus==4){
this.showdelete=true
} }
}, },
gourlfriend(){//不关注直接去看动态
uni.navigateTo({
url: '/pages/friendcircle/friendcircle?ID=' + this.id +'&barshow=1'
})
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment