Commit 7b9acf59 authored by fengruiyu's avatar fengruiyu

修改JS

parent d1ed39e2
......@@ -113,6 +113,14 @@ function needPay() {
//alert("app未弹框==>" + msg + e)
}
}
function needPayPopup() {
try {
doAppFun("needPayPopup");
} catch (e) {
// console.log("tips", msg)
//alert("app未弹框==>" + msg + e)
}
}
function tips(msg) {
try {
......
......@@ -52,7 +52,7 @@ var vm = new Vue({
vrs: function () {
var th = this;
if (this.isVip == false) {
this.needPay();
this.needPay('p');
return;
}
if (th.canclick) {
......@@ -98,8 +98,8 @@ var vm = new Vue({
},
makeSenics: function () {
for (i in vm.scenics) {
// if (i > 33)
// break;
if (i > 33)
break;
const image = "./common/sm.png";
var msg = vm.scenics[i];
......@@ -110,6 +110,7 @@ var vm = new Vue({
const marker = new google.maps.Marker({
position: position,
icon: image,//msg.img,
// animation: google.maps.Animation.DROP,
optimized: true,
// collisionBehavior: 'OPTIONAL_AND_HIDES_LOWER_PRIORITY',
......@@ -122,12 +123,12 @@ var vm = new Vue({
fontSize: "13px",
fontWeight: '500'
},
zIndex:parseInt(i),
zIndex: parseInt(i),
title: msg.bvid,
})
marker.addListener("click", (ss) => {
if (this.isVip == false) {
this.needPay();
this.needPay('p');
return;
}
params = vm.getSeLabel(marker.getTitle());
......@@ -239,9 +240,14 @@ var vm = new Vue({
return;
}
},
needPay: function () {
// console.log("<<请开启会员")
needPay();
needPay:function(d){
console.log("<<请开启会员")
if(d!=undefined&&d!=null&&d=='p'){
needPay();
return;
}
needPayPopup();
},
G_initMap: function (point, zoomLevel, init) {
if (zoomLevel == undefined || zoomLevel == null)
......@@ -305,18 +311,18 @@ var vm = new Vue({
new google.maps.Marker({
position: point,
map: G_MAP,
icon: "./common/p.png",//msg.img,
icon: "./common/n.png",//msg.img,
// animation: google.maps.Animation.DROP,
optimized: true,
map: G_MAP,
label: {
text: "i am here",
className: "zsmaker",
// fontFamily: "Material Icons",
color: "#ffffff",
fontSize: "13px",
fontWeight: '500'
},
// label: {
// text: "i am here",
// className: "zsmaker",
// // fontFamily: "Material Icons",
// color: "#ffffff",
// fontSize: "13px",
// fontWeight: '500'
// },
});
if (vm.showScenics)
vm.doShowScenics();
......@@ -337,98 +343,7 @@ var vm = new Vue({
window.onload = function () {
allIsOk();
//init();
}
function init() {
vm.beginInitZsMap({
"lng": 0,//经纬度
"lat": 0,//经纬度
"inner": 1,//国内国外 1国外 ,0国内
"vip": 1,//是否vip 1是vip ,0不是
mapType: "hybrid", //当前地图类型
showVrButton: 1, //是否展示街景按钮 1 展示,0 不展示
showScenics: 1, //是否展示景点推荐 1 展示 ,0 不展示
scenics: [ //景点信息 ,接口查询返回
{
"name": "故宫",
"img": "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_camera/img/ui/homepage/1628578695759.jpeg",
"desc": "北京故宫呀",
"lng": "116.313355",
"lat": "39.983856",
"blng": "116.32222419295384",
"blat": "39.99602192441332",
"bvid": "01002200001309200841046795L"
}
]
})
// th.mapType = inMsg.mapType;
// th.showVrButton = inMsg.showVrButton;
// th.showScenics = inMsg.showScenics;
// setTimeout(function () {
// vm.doShowScenics([
// {
// "name": "故宫",
// "img": "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_camera/img/ui/homepage/1628578695759.jpeg",
// "desc": "北京故宫呀",
// "lng": "116.313355",
// "lat": "39.983856",
// "blng": "116.32222419295384",
// "blat": "39.99602192441332",
// "bvid": "01002200001309200841046795L"
// }
// ]);
// }, 3000)
//
// setTimeout(function () {
// vm.showVrButton = true;
// }, 5000)
//
// setTimeout(function () {
// vm.showVrButton = false;
// }, 7000)
//
// setTimeout(function () {
// vm.showVrButton = true;
// }, 8000)
//
// setTimeout(function () {
// vm.doCloseScenics();
// }, 6000)
//
// setTimeout(function () {
// G_MAP.setMapTypeId('roadmap');
//
// }, 7000)
// setTimeout(function () {
// G_MAP.setMapTypeId('terrain');
//
// }, 11000)
//
// setTimeout(function () {
// G_MAP.setMapTypeId('satellite');
//
// }, 13000)
// setTimeout(function () {
// G_MAP.setMapTypeId('hybrid');
//
// }, 15000)
//
// setTimeout(function () {
// vm.doShowScenics([
// {
// "name": "故宫",
// "img": "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_camera/img/ui/homepage/1628578695759.jpeg",
// "desc": "北京故宫呀",
// "lng": "116.313355",
// "lat": "39.983856",
// "blng": "116.32222419295384",
// "blat": "39.99602192441332",
// "bvid": "01002200001309200841046795L"
// }
// ]);
// }, 9000)
}
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