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 @@ - +