Merge branch 'master' of https://e.coding.net/ctcdevteam/ehs/ehs_mp2
This commit is contained in:
commit
b9567a9855
29
App.vue
29
App.vue
|
@ -57,6 +57,27 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success(res) {
|
||||||
|
if (res.platform == 'android') {
|
||||||
|
that.$u.api.apkCheck().then(res1 => {
|
||||||
|
if (res.appVersion < res1.version) {
|
||||||
|
uni.showModal({
|
||||||
|
title: "版本更新",
|
||||||
|
content: '有新的版本发布, 请下载新版本',
|
||||||
|
confirmText: '立即更新',
|
||||||
|
showCancel: false,
|
||||||
|
success: function(res2) {
|
||||||
|
if (res2.confirm) {
|
||||||
|
plus.runtime.openURL(res1.file)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '自动登录中...',
|
title: '自动登录中...',
|
||||||
|
@ -64,10 +85,10 @@
|
||||||
})
|
})
|
||||||
uni.getStorage({
|
uni.getStorage({
|
||||||
key: 'mySecret',
|
key: 'mySecret',
|
||||||
success: function (res) {
|
success: function(res) {
|
||||||
let secret = res.data
|
let secret = res.data
|
||||||
if(secret){
|
if (secret) {
|
||||||
that.$u.api.loginSecret(JSON.parse(secret)).then(res=>{
|
that.$u.api.loginSecret(JSON.parse(secret)).then(res => {
|
||||||
that.$u.api.getUserInfo().then(res => {
|
that.$u.api.getUserInfo().then(res => {
|
||||||
that.$u.vuex('vuex_user', res)
|
that.$u.vuex('vuex_user', res)
|
||||||
// 修改资源请求地址
|
// 修改资源请求地址
|
||||||
|
@ -77,7 +98,7 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
complete() {
|
complete() {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
|
|
|
@ -27,6 +27,7 @@ const install = (Vue, vm) => {
|
||||||
|
|
||||||
let unbindmp = (data = {}) => vm.$u.post('/system/user/unbind_wxmp/', data); //微信小程序解绑
|
let unbindmp = (data = {}) => vm.$u.post('/system/user/unbind_wxmp/', data); //微信小程序解绑
|
||||||
let bindSecret = (data = {}) => vm.$u.post('/system/user/bind_secret/', data); //App密钥绑定
|
let bindSecret = (data = {}) => vm.$u.post('/system/user/bind_secret/', data); //App密钥绑定
|
||||||
|
let apkCheck = ()=>vm.$u.get('/system/apk/'); //apk检查
|
||||||
|
|
||||||
|
|
||||||
let getDickey = (params = {}) => vm.$u.get('/system/dict/', params); //查询字典
|
let getDickey = (params = {}) => vm.$u.get('/system/dict/', params); //查询字典
|
||||||
|
@ -92,6 +93,7 @@ const install = (Vue, vm) => {
|
||||||
unbindmp,
|
unbindmp,
|
||||||
bindSecret,
|
bindSecret,
|
||||||
loginSecret,
|
loginSecret,
|
||||||
|
apkCheck,
|
||||||
|
|
||||||
userList,
|
userList,
|
||||||
deptList,
|
deptList,
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "曲阳金隅EHS",
|
"name" : "曲阳金隅EHS",
|
||||||
"appid" : "__UNI__B00D419",
|
"appid" : "__UNI__B00D419",
|
||||||
"description" : "曲阳金隅EHS",
|
"description" : "曲阳金隅EHS",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.00.01",
|
||||||
"versionCode" : "100",
|
"versionCode" : 10001,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
@ -15,12 +15,8 @@
|
||||||
"delay" : 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
"modules" : {
|
"modules" : {
|
||||||
"OAuth" : {},
|
"VideoPlayer" : {},
|
||||||
"Payment" : {},
|
"Push" : {}
|
||||||
"Push" : {},
|
|
||||||
"Share" : {},
|
|
||||||
"Speech" : {},
|
|
||||||
"VideoPlayer" : {}
|
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
|
@ -63,7 +59,8 @@
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios" : {
|
"ios" : {
|
||||||
"UIBackgroundModes" : [ "audio" ]
|
"UIBackgroundModes" : [ "audio" ],
|
||||||
|
"dSYMs" : false
|
||||||
},
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
</view>
|
</view>
|
||||||
<text class="title-text-left">实时报警</text>
|
<text class="title-text-left">实时报警</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="" @click="xinwenList">
|
<view class="">
|
||||||
<text class="title-text-right">查看更多</text>
|
<text class="title-text-right">查看更多</text>
|
||||||
<uni-icons type="right" :size="11" color="#ababab"></uni-icons>
|
<uni-icons type="right" :size="11" color="#ababab"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
|
@ -257,7 +257,7 @@
|
||||||
color: #5b5b5b;
|
color: #5b5b5b;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
display: box;
|
display: flex;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
line-clamp: 2;
|
line-clamp: 2;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
|
|
Loading…
Reference in New Issue