Commit ae71c38c by 李嘉林

优化

parent 8aedd527
...@@ -66,6 +66,8 @@ export default { ...@@ -66,6 +66,8 @@ export default {
type: "gcj02", // gcj02 wgs84 type: "gcj02", // gcj02 wgs84
isHighAccuracy: true, isHighAccuracy: true,
success: res => { success: res => {
res.latitude = res.latitude.toFixed(3)
res.longitude = res.longitude.toFixed(3)
// latitude longitude speed accuracy // latitude longitude speed accuracy
log.info("~~~~~~~~~1~~~~~~~", res); log.info("~~~~~~~~~1~~~~~~~", res);
console.log("~~~~~~~~~1~~~~~~~", res); console.log("~~~~~~~~~1~~~~~~~", res);
......
...@@ -479,6 +479,7 @@ export default { ...@@ -479,6 +479,7 @@ export default {
}) })
}, },
onShow() { onShow() {
this.pageLoading = false;
console.log(new Date().getTime(),'load-----home-onShow') console.log(new Date().getTime(),'load-----home-onShow')
// 设置显示条件 // 设置显示条件
console.log(new Date().getTime(),'--------on--------------show') console.log(new Date().getTime(),'--------on--------------show')
......
...@@ -60,12 +60,12 @@ Component({ ...@@ -60,12 +60,12 @@ Component({
if (this.data.datas.componentData.isChange) { if (this.data.datas.componentData.isChange) {
if (this.data.datas.componentData.imageWidth > this.data.datas.componentData.noticeWidth) { if (this.data.datas.componentData.imageWidth > this.data.datas.componentData.noticeWidth) {
this.setData({ this.setData({
CommonHeight: this.data.datas.componentData.imageWidth < 53 ? '53px' : this.data.datas.componentData.imageWidth + 'px' CommonHeight: this.data.datas.componentData.imageWidth < 40 ? '40px' : this.data.datas.componentData.imageWidth + 'px'
}) })
return return
} else if (this.data.datas.componentData.noticeWidth >= this.data.datas.componentData.imageWidth) { } else if (this.data.datas.componentData.noticeWidth >= this.data.datas.componentData.imageWidth) {
this.setData({ this.setData({
CommonHeight: this.data.datas.componentData.noticeWidth < 53 ? '53px' : this.data.datas.componentData.noticeWidth + 'px' CommonHeight: this.data.datas.componentData.noticeWidth < 40 ? '40px' : this.data.datas.componentData.noticeWidth + 'px'
}) })
return return
} }
...@@ -75,7 +75,7 @@ Component({ ...@@ -75,7 +75,7 @@ Component({
return return
} else { } else {
this.setData({ this.setData({
CommonHeight: this.data.datas.componentData.noticeWidth < 53 ? '53px' : this.data.datas.componentData.noticeWidth + 'px' CommonHeight: this.data.datas.componentData.noticeWidth < 40 ? '40px' : this.data.datas.componentData.noticeWidth + 'px'
}) })
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment