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.
192 lines
4.8 KiB
192 lines
4.8 KiB
<template>
|
|
<view>
|
|
<view class="box_1">
|
|
<!-- 游前必备 -->
|
|
<view class="an_box_4 wc_tit_wp">
|
|
<view class="an_t"><view class="an_t_1">游前必备</view></view>
|
|
|
|
<view class="amt_30">
|
|
<view class="ax_tol">
|
|
<view class="dy_fx agn_center fx_warp_w fwu_box">
|
|
<view class="w_20" @click="goToPages('jingqu')">
|
|
<image src="../../static/animg/at_5.png" class="at_size_1" mode="aspectFill"></image>
|
|
<view class="at_t">景点</view>
|
|
</view>
|
|
<view class="w_20" @click="goToPages('daohang')">
|
|
<image src="../../static/animg/at_33.png" class="at_size_1" mode="aspectFill"></image>
|
|
<view class="at_t">导航</view>
|
|
</view>
|
|
<!-- <view class="w_20" @click="goToPages('weilai')">
|
|
<image src="../../static/animg/f_gh.png" class="at_size_1" mode="aspectFill"></image>
|
|
<view class="at_t">规划</view>
|
|
</view> -->
|
|
|
|
<!-- <view class="w_20" @click="goToPages('zixun')">
|
|
<image src="../../static/animg/f_zx.png" class="at_size_1" mode="aspectFill"></image>
|
|
<view class="at_t">信息发布</view>
|
|
</view> -->
|
|
|
|
<!-- <view class="w_20" @click="goToPages('gonglv')">
|
|
<image src="../../static/animg/f_gl.png" class="at_size_1" mode="aspectFill"></image>
|
|
<view class="at_t">游玩攻略</view>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 游玩助手 -->
|
|
|
|
|
|
<!-- 实用工具 -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {};
|
|
},
|
|
methods: {
|
|
goToPages: function (type) {
|
|
var that = this;
|
|
if (type == 'jingqu') {
|
|
uni.navigateTo({
|
|
url: '/sunPackIndex/amusement/shoplist/amusementlist'
|
|
});
|
|
} else if (type == 'huodong') {
|
|
uni.navigateTo({
|
|
url: '/pages/hotevent/hoteventlist/hoteventlist'
|
|
});
|
|
} else if (type == 'weilai') {
|
|
} else if (type == 'zixun') {
|
|
uni.navigateTo({
|
|
url: '/sunPackIndex/zixun/zixunlist/zixuntlist'
|
|
});
|
|
} else if (type == 'vr720') {
|
|
//720全景
|
|
uni.navigateTo({
|
|
url: '/pages/quanjing/720All'
|
|
});
|
|
} else if (type == 'xingqu') {
|
|
} else if (type == 'yuyue') {
|
|
if (!uni.getStorageSync('unionid') || uni.getStorageSync('unionid') == '' || uni.getStorageSync('unionid') == null) {
|
|
uni.showToast({
|
|
title: '请先到个人中心进行授权',
|
|
icon: 'none',
|
|
duration: 2000
|
|
});
|
|
|
|
return;
|
|
} else {
|
|
uni.navigateTo({
|
|
url: `/sunPackIndex/scenic/subscribe/yuyue/yue_time_js`
|
|
});
|
|
}
|
|
} else if (type == 'gonglv') {
|
|
uni.navigateTo({
|
|
url: '/sunPackIndex/method/methodlist/methodlist'
|
|
});
|
|
} else if (type == 'video') {
|
|
uni.navigateTo({
|
|
url: '/pages/video/videolist/videolist'
|
|
});
|
|
} else if (type == 'feiyi') {
|
|
uni.navigateTo({
|
|
url: '/pages/feiyi/feiyilist/feiyilist'
|
|
});
|
|
}else if (type == 'daohang') {
|
|
// daohang() {
|
|
console.log(this.info)
|
|
// 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: 37.03217,
|
|
longitude: 114.538065,
|
|
scale: 16,
|
|
name: '邢台海洋馆',
|
|
address: '',
|
|
success(data) {
|
|
console.log(data);
|
|
},
|
|
fail(err) {
|
|
console.log(err);
|
|
}
|
|
});
|
|
// },
|
|
}
|
|
},
|
|
beforeUpload: function (type) {
|
|
var that = this;
|
|
var title = '';
|
|
if (type == 'shc') {
|
|
title = '识花草';
|
|
} else if (type == 'txsb') {
|
|
title = '长方形';
|
|
}
|
|
var url = this.$config.getMessageInfoFormFilter;
|
|
var data = {
|
|
type: this.$param.svgType,
|
|
userkey: this.$param.userkey,
|
|
title: title,
|
|
pageSize: 1,
|
|
sort: '2'
|
|
};
|
|
this.$Request.post(url, data).then((res) => {
|
|
var data = res.data;
|
|
var url = '';
|
|
if (data.length > 0) {
|
|
url = data[0].logo;
|
|
if (url == undefined || url == null) {
|
|
url = '';
|
|
}
|
|
}
|
|
switch (uni.getSystemInfoSync().platform) {
|
|
case 'android':
|
|
console.log('运行Android上');
|
|
this.$util.bindGpsObj(that);
|
|
Android.gotoDetial('ImageFrom', 'camera');
|
|
Android.gotoDetial('SVGLINE', url);
|
|
break;
|
|
case 'ios':
|
|
console.log('运行iOS上');
|
|
this.$util.bindGpsObj(that);
|
|
window.location.href = 'https://www.baidu.com?url=svg&value=' + url;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
});
|
|
uni.showLoading({
|
|
title: '开启相机中...',
|
|
mask: true
|
|
});
|
|
setTimeout(
|
|
function () {
|
|
uni.hideLoading();
|
|
},
|
|
500,
|
|
that
|
|
);
|
|
},
|
|
receiveFail: function () {
|
|
uni.showModal({
|
|
title: '提示',
|
|
content: '上传失败',
|
|
showCancel: false
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style></style>
|
|
|