Commit b574efee by vietdo

#19267 vtour対応

parent d7561b03
...@@ -2395,10 +2395,11 @@ COMMON.SetStartLog = function(strContentId) { ...@@ -2395,10 +2395,11 @@ COMMON.SetStartLog = function(strContentId) {
log.longitude = ClientData.longitude(); log.longitude = ClientData.longitude();
// PageLog 1ページ目セット(1レコードは必須) // PageLog 1ページ目セット(1レコードは必須)
var pageLog = new PageLogEntity(); if(CONTENTVIEW_GENERAL.contentType != COMMON.ContentTypeKeys.Type_PanoImage || CONTENTVIEW_GENERAL.contentType != COMMON.ContentTypeKeys.Type_PanoMovie){
pageLog.contentid = strContentId; var pageLog = new PageLogEntity();
log.pageLogArray.push(pageLog); pageLog.contentid = strContentId;
log.pageLogArray.push(pageLog);
}
// Add to storage // Add to storage
arrContentLogs.push(log); arrContentLogs.push(log);
} }
...@@ -2450,7 +2451,6 @@ COMMON.SetEndLog = function(strContentId) { ...@@ -2450,7 +2451,6 @@ COMMON.SetEndLog = function(strContentId) {
// 1ページ分のページ閲覧ログを作成 // 1ページ分のページ閲覧ログを作成
COMMON.SetPageLog = function(strContentId, strPageNo) { COMMON.SetPageLog = function(strContentId, strPageNo) {
var arrContentLogs = ClientData.ContentLogData(); var arrContentLogs = ClientData.ContentLogData();
for ( var nIndex = 0; nIndex < arrContentLogs.length; nIndex++) { for ( var nIndex = 0; nIndex < arrContentLogs.length; nIndex++) {
...@@ -2459,7 +2459,11 @@ COMMON.SetPageLog = function(strContentId, strPageNo) { ...@@ -2459,7 +2459,11 @@ COMMON.SetPageLog = function(strContentId, strPageNo) {
// PageLog追加 // PageLog追加
var pageLog = new PageLogEntity(); var pageLog = new PageLogEntity();
pageLog.contentid = strContentId; pageLog.contentid = strContentId;
pageLog.pageNo = strPageNo + 1; // 0始まりのページ番号 if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PanoImage){
pageLog.pageNo = strPageNo;
}else{
pageLog.pageNo = strPageNo + 1; // 0始まりのページ番号
}
arrContentLogs[nIndex].pageLogArray.push(pageLog); arrContentLogs[nIndex].pageLogArray.push(pageLog);
} }
...@@ -2560,13 +2564,13 @@ COMMON.RegisterLog = function(is) { ...@@ -2560,13 +2564,13 @@ COMMON.RegisterLog = function(is) {
var pageLogArray = arrContentLogs[nIndex].pageLogArray; var pageLogArray = arrContentLogs[nIndex].pageLogArray;
// 詳細ログオプションが有効ならページ閲覧ログデータ作成 // 詳細ログオプションが有効ならページ閲覧ログデータ作成
if (pageLogArray != null && pageLogArray.length > 0) { if (pageLogArray != null && pageLogArray.length > 0) {
console.log("pageLogArray.length:"+pageLogArray.length)
var lines = []; var lines = [];
// 終了時間と閲覧時間の設定 // 終了時間と閲覧時間の設定
var pageLogStart; var pageLogStart;
var pageLogEnd; var pageLogEnd;
// 2レコード目からチェック // 2レコード目からチェック
for ( var nIndex2 = 1; nIndex2 < pageLogArray.length; nIndex2++) { for ( var nIndex2 = 1; nIndex2 < pageLogArray.length; nIndex2++) {console.log("pageLog:"+pageLogArray[nIndex2 - 1].pageNo);
// 一つ前のログの終了日時がnullなら次のレコードの開始日時をセット // 一つ前のログの終了日時がnullなら次のレコードの開始日時をセット
if (pageLogArray[nIndex2 - 1].readingEndDate == null) { if (pageLogArray[nIndex2 - 1].readingEndDate == null) {
pageLogArray[nIndex2 - 1].readingEndDate = pageLogArray[nIndex2].readingStartDate; pageLogArray[nIndex2 - 1].readingEndDate = pageLogArray[nIndex2].readingStartDate;
......
...@@ -1299,12 +1299,13 @@ CONTENTVIEW_EVENTS.imgBack_click = function() { ...@@ -1299,12 +1299,13 @@ CONTENTVIEW_EVENTS.imgBack_click = function() {
CONTENTVIEW_INITOBJECT.clearViewerComponent(); CONTENTVIEW_INITOBJECT.clearViewerComponent();
if (ClientData.JumpQueue()) { if (ClientData.JumpQueue()) {
var oldDataBack = ClientData.JumpQueue(); var oldDataBack = ClientData.JumpQueue();
if (oldDataBack.length > 0) { if (oldDataBack.length > 0) {
//AVWEB.avwScreenMove(COMMON.ScreenIds.ContentView); //AVWEB.avwScreenMove(COMMON.ScreenIds.ContentView);
ClientData.IsJumpBack(true);
CONTENTVIEW.screenMove(); CONTENTVIEW.screenMove();
ClientData.IsJumpBack(true);
} else { } else {
/*check back */ /*check back */
//if (ClientData.BookmarkScreen()) { //if (ClientData.BookmarkScreen()) {
...@@ -1323,7 +1324,6 @@ CONTENTVIEW_EVENTS.imgBack_click = function() { ...@@ -1323,7 +1324,6 @@ CONTENTVIEW_EVENTS.imgBack_click = function() {
//} else { //} else {
// window.history.back(); // window.history.back();
//} //}
//元の画面に戻って画面復帰 //元の画面に戻って画面復帰
CONTENTVIEW.screenBack(); CONTENTVIEW.screenBack();
......
...@@ -555,6 +555,9 @@ CONTENTVIEW_GENERAL.ready = function(initContentId){ ...@@ -555,6 +555,9 @@ CONTENTVIEW_GENERAL.ready = function(initContentId){
//Start Function : No.9 //Start Function : No.9
CONTENTVIEW_GENERAL._object3DImageArr = []; CONTENTVIEW_GENERAL._object3DImageArr = [];
//panoPageNo
CONTENTVIEW_GENERAL.panoPageNo = null;
//オーサリングプレビュー対応 //オーサリングプレビュー対応
if(initContentId != null && initContentId != undefined){ if(initContentId != null && initContentId != undefined){
CONTENTVIEW_GENERAL.pid = initContentId; CONTENTVIEW_GENERAL.pid = initContentId;
......
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