feat(): 浸润线修改

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

117
App.vue
View File

@ -1,52 +1,81 @@
<script> <script>
export default { export default {
onLaunch: function() { 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 = { const token = {
loginName: uni.getStorageSync('loginName'), loginName: uni.getStorageSync('loginName'),
secretKey: uni.getStorageSync('secretKey'), secretKey: uni.getStorageSync('secretKey'),
} }
if (token.secretKey){ if (token.secretKey) {
uni.reLaunch({ uni.reLaunch({
url: '/pages/homeIndex/index' url: '/pages/homeIndex/index'
}) })
console.log(token.secretKey,'App Launch') console.log(token.secretKey, 'App Launch')
} else { } else {
uni.reLaunch({ uni.reLaunch({
url: '/pages/login/login' url: '/pages/login/login'
// url:'/pages/zhjs/index' // url:'/pages/zhjs/index'
}) })
console.log(token.secretKey,'App Launch2') console.log(token.secretKey, 'App Launch2')
} }
}, },
onShow: function() { onShow: function () {
console.log('App Show') console.log('App Show')
this.isHaveNetwork()
}, },
onHide: function() { onHide: function () {
console.log('App Hide') 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 {
// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
}
/* #endif */
.example-info {
font-size: 14px; font-size: 14px;
color: #333; color: #333;
padding: 10px; padding: 10px;
} }
.userinfo{
.userinfo {
border-radius: 5px; border-radius: 5px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -58,40 +87,47 @@
height: 6vh; height: 6vh;
background-color: #007afd; background-color: #007afd;
} }
.icon{
.icon {
width: 6vw; width: 6vw;
height: 6vh; height: 6vh;
align-items: center; align-items: center;
line-height: 6vh; line-height: 6vh;
} }
.Header{
.Header {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex: 0.95; flex: 0.95;
justify-content: center; justify-content: center;
color: white; color: white;
font-size: 20px; font-size: 20px;
} }
.align-center{
.align-center {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.align-justufy-center{
.align-justufy-center {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;; justify-content: center;
} ;
.justify-center{ }
.justify-center {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.justify-between{
.justify-between {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.time-ranger { .time-ranger {
margin-bottom: 10px; margin-bottom: 10px;
.start-time, .start-time,
@ -106,12 +142,11 @@
margin: 3px 0 0 5px; margin: 3px 0 0 5px;
// color: #3399ef; // 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
}, },