snow 2 年之前
父節點
當前提交
63e83e0417
共有 5 個文件被更改,包括 8 次插入1 次删除
  1. 0 0
      dist/index.html
  2. 二進制
      dist/static/js/app.3e09333e.js.gz
  3. 0 0
      dist/static/js/app.66361b4e.js
  4. 二進制
      dist/static/js/app.66361b4e.js.gz
  5. 8 1
      src/pages/report.vue

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


二進制
dist/static/js/app.3e09333e.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.66361b4e.js


二進制
dist/static/js/app.66361b4e.js.gz


+ 8 - 1
src/pages/report.vue

@@ -102,7 +102,14 @@ export default {
                wx.checkJsApi({
                wx.checkJsApi({
                   jsApiList: ['login'],
                   jsApiList: ['login'],
                   success:function(res){
                   success:function(res){
-                    console.log(res)
+                    if(res.checkResult.login){
+                      wx.login({
+                        success:function(res){
+                          console.log(res)
+                        },
+                        fail:function(res){}
+                      })
+                    }
                   },
                   },
                   fail:function(res){
                   fail:function(res){
                     alert('line-109')
                     alert('line-109')

Some files were not shown because too many files changed in this diff