yll 4 tahun lalu
induk
melakukan
eaddf86519
3 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 3 1
      view/xcx/components/mine/index.js
  2. 1 1
      view/xcx/config.js
  3. 1 1
      view/xcx/project.config.json

+ 3 - 1
view/xcx/components/mine/index.js

@@ -34,6 +34,7 @@ Component({
    */
   methods: {
     show: function() {
+      console.log('show:', app.globalData.token)
       if (app.globalData.token) {
         this.setData({ iShidden:true})
         this.getStatus()
@@ -102,7 +103,8 @@ Component({
     },
 
     onLoadFun:function() {
-      if (this.data.displaying){
+      if (this.data.displaying && app.globalData.isLog){
+        console.log("onLoadFun")
         this.getStatus()
         this.getHistory()
       }

+ 1 - 1
view/xcx/config.js

@@ -1,6 +1,6 @@
 module.exports = {
   // 请求域名 格式: https://您的域名
-  HTTP_REQUEST_URL:'http://twong.h',
+  HTTP_REQUEST_URL:'https://twong.shotshock.shop',
   // Socket链接 暂不做配置
   WSS_SERVER_URL:'wss://twong.shotshock.shop',
 

+ 1 - 1
view/xcx/project.config.json

@@ -40,7 +40,7 @@
   },
   "compileType": "miniprogram",
   "libVersion": "2.16.0",
-  "appid": "wx2cfae9c3f26a6f21",
+  "appid": "wx9562ae2eb2fb8835",
   "projectname": "twong",
   "debugOptions": {
     "hidedInDevtools": []