@@ -1,7 +1,6 @@ | |||||
{ | { | ||||
"pages": [ | "pages": [ | ||||
"pages/index/index", | "pages/index/index", | ||||
"pages/game/index", | |||||
"pages/edit/edit", | "pages/edit/edit", | ||||
"pages/cartest/cartest", | "pages/cartest/cartest", | ||||
"pages/actdetail/actdetail", | "pages/actdetail/actdetail", | ||||
@@ -31,7 +30,9 @@ | |||||
"pages/passCar/couponDetail/couponDetail", | "pages/passCar/couponDetail/couponDetail", | ||||
"pages/managelicenseplate/managelicenseplate", | "pages/managelicenseplate/managelicenseplate", | ||||
"pages/payrule/payrule", | "pages/payrule/payrule", | ||||
"pages/grade/grade" | |||||
"pages/grade/grade", | |||||
"pages/game/index", | |||||
"pages/index/gameentry/gentry" | |||||
], | ], | ||||
"tabBar": { | "tabBar": { | ||||
"color": "#9F9F9F", | "color": "#9F9F9F", | ||||
@@ -1,7 +1,7 @@ | |||||
var config = { | var config = { | ||||
// url: "http://10.11.205.51:7000/C/api", | // url: "http://10.11.205.51:7000/C/api", | ||||
// url: "https://ciformall.youlane.cn/C/api", | |||||
url:"https://c.malls.iformall.com/C/api", | |||||
url: "https://ciformall.youlane.cn/C/api", | |||||
// url:"https://c.malls.iformall.com/C/api", | |||||
// url: "http://31adc9ce.ngrok.io/C/api", | // url: "http://31adc9ce.ngrok.io/C/api", | ||||
api: { | api: { | ||||
/** | /** | ||||
@@ -146,22 +146,15 @@ var config = { | |||||
* title | * title | ||||
* 描述 | * 描述 | ||||
*/ | */ | ||||
getWeapNote: '/mall/getWeapNote', | |||||
scoreLevelInfo: '/mall/scoreLevelInfo', | |||||
getWeRunData: '/user/getWeRunData', | |||||
getWeapNote:'/mall/getWeapNote', | |||||
/** | /** | ||||
* 小程序获取游戏路径 | * 小程序获取游戏路径 | ||||
*/ | */ | ||||
getGame:'/game/getOne', | |||||
/** | |||||
* 用户更新信息 | |||||
*/ | |||||
updateInfo:"/user/updateUserInfo" | |||||
getGame:'/game/getOne' | |||||
}, | }, | ||||
weapp: { | weapp: { | ||||
AppId: "wx026ee7f6290aa336" | |||||
AppId: "wxea71200db93d756b" | |||||
}, | }, | ||||
ErrorCode: { | ErrorCode: { | ||||
NICK_NOT_AUTH: 11004, | NICK_NOT_AUTH: 11004, | ||||
@@ -12,11 +12,10 @@ Page({ | |||||
onShareAppMessage: function (res) { | onShareAppMessage: function (res) { | ||||
let _this=this; | let _this=this; | ||||
return { | return { | ||||
title: '富茂小游戏', | |||||
path: 'pages/game/index', | |||||
title: '自定义转发标题', | |||||
path: 'pages/index/index', | |||||
success: function (res) { | success: function (res) { | ||||
// 转发成功 | // 转发成功 | ||||
}, | }, | ||||
fail: function (res) { | fail: function (res) { | ||||
// 转发失败 | // 转发失败 | ||||
@@ -39,18 +38,9 @@ Page({ | |||||
if (options.share){ | if (options.share){ | ||||
// wx.onShareAppMessage(); | // wx.onShareAppMessage(); | ||||
}else{ | }else{ | ||||
// Http.get({ | |||||
// url: config.api.getGame, | |||||
// data: { | |||||
// token: app.globalData.token, | |||||
// } | |||||
// }) | |||||
// .then(res => { | |||||
// console.log(res.data, 333); | |||||
// }) | |||||
this.setData({ | this.setData({ | ||||
url: options.url + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id, | url: options.url + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id, | ||||
// url: "http://10.11.195.31:8080/luckCard/" + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id, | |||||
// url: "http://10.11.195.31:8080/goldEgg/" + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id, | |||||
}); | }); | ||||
} | } | ||||
} | } |
@@ -0,0 +1,66 @@ | |||||
// pages/index/gameentry/gentry.js | |||||
Page({ | |||||
/** | |||||
* 页面的初始数据 | |||||
*/ | |||||
data: { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面加载 | |||||
*/ | |||||
onLoad: function (options) { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面初次渲染完成 | |||||
*/ | |||||
onReady: function () { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面显示 | |||||
*/ | |||||
onShow: function () { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面隐藏 | |||||
*/ | |||||
onHide: function () { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面卸载 | |||||
*/ | |||||
onUnload: function () { | |||||
}, | |||||
/** | |||||
* 页面相关事件处理函数--监听用户下拉动作 | |||||
*/ | |||||
onPullDownRefresh: function () { | |||||
}, | |||||
/** | |||||
* 页面上拉触底事件的处理函数 | |||||
*/ | |||||
onReachBottom: function () { | |||||
}, | |||||
/** | |||||
* 用户点击右上角分享 | |||||
*/ | |||||
onShareAppMessage: function () { | |||||
} | |||||
}) |
@@ -0,0 +1 @@ | |||||
{} |
@@ -0,0 +1,2 @@ | |||||
<!--pages/index/gameentry/gentry.wxml--> | |||||
<text>pages/index/gameentry/gentry.wxml</text> |
@@ -0,0 +1 @@ | |||||
/* pages/index/gameentry/gentry.wxss */ |
@@ -12,7 +12,7 @@ | |||||
}, | }, | ||||
"compileType": "miniprogram", | "compileType": "miniprogram", | ||||
"libVersion": "2.0.9", | "libVersion": "2.0.9", | ||||
"appid": "wx026ee7f6290aa336", | |||||
"appid": "wxea71200db93d756b", | |||||
"projectname": "C", | "projectname": "C", | ||||
"isGameTourist": false, | "isGameTourist": false, | ||||
"condition": { | "condition": { | ||||