Commit 77c794f4 by vietdo

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

(Getitsを対応する)
parent 41b3f5cd
......@@ -2115,38 +2115,39 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
CONTENTVIEW.handleForContentTypeVideo(resourceUrl);
}
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 apiUrl = linkUrlTmp + "/createSession/";
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() + "/";
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) {
linkUrlTmp2 = linkUrlTmp + ";jsessionid=" + data;
console.log("linkUrlTmp2" + linkUrlTmp2);
CONTENTVIEW.handleForContentTypePanoMovie(linkUrlTmp2);
},
error: function(xmlHttpRequest, txtStatus, errorThrown) {
/* call custom error process */
console.log("error" + errorThrown);
}
});
if(ClientData.isGetitsMode() == true){
CONTENTVIEW.handleForContentTypePanoMovie(linkUrlTmp);
}else{
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 == COMMON.ContentTypeKeys.Type_Html){
......@@ -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
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