浏览代码

游戏相关页面merge冲突

tags/2.2.5
海洋之声 6 年前
父节点
当前提交
f028c0088c
共有 8 个文件被更改,包括 82 次插入28 次删除
  1. +3
    -2
      app.json
  2. +5
    -12
      config/config.js
  3. +3
    -13
      pages/game/index.js
  4. +66
    -0
      pages/index/gameentry/gentry.js
  5. +1
    -0
      pages/index/gameentry/gentry.json
  6. +2
    -0
      pages/index/gameentry/gentry.wxml
  7. +1
    -0
      pages/index/gameentry/gentry.wxss
  8. +1
    -1
      project.config.json

+ 3
- 2
app.json 查看文件

@@ -1,7 +1,6 @@
{
"pages": [
"pages/index/index",
"pages/game/index",
"pages/edit/edit",
"pages/cartest/cartest",
"pages/actdetail/actdetail",
@@ -31,7 +30,9 @@
"pages/passCar/couponDetail/couponDetail",
"pages/managelicenseplate/managelicenseplate",
"pages/payrule/payrule",
"pages/grade/grade"
"pages/grade/grade",
"pages/game/index",
"pages/index/gameentry/gentry"
],
"tabBar": {
"color": "#9F9F9F",


+ 5
- 12
config/config.js 查看文件

@@ -1,7 +1,7 @@
var config = {
// 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",
api: {
/**
@@ -146,22 +146,15 @@ var config = {
* title
* 描述
*/
getWeapNote: '/mall/getWeapNote',
scoreLevelInfo: '/mall/scoreLevelInfo',
getWeRunData: '/user/getWeRunData',
getWeapNote:'/mall/getWeapNote',
/**
* 小程序获取游戏路径
*/
getGame:'/game/getOne',
/**
* 用户更新信息
*/
updateInfo:"/user/updateUserInfo"

getGame:'/game/getOne'
},

weapp: {
AppId: "wx026ee7f6290aa336"
AppId: "wxea71200db93d756b"
},
ErrorCode: {
NICK_NOT_AUTH: 11004,


+ 3
- 13
pages/game/index.js 查看文件

@@ -12,11 +12,10 @@ Page({
onShareAppMessage: function (res) {
let _this=this;
return {
title: '富茂小游戏',
path: 'pages/game/index',
title: '自定义转发标题',
path: 'pages/index/index',
success: function (res) {
// 转发成功
},
fail: function (res) {
// 转发失败
@@ -39,18 +38,9 @@ Page({
if (options.share){
// wx.onShareAppMessage();
}else{
// Http.get({
// url: config.api.getGame,
// data: {
// token: app.globalData.token,
// }
// })
// .then(res => {
// console.log(res.data, 333);
// })
this.setData({
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,
});
}
}

+ 66
- 0
pages/index/gameentry/gentry.js 查看文件

@@ -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 () {

}
})

+ 1
- 0
pages/index/gameentry/gentry.json 查看文件

@@ -0,0 +1 @@
{}

+ 2
- 0
pages/index/gameentry/gentry.wxml 查看文件

@@ -0,0 +1,2 @@
<!--pages/index/gameentry/gentry.wxml-->
<text>pages/index/gameentry/gentry.wxml</text>

+ 1
- 0
pages/index/gameentry/gentry.wxss 查看文件

@@ -0,0 +1 @@
/* pages/index/gameentry/gentry.wxss */

+ 1
- 1
project.config.json 查看文件

@@ -12,7 +12,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.0.9",
"appid": "wx026ee7f6290aa336",
"appid": "wxea71200db93d756b",
"projectname": "C",
"isGameTourist": false,
"condition": {


正在加载...
取消
保存