Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mohuishou committed Jun 24, 2018
1 parent 373e976 commit 3bdab9c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
30 changes: 29 additions & 1 deletion src/pages/course/details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,29 @@ page {
ad {
margin-top: 20rpx;
}
.btn {
background-color: transparent;
padding: 0;
margin: 0;
display: block;
width: 100%;
height: 100%;
border: none;
padding-left: 0;
padding-right: 0;
border-radius: 0;
font-size: 0rpx;
&::after {
content: "";
width: 0;
height: 0;
-webkit-transform: scale(1);
transform: scale(1);
display: none;
background-color: transparent;
}
}
</style>

<template>
Expand Down Expand Up @@ -292,7 +315,7 @@ ad {
</view>
</view>
<view class="header">
成绩分布
成绩分布
</view>
<view class="course-chart panel">
<view class="chart-header">
Expand Down Expand Up @@ -633,5 +656,10 @@ export default class CourseLists extends wepy.page {
this.options = options;
// this.init()
}
onShareAppMessage(options) {
return {
title: "我发现一门超级棒的课程"
};
}
}
</script>
14 changes: 9 additions & 5 deletions src/pages/schedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ scroll-view {
学期设置
</view>
</picker>
<view @tap="share" class="iconfont icon-pengyouquan"></view>
<view @tap="add" class="iconfont icon-add"></view>
</view>
</view>
Expand Down Expand Up @@ -237,6 +238,9 @@ export default class Schedule extends wepy.page {
}
};
methods = {
share() {
wepy.navigateTo({ url: "/pages/share/schedule" });
},
changeYearTerm(e) {
this.year_terms_val = e.detail.value;
this.params.year = this.year_terms[0][this.year_terms_val[0]];
Expand All @@ -245,7 +249,7 @@ export default class Schedule extends wepy.page {
this.getAndInit();
},
toCourseDetail(course_id, lesson_id) {
if (course_id && this.isGraduate) {
if (this.isGraduate && isNaN(course_id - 0)) {
return;
}
if (!course_id || !lesson_id) {
Expand Down Expand Up @@ -413,12 +417,12 @@ export default class Schedule extends wepy.page {
} else {
await this.updateSchedules();
}
await this.getAndInit()
await this.getAndInit();
} catch (error) {
console.error(error);
}
wepy.stopPullDownRefresh();
wepy.redirectTo({ url: '/pages/schedule' });
wepy.redirectTo({ url: "/pages/schedule" });
}
initSchedules(schedules) {
const myScheduleItems = db.Get("myScheduleItems") || [];
Expand All @@ -443,8 +447,8 @@ export default class Schedule extends wepy.page {
if (e.session !== "") {
e.sessionArr = e.session.split(",");
e.flex = e.sessionArr.length;
if (!('address') in e ) {
e.address = e.campus + e.building + e.classroom
if (!"address" in e) {
e.address = e.campus + e.building + e.classroom;
}
}
// 判断是否为本周课程
Expand Down

0 comments on commit 3bdab9c

Please sign in to comment.