Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_street
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_street
Commits
7b9acf59
Commit
7b9acf59
authored
Aug 18, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改JS
parent
d1ed39e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
109 deletions
+32
-109
n.png
app/src/main/assets/web/common/n.png
+0
-0
ap.js
app/src/main/assets/web/zhs/ap.js
+8
-0
zsmap.js
app/src/main/assets/web/zhs/zsmap.js
+24
-109
No files found.
app/src/main/assets/web/common/n.png
0 → 100644
View file @
7b9acf59
329 Bytes
app/src/main/assets/web/zhs/ap.js
View file @
7b9acf59
...
...
@@ -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
{
...
...
app/src/main/assets/web/zhs/zsmap.js
View file @
7b9acf59
...
...
@@ -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)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment