Compare commits
5 Commits
4aa08a42c4
...
f676c1567c
| Author | SHA1 | Date |
|---|---|---|
|
|
f676c1567c | |
|
|
e5ef6e14e9 | |
|
|
afb768073c | |
|
|
6e12dbbf8b | |
|
|
e6cafe2e6a |
|
|
@ -3,7 +3,7 @@
|
||||||
"appid" : "__UNI__7573222",
|
"appid" : "__UNI__7573222",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : 1,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"android" : {
|
"android" : {
|
||||||
|
"packagename" : "com.gunshi.xytSk-App",
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
"permissions" : [
|
"permissions" : [
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "xffxkh-app",
|
"name": "xytSk-App",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
|
|
||||||
222
pages.json
222
pages.json
|
|
@ -2,13 +2,25 @@
|
||||||
"easycom": {
|
"easycom": {
|
||||||
"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
|
"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
|
||||||
},
|
},
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "pages/login/login",
|
"path": "pages/login/login",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/upgrade/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"app-plus": {
|
||||||
|
"bounce": "none",
|
||||||
|
"animationType": "none",
|
||||||
|
"background": "transparent"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/xcrw/index",
|
"path": "pages/xcrw/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -45,14 +57,6 @@
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"path": "pages/rain/rain",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/homeIndex/index",
|
"path": "pages/homeIndex/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -62,65 +66,12 @@
|
||||||
"pullToRefresh": {
|
"pullToRefresh": {
|
||||||
"support": true,
|
"support": true,
|
||||||
"style": "default",
|
"style": "default",
|
||||||
"offset": "70px"
|
"offset": "100px"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/xxsb/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "信息上报"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/xxsb/from",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/xxsb/fromSeverity",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/xxsb/dsfrom",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/xxsb/map",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "地图示例"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/gqxx",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "工情信息"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/zqxx",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "灾情信息"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/detail/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "查看"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/mypage/mypage",
|
"path": "pages/mypage/mypage",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -175,131 +126,7 @@
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/forewarning/forewarning",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/forewarning/sh",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/forewarning/shInformation/shInformation",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/addressBook/addressBook",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/water/water",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
},
|
|
||||||
"onMessage": "handleMessage"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/rainDetail/rainDetail",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/hdDetail/hdDetail",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/skDetail/skDetail",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/addressBook/follow",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/addressBook/myDept",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/orderFeedback/orderFeedback",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/orderFeedback/orderInformation",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/gqxx/gqxx",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/gqxx/qk",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/gqxx/xq",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/gqxx/qkForm",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/gqxx/xqForm",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/zqxx/zqxx",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/zqxx/table",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/gqzq/zqxx/form",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/wxyh/index",
|
"path": "pages/wxyh/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -381,8 +208,7 @@
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"color": "#333333",
|
"color": "#333333",
|
||||||
"selectedColor": "#59A7FF",
|
"selectedColor": "#59A7FF",
|
||||||
"list": [
|
"list": [{
|
||||||
{
|
|
||||||
"pagePath": "pages/homeIndex/index",
|
"pagePath": "pages/homeIndex/index",
|
||||||
"iconPath": "/static/tabs/home.png",
|
"iconPath": "/static/tabs/home.png",
|
||||||
"selectedIconPath": "static/tabs/home2.png",
|
"selectedIconPath": "static/tabs/home2.png",
|
||||||
|
|
@ -407,16 +233,12 @@
|
||||||
"background": "#efeff4"
|
"background": "#efeff4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"subPackages": [
|
"subPackages": [{
|
||||||
{
|
|
||||||
"root": "subpkg",
|
"root": "subpkg",
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
|
||||||
"path": "rainDetail/rainDetail"
|
"path": "rainDetail/rainDetail"
|
||||||
}
|
}]
|
||||||
]
|
}],
|
||||||
}
|
|
||||||
],
|
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "uni-app",
|
"navigationBarTitleText": "uni-app",
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
<u-button @click="sx" class="aqjc-custom-style">-</u-button>
|
<u-button @click="sx" class="aqjc-custom-style">-</u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="play-btn">
|
<view class="play-btn">
|
||||||
<uni-icons type="videocam" size="40" @click="play"></uni-icons>
|
<uni-icons type="videocam" size="40" :color="swiper ? '#2979ff':'#909399' " @click="play"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="jcsj-charts">
|
<view class="jcsj-charts">
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
<div class="scroll-table">
|
<div class="scroll-table">
|
||||||
<tr v-for="(item, index) in data" :key="index">
|
<tr v-for="(item, index) in data" :key="index">
|
||||||
<td style="width:100px;text-align:center">{{ index + 1 }}</td>
|
<td style="width:100px;text-align:center">{{ index + 1 }}</td>
|
||||||
<td style="width:200px;white-space:pre-wrap;text-align:center">{{ item.tm }}</td>
|
<td style="width:200px;text-align:center">{{ item.tm }}</td>
|
||||||
<td style="width:100px;white-space:pre-wrap;text-align:center">{{ item.rz }}</td>
|
<td style="width:100px;text-align:center">{{ item.rz }}</td>
|
||||||
<td v-for="(col,i) in newCol" :key="i" style="width:100px;text-align:center;">
|
<td v-for="(col,i) in newCol" :key="i" style="width:100px;text-align:center;">
|
||||||
{{item[col.key] }}
|
{{item[col.key] }}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@
|
||||||
|
|
||||||
.navIcon {
|
.navIcon {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 84px;
|
width: 80px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,40 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 更新版本
|
||||||
|
init(){
|
||||||
|
this.checkVersion();
|
||||||
|
},
|
||||||
|
// 检查版本更新情况
|
||||||
|
async checkVersion(){
|
||||||
|
try {
|
||||||
|
const {data} = await uni.$http.get("/gunshiApp/xyt/appVersionRecord/latest");
|
||||||
|
if(data.code == 200){
|
||||||
|
const selfVersionCode = uni.getSystemInfoSync().appWgtVersion//当前App版本号
|
||||||
|
const newVersionCode = data.data.version; //线上最新版本号
|
||||||
|
if (selfVersionCode != newVersionCode) {
|
||||||
|
let platform = uni.getSystemInfoSync().platform //手机平台
|
||||||
|
//安卓手机弹窗升级
|
||||||
|
if (platform === 'android') {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/upgrade/index?info=${encodeURIComponent(JSON.stringify(data.data))}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//IOS无法在线升级提示到商店下载
|
||||||
|
else {
|
||||||
|
uni.showModal({
|
||||||
|
title: '发现新版本 ' +'V' + newVersionCode,
|
||||||
|
content: '请到App store进行升级',
|
||||||
|
showCancel: false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
uni.$showMsg()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
handleChange(formData) {
|
handleChange(formData) {
|
||||||
formData.checked = !formData.checked
|
formData.checked = !formData.checked
|
||||||
},
|
},
|
||||||
|
|
@ -136,6 +170,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
onLoad(){
|
||||||
|
this.init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@
|
||||||
<view class="time-ranger" style="padding:10px;background-color: #fff;">
|
<view class="time-ranger" style="padding:10px;background-color: #fff;">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{startTime}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{startTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{endTime}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{endTime}}</text>
|
||||||
<view class="search-btn" @click="searchTm">
|
<view class="search-btn" @click="searchTm">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{startTime}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{startTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{endTime}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{endTime}}</text>
|
||||||
<view class="search-btn" @click="searchTm">
|
<view class="search-btn" @click="searchTm">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{startTime}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{startTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{endTime}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{endTime}}</text>
|
||||||
<view class="search-btn" @click="searchTm">
|
<view class="search-btn" @click="searchTm">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
<view class="time-ranger" >
|
<view class="time-ranger" >
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
userList: uni.getStorageSync('value'),
|
userList: uni.getStorageSync('value'),
|
||||||
username: '',
|
username: '',
|
||||||
userresponse: '防汛办',
|
userresponse: '防汛办',
|
||||||
version: '011.14.23',
|
version: uni.getSystemInfoSync().appWgtVersion,
|
||||||
func: func,
|
func: func,
|
||||||
xjxList:xjxList,
|
xjxList:xjxList,
|
||||||
default_src: uni.getStorageSync('avatar'),
|
default_src: uni.getStorageSync('avatar'),
|
||||||
|
|
@ -247,7 +247,7 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
width: 92%;
|
width: 92%;
|
||||||
height: 6vh;
|
height: 8vh;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: white;
|
color: white;
|
||||||
background-color: #007afd;
|
background-color: #007afd;
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<view >
|
<view >
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 50px">{{info.personName}}</td>
|
<td style="width: 50px">{{info.personName}}</td>
|
||||||
<td style="width: 130px;">{{info.orgName}}</td>
|
<td style="width: 130px;white-space: pre-wrap;">{{info.orgName}}</td>
|
||||||
<td style="width: 80px">{{info.position}}</td>
|
<td style="width: 80px">{{info.position}}</td>
|
||||||
<td style="width: 100px;color: #62bafa;" @click="show = true">{{info.tel}}</td>
|
<td style="width: 100px;color: #62bafa;" @click="show = true">{{info.tel}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -102,7 +102,7 @@
|
||||||
.zrtx-box{
|
.zrtx-box{
|
||||||
border: 1px solid #c1f2ce;
|
border: 1px solid #c1f2ce;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
padding:10px 10px 5px 10px;
|
padding:10px 5px 12px 5px;
|
||||||
background-color: #ebfbef;
|
background-color: #ebfbef;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
.table_div {
|
.table_div {
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
}
|
}
|
||||||
.table_cur tr {
|
.table_cur tr {
|
||||||
display: flex;
|
display: flex;
|
||||||
line-height: 65rpx;
|
// line-height: 65rpx;
|
||||||
}
|
}
|
||||||
.table_cur th {
|
.table_cur th {
|
||||||
height: 65rpx;
|
height: 65rpx;
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,11 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="project-des" >
|
<view class="project-des" >
|
||||||
<view v-for="(item,index) in tableData" :key="index" :style="index % 2 == 0 ? 'width:150px;':'width:197px;'">
|
<view v-for="(item,index) in tableData" :key="index" :style="index % 2 == 0 ? 'width:50%;':'width:50%;'">
|
||||||
<view style="display:flex;align-items:center;margin:15px 0px;">
|
<view style="display:flex;align-items:center;margin:15px 0px;">
|
||||||
<view class="circle-dot"></view>
|
<view class="circle-dot"></view>
|
||||||
<view class="label-name">
|
<view class="label-name">
|
||||||
<text style="opacity:0.5">{{item.name}}</text>
|
<text style="opacity:0.5;text-align: center;">{{item.name}}</text>
|
||||||
<text>{{item.value||"-"}}</text>
|
<text>{{item.value||"-"}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -124,6 +124,9 @@ export default {
|
||||||
border: 1px solid #f2f2f2;
|
border: 1px solid #f2f2f2;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
max-height: calc(100vh - 190px);
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
.circle-dot {
|
.circle-dot {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
|
|
@ -131,6 +134,7 @@ export default {
|
||||||
background-color: #409eff;
|
background-color: #409eff;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label-name {
|
.label-name {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<text>水位</text>
|
<text>水位</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="first-item">
|
<view class="first-item">
|
||||||
<text>{{info.nowCap}}米</text>
|
<text>{{info.nowCap}}万m³</text>
|
||||||
<text>蓄水量</text>
|
<text>蓄水量</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="first-line"></view>
|
<view class="first-line"></view>
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
<view class="first-extra-row">
|
<view class="first-extra-row">
|
||||||
<text>坝顶高程{{info.crestElev}}米</text>
|
<text>坝顶高程{{info.crestElev}}米</text>
|
||||||
<text>汛限水位{{info.flLowLimLev}}米</text>
|
<text>汛限水位{{info.flLowLimLev}}米</text>
|
||||||
<text>总库容{{info.totCap}}米</text>
|
<text>总库容{{info.totCap}}万m³</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="sk-second-row">
|
<view class="sk-second-row">
|
||||||
<view class="first-item">
|
<view class="first-item">
|
||||||
|
|
@ -55,11 +55,11 @@
|
||||||
<view class="time-ranger" >
|
<view class="time-ranger" >
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,9 @@ export default {
|
||||||
async getKrData(){
|
async getKrData(){
|
||||||
try {
|
try {
|
||||||
const {data} = await uni.$http.post(
|
const {data} = await uni.$http.post(
|
||||||
"/gunshiApp/xyt/stZvarlB/list")
|
"/gunshiApp/xyt/stZvarlB/list",{
|
||||||
|
stcd:"716164061"
|
||||||
|
})
|
||||||
if(data.code == 200){
|
if(data.code == 200){
|
||||||
this.tableData = [...data.data];
|
this.tableData = [...data.data];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template >
|
<template >
|
||||||
<view class="project-des" >
|
<view class="project-des" >
|
||||||
<view v-for="(item,index) in tableData" :key="index" :style="index % 2 != 0 ? 'width:150px;':'width:197px;'">
|
<view v-for="(item,index) in tableData" :key="index" :style="index % 2 == 0 ? 'width:50%;':'width:50%;'">
|
||||||
<view style="display:flex;align-items:center;margin:15px 0px;">
|
<view style="display:flex;align-items:center;margin:15px 0px;">
|
||||||
<view class="circle-dot"></view>
|
<view class="circle-dot"></view>
|
||||||
<view class="label-name">
|
<view class="label-name">
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
<view class="time-ranger" style="margin-top:70px">
|
<view class="time-ranger" style="margin-top:70px">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ export default function drpOption (obj) {
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: data.map(o => o.tm),
|
data: data.map(o => o.tm),
|
||||||
// inverse: true,
|
inverse: true,
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,11 @@
|
||||||
<view class="time-ranger" >
|
<view class="time-ranger" >
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="jcsj-content">
|
<view class="jcsj-content" v-if="tableData.length != 0">
|
||||||
<view class="jcsj-charts" >
|
<view class="jcsj-charts" >
|
||||||
<qiun-data-charts :chartData="chartData.chartData" :echartsApp="true" :eopts="chartData.eopts" />
|
<qiun-data-charts :chartData="chartData.chartData" :echartsApp="true" :eopts="chartData.eopts" />
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -39,6 +39,11 @@
|
||||||
<JcsjTable :tableData="tableData" />
|
<JcsjTable :tableData="tableData" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view
|
||||||
|
style="height:calc(100vh - 160px);display: flex;align-items: center;justify-content: center;background-color: #fff;margin-top:10px"
|
||||||
|
v-else>
|
||||||
|
<image src="../../static/empty.png" mode=""></image>
|
||||||
|
</view>
|
||||||
<u-datetime-picker
|
<u-datetime-picker
|
||||||
:show="showTime"
|
:show="showTime"
|
||||||
v-model="startTime"
|
v-model="startTime"
|
||||||
|
|
@ -61,7 +66,7 @@
|
||||||
import moment from "moment"
|
import moment from "moment"
|
||||||
import JcsjTable from "./jcsjTable"
|
import JcsjTable from "./jcsjTable"
|
||||||
import drpOption from "./chartOption.js"
|
import drpOption from "./chartOption.js"
|
||||||
const stm = moment().subtract(7, 'months').add(1, 'hour').set({minute: 0, second: 0}).format("YYYY-MM-DD HH:mm");
|
const stm = moment().subtract(1, 'months').add(1, 'hour').set({minute: 0, second: 0}).format("YYYY-MM-DD HH:mm");
|
||||||
const etm = moment().add(1, 'hour').set({minute: 0, second: 0}).format("YYYY-MM-DD HH:mm");
|
const etm = moment().add(1, 'hour').set({minute: 0, second: 0}).format("YYYY-MM-DD HH:mm");
|
||||||
export default {
|
export default {
|
||||||
props:{
|
props:{
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,276 @@
|
||||||
|
<template>
|
||||||
|
<view class="upgrade-popup">
|
||||||
|
<image class="header-bg" src="../../static/images/upgrade.png" mode="widthFix"></image>
|
||||||
|
<view class="main">
|
||||||
|
<view class="version">发现新版本{{"v" + info.version}}</view>
|
||||||
|
<view class="content">
|
||||||
|
<text class="title">更新内容</text>
|
||||||
|
<view class="desc" v-html="info.versionDesc"></view>
|
||||||
|
</view>
|
||||||
|
<!--下载状态-进度条显示 -->
|
||||||
|
<view class="footer" v-if="isStartDownload">
|
||||||
|
<view class="progress-view" :class="{'active':!hasProgress}" @click="handleInstallApp">
|
||||||
|
<!-- 进度条 -->
|
||||||
|
<view v-if="hasProgress" style="height: 100%;">
|
||||||
|
<view class="txt">{{percentText}}</view>
|
||||||
|
<view class="progress" :style="setProStyle"></view>
|
||||||
|
</view>
|
||||||
|
<view v-else>
|
||||||
|
<view class="btn upgrade force">{{ isDownloadFinish ? '立即安装' :'下载中...'}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 强制更新 -->
|
||||||
|
<view class="footer" v-else-if="isForceUpdate">
|
||||||
|
<view class="btn upgrade force" @click="handleUpgrade">立即更新</view>
|
||||||
|
</view>
|
||||||
|
<!-- 可选择更新 -->
|
||||||
|
<view class="footer" v-else>
|
||||||
|
<view class="btn close" @click="handleClose">以后再说</view>
|
||||||
|
<view class="btn upgrade" @click="handleUpgrade">立即更新</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
downloadApp,
|
||||||
|
installApp
|
||||||
|
} from '../utils/upgrade.js'
|
||||||
|
import {
|
||||||
|
fileChange
|
||||||
|
} from '../utils/tool.js'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isForceUpdate: false, //是否强制更新
|
||||||
|
isDownloadFinish: false, //是否下载完成
|
||||||
|
hasProgress: false, //是否能显示进度条
|
||||||
|
currentPercent: 0, //当前下载百分比
|
||||||
|
isStartDownload: false, //是否开始下载
|
||||||
|
fileName: '', //下载后app本地路径名称
|
||||||
|
info: {},
|
||||||
|
downloadUrl:''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
//设置进度条样式,实时更新进度位置
|
||||||
|
setProStyle() {
|
||||||
|
return {
|
||||||
|
width: (510 * this.currentPercent / 100) + 'rpx' //510:按钮进度条宽度
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//百分比文字
|
||||||
|
percentText() {
|
||||||
|
let percent = this.currentPercent;
|
||||||
|
if (typeof percent !== 'number' || isNaN(percent)) return '下载中...'
|
||||||
|
if (percent < 100) return `下载中${percent}%`
|
||||||
|
return '立即安装'
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
this.info = JSON.parse(decodeURIComponent(options.info));
|
||||||
|
},
|
||||||
|
onBackPress(options) {
|
||||||
|
// 禁用返回
|
||||||
|
if (options.from == 'backbutton') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//更新
|
||||||
|
handleUpgrade() {
|
||||||
|
if (this.info.url) {
|
||||||
|
this.isStartDownload = true
|
||||||
|
//开始下载App
|
||||||
|
const baseUrl = `http://local.gunshiiot.com:18083/gunshiApp/xyt/common/download/resource?resource=${this.info.url}`
|
||||||
|
downloadApp(baseUrl, current => {
|
||||||
|
//下载进度监听
|
||||||
|
this.hasProgress = true
|
||||||
|
this.currentPercent = current
|
||||||
|
|
||||||
|
}).then(fileName => {
|
||||||
|
//下载完成
|
||||||
|
this.isDownloadFinish = true
|
||||||
|
this.fileName = fileName
|
||||||
|
if (fileName) {
|
||||||
|
//自动安装App
|
||||||
|
this.handleInstallApp()
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
console.log(e, 'e')
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '下载链接不存在',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
//安装app
|
||||||
|
handleInstallApp() {
|
||||||
|
//下载完成才能安装,防止下载过程中点击
|
||||||
|
if (this.isDownloadFinish && this.fileName) {
|
||||||
|
installApp(this.fileName, () => {
|
||||||
|
//安装成功,关闭升级弹窗
|
||||||
|
uni.navigateBack()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//关闭返回
|
||||||
|
handleClose() {
|
||||||
|
uni.navigateBack()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
page {
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
/**设置窗口背景半透明*/
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.upgrade-popup {
|
||||||
|
width: 580rpx;
|
||||||
|
height: auto;
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-bg {
|
||||||
|
width: 70%;
|
||||||
|
margin-top: -112rpx;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
padding: 10rpx 30rpx 30rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.version {
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #026DF7;
|
||||||
|
font-weight: 700;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
margin-top: 60rpx;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.desc {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #6A6A6A;
|
||||||
|
max-height: 80vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-top: 100rpx;
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 246rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
z-index: 999;
|
||||||
|
height: 96rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 32rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
|
|
||||||
|
&.force {
|
||||||
|
width: 500rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.close {
|
||||||
|
border: 1px solid #E0E0E0;
|
||||||
|
margin-right: 25rpx;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.upgrade {
|
||||||
|
background-color: #026DF7;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-view {
|
||||||
|
width: 510rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
background-color: #dcdcdc;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
padding: 0px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: none;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background-color: #026DF7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
height: 100%;
|
||||||
|
background-color: #026DF7;
|
||||||
|
padding: 0px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: none;
|
||||||
|
border-top-left-radius: 10rpx;
|
||||||
|
border-bottom-left-radius: 10rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.txt {
|
||||||
|
font-size: 28rpx;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -64,20 +64,9 @@ export const adnmZhen = adcd => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fileChange = (file) => {
|
export const fileChange = (file) => {
|
||||||
|
|
||||||
let target= ''
|
|
||||||
let blob = new Blob([file]);
|
let blob = new Blob([file]);
|
||||||
console.log("blobblob",blob);
|
|
||||||
|
|
||||||
let url = window.URL.createObjectURL(blob);
|
let url = window.URL.createObjectURL(blob);
|
||||||
// let reader = new FileReader(blob);
|
console.log("url",url);
|
||||||
// console.log("reader",reader);
|
|
||||||
|
|
||||||
// reader.readAsDataURL(url);
|
|
||||||
// reader.onload = function (e) {
|
|
||||||
// target=e.target.result
|
|
||||||
// }
|
|
||||||
console.log("target",url);
|
|
||||||
|
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,90 @@
|
||||||
|
/**
|
||||||
|
* @description H5+下载App
|
||||||
|
* @param downloadUrl:App下载链接
|
||||||
|
* @param progressCallBack:下载进度回调
|
||||||
|
*/
|
||||||
|
export const downloadApp = (downloadUrl, progressCallBack = () => { },) => {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
//创建下载任务
|
||||||
|
const downloadTask = plus.downloader.createDownload(downloadUrl, {
|
||||||
|
method: "GET"
|
||||||
|
}, (task, status) => {
|
||||||
|
if (status == 200) { //下载成功
|
||||||
|
resolve(task.filename)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
reject('fail')
|
||||||
|
uni.showToast({
|
||||||
|
title: '下载失败',
|
||||||
|
duration: 1500,
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
//监听下载过程
|
||||||
|
downloadTask.addEventListener("statechanged", (task, status) => {
|
||||||
|
switch (task.state) {
|
||||||
|
case 1: // 开始
|
||||||
|
break;
|
||||||
|
case 2: //已连接到服务器
|
||||||
|
break;
|
||||||
|
case 3: // 已接收到数据
|
||||||
|
let hasProgress = task.totalSize && task.totalSize > 0 //是否能获取到App大小
|
||||||
|
if (hasProgress) {
|
||||||
|
let current = parseInt(100 * task.downloadedSize / task.totalSize); //获取下载进度百分比
|
||||||
|
progressCallBack(current)
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4: // 下载完成
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//开始执行下载
|
||||||
|
downloadTask.start();
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @description H5+安装APP
|
||||||
|
* @param fileName:app文件名
|
||||||
|
* @param callBack:安装成功回调
|
||||||
|
*/
|
||||||
|
export const installApp = (fileName, callBack = () => {}) => {
|
||||||
|
//注册广播监听app安装情况
|
||||||
|
onInstallListening(callBack);
|
||||||
|
//开始安装
|
||||||
|
plus.runtime.install(plus.io.convertLocalFileSystemURL(fileName), {}, () => {
|
||||||
|
//成功跳转到安装界面
|
||||||
|
}, function(error) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '安装失败',
|
||||||
|
duration: 1500,
|
||||||
|
icon: "none"
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @description 注册广播监听APP是否安装成功
|
||||||
|
* @param callBack:安装成功回调函数
|
||||||
|
*/
|
||||||
|
const onInstallListening = (callBack = () => {}) => {
|
||||||
|
|
||||||
|
let mainActivity = plus.android.runtimeMainActivity(); //获取activity
|
||||||
|
//生成广播接收器
|
||||||
|
let receiver = plus.android.implements('io.dcloud.android.content.BroadcastReceiver', {
|
||||||
|
onReceive: (context, intent) => { //接收广播回调
|
||||||
|
plus.android.importClass(intent);
|
||||||
|
mainActivity.unregisterReceiver(receiver); //取消监听
|
||||||
|
callBack()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
let IntentFilter = plus.android.importClass('android.content.IntentFilter');
|
||||||
|
let Intent = plus.android.importClass('android.content.Intent');
|
||||||
|
let filter = new IntentFilter();
|
||||||
|
filter.addAction(Intent.ACTION_PACKAGE_ADDED); //监听APP安装
|
||||||
|
filter.addDataScheme("package");
|
||||||
|
mainActivity.registerReceiver(receiver, filter); //注册广播
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{startTime}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{startTime}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{endTime}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{endTime}}</text>
|
||||||
<view class="search-btn" @click="searchTm">
|
<view class="search-btn" @click="searchTm">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -115,7 +115,6 @@
|
||||||
console.log(params,'dsd');
|
console.log(params,'dsd');
|
||||||
uni.$http.post('/gunshiApp/xyt/inspect/detail/page', params).then(res => {
|
uni.$http.post('/gunshiApp/xyt/inspect/detail/page', params).then(res => {
|
||||||
this.list=res.data.data.records
|
this.list=res.data.data.records
|
||||||
console.log(this.list);
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -16,23 +16,31 @@
|
||||||
<view class="time-ranger">
|
<view class="time-ranger">
|
||||||
<view class="start-time">
|
<view class="start-time">
|
||||||
<text>开始时间</text>
|
<text>开始时间</text>
|
||||||
<text @click="showTime=true" style="margin-left:15%;color:#3399ef">{{stm}}</text>
|
<text @click="showTime=true" style="margin-left:10%;color:#3399ef">{{stm}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="end-time">
|
<view class="end-time">
|
||||||
<text>结束时间</text>
|
<text>结束时间</text>
|
||||||
<text @click="showTime1=true" style="margin:0 15%;color:#3399ef">{{etm}}</text>
|
<text @click="showTime1=true" style="margin:0 10%;color:#3399ef">{{etm}}</text>
|
||||||
<view class="search-btn" @click="searchHandle">
|
<view class="search-btn" @click="searchHandle">
|
||||||
搜索
|
搜索
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="ylzData.length != 0">
|
||||||
<view class="ylz-chart-area">
|
<view class="ylz-chart-area">
|
||||||
<qiun-data-charts :chartData="chartData.chartData" :echartsApp="true" :eopts="chartData.eopts" />
|
<qiun-data-charts :chartData="chartData.chartData" :echartsApp="true" :eopts="chartData.eopts" />
|
||||||
</view>
|
</view>
|
||||||
<view class="ylz-table-area">
|
<view class="ylz-table-area">
|
||||||
<YlzTable :tableData="ylzData"></YlzTable>
|
<YlzTable :tableData="ylzData"></YlzTable>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
style="height:calc(100vh - 160px);display: flex;align-items: center;justify-content: center;background-color: #fff;margin-top:10px"
|
||||||
|
v-else>
|
||||||
|
<image src="../../../static/empty.png" mode=""></image>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view v-if="activeOne == 1" style="padding:10px">
|
<view v-if="activeOne == 1" style="padding:10px">
|
||||||
<Table></Table>
|
<Table></Table>
|
||||||
|
|
@ -74,6 +82,7 @@
|
||||||
chartData1: {},
|
chartData1: {},
|
||||||
chartData: {},
|
chartData: {},
|
||||||
stnm:'',
|
stnm:'',
|
||||||
|
stcd:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -85,7 +94,7 @@
|
||||||
data
|
data
|
||||||
} = await uni.$http.post(
|
} = await uni.$http.post(
|
||||||
"/gunshiApp/xyt/attResBase/rainBasinDivision/queryStStbprpPerHour/StcdAndStartTimeAndEndTime", {
|
"/gunshiApp/xyt/attResBase/rainBasinDivision/queryStStbprpPerHour/StcdAndStartTimeAndEndTime", {
|
||||||
stcd: "716164061",
|
stcd: this.stcd,
|
||||||
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
startTime: moment(this.stm).format("YYYY-MM-DD HH:mm:ss"),
|
||||||
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
|
endTime: moment(this.etm).format("YYYY-MM-DD HH:mm:ss")
|
||||||
})
|
})
|
||||||
|
|
@ -142,7 +151,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options){
|
onLoad(options){
|
||||||
this.stnm = options.stnm
|
this.stnm = options.stnm;
|
||||||
|
this.stcd = options.stcd;
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getrainInfo();
|
this.getrainInfo();
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
toDetail(){
|
toDetail(){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/ylzList/detail/index?stnm=${this.item.stnm}`
|
url:`/pages/ylzList/detail/index?stnm=${this.item.stnm}&stcd=${this.item.stcd}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7573222","name":"小玉潭水库","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"VideoPlayer":{},"Messaging":{},"Camera":{},"Maps":{"coordType":"gcj02"},"Contacts":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","distribute":{"splashscreen":{"androidStyle":"common"},"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>","<uses-permission android:name=\"android.permission.CALL_PHONE\"/>"]},"apple":{"dSYMs":false},"plugins":{"ad":{},"maps":{"amap":{"name":"4799ff37874e604a22b910b44ca948e5","appkey_ios":"755dafdf984df7a1609fb30f6861bd17","appkey_android":"755dafdf984df7a1609fb30f6861bd17"}},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"4.29","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#333333","selectedColor":"#59A7FF","list":[{"pagePath":"pages/homeIndex/index","iconPath":"/static/tabs/home.png","selectedIconPath":"static/tabs/home2.png","text":"首页"},{"pagePath":"pages/mypage/mypage","iconPath":"/static/images/my2_icon@2x.png","selectedIconPath":"static/images/my2_icon@2x2.png","text":"我的"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html"}}
|
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__7573222","name":"小玉潭水库","version":{"name":"1.0.0","code":1},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"VideoPlayer":{},"Messaging":{},"Camera":{},"Maps":{"coordType":"gcj02"},"Contacts":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","distribute":{"splashscreen":{"androidStyle":"common"},"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"google":{"packagename":"com.gunshi.xytSk-App","permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>","<uses-permission android:name=\"android.permission.CALL_PHONE\"/>"]},"apple":{"dSYMs":false},"plugins":{"ad":{},"maps":{"amap":{"name":"4799ff37874e604a22b910b44ca948e5","appkey_ios":"755dafdf984df7a1609fb30f6861bd17","appkey_android":"755dafdf984df7a1609fb30f6861bd17"}},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"4.24","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#333333","selectedColor":"#59A7FF","list":[{"pagePath":"pages/homeIndex/index","iconPath":"/static/tabs/home.png","selectedIconPath":"static/tabs/home2.png","text":"首页"},{"pagePath":"pages/mypage/mypage","iconPath":"/static/images/my2_icon@2x.png","selectedIconPath":"static/images/my2_icon@2x2.png","text":"我的"}],"borderStyle":"rgba(0,0,0,0.4)","height":"50px"},"launch_path":"__uniappview.html"}}
|
||||||
Loading…
Reference in New Issue