浏览代码

Merge branch 'dev' of https://git.youlane.cn/weapp/C into dev

tags/湖南版5.1.4
luqc 6 年前
父节点
当前提交
69ba4f24c2
共有 4 个文件被更改,包括 41 次插入21 次删除
  1. +5
    -1
      config/config.js
  2. +1
    -1
      pages/game/index.json
  3. +34
    -18
      pages/main/index.js
  4. +1
    -1
      pages/spellGroup/spellGroup.js

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

@@ -251,7 +251,11 @@ var config = {
/**
* 查询是否已参团
*/
queryAttendStatus:'/orderGroup/queryAttendStatus'
queryAttendStatus:'/orderGroup/queryAttendStatus',
/**
* 专题
*/
topicShow:"/topic/show"
},
weapp: {
AppId: weappId


+ 1
- 1
pages/game/index.json 查看文件

@@ -2,5 +2,5 @@
"usingComponents": {
},
"navigationBarTitleText": "富茂小游戏"
"navigationBarTitleText": ""
}

+ 34
- 18
pages/main/index.js 查看文件

@@ -346,6 +346,7 @@ Page({
// that.checkUserCarStatus();
that.getUserInfo();
that.getBannerlist();
that.topicShow();
if (app.couponChannelListCallback) {
app.couponChannelListCallback(app.globalData.token);
}
@@ -464,6 +465,21 @@ Page({
})
;
},
// 专题显示
topicShow: function () {
let that = this;
Http.get({
url: config.api.topicShow,
data: {
token: app.globalData.token
}
}).then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
})
},

/**
* 检查用户是否有车
@@ -486,24 +502,24 @@ Page({
/**
* car共同登录
*/
userCarLogin: function() {
var that = this;
if (!app.globalData.carLogin) {
// 共同登录
Http.post({
url: config.api.carInit,
data: {
phone: app.globalData.phone
}
}).then(res => {
app.globalData.carLogin = true;
app.globalData.parkVendor = res.data.vendor;
if (res.data.token != "undefined") {
app.globalData.etcpToken = res.data.token;
}
});
}
},
// userCarLogin: function() {
// var that = this;
// if (!app.globalData.carLogin) {
// // 共同登录
// Http.post({
// url: config.api.carInit,
// data: {
// phone: app.globalData.phone
// }
// }).then(res => {
// app.globalData.carLogin = true;
// app.globalData.parkVendor = res.data.vendor;
// if (res.data.token != "undefined") {
// app.globalData.etcpToken = res.data.token;
// }
// });
// }
// },
/**
* 获取用户信息
*/


+ 1
- 1
pages/spellGroup/spellGroup.js 查看文件

@@ -50,7 +50,7 @@ Page({
},
onShow(){
let that=this;
if (this.data.reloadIf!=null){
if (this.data.reloadIf){
wx.setNavigationBarTitle({
title: '拼团专场'
})


正在加载...
取消
保存