海洋馆小程序
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.
 
 
 
 
minAPP-hyg/pages/traffic/outTraffic.vue

70 lines
1.8 KiB

<template>
<view class="v-traffic-box">
<view class="dh-box">
<image src="https://www.lbgjtoa.com/appImg/v-address_01.jpg" class="v-traffic-img" mode="widthFix"></image>
<view class="dh-btn" @click="daohang">导航</view>
</view>
<image @click="goToPages()" src="https://www.lbgjtoa.com/appImg/v-address_02.jpg" class="v-traffic-img" mode="widthFix"></image>
<image src="https://www.lbgjtoa.com/appImg/v-address_03.jpg" class="v-traffic-img" mode="widthFix"></image>
<image src="https://www.lbgjtoa.com/appImg/v-address_04.jpg" class="v-traffic-img" mode="widthFix"></image>
<image src="https://www.lbgjtoa.com/appImg/v-address_05.jpg" class="v-traffic-img" mode="widthFix"></image>
<image src="https://www.lbgjtoa.com/appImg/v-address_06.jpg" class="v-traffic-img" mode="widthFix"></image>
</view>
</template>
<script>
export default {
methods: {
goToPages: function () {
uni.switchTab({
url: '/pages/daolan/daolan'
});
},
daohang() {
// if (this.$wechat.isWechat()) {
// var mapParam = {
// latitude: this.info.lat,
// longitude: this.info.lng,
// scale: 18,
// name: this.info.sname,
// address: this.info.saddress
// };
// this.$util.openLocation(mapParam);
// return;
// }
wx.openLocation({
latitude: Number("37.826323"),
longitude: Number("115.712658"),
scale: 16,
name: '衡水老白干',
address: '',
success(data) {
console.log(data);
},
fail(err) {
console.log(err);
}
});
},
}
};
</script>
<style>
.v-traffic-img {
width: 100%;
margin-bottom: -10rpx;
}
.dh-box {
position: relative;
}
.dh-btn {
position: absolute;
right: 50rpx;
bottom: -1rpx;
border: solid 1px #c50101;
font-size: 22rpx;
padding: 5rpx 10rpx;
color: #c30000;
}
</style>