Commit 0067d39d by vietdo

#19490 360°Getits Webビューアツールバーの非表示

parent ae05d67d
...@@ -372,6 +372,7 @@ COMMON.Keys = { ...@@ -372,6 +372,7 @@ COMMON.Keys = {
conf_apiLoginUrl : 'conf_apiLoginUrl', conf_apiLoginUrl : 'conf_apiLoginUrl',
conf_apiResourceDlUrl : 'conf_apiResourceDlUrl', conf_apiResourceDlUrl : 'conf_apiResourceDlUrl',
storeUrl : 'storeUrl', storeUrl : 'storeUrl',
siteUrl : 'siteUrl',
latitude : 'latitude', latitude : 'latitude',
longitude : 'longitude', longitude : 'longitude',
...@@ -1709,6 +1710,14 @@ var ClientData = { ...@@ -1709,6 +1710,14 @@ var ClientData = {
} }
}, },
siteUrl : function(data) {
if (arguments.length > 0) {
SessionStorageUtils.set(COMMON.Keys.siteUrl, data);
} else {
return SessionStorageUtils.get(COMMON.Keys.siteUrl);
}
},
latitude : function(data) { latitude : function(data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(COMMON.Keys.latitude, data); SessionStorageUtils.set(COMMON.Keys.latitude, data);
......
...@@ -2140,10 +2140,6 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2140,10 +2140,6 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoMovie){ else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoMovie){
var url = ClientData.conf_apiUrl(); var url = ClientData.conf_apiUrl();
var linkUrlTmp = AVWEB.format(url, ClientData.userInfo_accountPath()); 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/"; var apiUrl = linkUrlTmp + "/createSession/";
CONTENTVIEW.panoOldContent(); CONTENTVIEW.panoOldContent();
...@@ -2175,14 +2171,11 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2175,14 +2171,11 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
console.log("error" + errorThrown); console.log("error" + errorThrown);
} }
}); });
}
}else if(CONTENTVIEW_GENERAL.contentType == 'panoImage'){ }else if(CONTENTVIEW_GENERAL.contentType == 'panoImage'){
var url = ClientData.conf_apiUrl(); var url = ClientData.conf_apiUrl();
var linkUrlTmp = AVWEB.format(url, ClientData.userInfo_accountPath()); 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 apiUrl = linkUrlTmp + "/createSession/";
var oldPageNo = CONTENTVIEW.panoOldContent(); var oldPageNo = CONTENTVIEW.panoOldContent();
...@@ -2218,7 +2211,7 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2218,7 +2211,7 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
console.log("error" + errorThrown); console.log("error" + errorThrown);
} }
}); });
}
} }
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){ else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){
......
...@@ -751,12 +751,16 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) { ...@@ -751,12 +751,16 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) {
} else { } else {
// Go to Conten view page // Go to Conten view page
if(ClientData.isGetitsMode()){ 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 apiUrl = AVWEB.getApiUrl(ClientData.userInfo_accountPath());
var htmlUrl = LOGIN.htmlLinkById(strContentId, contentType); var htmlUrl = LOGIN.htmlLinkById(strContentId, contentType);
if(htmlUrl){ if(htmlUrl){
//TODO 閲覧ログ送信 //TODO 閲覧ログ送信
if(contentType == COMMON.ContentTypeKeys.Type_Html){
location.href=htmlUrl + "?sid=" + ClientData.userInfo_sid() + "&apiurl=" + apiUrl + "&cid=" + strContentId; location.href=htmlUrl + "?sid=" + ClientData.userInfo_sid() + "&apiurl=" + apiUrl + "&cid=" + strContentId;
}else{
location.href = htmlUrl;
}
} }
return; return;
} }
...@@ -814,6 +818,11 @@ LOGIN.htmlLinkById = function(contentId,contentType) { ...@@ -814,6 +818,11 @@ LOGIN.htmlLinkById = function(contentId,contentType) {
}; };
var resourceUrl = ""; var resourceUrl = "";
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, AVWEB.avwCmsApiSync(ClientData.userInfo_accountPath(), "webGetContent", 'GET', params,
function(data) { function(data) {
if(contentType == COMMON.ContentTypeKeys.Type_Html){ if(contentType == COMMON.ContentTypeKeys.Type_Html){
...@@ -823,6 +832,7 @@ LOGIN.htmlLinkById = function(contentId,contentType) { ...@@ -823,6 +832,7 @@ LOGIN.htmlLinkById = function(contentId,contentType) {
} }
} }
); );
}
if( !resourceUrl ){ if( !resourceUrl ){
resourceUrl = ""; resourceUrl = "";
...@@ -901,6 +911,8 @@ LOGIN.ready = function() { ...@@ -901,6 +911,8 @@ LOGIN.ready = function() {
// getitsモード有効 // getitsモード有効
ClientData.isGetitsMode(true); ClientData.isGetitsMode(true);
ClientData.siteUrl(siteUrl);
// api接続先設定 // api接続先設定
ClientData.conf_apiUrl(siteUrl + "{0}/abvapi"); ClientData.conf_apiUrl(siteUrl + "{0}/abvapi");
ClientData.conf_apiLoginUrl(siteUrl + "nuabvapi"); ClientData.conf_apiLoginUrl(siteUrl + "nuabvapi");
......
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