| @@ -29,7 +29,7 @@ Page({ | |||||
| if (res.data.code == 0) { | if (res.data.code == 0) { | ||||
| let data = res.data.data | let data = res.data.data | ||||
| // gameVersion为指定发版,和后台是否保持一致,方便提审通过,后续只需更改1为2,3,4,5... | // gameVersion为指定发版,和后台是否保持一致,方便提审通过,后续只需更改1为2,3,4,5... | ||||
| if(data.miniType==0&&data.gameVersion==3){ | |||||
| if(data.miniType==0&&data.gameVersion==2){ | |||||
| getApp().globalData.gameurl = data.linkUrl | getApp().globalData.gameurl = data.linkUrl | ||||
| that.tabindex(data.linkUrl) | that.tabindex(data.linkUrl) | ||||
| }else{ | }else{ | ||||
| @@ -50,6 +50,7 @@ Page({ | |||||
| } | } | ||||
| }) | }) | ||||
| }, | }, | ||||
| //分享接口调用 | |||||
| inviteFun(id){ | inviteFun(id){ | ||||
| let that = this | let that = this | ||||
| wx.request({ | wx.request({ | ||||
| @@ -65,12 +65,12 @@ Page({ | |||||
| * 用户点击右上角分享 | * 用户点击右上角分享 | ||||
| */ | */ | ||||
| onShareAppMessage: function (e) { | onShareAppMessage: function (e) { | ||||
| // console.log(getApp().globalData.userInfo.) | |||||
| // console.log(getApp().globalData.userInfo.id) | |||||
| this.shareFun() | this.shareFun() | ||||
| return { | return { | ||||
| title: '万套房源5折起,iPhone13 Pro Max免费赢!速来!', | title: '万套房源5折起,iPhone13 Pro Max免费赢!速来!', | ||||
| imageUrl: 'https://static.quhouse.com/468340e3a1374decb4fa51a172aa4f52.png', | imageUrl: 'https://static.quhouse.com/468340e3a1374decb4fa51a172aa4f52.png', | ||||
| path: '/pages/index/index?openid=' + getApp().globalData.userInfo.openid | |||||
| path: '/pages/index/index?id=' + getApp().globalData.userInfo.id | |||||
| } | } | ||||
| }, | }, | ||||
| shareFun(){ | shareFun(){ | ||||
| @@ -33,6 +33,12 @@ | |||||
| "pathName": "pages/index/index", | "pathName": "pages/index/index", | ||||
| "query": "id=77", | "query": "id=77", | ||||
| "scene": null | "scene": null | ||||
| }, | |||||
| { | |||||
| "name": "pages/index/index", | |||||
| "pathName": "pages/index/index", | |||||
| "query": "id=2", | |||||
| "scene": null | |||||
| } | } | ||||
| ] | ] | ||||
| } | } | ||||