export default {
globalData: {
msg: {},
- verno:'10',
- vername:'2.2.0',
- version:'2.2.0(11)'
+ verno:'',
+ vername:'',
+ version:''
},
onLaunch() {
let that = this
}
})
-
-
-
//锁定屏幕
plus.screen.lockOrientation("portrait-primary")
}
});
- let uid = uni.getStorageSync("uid")
+ let uid = uni.getStorageSync("userid")
//设置Alias
KJJPush.setAlias(uid ? uid : 'tourist', 1, result => {
- //console.log("setAlias:" + JSON.stringify(result));
+ console.log("setAlias:" + JSON.stringify(result));
});
//监听推送打开通知,(前台、后台、ios app完全退出)都可以监听
KJJPush.addNotifyMessageOpened(result => {
-
console.log(result)
- var str = JSON.stringify(result);
- // uni.showModal({
- // title: '推送通知测试',
- // content: str,
- // success: function(res) {}
- // });
});
- //监听自定义推送消息
- KJJPush.addCustomizeNotifyMessage(result => {
- var str = JSON.stringify(result);
- // uni.showModal({
- // title: 'KJ-JPush',
- // content: str,
- // showCancel: false,
- // success: function(res) {}
- // });
- });
- //监听推送消息
- // KJJPush.addNotifyMessage(result => {
- // console.log(result)
- // var str = JSON.stringify(result);
- // uni.showModal({
- // title: '推送通知',
- // content: str,
- // success: function(res) {
- // if (res.confirm) {
- // KJJPush.clearAllNotifications();
- // KJJPush.ios_resetJPushBadge();
- // }
- // }
- // });
- // });
-
// #endif
//判断token是否过期
if (!token) {
//if (isFirstTimeEnterApp) { //判断是否第一次进入App 先入引导页
uni.reLaunch({
- url: "/pages/sub_basic/login/index"
+ url: "/pages/sub_basic/login"
})
//}
} else {
if (hands) {
uni.setStorageSync("login", 2)
uni.reLaunch({
- url: "/pages/sub_mine/lock/index"
+ url: "/pages/sub_mine/lock"
})
} else {
uni.switchTab({
}).catch(res => {
uni.setStorageSync('token', '')
- if (routes.length != 0 || curRoute != 'pages/sub_basic/login/index') {
+ if (routes.length != 0 || curRoute != 'pages/sub_basic/login') {
uni.reLaunch({
- url: "/pages/sub_basic/login/index"
+ url: "/pages/sub_basic/login"
})
}
if (!res.isConnected || res.networkType == '2g' || res.networkType == 'none') {
let routes = getCurrentPages()
let curRoute = routes[routes.length - 1].route
- if (curRoute == 'pages/sub_basic/login/index' || curRoute == 'pages/sub_basic/register/index' || curRoute ==
- 'pages/sub_basic/forgetPwd/index') {
-
+ if (curRoute == 'pages/sub_basic/login' || curRoute == 'pages/sub_basic/register' || curRoute ==
+ 'pages/sub_basic/forgetPwd') {
+ uni.showToast({
+ title:'暂无可用网络。请开启网络',
+ icon:'none'
+ })
} else {
uni.navigateTo({
- url: "/pages/sub_basic/network/index"
+ url: "/pages/sub_basic/network"
})
}
}
"subPackages": [{
"root": "pages/sub_basic",
"pages": [{
- "path": "register/index",
+ "path": "register",
"style": {
"navigationBarTitleText": "注册",
"app-plus": {
}
},
{
- "path": "login/index",
+ "path": "login",
"style": {
"navigationBarTitleText": "登录",
"app-plus": {
}
},
{
- "path": "network/index",
+ "path": "network",
"style": {
"navigationBarTitleText": "网络错误"
}
},
{
- "path": "forgetPwd/index",
+ "path": "forgetPwd",
"style": {
"navigationBarTitleText": "忘记密码",
"app-plus": {
}
},
{
- "path": "verification/index",
+ "path": "verification",
"style": {
"navigationBarTitleText": "手机认证"
}
},
{
- "path": "forgetPwd/question",
+ "path": "question",
"style": {
"navigationBarTitleText": "密保验证"
}
}, {
"root": "pages/sub_index",
"pages": [{
- "path": "activeDetails/index",
+ "path": "activeDetails",
"style": {
"navigationBarTitleText": "活动详情"
}
},
{
- "path": "issueQuestion/index",
+ "path": "issueQuestion",
"style": {
"navigationBarTitleText": "发布咨询",
"app-plus": {
}
},
{
- "path": "qrcode/index",
+ "path": "qrcode",
"style": {
"navigationBarTitleText": "我的码",
"app-plus": {
}
},
{
- "path": "introduce/index",
+ "path": "introduce",
"style": {
"navigationBarTitleText": "市民卡简介",
"app-plus": {
}
},
{
- "path": "getCityCard/index",
+ "path": "getCityCard",
"style": {
"navigationBarTitleText": "市民卡办理"
}
},
{
- "path": "activateCard/index",
+ "path": "activateCard",
"style": {
"navigationBarTitleText": "开卡"
}
},
{
- "path": "cardApply/index",
+ "path": "cardApply",
"style": {
"navigationBarTitleText": "卡应用"
}
},
{
- "path": "chat/index",
+ "path": "chat",
"style": {
"navigationBarTitleText": "咨询"
}
},
{
- "path": "chatIssue/index",
+ "path": "chatIssue",
"style": {
"navigationBarTitleText": "咨询库"
}
},
{
- "path": "offlineHelp/index",
+ "path": "offlineHelp",
"style": {
"navigationBarTitleText": "网点查询",
"app-plus": {
}
},
{
- "path": "question/index",
+ "path": "question",
"style": {
"navigationBarTitleText": "常见问题"
}
},
{
- "path": "busRecords/index",
+ "path": "busRecords",
"style": {
"navigationBarTitleText": "乘车记录"
}
},
{
- "path": "chatDetails/index",
+ "path": "chatDetails",
"style": {
"navigationBarTitleText": "详情"
}
},
{
- "path": "scanView/index",
+ "path": "scanView",
"style": {
"navigationBarTitleText": "二维码扫描结果",
"app-plus": {
}
},
{
- "path": "scanView/pay",
+ "path": "pay",
"style": {
"navigationBarTitleText": "二维码扫描结果",
"app-plus": {
}, {
"root": "pages/sub_mine",
"pages": [{
- "path": "reportheLoss/index",
+ "path": "reportheLoss",
"style": {
"navigationBarTitleText": "挂失"
}
},
{
- "path": "lock/index",
+ "path": "lock",
"style": {
"navigationBarTitleText": "手势解锁",
"app-plus": {
}
},
{
- "path": "billsDetails/index",
+ "path": "billsDetails",
"style": {
"navigationBarTitleText": "账单详情",
"app-plus": {
}
},
{
- "path": "accountSafe/index",
+ "path": "shop",
+ "style": {
+ "navigationBarTitleText": "商户管理"
+ }
+ },
+ {
+ "path": "accountSafe",
"style": {
"navigationBarTitleText": "账户安全"
}
},
{
- "path": "bindBankCard/index",
+ "path": "bindBankCard",
"style": {
"navigationBarTitleText": "绑定市民卡"
}
},
{
- "path": "changeLoginPwd/index",
+ "path": "changeLoginPwd",
"style": {
"navigationBarTitleText": "修改登录密码"
}
},
{
- "path": "changePayPwd/index",
+ "path": "changePayPwd",
"style": {
"navigationBarTitleText": "设置支付密码"
}
},
{
- "path": "findPayPwd/index",
+ "path": "findPayPwd",
"style": {
"navigationBarTitleText": "找回密码"
}
},
{
- "path": "otherPay/index",
+ "path": "otherPay",
"style": {
"navigationBarTitleText": "支付(指纹)"
}
},
{
- "path": "otherLogin/index",
+ "path": "otherLogin",
"style": {
"navigationBarTitleText": "指纹/手势/人脸登录"
}
},
{
- "path": "leaveMsgDetail/index",
+ "path": "leaveMsgDetail",
"style": {
"navigationBarTitleText": "留言详情"
}
},
{
- "path": "cashFlow/index",
+ "path": "cashFlow",
"style": {
"navigationBarTitleText": "我的足迹",
"app-plus": {
}
},
{
- "path": "agreement/index",
+ "path": "agreement",
"style": {
"navigationBarTitleText": "用户协议"
}
},
{
- "path": "bindSxy/index",
+ "path": "bindSxy",
"style": {
"navigationBarTitleText": "签约"
}
},
{
- "path": "agreementSign/index",
+ "path": "agreementSign",
"style": {
"navigationBarTitleText": "市民卡免密代扣签约协议"
}
},
{
- "path": "unbindBankCard/index",
+ "path": "unbindBankCard",
"style": {
"navigationBarTitleText": "解绑市民卡"
}
},
{
- "path": "personalMsg/index",
+ "path": "personalMsg",
"style": {
"navigationBarTitleText": "我的信息"
}
},
{
- "path": "leaveMsg/index",
+ "path": "leaveMsg",
"style": {
"navigationBarTitleText": "留言"
}
},
{
- "path": "message/index",
+ "path": "message",
Content-type: text/html
Supwisdom Source - dali_platform/mobile.git/commitdiff
500 - Internal Server Error
Unknown encoding 'gb18030' at /usr/local/share/gitweb/gitweb.cgi line 1539