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
3cc424f6
Commit
3cc424f6
authored
Oct 24, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
parents
a36cbab3
b7b4a8e3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
33 deletions
+60
-33
cart.vue
pages/cart/cart.vue
+1
-1
articleDetails.vue
pages/school/articleDetails.vue
+23
-13
courseInfo.vue
pages/school/courseInfo.vue
+31
-15
teacherDetails.vue
pages/school/teacherDetails.vue
+5
-4
No files found.
pages/cart/cart.vue
View file @
3cc424f6
...
...
@@ -10,7 +10,7 @@
"
>
<Text
class=
"grid-text"
v-if=
'IsEducation!=1'
>
商品库存有限,请尽快下单哦
</Text>
<Text
class=
"grid-text"
v-if=
'IsEducation==1'
>
共
{{
list
[
0
].
GoodsList
.
length
}}
个课程
</Text>
<Text
class=
"grid-text"
v-if=
'IsEducation==1'
>
共
{{
list
[
0
].
GoodsList
.
length
?
list
[
0
].
GoodsList
.
length
:
'0'
}}
个课程
</Text>
<Text
@
click=
"edit"
v-if=
"editType == false && list[0].GoodsList.length>0"
class=
"grid-text_r"
>
编辑
</Text>
<Text
@
click=
"edit"
v-if=
"editType == true"
class=
"grid-text_r"
>
完成
</Text>
</view>
...
...
pages/school/articleDetails.vue
View file @
3cc424f6
...
...
@@ -156,6 +156,14 @@ export default {
);
},
addComment
(){
//新增留言
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
};
this
.
showAuth
=
true
;
}
else
{
this
.
request2
({
url
:
'/api/AppletEducation/SetArticleCommentInfo'
,
data
:
this
.
commentMsg
...
...
@@ -169,6 +177,8 @@ export default {
this
.
getArticleCommentPageList
()
//留言了之后调取留言列表
}
);
}
},
//图片预览
previewImage2
(
index
,
images
)
{
...
...
pages/school/courseInfo.vue
View file @
3cc424f6
...
...
@@ -363,6 +363,7 @@ export default {
},
onShow
(){
this
.
init
();
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
},
onShareTimeline
()
{
setTimeout
(()
=>
{
...
...
@@ -564,6 +565,7 @@ export default {
);
},
joinCar(){//加入购物车
if (this.u) {
this.request2(
{
url: '
/
api
/
AppletOrder
/
SetGoodsShoppingCartInfo
',
...
...
@@ -581,8 +583,13 @@ export default {
});
}
);
} else {
this.showAuth = true;
}
},
setFavorite(){
if (this.u) {
this.request2(
{
url: '
/
api
/
AppletUser
/
SetUserCollectionInfo
',
...
...
@@ -594,10 +601,15 @@ export default {
this.g.favorite = !this.g.favorite;
}
);
} else {
this.showAuth = true;
}
},
gocourse(item,index){//跳入课程详情
if (this.u) {
if(item.IsPay!=1){
if(item.IsTrySee==1){
uni.navigateTo({
...
...
@@ -615,6 +627,10 @@ export default {
url:'
/
pages
/
school
/
courseContent
?
id
=
'+this.id+'
&
name
=
'+this.g.name+'
&
cover_pic
=
'+this.g.cover_pic+'
&
index
=
'+index
})
}
} else {
this.showAuth = true;
}
},
...
...
pages/school/teacherDetails.vue
View file @
3cc424f6
...
...
@@ -139,9 +139,7 @@
if
(
options
&&
options
.
ID
){
this
.
id
=
options
.
ID
;
this
.
msg
.
TeacherId
=
options
.
ID
;
if
(
uni
.
getStorageSync
(
"mall_UserInfo"
)){
this
.
UserId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
0
}
this
.
getTeacher
()
//根据老师id获取老师详情
this
.
init
()
//根据老师id获取老师的课程列表
}
...
...
@@ -183,6 +181,9 @@
);
},
getTeacher
(){
if
(
uni
.
getStorageSync
(
"mall_UserInfo"
)){
this
.
UserId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
0
}
this
.
request2
({
url
:
'/api/AppletSchool/GetTeacherModel'
,
data
:
{
ID
:
this
.
id
,
UserId
:
this
.
UserId
}
...
...
@@ -247,7 +248,7 @@
},
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
follow
Teacher
()
this
.
get
Teacher
()
},
gob
(){
this
.
showAuth
=
false
;
...
...
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