Commit 77c794f4 by vietdo

#18760 Web版で新コンテンツタイプの一覧表示、詳細画面を追加する

(Getitsを対応する)
parent 41b3f5cd
...@@ -2115,38 +2115,39 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2115,38 +2115,39 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
CONTENTVIEW.handleForContentTypeVideo(resourceUrl); CONTENTVIEW.handleForContentTypeVideo(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());
var apiUrl = linkUrlTmp + "/createSession/"; var apiUrl = linkUrlTmp + "/createSession/";
linkUrlTmp = linkUrlTmp.substring(0, linkUrlTmp.length - 6) + "shop/panorama/play/" + ClientData.contentInfo_contentId() + "/"; linkUrlTmp = linkUrlTmp.substring(0, linkUrlTmp.length - 6) + "shop/panorama/play/" + ClientData.contentInfo_contentId() + "/";
var linkUrlFinish = linkUrlTmp.substring(0, linkUrlTmp.length - 6) + "shop/panorama/finishPlay/" + ClientData.contentInfo_contentId() + "/"; if(ClientData.isGetitsMode() == true){
var params = { CONTENTVIEW.handleForContentTypePanoMovie(linkUrlTmp);
sid: ClientData.userInfo_sid() }else{
}; var params = {
var sysSettings = AVWEB.avwSysSetting(); sid: ClientData.userInfo_sid()
// ajax によるAPIの実行(json) };
$.ajax( { var sysSettings = AVWEB.avwSysSetting();
async: false, // ajax によるAPIの実行(json)
type: 'GET', $.ajax( {
url: apiUrl, async: false,
dataType: 'text', type: 'GET',
data: params, url: apiUrl,
crossDomain: true, dataType: 'text',
beforeSend: function(xhr) { data: params,
xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName); crossDomain: true,
xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion); beforeSend: function(xhr) {
}, xhr.setRequestHeader('X-AGT-AppId', sysSettings.appName);
success: function(data) { xhr.setRequestHeader('X-AGT-AppVersion', sysSettings.appVersion);
linkUrlTmp2 = linkUrlTmp + ";jsessionid=" + data; },
console.log("linkUrlTmp2" + linkUrlTmp2); success: function(data) {
CONTENTVIEW.handleForContentTypePanoMovie(linkUrlTmp2); var linkUrlTmp2 = linkUrlTmp + ";jsessionid=" + data;
}, CONTENTVIEW.handleForContentTypePanoMovie(linkUrlTmp2);
error: function(xmlHttpRequest, txtStatus, errorThrown) { },
/* call custom error process */ error: function(xmlHttpRequest, txtStatus, errorThrown) {
console.log("error" + errorThrown); /* call custom error process */
} console.log("error" + errorThrown);
}); }
});
}
} }
else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){ else if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_Html){
...@@ -2240,13 +2241,6 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){ ...@@ -2240,13 +2241,6 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
}); });
}; };
CONTENTVIEW.deleteCookie = function(){
var cookies = $.cookie();console.log("cookies" + cookies);
for(var cookie in cookies) {
$.removeCookie(cookie);
}
console.log("hello world!!");
}
//handle for content type = video //handle for content type = video
CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){ CONTENTVIEW.handleForContentTypeVideo = function(resourceUrl){
......
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