From c4f55879d4af02fcc049956cfc038c59f3b66909 Mon Sep 17 00:00:00 2001 From: educoder_weapp Date: Sat, 29 Feb 2020 21:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86=E5=A4=8D=E6=9D=82=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=B8=BA=E5=A4=9A=E4=B8=AA=E7=BB=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E8=A1=A5=E5=A4=B4=E5=83=8F=E4=B8=8A=E4=BC=A0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/reset_password/reset_password.js | 3 +- .../avatar/pages/image_crop/image_crop.js | 2 +- .../avatar/pages/image_crop/image_crop.wxml | 2 +- .../components/course-item/course-item.js | 1 + miniprogram/components/nav-bar/nav-bar.wxss | 8 ++- miniprogram/components/rich-md/rich-md.js | 35 +++++++++ miniprogram/components/rich-md/rich-md.json | 6 ++ miniprogram/components/rich-md/rich-md.wxml | 2 + miniprogram/components/rich-md/rich-md.wxss | 0 .../common-homework-item.js | 15 ++++ .../common-homework-item.json | 4 ++ .../common-homework-item.wxml | 5 ++ .../common-homework-item.wxss | 1 + .../common-homework/common-homework.js | 22 ++++++ .../common-homework/common-homework.json | 4 ++ .../common-homework/common-homework.wxml | 2 + .../common-homework/common-homework.wxss | 1 + miniprogram/course/images/more.png | Bin 512 -> 733 bytes .../choice-question/choice-question.js | 38 ++++++++++ .../choice-question/choice-question.json | 6 ++ .../choice-question/choice-question.wxml | 28 ++++++++ .../choice-question/choice-question.wxss | 50 +++++++++++++ .../components/main-question/main-question.js | 23 ++++++ .../main-question/main-question.json | 4 ++ .../main-question/main-question.wxml | 12 ++++ .../main-question/main-question.wxss | 1 + .../components/null-question/null-question.js | 25 +++++++ .../null-question/null-question.json | 4 ++ .../null-question/null-question.wxml | 20 ++++++ .../null-question/null-question.wxss | 1 + .../exercise/pages/exercise/exercise.js | 38 +--------- .../exercise/pages/exercise/exercise.json | 6 +- .../exercise/pages/exercise/exercise.wxml | 67 ++---------------- .../exercise/pages/exercise/exercise.wxss | 55 +------------- miniprogram/js/client.js | 8 +-- miniprogram/pages/my_courses/my_courses.js | 5 +- miniprogram/pages/my_courses/my_courses.wxml | 2 +- 37 files changed, 340 insertions(+), 166 deletions(-) create mode 100644 miniprogram/components/rich-md/rich-md.js create mode 100644 miniprogram/components/rich-md/rich-md.json create mode 100644 miniprogram/components/rich-md/rich-md.wxml create mode 100644 miniprogram/components/rich-md/rich-md.wxss create mode 100644 miniprogram/course/components/common-homework-item/common-homework-item.js create mode 100644 miniprogram/course/components/common-homework-item/common-homework-item.json create mode 100644 miniprogram/course/components/common-homework-item/common-homework-item.wxml create mode 100644 miniprogram/course/components/common-homework-item/common-homework-item.wxss create mode 100644 miniprogram/course/components/common-homework/common-homework.js create mode 100644 miniprogram/course/components/common-homework/common-homework.json create mode 100644 miniprogram/course/components/common-homework/common-homework.wxml create mode 100644 miniprogram/course/components/common-homework/common-homework.wxss create mode 100644 miniprogram/exercise/components/choice-question/choice-question.js create mode 100644 miniprogram/exercise/components/choice-question/choice-question.json create mode 100644 miniprogram/exercise/components/choice-question/choice-question.wxml create mode 100644 miniprogram/exercise/components/choice-question/choice-question.wxss create mode 100644 miniprogram/exercise/components/main-question/main-question.js create mode 100644 miniprogram/exercise/components/main-question/main-question.json create mode 100644 miniprogram/exercise/components/main-question/main-question.wxml create mode 100644 miniprogram/exercise/components/main-question/main-question.wxss create mode 100644 miniprogram/exercise/components/null-question/null-question.js create mode 100644 miniprogram/exercise/components/null-question/null-question.json create mode 100644 miniprogram/exercise/components/null-question/null-question.wxml create mode 100644 miniprogram/exercise/components/null-question/null-question.wxss diff --git a/miniprogram/account/pages/reset_password/reset_password.js b/miniprogram/account/pages/reset_password/reset_password.js index 276ee5f..66924be 100644 --- a/miniprogram/account/pages/reset_password/reset_password.js +++ b/miniprogram/account/pages/reset_password/reset_password.js @@ -24,8 +24,7 @@ Page({ data: 1, }) }, - login: function () { - const { login, password } = this.data; + login: function ({login, password}) { app.callApi({ name: "accounts.login", data: { login: login, password: password, autologin: 1 }, success: res => { diff --git a/miniprogram/avatar/pages/image_crop/image_crop.js b/miniprogram/avatar/pages/image_crop/image_crop.js index 8ca9701..08219b9 100644 --- a/miniprogram/avatar/pages/image_crop/image_crop.js +++ b/miniprogram/avatar/pages/image_crop/image_crop.js @@ -44,7 +44,7 @@ Page({ encoding: "base64", success: res => { let image = "data:image/jpeg;base64," + res.data; - app.api("accounts.avatar")({image}).then(resolve); + app.api("users.accounts.avatar")({image}).then(resolve); }, fail:reject }); diff --git a/miniprogram/avatar/pages/image_crop/image_crop.wxml b/miniprogram/avatar/pages/image_crop/image_crop.wxml index 91d5c35..2099d43 100644 --- a/miniprogram/avatar/pages/image_crop/image_crop.wxml +++ b/miniprogram/avatar/pages/image_crop/image_crop.wxml @@ -1,4 +1,4 @@ - +