diff --git a/pages/homeIndex/index.vue b/pages/homeIndex/index.vue
index 530bd13..8e1be6a 100644
--- a/pages/homeIndex/index.vue
+++ b/pages/homeIndex/index.vue
@@ -15,8 +15,6 @@
-
@@ -26,7 +24,8 @@
-
+
-
-
-
+
+
@@ -821,55 +262,11 @@
text-align: left;
margin-bottom: 12rpx;
}
-
- /* 24小时 */
- .chartChange {
- text-align: center;
- margin: 16rpx 0;
- }
-
- .chart_tit {
- width: 129rpx;
- height: 43rpx;
- background: #d3e1ff;
- border-radius: 20rpx;
- color: #3380ff;
- }
-
- .chart_tit image {
- margin-right: 10rpx;
- width: 36rpx;
- height: 30rpx;
- }
-
- .table_h {
- display: flex;
- text-align: center;
- height: 24px;
- /* position: absolute;
- top: 0;
- right: 0; */
- }
-
- /* info_24 */
.info_24 {
padding: 15px;
background-color: #fff;
margin-bottom: 12rpx;
}
-
- .heart {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
-
- .fl {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
-
.title .line {
border: 2px solid #3380ff;
border-radius: 3rpx;
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 56e7a14..33d6cef 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -26,11 +26,7 @@
+=======
+
+>>>>>>> 7aeb4aa5a071cd3d557c15ebc6cd5b0525da319b
diff --git a/pages/personInfo/personInfo.vue b/pages/personInfo/personInfo.vue
index 4687c61..33b5b03 100644
--- a/pages/personInfo/personInfo.vue
+++ b/pages/personInfo/personInfo.vue
@@ -80,6 +80,9 @@
'Authorization': 'Bearer ' + uni.getStorageSync('Gs-Token')
},
success: (res) => {
+ const imgUrl = JSON.parse(res.data).imgUrl;
+ this.getImgFlow(imgUrl)
+ // uni.setStorageSync("imgUrl",imgUrl)
uni.$showMsg("上传成功")
},
})
@@ -93,6 +96,20 @@
}
});
},
+
+ getImgFlow(imgUrl) {
+ uni.request({
+ url: 'http://local.gunshiiot.com:18083' +
+ `/gunshiApp/xyt/common/download/resource?resource=${imgUrl}`,
+ responseType: 'arraybuffer',
+ success: (res) => {
+ // 将arraybuffer转换为Base64编码
+ let base64 = uni.arrayBufferToBase64(res.data);
+ const p = 'data:image/png;base64,' + base64;
+ uni.setStorageSync("avatar",p)
+ }
+ })
+ },
modifyValue(item) {
console.log(item);
@@ -139,7 +156,6 @@
=await uni.$http.put('/gunshiApp/xyt/system/user/profile', new_userList);
if (data.code == 200) {
uni.setStorageSync('value', new_userList)
- uni.setStorageSync('avatar', new_userList.avatar)
uni.reLaunch({
url: '/pages/mypage/mypage'
})
diff --git a/pages/utils/tool.js b/pages/utils/tool.js
index 0ceeb03..b7ca467 100644
--- a/pages/utils/tool.js
+++ b/pages/utils/tool.js
@@ -62,3 +62,22 @@ export const adnmZhen = adcd => {
}
return nameMap[`${adcd.substr(0, 9)}000000`]
}
+
+export const fileChange = (file) => {
+
+ let target= ''
+ let blob = new Blob([file]);
+ console.log("blobblob",blob);
+
+ let url = window.URL.createObjectURL(blob);
+ // let reader = new FileReader(blob);
+ // console.log("reader",reader);
+
+ // reader.readAsDataURL(url);
+ // reader.onload = function (e) {
+ // target=e.target.result
+ // }
+ console.log("target",url);
+
+ return url
+}
diff --git a/pages/ylzList/detail/index.vue b/pages/ylzList/detail/index.vue
index b151bb3..602a121 100644
--- a/pages/ylzList/detail/index.vue
+++ b/pages/ylzList/detail/index.vue
@@ -1,172 +1,182 @@
-
-
+
-
-
-
- 监测数据
-
-
- 统计数据
-
-
-
-
-
- 开始时间
- {{stm}}
-
-
- 结束时间
- {{etm}}
-
- 搜索
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 监测数据
-
-
-
-
-
-
+
+ 统计数据
+
+
+
+
+
+ 开始时间
+ {{stm}}
+
+
+ 结束时间
+ {{etm}}
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/ylzList/index.vue b/pages/ylzList/index.vue
index b5f28e8..f2fc9a8 100644
--- a/pages/ylzList/index.vue
+++ b/pages/ylzList/index.vue
@@ -74,7 +74,7 @@
},
toDetail(){
uni.navigateTo({
- url:'/pages/ylzList/detail/index'
+ url:`/pages/ylzList/detail/index?stnm=${this.item.stnm}`
})
},
},
diff --git a/static/tabs/aqjc.png b/static/tabs/aqjc.png
new file mode 100644
index 0000000..6f9d57a
Binary files /dev/null and b/static/tabs/aqjc.png differ
diff --git a/static/tabs/spjk.png b/static/tabs/spjk.png
new file mode 100644
index 0000000..bb1c779
Binary files /dev/null and b/static/tabs/spjk.png differ
diff --git a/static/tabs/stlljk.png b/static/tabs/stlljk.png
new file mode 100644
index 0000000..cae6a1c
Binary files /dev/null and b/static/tabs/stlljk.png differ
diff --git a/static/tabs/wtcl.png b/static/tabs/wtcl.png
new file mode 100644
index 0000000..996874c
Binary files /dev/null and b/static/tabs/wtcl.png differ
diff --git a/static/tabs/wxyh.png b/static/tabs/wxyh.png
new file mode 100644
index 0000000..2cd3ab5
Binary files /dev/null and b/static/tabs/wxyh.png differ
diff --git a/static/tabs/xcrw.png b/static/tabs/xcrw.png
new file mode 100644
index 0000000..1030c0c
Binary files /dev/null and b/static/tabs/xcrw.png differ