调整 绑定业主

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/index/index",
"pages/bingOwner/bingOwner",
"pages/bindOwner/bindOwner",
"pages/family/family",
"pages/circle/circle",
"pages/location/location",

View File

@ -7,7 +7,6 @@
"pages/circle/circle",
"pages/location/location",
"pages/my/my",
"pages/detail/detail",
"pages/notice/index",
"pages/notice/detail/detail",
"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';

View File

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

View File

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

View File

@ -25,7 +25,7 @@
<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>
<text class="iconfont iconaccount icon"></text>
<text class="tab-text">绑定业主</text>

View File

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