Commit ae71c38c by 李嘉林

优化

parent 8aedd527
......@@ -66,6 +66,8 @@ export default {
type: "gcj02", // gcj02 wgs84
isHighAccuracy: true,
success: res => {
res.latitude = res.latitude.toFixed(3)
res.longitude = res.longitude.toFixed(3)
// latitude longitude speed accuracy
log.info("~~~~~~~~~1~~~~~~~", res);
console.log("~~~~~~~~~1~~~~~~~", res);
......
......@@ -479,6 +479,7 @@ export default {
})
},
onShow() {
this.pageLoading = false;
console.log(new Date().getTime(),'load-----home-onShow')
// 设置显示条件
console.log(new Date().getTime(),'--------on--------------show')
......
......@@ -60,12 +60,12 @@ Component({
if (this.data.datas.componentData.isChange) {
if (this.data.datas.componentData.imageWidth > this.data.datas.componentData.noticeWidth) {
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
} else if (this.data.datas.componentData.noticeWidth >= this.data.datas.componentData.imageWidth) {
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
}
......@@ -75,7 +75,7 @@ Component({
return
} else {
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
}
......
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