|
@@ -11,27 +11,23 @@ Page({
|
|
|
id: 'realtimewater',
|
|
|
label: '用水量',
|
|
|
icon: '/static/img/icon-water.png',
|
|
|
- url: '?period=7'
|
|
|
- }, {
|
|
|
- id: 'waterprice',
|
|
|
- label: '水价查询',
|
|
|
- icon: '/static/img/icon_water_price.png'
|
|
|
- }, {
|
|
|
- id: 'payment',
|
|
|
- label: '缴费',
|
|
|
- icon: '/static/img/icon-payment.png'
|
|
|
+ url: '?period=7',
|
|
|
+ sonlabel:'近期用水量'
|
|
|
}, {
|
|
|
id: 'wateranalysis',
|
|
|
label: '用水趋势',
|
|
|
- icon: '/static/img/icon_water_analysis.png'
|
|
|
+ icon: '/static/img/icon_water_analysis.png',
|
|
|
+ sonlabel:'年度用水趋势'
|
|
|
}, {
|
|
|
id: 'waterabnormal',
|
|
|
label: '异常预警',
|
|
|
- icon: '/static/img/icon_water_abnormal.png'
|
|
|
+ icon: '/static/img/icon_water_abnormal.png',
|
|
|
+ sonlabel:'用水异常提醒'
|
|
|
}, {
|
|
|
id: 'customermanage',
|
|
|
label: '户号管理',
|
|
|
- icon: '/static/img/icon_customer_manage.png'
|
|
|
+ icon: '/static/img/icon_customer_manage.png',
|
|
|
+ sonlabel:'绑定户号'
|
|
|
}],
|
|
|
weixinLogin: false,
|
|
|
},
|
|
@@ -51,7 +47,7 @@ Page({
|
|
|
const {
|
|
|
code
|
|
|
} = res;
|
|
|
- app.$http.postForm('/user/bindingMobile', {
|
|
|
+ app.$http.postForm('/appletUser/bindingMobile', {
|
|
|
code,
|
|
|
encryptedData,
|
|
|
iv
|
|
@@ -145,7 +141,7 @@ Page({
|
|
|
// 获取用户注册状态 /user/getUser
|
|
|
isRegister(){
|
|
|
let that=this;
|
|
|
- app.$http.postForm('/user/getUser').then(({ status, msg, data }) => {
|
|
|
+ app.$http.postForm('/appletUser/getUser').then(({ status, msg, data }) => {
|
|
|
// 已授权但客户不存在
|
|
|
// 未授权
|
|
|
if(status===-602){
|
|
@@ -160,7 +156,7 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getAccountInfo();
|
|
|
+ //this.getAccountInfo();
|
|
|
this.isRegister()
|
|
|
},
|
|
|
toLogin(msg) {
|
|
@@ -176,7 +172,7 @@ Page({
|
|
|
this.popup.close();
|
|
|
},
|
|
|
confirmEvent: function () {
|
|
|
- this.getAccountInfo(true);
|
|
|
+ // this.getAccountInfo(true);
|
|
|
},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面初次渲染完成
|