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

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mohuishou committed Jun 26, 2018
1 parent 3bdab9c commit 95f1b05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/grade.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ page {
<block wx:for="{{grades}}" wx:key="index">
<view class="grade-lists">
<view @tap="selectTerm({{index}},{{!item.grades[0].selected}})" class="grade-header">
<text class="title">{{item.grades[0].term_name}}</text>
<text class="title">{{item.grades[0].year}}学年{{item.grades[0].term ? '春' : '秋'}}季学期</text>
<view>
<view class="info">
<text>必修绩点:{{item.avg.required.gpa}}</text>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/schedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export default class Schedule extends wepy.page {
if (e.session !== "") {
e.sessionArr = e.session.split(",");
e.flex = e.sessionArr.length;
if (!"address" in e) {
if (!("address" in e)) {
e.address = e.campus + e.building + e.classroom;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/share/schedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default class Exam extends wepy.page {
ctx.fillText("长按识别小程序", firstColWidth + 5, height - 40);
ctx.fillText("微信搜索We川大查看", firstColWidth + 5, height - 20);
const path = await this.download(
"http://scuplus-1251451068.coscd.myqcloud.com/qcode.jpg"
"https://scuplus-1251451068.coscd.myqcloud.com/qcode.jpg"
);
ctx.drawImage(path, this.width - 70, height - 70, 60, 60);
ctx.draw();
Expand Down
2 changes: 1 addition & 1 deletion src/util/grade.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ let cal = function (data, init = 1) {
* @param {String} term_name
*/
let setType = (year, term) => {
calType = year * 10 + term > 20171 ? 1 : 0
calType = (year * 10 + term) >= 20171 ? 1 : 0
}

/**
Expand Down

0 comments on commit 95f1b05

Please sign in to comment.