diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8e39ab0 Binary files /dev/null and b/.DS_Store differ diff --git a/app.js b/app.js index b553a30..ed3e243 100644 --- a/app.js +++ b/app.js @@ -6,7 +6,16 @@ App({ const logs = wx.getStorageSync('logs') || [] logs.unshift(Date.now()) wx.setStorageSync('logs', logs) - + wx.login({ + success (res) { + if (res.code) { + //发起网络请求 + $api.getUserAuth(res.code) + } else { + console.log('登录失败!' + res.errMsg) + } + } + }) }, globalData: { diff --git a/assets/.DS_Store b/assets/.DS_Store new file mode 100644 index 0000000..8d97eea Binary files /dev/null and b/assets/.DS_Store differ diff --git a/assets/images/wx.png b/assets/images/wx.png new file mode 100644 index 0000000..d6866a7 Binary files /dev/null and b/assets/images/wx.png differ diff --git a/pages/auth/auth.wxml b/pages/auth/auth.wxml index 0c90cda..a2b0512 100644 --- a/pages/auth/auth.wxml +++ b/pages/auth/auth.wxml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ diff --git a/pages/auth/auth.wxss b/pages/auth/auth.wxss index cfd06e3..d96eb7c 100644 --- a/pages/auth/auth.wxss +++ b/pages/auth/auth.wxss @@ -1,5 +1,5 @@ /* pages/auth/auth.wxss */ -.main{ +.main { display: flex; flex-direction: column; justify-content: space-between; @@ -7,20 +7,28 @@ padding: 220rpx 0 40rpx 0; } -.top{ +.top { display: flex; flex-direction: column; align-items: center; } -.log{ +.log { width: 150rpx; height: 150rpx; } + .login { - width: 667rpx; - height: 79rpx; + width: 667rpx !important; + height: 80rpx; display: flex; align-items: center; justify-content: center; + font-size: 26rpx; + text-indent: 6rpx; +} + +.wx-log { + width: 40rpx; + height: 40rpx; } \ No newline at end of file