odc.xiaohui
2023-03-20 1ad98e72e116155c30b14beb2da59e80ca971a6b
miniprogram/pages/user/loginInfo/index.ts
@@ -55,7 +55,23 @@
        })
        return
    }
    wx.request({
                    url: loginInfo.globalData.url+"/wx/login",
                    data: {
                        "code": wx.getStorageSync('uesrCode'),
                        "phoneNumberCode": wx.getStorageSync('userPhoneNumberCode')
                    },
                    method: "GET",
                    success: (res) => {
                        console.log(res);
                        wx.setStorageSync('token', res.data.data.token)
                        wx.setStorageSync('role', res.data.data.role)
                        wx.setStorageSync('id', res.data.data.id)
                        wx.setStorageSync('card',res.data.data.time)
                        console.log(res.data.data.id)
                    }
                })
   wx.request({
       url:loginInfo.globalData.url+"/wx/user/add",
       method:"POST",
@@ -83,7 +99,7 @@
                filePath: res.tempFiles[0].tempFilePath,
                name: "file",
                header: {
                    'token': wx.getStorageSync('token'),
                    // 'token': wx.getStorageSync('token'),
                    'content-type': 'application/json'
                },
                success:(res)=>{