|
@@ -23,10 +23,7 @@ Page({
|
|
if (!data) return;
|
|
if (!data) return;
|
|
const wxInfo = app.globalData.wxInfo
|
|
const wxInfo = app.globalData.wxInfo
|
|
if (!wxInfo.openid) {
|
|
if (!wxInfo.openid) {
|
|
- wx.showToast({
|
|
|
|
- title: '缺少微信关联',
|
|
|
|
- icon: 'error'
|
|
|
|
- })
|
|
|
|
|
|
+ wx.showToast({ title: '缺少微信关联', icon: 'error' })
|
|
return
|
|
return
|
|
}
|
|
}
|
|
data.openid = wxInfo.openid;
|
|
data.openid = wxInfo.openid;
|
|
@@ -40,10 +37,7 @@ Page({
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
const { errmsg = '注册失败' } = res;
|
|
const { errmsg = '注册失败' } = res;
|
|
- wx.showModal({
|
|
|
|
- title: errmsg,
|
|
|
|
- showCancel: false
|
|
|
|
- })
|
|
|
|
|
|
+ wx.showModal({ title: errmsg, showCancel: false })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|