|
@@ -140,9 +140,9 @@ Page({
|
|
|
// 提交
|
|
|
onSubmit: function () {
|
|
|
console.log(this.data.form);
|
|
|
- console.log(app.globalData.openid)
|
|
|
+ console.log(app.globalData.userInfo)
|
|
|
const data = JSON.parse(JSON.stringify(this.data.form))
|
|
|
- if (app.globalData.openid) data.openid = app.globalData.openid;
|
|
|
+ if (app.globalData.userInfo.openid) data.openid =app.globalData.userInfo.openid;
|
|
|
if (this.data.today) data.date = this.data.today
|
|
|
console.log(data)
|
|
|
// wx.request({
|