老白干小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

60 lines
1.3 KiB

<template>
<web-view :src="daolanurl" telephone="true"></web-view>
</template>
<script>
export default {
data() {
return {
daolanurl:"",
netType:true
}
},
methods: {
},
onLoad(option) {
console.log(option)
var that = this;
this.$util.getNetworkType(
function(res){
if(res.networkType === 'none'){
uni.showToast({
title:that.$param.netMsg,
icon:"none",
duration:2000
})
that.netType = false;
}
},function(){
uni.showToast({
title:that.$param.netMsg,
icon:"none",
duration:2000
})
that.netType = false;
}
)
if(!that.netType){
return;
}
this.$util.hideLoadingByTime();
that.$util.saveOperatorLog(that,"DAOLAN",option.scenicId);
// this.daolanurl = this.$config.REAUEST_ROOTPATH + "/html/back/ybsjMap/ybsjMap.html?userkey="+this.$param.userkey+"&scenicId="+option.scenicId+"&clng="+this.$param.clng+"&clat="+this.$param.clat
this.daolanurl = this.$config.REAUEST_ROOTPATH + "/html/back/ybsjMap/ybsjMap.html?userkey="+this.$param.userkey+"&scenicId=334&clng="+this.$param.clng+"&clat="+this.$param.clat
console.log(this.daolanurl,'kokoko')
uni.showLoading({
title: "加载中",
mask: true
})
},
onReady() {
setTimeout(function() {
uni.hideLoading();
}, 500);
}
}
</script>
<style>
</style>