调整 绑定业主

This commit is contained in:
wuxw 2019-12-28 20:16:52 +08:00
parent 992ca1e406
commit af69895b35
11 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/bingOwner/bingOwner", "pages/bindOwner/bindOwner",
"pages/family/family", "pages/family/family",
"pages/circle/circle", "pages/circle/circle",
"pages/location/location", "pages/location/location",

View File

@ -7,7 +7,6 @@
"pages/circle/circle", "pages/circle/circle",
"pages/location/location", "pages/location/location",
"pages/my/my", "pages/my/my",
"pages/detail/detail",
"pages/notice/index", "pages/notice/index",
"pages/notice/detail/detail", "pages/notice/detail/detail",
"pages/repairList/repairList", "pages/repairList/repairList",

View File

@ -7,7 +7,8 @@
// 服务器域名 // 服务器域名
const baseUrl = 'http://hc.demo.winqi.cn:8012/'; const baseUrl = 'https://app.demo.winqi.cn/';
//const baseUrl = 'http://hc.demo.winqi.cn:8012/';
// 登录接口 // 登录接口
const loginUrl=baseUrl + 'app/loginWx'; const loginUrl=baseUrl + 'app/loginWx';

View File

@ -56,7 +56,7 @@ class LoginFactory {
}, },
fail: function (error) { fail: function (error) {
// 调用 wx.login 接口失败 // 调用 wx.login 接口失败
that.coreUtil.showInfo('接口调用失败'); that.coreUtil.showInfo('接口调用失败' + error);
console.log(error); console.log(error);
} }
}); });
@ -87,7 +87,7 @@ class LoginFactory {
res = res.data; res = res.data;
if (res.result == 0) { if (res.result == 0) {
that.globalData.userInfo = res.userInfo; //that.globalData.userInfo = res.userInfo;
console.log(res.userInfo); console.log(res.userInfo);
wx.setStorageSync(constant.mapping.USER_INFO, JSON.stringify(res.userInfo)); wx.setStorageSync(constant.mapping.USER_INFO, JSON.stringify(res.userInfo));
wx.setStorageSync(constant.mapping.LOGIN_FLAG, res.sessionKey); wx.setStorageSync(constant.mapping.LOGIN_FLAG, res.sessionKey);
@ -108,7 +108,7 @@ class LoginFactory {
// 获取用户登录标示 供全局调用 // 获取用户登录标示 供全局调用
static getLoginFlag() { getLoginFlag() {
return wx.getStorageSync(constant.mapping.LOGIN_FLAG); return wx.getStorageSync(constant.mapping.LOGIN_FLAG);
} }

View File

@ -23,12 +23,12 @@ Page({
onShow: function() { onShow: function() {
let that = this; let that = this;
that.setData({ that.setData({
userInfo: app.globalData.userInfo userInfo: context.getUserInfo()
}); });
}, },
enterCommunity:function(){ bindingOwner:function(){
wx.navigateTo({ wx.navigateTo({
url: '../enterCommunity/enterCommunity', url: '../bindOwner/bindOwner',
}) })
} }
}) })

View File

@ -25,7 +25,7 @@
<view class="tab-container bg-white"> <view class="tab-container bg-white">
<view class="tab-item border-bottom" hover-class="tab-item-hover" catchtap="enterCommunity"> <view class="tab-item border-bottom" hover-class="tab-item-hover" catchtap="bindingOwner">
<view> <view>
<text class="iconfont iconaccount icon"></text> <text class="iconfont iconaccount icon"></text>
<text class="tab-text">绑定业主</text> <text class="tab-text">绑定业主</text>

View File

@ -21,7 +21,7 @@
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.9.4", "libVersion": "2.9.4",
"isGameTourist": false, "isGameTourist": false,
"appid": "wx4333bd218847a1ca", "appid": "wxf83d66b0e9f5964d",
"projectname": "WechatOwnerService", "projectname": "WechatOwnerService",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},