Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
5e1bf5a0
Commit
5e1bf5a0
authored
Jan 13, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6927701f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
13 deletions
+30
-13
friendcircle.vue
pages/friendcircle/friendcircle.vue
+12
-3
teacherDetails.vue
pages/school/teacherDetails.vue
+18
-10
No files found.
pages/friendcircle/friendcircle.vue
View file @
5e1bf5a0
...
@@ -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
=
{
...
...
pages/school/teacherDetails.vue
View file @
5e1bf5a0
...
@@ -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'
})
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment