Browse Source

no message

feature/v1.1.0
xpz2018 6 years ago
parent
commit
f7441a6d30
2 changed files with 1 additions and 4 deletions
  1. 3
      app.js
  2. 2
      pages/index/index.js

3
app.js

@ -58,7 +58,7 @@ App({
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
wx.getUserInfo({
success: res => {
console.log("userInfo" + res.userInfo)
console.log(res.userInfo)
// 可以将 res 发送给后台解码出 unionId
that.globalData.userInfo = res.userInfo;
// this.onLoginUser();
@ -109,7 +109,6 @@ App({
}
that.globalData.sessionId= data.response.sessionId;
wx.setStorageSync('sessionId', data.response.sessionId);
console.log('sessionId : ' + data.response.sessionId);
},
fail: function (e) {
wx.showToast({

2
pages/index/index.js

@ -120,7 +120,6 @@ Page({
getActivityList: function() {
let that = this;
wx.showNavigationBarLoading() //在标题栏中显示加载
console.log("districtName:" + that.districtName);
wx.request({
url: app.gw.hostUrl + '/mall/wxa/activity/list',
method: 'get',
@ -135,7 +134,6 @@ Page({
success: function(res) {
var data = res.data;
var status = data.code;
console.log(res);
var activitylistTem = that.data.activityList;
if (status == 0) {
if (that.data.pageNum == 1) {

Loading…
Cancel
Save