Commit 7b9acf59 authored by fengruiyu's avatar fengruiyu

修改JS

parent d1ed39e2
...@@ -113,6 +113,14 @@ function needPay() { ...@@ -113,6 +113,14 @@ function needPay() {
//alert("app未弹框==>" + msg + e) //alert("app未弹框==>" + msg + e)
} }
} }
function needPayPopup() {
try {
doAppFun("needPayPopup");
} catch (e) {
// console.log("tips", msg)
//alert("app未弹框==>" + msg + e)
}
}
function tips(msg) { function tips(msg) {
try { try {
......
...@@ -52,7 +52,7 @@ var vm = new Vue({ ...@@ -52,7 +52,7 @@ var vm = new Vue({
vrs: function () { vrs: function () {
var th = this; var th = this;
if (this.isVip == false) { if (this.isVip == false) {
this.needPay(); this.needPay('p');
return; return;
} }
if (th.canclick) { if (th.canclick) {
...@@ -98,8 +98,8 @@ var vm = new Vue({ ...@@ -98,8 +98,8 @@ var vm = new Vue({
}, },
makeSenics: function () { makeSenics: function () {
for (i in vm.scenics) { for (i in vm.scenics) {
// if (i > 33) if (i > 33)
// break; break;
const image = "./common/sm.png"; const image = "./common/sm.png";
var msg = vm.scenics[i]; var msg = vm.scenics[i];
...@@ -110,6 +110,7 @@ var vm = new Vue({ ...@@ -110,6 +110,7 @@ var vm = new Vue({
const marker = new google.maps.Marker({ const marker = new google.maps.Marker({
position: position, position: position,
icon: image,//msg.img, icon: image,//msg.img,
// animation: google.maps.Animation.DROP, // animation: google.maps.Animation.DROP,
optimized: true, optimized: true,
// collisionBehavior: 'OPTIONAL_AND_HIDES_LOWER_PRIORITY', // collisionBehavior: 'OPTIONAL_AND_HIDES_LOWER_PRIORITY',
...@@ -122,12 +123,12 @@ var vm = new Vue({ ...@@ -122,12 +123,12 @@ var vm = new Vue({
fontSize: "13px", fontSize: "13px",
fontWeight: '500' fontWeight: '500'
}, },
zIndex:parseInt(i), zIndex: parseInt(i),
title: msg.bvid, title: msg.bvid,
}) })
marker.addListener("click", (ss) => { marker.addListener("click", (ss) => {
if (this.isVip == false) { if (this.isVip == false) {
this.needPay(); this.needPay('p');
return; return;
} }
params = vm.getSeLabel(marker.getTitle()); params = vm.getSeLabel(marker.getTitle());
...@@ -239,9 +240,14 @@ var vm = new Vue({ ...@@ -239,9 +240,14 @@ var vm = new Vue({
return; return;
} }
}, },
needPay: function () { needPay:function(d){
// console.log("<<请开启会员") console.log("<<请开启会员")
needPay(); if(d!=undefined&&d!=null&&d=='p'){
needPay();
return;
}
needPayPopup();
}, },
G_initMap: function (point, zoomLevel, init) { G_initMap: function (point, zoomLevel, init) {
if (zoomLevel == undefined || zoomLevel == null) if (zoomLevel == undefined || zoomLevel == null)
...@@ -305,18 +311,18 @@ var vm = new Vue({ ...@@ -305,18 +311,18 @@ var vm = new Vue({
new google.maps.Marker({ new google.maps.Marker({
position: point, position: point,
map: G_MAP, map: G_MAP,
icon: "./common/p.png",//msg.img, icon: "./common/n.png",//msg.img,
// animation: google.maps.Animation.DROP, // animation: google.maps.Animation.DROP,
optimized: true, optimized: true,
map: G_MAP, map: G_MAP,
label: { // label: {
text: "i am here", // text: "i am here",
className: "zsmaker", // className: "zsmaker",
// fontFamily: "Material Icons", // // fontFamily: "Material Icons",
color: "#ffffff", // color: "#ffffff",
fontSize: "13px", // fontSize: "13px",
fontWeight: '500' // fontWeight: '500'
}, // },
}); });
if (vm.showScenics) if (vm.showScenics)
vm.doShowScenics(); vm.doShowScenics();
...@@ -337,98 +343,7 @@ var vm = new Vue({ ...@@ -337,98 +343,7 @@ var vm = new Vue({
window.onload = function () { window.onload = function () {
allIsOk(); 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