Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
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
abookCommunication
chat_webview
Commits
6ee54ba1
Commit
6ee54ba1
authored
Mar 23, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
連絡先画面UI
parent
c9a4a037
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
126 additions
and
110 deletions
+126
-110
public_new/contact.html
+4
-86
public_new/js/chat-db.js
+27
-1
public_new/js/chat-ui.js
+0
-0
public_new/js/common.js
+6
-6
public_new/js/contact.js
+67
-6
public_new/template/template_group_list.html
+8
-2
public_new/template/template_group_path.html
+2
-0
public_new/template/template_group_user_list.html
+4
-4
public_new/template/template_user_list.html
+8
-5
No files found.
public_new/contact.html
View file @
6ee54ba1
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<a
href=
"#"
class=
"cancel none"
>
キャンセル
</a>
<a
href=
"#"
class=
"cancel none"
>
キャンセル
</a>
</form>
</form>
</div>
</div>
<div
class=
"chat_list"
>
<div
class=
"c
ontent c
hat_list"
>
<ul
class=
"p-0 chat_make_room_list"
>
<ul
class=
"p-0 chat_make_room_list"
>
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#myNameCard"
style=
"width: 100%;"
>
<a
href=
"#"
data-toggle=
"modal"
data-target=
"#myNameCard"
style=
"width: 100%;"
>
...
@@ -88,11 +88,7 @@
...
@@ -88,11 +88,7 @@
</div>
</div>
</div>
</div>
<div
class=
"tab_content"
id=
"tab2_content"
>
<div
class=
"tab_content"
id=
"tab2_content"
>
<div
class=
"breadcrumb"
>
<div
class=
"breadcrumb"
id=
"groupPathArea"
></div>
<a
href=
"#"
class=
"breadcrumb_item"
><span>
Root
</span></a>
<a
href=
"#"
class=
"breadcrumb_item"
><span>
GroupA
</span></a>
<a
href=
"#"
class=
"breadcrumb_item"
><span>
GroupASubB
</span></a>
</div>
<div
class=
"chat_list"
>
<div
class=
"chat_list"
>
<!-- 全グループ -->
<!-- 全グループ -->
<ul
class=
"p-0 chat_make_room_list"
>
<ul
class=
"p-0 chat_make_room_list"
>
...
@@ -113,11 +109,6 @@
...
@@ -113,11 +109,6 @@
</div>
</div>
</div>
</div>
</a>
</a>
<!--<div class="chat_item_r">
<div class="d-flex flex-column">
<span class="star disable"></span>
</div>
</div>-->
</li>
</li>
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
<a
href=
"#"
class=
"w-100"
id=
"parentGroupBtn"
>
<a
href=
"#"
class=
"w-100"
id=
"parentGroupBtn"
>
...
@@ -130,17 +121,12 @@
...
@@ -130,17 +121,12 @@
<div
class=
"chat_item_m px-0"
>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
トップ
グループに戻る
</span>
<span
class=
"chat_item_ttl"
>
上位
グループに戻る
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</a>
</a>
<!--<div class="chat_item_r">
<div class="d-flex flex-column">
<span class="star disable"></span>
</div>
</div>-->
</li>
</li>
<div
id=
"childGroupListArea"
>
<div
id=
"childGroupListArea"
>
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
...
@@ -167,75 +153,7 @@
...
@@ -167,75 +153,7 @@
</div>
</div>
</li>
</li>
</div>
</div>
<li
class=
"d-flex align-items-center"
>
<div
id=
"userInGroupList"
></div>
<a
href=
"chat_room.html"
class=
"w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"thubnail"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
</div>
</div>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
名前太郎名前太郎名前太郎名前太郎名前太郎名前太郎名前太郎名前太郎
</span>
</div>
</div>
</div>
</div>
</a>
<div
class=
"chat_item_r"
>
<div
class=
"d-flex flex-column"
>
<span
class=
"star disable"
></span>
</div>
</div>
</li>
<li
class=
"d-flex align-items-center"
>
<a
href=
"chat_room.html"
class=
"w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"thubnail"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
</div>
</div>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
名前太郎名前太郎名前太郎名前太郎名前太郎名前太郎名前太郎名前太郎
</span>
</div>
</div>
</div>
</div>
</a>
<div
class=
"chat_item_r"
>
<div
class=
"d-flex flex-column"
>
<span
class=
"star disable"
></span>
</div>
</div>
</li>
<li
class=
"d-flex align-items-center"
>
<a
href=
"chat_room.html"
class=
"w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"thubnail"
>
<div
class=
"img_wrap"
><img
src=
"img/thumbnail.png"
alt=
"サムネイル画像"
/></div>
</div>
</div>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
名前 太郎
</span>
</div>
</div>
</div>
</div>
</a>
<div
class=
"chat_item_r"
>
<div
class=
"d-flex flex-column"
>
<span
class=
"star disable"
></span>
</div>
</div>
</li>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
...
public_new/js/chat-db.js
View file @
6ee54ba1
...
@@ -56,7 +56,6 @@ CHAT_DB.getMyGroupUsers = function() {
...
@@ -56,7 +56,6 @@ CHAT_DB.getMyGroupUsers = function() {
//TODO IOS処理追加必要
//TODO IOS処理追加必要
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
//String形式をJsonに変更してReturn
//String形式をJsonに変更してReturn
console
.
log
(
JSON
.
parse
(
android
.
getMyGroupUsers
()));
return
JSON
.
parse
(
android
.
getMyGroupUsers
());
return
JSON
.
parse
(
android
.
getMyGroupUsers
());
}
}
};
};
...
@@ -78,3 +77,30 @@ CHAT_DB.getNameCardData = function(shopMemberId) {
...
@@ -78,3 +77,30 @@ CHAT_DB.getNameCardData = function(shopMemberId) {
return
JSON
.
parse
(
android
.
getNameCardData
(
shopMemberId
));
return
JSON
.
parse
(
android
.
getNameCardData
(
shopMemberId
));
}
}
};
};
CHAT_DB
.
getMyGroupShopMemberByName
=
function
(
shopMemberName
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO IOS処理追加必要
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
//String形式をJsonに変更してReturn
return
JSON
.
parse
(
android
.
getMyGroupShopMemberByName
(
shopMemberName
));
}
};
CHAT_DB
.
getAllGroupShopMemberByName
=
function
(
shopMemberName
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO IOS処理追加必要
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
//String形式をJsonに変更してReturn
return
JSON
.
parse
(
android
.
getAllGroupShopMemberByName
(
shopMemberName
));
}
};
CHAT_DB
.
getGroupByName
=
function
(
groupName
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO IOS処理追加必要
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
//String形式をJsonに変更してReturn
return
JSON
.
parse
(
android
.
getGroupByName
(
groupName
));
}
};
public_new/js/chat-ui.js
View file @
6ee54ba1
This diff is collapsed.
Click to expand it.
public_new/js/common.js
View file @
6ee54ba1
$
(
function
()
{
// アコーディオン
var
h
=
$
(
window
).
height
();
//画面の高さを取得
$
(
'.category'
).
on
(
'click'
,
function
()
{
// アコーディオン
$
(
'.category'
).
click
(
function
()
{
$
(
this
).
toggleClass
(
"open"
);
$
(
this
).
toggleClass
(
"open"
);
$
(
this
).
next
().
slideToggle
();
$
(
this
).
next
().
slideToggle
();
});
});
$
(
function
()
{
var
h
=
$
(
window
).
height
();
//画面の高さを取得
// ローディング表示
// ローディング表示
$
(
'footer a'
).
click
(
function
(
event
){
$
(
'footer a'
).
click
(
function
(
event
){
...
...
public_new/js/contact.js
View file @
6ee54ba1
$
(
function
()
{
$
(
function
()
{
// メンバー検索
// メンバー検索
$
(
'#contact .search_form input[type="search"]'
).
keyup
(
function
(){
$
(
'#contact .search_form input[type="search"]'
).
keyup
(
function
(){
$
.
ajax
({
var
isAllGroup
=
$
(
'#tabAllGroup'
).
is
(
':checked'
);
url
:
'search_message_user_list.html'
,
console
.
log
(
isAllGroup
);
type
:
'POST'
,
$
(
'.overlay_src_msg'
).
empty
();
datatype
:
'html'
}).
done
(
function
(
data
)
{
//全グループ検索画面
$
(
'.overlay_src_msg'
).
html
(
data
);
if
(
isAllGroup
)
{
var
keyword
=
$
(
'#contact .search_form input[type="search"]'
).
val
();
if
(
keyword
==
''
)
{
return
;
}
//グループデータ検索
var
groupList
=
CHAT_DB
.
getGroupByName
(
keyword
);
var
groupTemplate
;
$
.
get
({
url
:
"./template/template_group_list.html"
,
async
:
false
}
,
function
(
text
)
{
groupTemplate
=
text
;
});
groupList
.
forEach
(
function
(
group
)
{
let
html
=
Mustache
.
render
(
groupTemplate
,
{
name
:
group
.
groupName
,
id
:
group
.
groupId
,
isFavorite
:
group
.
isFavorite
});
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'.overlay_src_msg'
).
append
(
obj
);
})
})
//ユーザデータ検索
var
userList
=
CHAT_DB
.
getAllGroupShopMemberByName
(
keyword
);
var
userTemplate
;
$
.
get
({
url
:
"./template/template_user_list.html"
,
async
:
false
}
,
function
(
text
)
{
userTemplate
=
text
;
});
userList
.
forEach
(
function
(
user
)
{
user
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
user
.
profileUrl
);
});
let
html
=
Mustache
.
render
(
userTemplate
,
{
userList
:
userList
});
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'.overlay_src_msg'
).
append
(
obj
);
//連絡先画面
}
else
{
var
keyword
=
$
(
'#contact .search_form input[type="search"]'
).
val
();
if
(
keyword
==
''
)
{
return
;
}
var
userList
=
CHAT_DB
.
getMyGroupShopMemberByName
(
keyword
);
var
userTemplate
;
$
.
get
({
url
:
"./template/template_user_list.html"
,
async
:
false
}
,
function
(
text
)
{
userTemplate
=
text
;
});
userList
.
forEach
(
function
(
user
)
{
user
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
user
.
profileUrl
);
});
let
html
=
Mustache
.
render
(
userTemplate
,
{
userList
:
userList
});
let
obj
=
jQuery
.
parseHTML
(
html
);
$
(
'.overlay_src_msg'
).
html
(
obj
);
}
});
});
});
});
public_new/template/template_group_list.html
View file @
6ee54ba1
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
<a
href=
"
chat_room.html"
class=
"w-100
"
>
<a
href=
"
#"
class=
"w-100"
onclick=
"CHAT_UI.refesshAllGroupSearch({{id}});
"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"chat_item_l"
>
<div
class=
"thubnail"
>
<div
class=
"thubnail"
>
...
@@ -17,7 +17,12 @@
...
@@ -17,7 +17,12 @@
</a>
</a>
<div
class=
"chat_item_r"
>
<div
class=
"chat_item_r"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"d-flex flex-column"
>
<span
class=
"star disable"
></span>
{{#isFavorite}}
<span
class=
"star active group_{{id}}"
onclick=
"CHAT_UI.favoriteGroupChange({{id}},this)"
></span>
{{/isFavorite}}
{{^isFavorite}}
<span
class=
"star disable group_{{id}}"
onclick=
"CHAT_UI.favoriteGroupChange({{id}},this)"
></span>
{{/isFavorite}}
</div>
</div>
</div>
</div>
</li>
</li>
\ No newline at end of file
public_new/template/template_group_path.html
0 → 100644
View file @
6ee54ba1
<a
href=
"#"
class=
"breadcrumb_item"
onclick=
"CHAT_UI.refesshAllGroupSearch({{id}});"
><span>
{{name}}
</span></a>
\ No newline at end of file
public_new/template/template_group_user_list.html
View file @
6ee54ba1
<div
class=
"category"
><div
class=
"category_name"
><span>
{{groupName}}
</span></div></div>
<div
class=
"category"
onclick=
"CHAT_UI.toggleCategory(this);"
><div
class=
"category_name"
><span>
{{groupName}}
</span></div></div>
<ul
class=
"p-0 chat_make_room_list"
>
<ul
class=
"p-0 chat_make_room_list"
>
{{#groupUserList}}
{{#groupUserList}}
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
<a
href=
"
#
"
onclick=
"CHAT_UI.makeNameCard({{shopMemberId}})"
style=
"width: 100%;"
>
<a
href=
"
javascript:return false;
"
onclick=
"CHAT_UI.makeNameCard({{shopMemberId}})"
style=
"width: 100%;"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"chat_item_l"
>
<div
class=
"thubnail"
>
<div
class=
"thubnail"
>
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
<div
class=
"chat_item_r"
>
<div
class=
"chat_item_r"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"d-flex flex-column"
>
{{#isFavorite}}
{{#isFavorite}}
<span
class=
"star active"
></span>
<span
class=
"star active
shopmember_{{shopMemberId}}"
onclick=
"CHAT_UI.favoriteUserChange({{shopMemberId}},this)
"
></span>
{{/isFavorite}}
{{/isFavorite}}
{{^isFavorite}}
{{^isFavorite}}
<span
class=
"star disable"
></span>
<span
class=
"star disable
shopmember_{{shopMemberId}}"
onclick=
"CHAT_UI.favoriteUserChange({{shopMemberId}},this)
"
></span>
{{/isFavorite}}
{{/isFavorite}}
</div>
</div>
</div>
</div>
...
...
public_new/template/template_user_list.html
View file @
6ee54ba1
<ul
class=
"p-0 chat_make_room_list"
>
<ul
class=
"p-0 chat_make_room_list"
>
{{#userList}}
<li
class=
"d-flex align-items-center"
>
<li
class=
"d-flex align-items-center"
>
<a
href=
"
#
"
onclick=
"CHAT_UI.makeNameCard({{shopMemberId}})"
style=
"width: 100%;"
>
<a
href=
"
javascript:return false;
"
onclick=
"CHAT_UI.makeNameCard({{shopMemberId}})"
style=
"width: 100%;"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"chat_item_l"
>
<div
class=
"thubnail"
>
<div
class=
"thubnail"
>
<div
class=
"img_wrap"
><img
src=
"{{profile
Image
}}"
onError=
"this.src='./img/noImage.png'"
/></div>
<div
class=
"img_wrap"
><img
src=
"{{profile
Url
}}"
onError=
"this.src='./img/noImage.png'"
/></div>
</div>
</div>
</div>
</div>
<div
class=
"chat_item_m px-0"
>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
{{
n
ame}}
</span>
<span
class=
"chat_item_ttl"
>
{{
shopMemberN
ame}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -19,12 +20,13 @@
...
@@ -19,12 +20,13 @@
<div
class=
"chat_item_r"
>
<div
class=
"chat_item_r"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"d-flex flex-column"
>
{{#isFavorite}}
{{#isFavorite}}
<span
class=
"star active"
></span>
<span
class=
"star active
shopmember_{{shopMemberId}}"
onclick=
"CHAT_UI.favoriteUserChange({{shopMemberId}},this)
"
></span>
{{/isFavorite}}
{{/isFavorite}}
{{^isFavorite}}
{{^isFavorite}}
<span
class=
"star disable"
></span>
<span
class=
"star disable
shopmember_{{shopMemberId}}"
onclick=
"CHAT_UI.favoriteUserChange({{shopMemberId}},this)
"
></span>
{{/isFavorite}}
{{/isFavorite}}
</div>
</div>
</div>
</div>
</li>
</li>
{{/userList}}
</ul>
</ul>
\ No newline at end of file
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