Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
0067d39d
Commit
0067d39d
authored
Apr 08, 2016
by
vietdo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19490 360°Getits Webビューアツールバーの非表示
parent
ae05d67d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
87 deletions
+101
-87
abvw/common/js/common.js
+9
-0
abvw/js/contentview.js
+68
-75
abvw/js/login.js
+24
-12
No files found.
abvw/common/js/common.js
View file @
0067d39d
...
...
@@ -372,6 +372,7 @@ COMMON.Keys = {
conf_apiLoginUrl
:
'conf_apiLoginUrl'
,
conf_apiResourceDlUrl
:
'conf_apiResourceDlUrl'
,
storeUrl
:
'storeUrl'
,
siteUrl
:
'siteUrl'
,
latitude
:
'latitude'
,
longitude
:
'longitude'
,
...
...
@@ -1708,6 +1709,14 @@ var ClientData = {
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
storeUrl
);
}
},
siteUrl
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
COMMON
.
Keys
.
siteUrl
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
siteUrl
);
}
},
latitude
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
...
...
abvw/js/contentview.js
View file @
0067d39d
...
...
@@ -2140,85 +2140,78 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PanoMovie
){
var
url
=
ClientData
.
conf_apiUrl
();
var
linkUrlTmp
=
AVWEB
.
format
(
url
,
ClientData
.
userInfo_accountPath
());
if
(
ClientData
.
isGetitsMode
()
==
true
){
var
linkUrlGetits
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"open/panorama/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
;
CONTENTVIEW
.
handleForContentTypePanoMovie
(
linkUrlGetits
);
}
else
{
var
apiUrl
=
linkUrlTmp
+
"/createSession/"
;
CONTENTVIEW
.
panoOldContent
();
linkUrlTmp
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/panorama/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
;
var
params
=
{
sid
:
ClientData
.
userInfo_sid
()
};
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// ajax によるAPIの実行(json)
$
.
ajax
(
{
async
:
false
,
type
:
'GET'
,
url
:
apiUrl
,
dataType
:
'text'
,
data
:
params
,
crossDomain
:
true
,
beforeSend
:
function
(
xhr
)
{
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
},
success
:
function
(
data
)
{
var
linkUrlTmp2
=
linkUrlTmp
+
";jsessionid="
+
data
;
CONTENTVIEW
.
handleForContentTypePanoMovie
(
linkUrlTmp2
);
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
/* call custom error process */
console
.
log
(
"error"
+
errorThrown
);
}
});
}
var
apiUrl
=
linkUrlTmp
+
"/createSession/"
;
CONTENTVIEW
.
panoOldContent
();
linkUrlTmp
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/panorama/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
;
var
params
=
{
sid
:
ClientData
.
userInfo_sid
()
};
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// ajax によるAPIの実行(json)
$
.
ajax
(
{
async
:
false
,
type
:
'GET'
,
url
:
apiUrl
,
dataType
:
'text'
,
data
:
params
,
crossDomain
:
true
,
beforeSend
:
function
(
xhr
)
{
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
},
success
:
function
(
data
)
{
var
linkUrlTmp2
=
linkUrlTmp
+
";jsessionid="
+
data
;
CONTENTVIEW
.
handleForContentTypePanoMovie
(
linkUrlTmp2
);
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
/* call custom error process */
console
.
log
(
"error"
+
errorThrown
);
}
});
}
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
'panoImage'
){
var
url
=
ClientData
.
conf_apiUrl
();
var
linkUrlTmp
=
AVWEB
.
format
(
url
,
ClientData
.
userInfo_accountPath
());
if
(
ClientData
.
isGetitsMode
()
==
true
){
var
linkUrlGetits
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"open/vtour/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
;
CONTENTVIEW
.
handleForContentTypePanoMovie
(
linkUrlGetits
);
}
else
{
var
apiUrl
=
linkUrlTmp
+
"/createSession/"
;
var
oldPageNo
=
CONTENTVIEW
.
panoOldContent
();
if
(
oldPageNo
!=
null
){
linkUrlTmp
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/vtour/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
+
"?startscene=scene"
+
oldPageNo
+
"&a=1"
;
}
else
{
linkUrlTmp
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/vtour/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
;
var
apiUrl
=
linkUrlTmp
+
"/createSession/"
;
var
oldPageNo
=
CONTENTVIEW
.
panoOldContent
();
if
(
oldPageNo
!=
null
){
linkUrlTmp
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/vtour/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
+
"?startscene=scene"
+
oldPageNo
+
"&a=1"
;
}
else
{
linkUrlTmp
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/vtour/play/"
+
CONTENTVIEW_GENERAL
.
contentID
+
"/"
;
}
var
params
=
{
sid
:
ClientData
.
userInfo_sid
()
};
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// ajax によるAPIの実行(json)
$
.
ajax
(
{
async
:
false
,
type
:
'GET'
,
url
:
apiUrl
,
dataType
:
'text'
,
data
:
params
,
crossDomain
:
true
,
beforeSend
:
function
(
xhr
)
{
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
},
success
:
function
(
data
)
{
var
linkUrlTmp2
=
linkUrlTmp
+
";jsessionid="
+
data
;
CONTENTVIEW
.
handleForContentTypePanoImage
(
linkUrlTmp2
);
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
/* call custom error process */
console
.
log
(
"error"
+
errorThrown
);
}
var
params
=
{
sid
:
ClientData
.
userInfo_sid
()
};
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// ajax によるAPIの実行(json)
$
.
ajax
(
{
async
:
false
,
type
:
'GET'
,
url
:
apiUrl
,
dataType
:
'text'
,
data
:
params
,
crossDomain
:
true
,
beforeSend
:
function
(
xhr
)
{
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
},
success
:
function
(
data
)
{
var
linkUrlTmp2
=
linkUrlTmp
+
";jsessionid="
+
data
;
CONTENTVIEW
.
handleForContentTypePanoImage
(
linkUrlTmp2
);
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
/* call custom error process */
console
.
log
(
"error"
+
errorThrown
);
}
});
}
});
}
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Html
){
...
...
abvw/js/login.js
View file @
0067d39d
...
...
@@ -751,12 +751,16 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) {
}
else
{
// Go to Conten view page
if
(
ClientData
.
isGetitsMode
()){
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Html
||
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Link
){
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Html
||
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Link
||
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PanoImage
||
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PanoMovie
){
var
apiUrl
=
AVWEB
.
getApiUrl
(
ClientData
.
userInfo_accountPath
());
var
htmlUrl
=
LOGIN
.
htmlLinkById
(
strContentId
,
contentType
);
if
(
htmlUrl
){
//TODO 閲覧ログ送信
location
.
href
=
htmlUrl
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&apiurl="
+
apiUrl
+
"&cid="
+
strContentId
;
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Html
){
location
.
href
=
htmlUrl
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&apiurl="
+
apiUrl
+
"&cid="
+
strContentId
;
}
else
{
location
.
href
=
htmlUrl
;
}
}
return
;
}
...
...
@@ -814,16 +818,22 @@ LOGIN.htmlLinkById = function(contentId,contentType) {
};
var
resourceUrl
=
""
;
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
'GET'
,
params
,
function
(
data
)
{
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Html
){
resourceUrl
=
data
.
contentDataSub
[
0
].
resourceUrl
;
}
else
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Link
){
resourceUrl
=
data
.
contentData
.
content
.
url
;
}
}
);
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PanoImage
){
resourceUrl
=
ClientData
.
siteUrl
()
+
ClientData
.
userInfo_accountPath
()
+
"/open/vtour/play/"
+
contentId
;
}
else
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PanoMovie
){
resourceUrl
=
ClientData
.
siteUrl
()
+
ClientData
.
userInfo_accountPath
()
+
"/open/panorama/play/"
+
contentId
;
}
else
{
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
'GET'
,
params
,
function
(
data
)
{
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Html
){
resourceUrl
=
data
.
contentDataSub
[
0
].
resourceUrl
;
}
else
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Link
){
resourceUrl
=
data
.
contentData
.
content
.
url
;
}
}
);
}
if
(
!
resourceUrl
){
resourceUrl
=
""
;
}
...
...
@@ -901,6 +911,8 @@ LOGIN.ready = function() {
// getitsモード有効
ClientData
.
isGetitsMode
(
true
);
ClientData
.
siteUrl
(
siteUrl
);
// api接続先設定
ClientData
.
conf_apiUrl
(
siteUrl
+
"{0}/abvapi"
);
ClientData
.
conf_apiLoginUrl
(
siteUrl
+
"nuabvapi"
);
...
...
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