Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
design
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
abookCheck
design
Commits
1f2b3576
Commit
1f2b3576
authored
Sep 03, 2022
by
hoangson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug remove session when reload webview
parent
f1343cf4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
8 deletions
+27
-8
app/index.html
+1
-1
app/script/check-dashboard.js
+13
-4
app/script/check-footer.js
+1
-2
app/script/check-message-list.js
+1
-1
app/script/check.js
+11
-0
No files found.
app/index.html
View file @
1f2b3576
...
...
@@ -163,7 +163,7 @@
<div></div>
<h1
class=
"fs-10 font-weight-bold mb-0 text-white multi-lang"
data-msg=
"dashboardHeaderTitle"
>
ダッシュボード
</h1>
<div
class=
"d-flex align-items-center"
>
<a
href=
"
dashboard-setting.html
"
class=
"nav-link text-white lht-0 p-1 mr-2"
>
<a
href=
"
javascript:CHK.goUrlWithCurrentParams('dashboard-setting.html');
"
class=
"nav-link text-white lht-0 p-1 mr-2"
>
<img
class=
"icon"
src=
"img/icon_dashboard_setting.svg"
alt=
"設定"
>
<span
class=
"d-none d-md-inline fs-10 align-middle multi-lang"
data-msg=
"buttonDashboardSetting"
>
設定
...
...
app/script/check-dashboard.js
View file @
1f2b3576
var
CHK_Dashboard
=
{};
CHK_Dashboard
.
pickupItems
=
[
{
id
:
'newReport'
,
href
:
'pickup.html?pickupActive=newReport'
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_new.svg'
},
msg
:
'newRegistrationTitle'
},
{
id
:
'continousWork'
,
href
:
'pickup.html?pickupActive=continousWork'
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_proccess.svg'
},
msg
:
'continousWorkTitle'
},
{
id
:
'reportWarning'
,
href
:
'pickup.html?pickupActive=reportWarning'
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_alert.svg'
},
msg
:
'reportWarningTitle'
},
{
id
:
'newReport'
,
href
:
"javascript:CHK_Dashboard.goPickup('newReport');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_new.svg'
},
msg
:
'newRegistrationTitle'
},
{
id
:
'continousWork'
,
href
:
"javascript:CHK_Dashboard.goPickup('continousWork');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_proccess.svg'
},
msg
:
'continousWorkTitle'
},
{
id
:
'reportWarning'
,
href
:
"javascript:CHK_Dashboard.goPickup('reportWarning');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_alert.svg'
},
msg
:
'reportWarningTitle'
},
];
CHK_Dashboard
.
communicationItems
=
[
{
id
:
'messageList'
,
href
:
"
message-list.html
"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_message_lsit.svg'
},
msg
:
'messageListTitle'
},
{
id
:
'messageList'
,
href
:
"
javascript:CHK_Dashboard.goMessageList();
"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_message_lsit.svg'
},
msg
:
'messageListTitle'
},
{
id
:
'sendMessage'
,
href
:
"javascript:CHK.sendAppCommand('goSendMessage');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_send_message.svg'
},
msg
:
'sendMessageTitle'
},
{
id
:
'distanceSupport'
,
href
:
"javascript:CHK.sendAppCommand('goDistanceSupport');"
,
count
:
0
,
enabled
:
true
,
img
:
{
src
:
'img/icon_remote.svg'
},
msg
:
'distanceSupportTitle'
},
{
id
:
'chat'
,
href
:
"javascript:CHK.sendAppCommand('goChat');"
,
count
:
0
,
enabled
:
false
,
img
:
{
src
:
'img/icon_chat.svg'
},
msg
:
'chatTitle'
},
...
...
@@ -89,4 +89,12 @@ CHK_Dashboard.updateDataCommunications = function() {
item
.
enabled
=
CHK
.
isChat
;
}
});
}
CHK_Dashboard
.
goPickup
=
function
(
pickupId
)
{
CHK
.
goUrlWithCurrentParams
(
'pickup.html'
,
{
pickupActive
:
pickupId
});
}
CHK_Dashboard
.
goMessageList
=
function
()
{
CHK
.
goUrlWithCurrentParams
(
'message-list.html'
,
{});
}
\ No newline at end of file
app/script/check-footer.js
View file @
1f2b3576
...
...
@@ -50,9 +50,8 @@ CHK_Footer.isIndexPage = function() {
}
CHK_Footer
.
goIndexPage
=
function
(
tabId
)
{
var
href
=
'index.html'
;
sessionStorage
.
activeTab
=
tabId
;
location
.
href
=
href
;
CHK
.
goUrlWithCurrentParams
(
'index.html'
,
{
activeTab
:
tabId
})
;
}
CHK_Footer
.
activeDashboardBottomNav
=
function
()
{
...
...
app/script/check-message-list.js
View file @
1f2b3576
...
...
@@ -27,7 +27,7 @@ CHK_MessageList.refresh = function() {
CHK_MessageList
.
clickMessage
=
function
(
pushMessageId
)
{
$
(
"#pushMessageId_"
+
pushMessageId
).
removeClass
(
'unread'
);
location
.
href
=
'message-detail.html?pushMessageId='
+
pushMessageId
;
CHK
.
goUrlWithCurrentParams
(
'message-detail.html'
,
{
pushMessageId
:
pushMessageId
})
;
}
CHK_MessageList
.
createMessageList
=
function
(
messageList
)
{
...
...
app/script/check.js
View file @
1f2b3576
...
...
@@ -383,6 +383,17 @@ CHK.saveInitSession = function() {
sessionStorage
.
CHK
=
JSON
.
stringify
(
sessionData
);
}
CHK
.
goUrlWithCurrentParams
=
function
(
url
,
params
)
{
//ios will remove all web types data when reopen webview
//need add common parameters: app, lang, debug, mobile_flg, isChat, ...
const
mixParams
=
Object
.
assign
(
CHK
.
getUrlParameter
(),
params
);
if
(
url
.
includes
(
"?"
))
{
location
.
href
=
url
+
'&'
+
new
URLSearchParams
(
mixParams
);
}
else
{
location
.
href
=
url
+
'?'
+
new
URLSearchParams
(
mixParams
);
}
}
// 共通初期処理
CHK
.
initCommon
=
function
()
{
//JSON初期化
...
...
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