feat(): 浸润线修改

master
李神峰 2025-10-11 10:37:07 +08:00
parent 540b929cd5
commit 1cce27996d
4 changed files with 144 additions and 105 deletions

235
App.vue
View File

@ -1,117 +1,152 @@
<script> <script>
export default { export default {
onLaunch: function() { methods: {
const token = { isHaveNetwork() {
loginName: uni.getStorageSync('loginName'), uni.getNetworkType({
secretKey: uni.getStorageSync('secretKey'), success: res => {
} if (res.networkType == 'none') {
if (token.secretKey){ uni.showModal({
uni.reLaunch({ title: '网络不给力~',
url: '/pages/homeIndex/index' content: '是否重新连接',
}) showCancel: true,
console.log(token.secretKey,'App Launch') confirmText: '是',
} else { cancelText: '不了',
uni.reLaunch({ success: res => {
url: '/pages/login/login' if (res.confirm) {
// url:'/pages/zhjs/index' setTimeout(() => {
}) isHaveNetwork() //
console.log(token.secretKey,'App Launch2') }, 200)
} }
}
}, });
onShow: function() { }
console.log('App Show') },
}, fail: err => console.error('调用失败'),
onHide: function() { complete: () => { }
console.log('App Hide') })
} }
},
onLaunch: function () {
const token = {
loginName: uni.getStorageSync('loginName'),
secretKey: uni.getStorageSync('secretKey'),
}
if (token.secretKey) {
uni.reLaunch({
url: '/pages/homeIndex/index'
})
console.log(token.secretKey, 'App Launch')
} else {
uni.reLaunch({
url: '/pages/login/login'
// url:'/pages/zhjs/index'
})
console.log(token.secretKey, 'App Launch2')
}
},
onShow: function () {
console.log('App Show')
this.isHaveNetwork()
},
onHide: function () {
console.log('App Hide')
} }
}
</script> </script>
<style lang="scss"> <style lang="scss">
/*每个页面公共css */ /*每个页面公共css */
@import '@/uni_modules/uni-scss/index.scss'; @import '@/uni_modules/uni-scss/index.scss';
@import "@/uni_modules/uview-ui/index.scss"; @import "@/uni_modules/uview-ui/index.scss";
/* #ifndef APP-NVUE */ /* #ifndef APP-NVUE */
@import '@/static/customicons.css'; @import '@/static/customicons.css';
@import 'ol/ol.css'; @import 'ol/ol.css';
//
page {
// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
}
/* #endif */ //
.example-info { page {
font-size: 14px; // background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
color: #333; }
padding: 10px;
} /* #endif */
.userinfo{ .example-info {
border-radius: 5px; font-size: 14px;
display: flex; color: #333;
flex-direction: row; padding: 10px;
margin-top: 5vh; }
margin-left: 2vw;
margin-bottom: 2vh; .userinfo {
align-items: center; border-radius: 5px;
width: 95%; display: flex;
height: 6vh; flex-direction: row;
background-color: #007afd; margin-top: 5vh;
margin-left: 2vw;
} margin-bottom: 2vh;
.icon{ align-items: center;
width: 6vw; width: 95%;
height: 6vh; height: 6vh;
align-items: center; background-color: #007afd;
line-height: 6vh;
} }
.Header{
display: flex; .icon {
flex-direction: row; width: 6vw;
flex: 0.95; height: 6vh;
justify-content: center; align-items: center;
color: white; line-height: 6vh;
font-size: 20px; }
}
.align-center{ .Header {
display: flex;
flex-direction: row;
flex: 0.95;
justify-content: center;
color: white;
font-size: 20px;
}
.align-center {
display: flex;
align-items: center;
}
.align-justufy-center {
display: flex;
align-items: center;
justify-content: center;
;
}
.justify-center {
display: flex;
justify-content: center;
}
.justify-between {
display: flex;
justify-content: space-between;
}
.time-ranger {
margin-bottom: 10px;
.start-time,
.end-time {
display: flex; display: flex;
align-items: center; align-items: center;
} padding: 10px 0;
.align-justufy-center{ border-bottom: 1px solid #dfdfdf;
display: flex;
align-items: center;
justify-content: center;;
}
.justify-center{
display: flex;
justify-content: center;
}
.justify-between{
display: flex;
justify-content: space-between;
} }
.time-ranger { .search-btn {
margin-bottom: 10px; margin: 3px 0 0 5px;
// color: #3399ef;
}
}
.start-time,
.end-time {
display: flex;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #dfdfdf;
}
.search-btn {
margin: 3px 0 0 5px;
// color: #3399ef;
}
}
// .amap-logo { // .amap-logo {
// display: none !important; // display: none !important;
// } // }
// .amap-copyright { // .amap-copyright {
// display: none !important; // display: none !important;
// } // }</style>
</style>

View File

@ -8,8 +8,8 @@ import {
} from '@escook/request-miniprogram' } from '@escook/request-miniprogram'
Vue.config.productionTip = false Vue.config.productionTip = false
uni.$http = $http uni.$http = $http
// $http.baseUrl = 'http://223.75.53.141:83' $http.baseUrl = 'http://223.75.53.141:83'
$http.baseUrl = 'http://local.gunshiiot.com:18083' // $http.baseUrl = 'http://local.gunshiiot.com:18083'
// $http.baseUrl = 'http://192.168.66.27:24105' // $http.baseUrl = 'http://192.168.66.27:24105'
// 请求拦截器 // 请求拦截器
$http.beforeRequest = function (options) { $http.beforeRequest = function (options) {
@ -28,7 +28,7 @@ $http.afterRequest = function (options) {
} }
// uni.hideLoading() // uni.hideLoading()
} }
uni.$showMsg = function (title = '', duration = 1500) { uni.$showMsg = function (title = '正请求中...', duration = 1500) {
return uni.showToast({ return uni.showToast({
title, title,
duration, duration,

View File

@ -2,7 +2,7 @@
"name" : "檀树岗水库", "name" : "檀树岗水库",
"appid" : "__UNI__33ED56F", "appid" : "__UNI__33ED56F",
"description" : "", "description" : "",
"versionName" : "1.0.1", "versionName" : "1.0.0",
"versionCode" : 1, "versionCode" : 1,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {

View File

@ -427,11 +427,15 @@ export default function jrxOptions(data = {}, type = "1",typeName='1') {
symbol: 'none', symbol: 'none',
symbolSize: 10, symbolSize: 10,
z: 1, z: 1,
smooth: 0.6, // 设置平滑度
smoothMonotone: 'x', // 保持 x 方向的单调性
itemStyle: { itemStyle: {
color: '#5487FF' color: '#5487FF'
}, },
lineStyle: { lineStyle: {
color: '#5487FF', color: '#5487FF',
width: 2,
curveness: 0.5 // 增加曲线程度
}, },
data: filteredArray data: filteredArray
}, },