Commit 967607e3 by 王志慧

fixed

1 parent a1632ef1
...@@ -9,7 +9,17 @@ Page({ ...@@ -9,7 +9,17 @@ Page({
const { const {
reason reason
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.$util.showToast(reason); console.log(reason)
// wx.$util.showToast(reason);
wx.showModal({
title: '',
content:String(reason) ,
showCancel: false,
confirmText: '我知道了',
confirmColor: '#1B233D',
success(res) {
}
})
}, },
onRoute(options) { onRoute(options) {
......
...@@ -49,6 +49,7 @@ Page({ ...@@ -49,6 +49,7 @@ Page({
code code
}) { }) {
if (code) { if (code) {
console.log(code,wx.getAccountInfoSync().miniProgram.appId)
api api
.ssoLogin({ .ssoLogin({
code, code,
...@@ -61,7 +62,8 @@ Page({ ...@@ -61,7 +62,8 @@ Page({
} = _this.data; } = _this.data;
let para = { let para = {
staffUuid: user.staffUuid, staffUuid: user.staffUuid,
openId: res.data.openId openId: res.data.openId,
appId: wx.getAccountInfoSync().miniProgram.appId
} }
MineApi.wechatBindApi(para).then((res) => { MineApi.wechatBindApi(para).then((res) => {
if (res.code == 0) { if (res.code == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!