|
|
|
@@ -14,6 +14,37 @@ Page({ |
|
|
|
},1000) |
|
|
|
} |
|
|
|
}, |
|
|
|
panduanFun(){ |
|
|
|
let that = this |
|
|
|
wx.request({ |
|
|
|
url: 'http://192.168.31.104:9998/ar/game/getOne', |
|
|
|
// url: 'https://cktest.2weisou.com/meta/ar/game/getOne', |
|
|
|
method: "get", |
|
|
|
data: {}, |
|
|
|
header: { |
|
|
|
Authorization: 'bearer '+ getApp().globalData.token |
|
|
|
}, |
|
|
|
success(res) { |
|
|
|
console.log(res) |
|
|
|
if (res.data.code == 0) { |
|
|
|
let data = res.data.data |
|
|
|
if(data.miniType==0){ |
|
|
|
that.tabindex(data.linkUrl) |
|
|
|
}else{ |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/pages/guodu/index' |
|
|
|
}) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
wx.showToast({ |
|
|
|
icon: 'none', |
|
|
|
title: res.data.msg |
|
|
|
}) |
|
|
|
return ; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
inviteFun(id){ |
|
|
|
let token = wx.getStorageSync('token') |
|
|
|
console.log(token) |
|
|
|
@@ -37,7 +68,7 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
tabindex() { |
|
|
|
tabindex(url) { |
|
|
|
let userInfo = getApp().globalData.userInfo |
|
|
|
console.log(userInfo) |
|
|
|
let id = 0 |
|
|
|
@@ -45,7 +76,7 @@ Page({ |
|
|
|
id = userInfo.id |
|
|
|
} |
|
|
|
wx.navigateTo({ |
|
|
|
url: '/pages/out/index?index=1&userid=' + id+ '&gameid=1&type=1' |
|
|
|
url: '/pages/out/index?index=1&userid=' + id+ '&gameid=1&type=1&url='+url |
|
|
|
}) |
|
|
|
}, |
|
|
|
tabsaoma() { |
|
|
|
|