Commit 967607e3 by 王志慧

fixed

1 parent a1632ef1
......@@ -9,7 +9,17 @@ Page({
const {
reason
} = 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) {
......
......@@ -49,6 +49,7 @@ Page({
code
}) {
if (code) {
console.log(code,wx.getAccountInfoSync().miniProgram.appId)
api
.ssoLogin({
code,
......@@ -61,7 +62,8 @@ Page({
} = _this.data;
let para = {
staffUuid: user.staffUuid,
openId: res.data.openId
openId: res.data.openId,
appId: wx.getAccountInfoSync().miniProgram.appId
}
MineApi.wechatBindApi(para).then((res) => {
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!