mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
调整 绑定业主
This commit is contained in:
parent
992ca1e406
commit
af69895b35
2
app.json
2
app.json
@ -2,7 +2,7 @@
|
||||
"pages": [
|
||||
|
||||
"pages/index/index",
|
||||
"pages/bingOwner/bingOwner",
|
||||
"pages/bindOwner/bindOwner",
|
||||
"pages/family/family",
|
||||
"pages/circle/circle",
|
||||
"pages/location/location",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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',
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -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>
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.9.4",
|
||||
"isGameTourist": false,
|
||||
"appid": "wx4333bd218847a1ca",
|
||||
"appid": "wxf83d66b0e9f5964d",
|
||||
"projectname": "WechatOwnerService",
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user