| @@ -20,6 +20,8 @@ App({ | |||||
| this.loginGettoken() | this.loginGettoken() | ||||
| }, | }, | ||||
| globalData: { | globalData: { | ||||
| httpurl: 'https://cktest.2weisou.com/meta/', // 生产 | |||||
| // httpurl: 'http://192.168.31.172:9998/',// 柏伟 | |||||
| userInfo: null, | userInfo: null, | ||||
| token: '', | token: '', | ||||
| gameurl: ''// 游戏链接 | gameurl: ''// 游戏链接 | ||||
| @@ -34,7 +36,7 @@ App({ | |||||
| if (res.code) { | if (res.code) { | ||||
| //发起网络请求 | //发起网络请求 | ||||
| wx.request({ | wx.request({ | ||||
| url:'https://cktest.2weisou.com/meta/auth/mobile/token/social?grant_type=mobil&mobile=MINI_C@'+res.code+'@'+'', | |||||
| url:that.globalData.httpurl+ 'auth/mobile/token/social?grant_type=mobil&mobile=MINI_C@'+res.code+'@'+'', | |||||
| method: "POST", | method: "POST", | ||||
| data: { | data: { | ||||
| }, | }, | ||||
| @@ -234,7 +234,7 @@ Page({ | |||||
| queryToken: function() { // 获取token | queryToken: function() { // 获取token | ||||
| return new Promise((resolve, reject) => { | return new Promise((resolve, reject) => { | ||||
| wx.request({ | wx.request({ | ||||
| url: 'https://cktest.2weisou.com/meta/ar/ar/getToken', | |||||
| url: getApp().globalData.httpurl +'ar/ar/getToken', | |||||
| method: 'get', | method: 'get', | ||||
| data: {}, | data: {}, | ||||
| header: { | header: { | ||||
| @@ -14,11 +14,11 @@ Page({ | |||||
| },1000) | },1000) | ||||
| } | } | ||||
| }, | }, | ||||
| // 判断是跳转游戏还是静态页 | |||||
| panduanFun(){ | panduanFun(){ | ||||
| let that = this | let that = this | ||||
| wx.request({ | wx.request({ | ||||
| url: 'http://192.168.31.104:9998/ar/game/getOne', | |||||
| // url: 'https://cktest.2weisou.com/meta/ar/game/getOne', | |||||
| url: getApp().globalData.httpurl + 'ar/game/getOne', | |||||
| method: "get", | method: "get", | ||||
| data: {}, | data: {}, | ||||
| header: { | header: { | ||||
| @@ -51,7 +51,7 @@ Page({ | |||||
| let token = wx.getStorageSync('token') | let token = wx.getStorageSync('token') | ||||
| console.log(token) | console.log(token) | ||||
| wx.request({ | wx.request({ | ||||
| url: 'https://cktest.2weisou.com/meta/ar/user/bindNShareUserId?shareUserId='+ id, | |||||
| url: getApp().globalData.httpurl + 'ar/user/bindNShareUserId?shareUserId='+ id, | |||||
| method: "get", | method: "get", | ||||
| data: {}, | data: {}, | ||||
| header: { | header: { | ||||
| @@ -96,7 +96,7 @@ Page({ | |||||
| userVxGender: obj.gender | userVxGender: obj.gender | ||||
| } | } | ||||
| wx.request({ | wx.request({ | ||||
| url: 'https://cktest.2weisou.com/meta/ar/user/bindNickname', | |||||
| url: getApp().globalData.httpurl +'ar/user/bindNickname', | |||||
| method: "POST", | method: "POST", | ||||
| data: params, | data: params, | ||||
| header: { | header: { | ||||
| @@ -140,7 +140,7 @@ Page({ | |||||
| encryptedData | encryptedData | ||||
| } = e.detail; | } = e.detail; | ||||
| wx.request({ | wx.request({ | ||||
| url: 'https://cktest.2weisou.com/meta/ar/user/bindMini', | |||||
| url: getApp().globalData.httpurl + 'ar/user/bindMini', | |||||
| method: "POST", | method: "POST", | ||||
| data: { | data: { | ||||
| encrypted: encryptedData, | encrypted: encryptedData, | ||||
| @@ -78,7 +78,7 @@ Page({ | |||||
| shareFun(){ | shareFun(){ | ||||
| let token = getApp().globalData.token | let token = getApp().globalData.token | ||||
| wx.request({ | wx.request({ | ||||
| url: 'https://cktest.2weisou.com/meta/ar/user/share', | |||||
| url: getApp().globalData.httpurl +'ar/user/share', | |||||
| method: "POST", | method: "POST", | ||||
| data: {}, | data: {}, | ||||
| header: { | header: { | ||||
| @@ -15,62 +15,7 @@ | |||||
| "list": [] | "list": [] | ||||
| }, | }, | ||||
| "miniprogram": { | "miniprogram": { | ||||
| "list": [ | |||||
| { | |||||
| "name": "pages/open/index", | |||||
| "pathName": "pages/open/index", | |||||
| "query": "", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/AR/index", | |||||
| "pathName": "pages/AR/index", | |||||
| "query": "", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/login/index", | |||||
| "pathName": "pages/login/index", | |||||
| "query": "", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/index/index", | |||||
| "pathName": "pages/index/index", | |||||
| "query": "id=68", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/index/index", | |||||
| "pathName": "pages/index/index", | |||||
| "query": "id=83", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/index/index", | |||||
| "pathName": "pages/index/index", | |||||
| "query": "", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/index/index", | |||||
| "pathName": "pages/index/index", | |||||
| "query": "id=68", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/share/index", | |||||
| "pathName": "pages/share/index", | |||||
| "query": "id=88", | |||||
| "scene": null | |||||
| }, | |||||
| { | |||||
| "name": "pages/index/index", | |||||
| "pathName": "pages/index/index", | |||||
| "query": "id=88", | |||||
| "scene": null | |||||
| } | |||||
| ] | |||||
| "list": [] | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||