Commit 5e1bf5a0 authored by Mac's avatar Mac

1

parent 6927701f
......@@ -364,7 +364,7 @@
</view>
</u-popup>
</view>
<tabbar></tabbar>
<tabbar v-if='barshow==0'></tabbar>
</div>
</template>
......@@ -420,7 +420,8 @@
controls:false,//显示默认控件
dianindex:0,//点的索引
inputheight:0,//键盘的高度
is_bang:0
is_bang:0,
barshow:0,
}
},
created() {
......@@ -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");
if (!this.u) {
this.u = {
......
......@@ -170,7 +170,7 @@
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gob'></auth>
</view>
<u-modal v-model="showdelete" content="是否关注查看更多?" :show-cancel-button='true' @cancel='gourlfriend' @confirm='setFollowTeacher(1)'></u-modal>
</scroll-view>
</template>
......@@ -213,6 +213,7 @@
nowbofo: false,
playindex:0,
showdelete:false,
}
},
components: {
......@@ -297,7 +298,7 @@
scrollTopHandler() {
this.scrollTop = 0;
},
setFollowTeacher(){//关注和取消老师
setFollowTeacher(type=0){//关注和取消老师
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
......@@ -306,11 +307,11 @@
};
this.showAuth = true;
}else{
this.followTeacher()
this.followTeacher(type)
}
},
followTeacher(){
followTeacher(type){
this.request2({
url: '/api/AppletEducation/FollowTeacher',
data: {
......@@ -335,8 +336,9 @@
);
}
})
if(type==1){
that.gourlfriend()
}
uni.showToast({
title: res.message,
icon: 'none',
......@@ -417,18 +419,24 @@
},
godetails(x,i){//跳入详情
uni.navigateTo({
url: '/pages/friendcircle/mydetails?ID=' + x.id+'&index='+i
url: '/pages/friendcircle/mydetails?ID=' + x.id
})
innerAudioContext.stop();
},
seeMore(){//查看更多
let DynamicStatus = this.teacher.teacherResult.DynamicStatus;
if(DynamicStatus==1 || DynamicStatus==3){
uni.navigateTo({
url: '/pages/friendcircle/friendcircle?ID=' + x.id+'&index='+i
})
this.gourlfriend()
}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