feat(): 浸润线修改
parent
540b929cd5
commit
1cce27996d
43
App.vue
43
App.vue
|
|
@ -1,5 +1,31 @@
|
|||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
isHaveNetwork() {
|
||||
uni.getNetworkType({
|
||||
success: res => {
|
||||
if (res.networkType == 'none') {
|
||||
uni.showModal({
|
||||
title: '网络不给力~',
|
||||
content: '是否重新连接',
|
||||
showCancel: true,
|
||||
confirmText: '是',
|
||||
cancelText: '不了',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
setTimeout(() => {
|
||||
isHaveNetwork() //再次判断
|
||||
}, 200)
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: err => console.error('调用失败'),
|
||||
complete: () => { }
|
||||
})
|
||||
}
|
||||
},
|
||||
onLaunch: function () {
|
||||
const token = {
|
||||
loginName: uni.getStorageSync('loginName'),
|
||||
|
|
@ -21,6 +47,7 @@
|
|||
},
|
||||
onShow: function () {
|
||||
console.log('App Show')
|
||||
this.isHaveNetwork()
|
||||
},
|
||||
onHide: function () {
|
||||
console.log('App Hide')
|
||||
|
|
@ -35,6 +62,7 @@
|
|||
/* #ifndef APP-NVUE */
|
||||
@import '@/static/customicons.css';
|
||||
@import 'ol/ol.css';
|
||||
|
||||
// 设置整个项目的背景色
|
||||
page {
|
||||
// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
|
||||
|
|
@ -46,6 +74,7 @@
|
|||
color: #333;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.userinfo {
|
||||
border-radius: 5px;
|
||||
display: flex;
|
||||
|
|
@ -59,12 +88,14 @@
|
|||
background-color: #007afd;
|
||||
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 6vw;
|
||||
height: 6vh;
|
||||
align-items: center;
|
||||
line-height: 6vh;
|
||||
}
|
||||
|
||||
.Header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
@ -73,19 +104,24 @@
|
|||
color: white;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.align-justufy-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;;
|
||||
justify-content: center;
|
||||
;
|
||||
}
|
||||
|
||||
.justify-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.justify-between {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
|
@ -107,11 +143,10 @@
|
|||
// color: #3399ef;
|
||||
}
|
||||
}
|
||||
|
||||
// .amap-logo {
|
||||
// display: none !important;
|
||||
// }
|
||||
// .amap-copyright {
|
||||
// display: none !important;
|
||||
// }
|
||||
|
||||
</style>
|
||||
// }</style>
|
||||
|
|
|
|||
6
main.js
6
main.js
|
|
@ -8,8 +8,8 @@ import {
|
|||
} from '@escook/request-miniprogram'
|
||||
Vue.config.productionTip = false
|
||||
uni.$http = $http
|
||||
// $http.baseUrl = 'http://223.75.53.141:83'
|
||||
$http.baseUrl = 'http://local.gunshiiot.com:18083'
|
||||
$http.baseUrl = 'http://223.75.53.141:83'
|
||||
// $http.baseUrl = 'http://local.gunshiiot.com:18083'
|
||||
// $http.baseUrl = 'http://192.168.66.27:24105'
|
||||
// 请求拦截器
|
||||
$http.beforeRequest = function (options) {
|
||||
|
|
@ -28,7 +28,7 @@ $http.afterRequest = function (options) {
|
|||
}
|
||||
// uni.hideLoading()
|
||||
}
|
||||
uni.$showMsg = function (title = '', duration = 1500) {
|
||||
uni.$showMsg = function (title = '正请求中...', duration = 1500) {
|
||||
return uni.showToast({
|
||||
title,
|
||||
duration,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name" : "檀树岗水库",
|
||||
"appid" : "__UNI__33ED56F",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.1",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : 1,
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
|
|
|
|||
|
|
@ -427,11 +427,15 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') {
|
|||
symbol: 'none',
|
||||
symbolSize: 10,
|
||||
z: 1,
|
||||
smooth: 0.6, // 设置平滑度
|
||||
smoothMonotone: 'x', // 保持 x 方向的单调性
|
||||
itemStyle: {
|
||||
color: '#5487FF'
|
||||
},
|
||||
lineStyle: {
|
||||
color: '#5487FF',
|
||||
width: 2,
|
||||
curveness: 0.5 // 增加曲线程度
|
||||
},
|
||||
data: filteredArray
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue