mirror of
https://shylinux.com/x/community
synced 2025-07-01 21:21:19 +08:00
add some
This commit is contained in:
parent
f182da60f1
commit
30175bb95a
@ -8,6 +8,9 @@ $body.width1 div.upload.float div.action { display:flex; }
|
|||||||
$body.width1 div.upload.float div.action div.item.upload { flex-grow:1; }
|
$body.width1 div.upload.float div.action div.item.upload { flex-grow:1; }
|
||||||
$body.width1 div.upload.float div.action div.item.upload input { width:100%; }
|
$body.width1 div.upload.float div.action div.item.upload input { width:100%; }
|
||||||
$body.width1 $action div.item.text.filter { flex-grow:1; }
|
$body.width1 $action div.item.text.filter { flex-grow:1; }
|
||||||
|
$body>div.inputs>div.input {
|
||||||
|
background-color:var(--output-bg-color);
|
||||||
|
}
|
||||||
$action { background-color:transparent; position:absolute; top:0; width:100%; z-index:1; display:none; }
|
$action { background-color:transparent; position:absolute; top:0; width:100%; z-index:1; display:none; }
|
||||||
$action div.item.filter input { border-radius:20px; border:none; }
|
$action div.item.filter input { border-radius:20px; border:none; }
|
||||||
// $action div.item:last-child { margin-right:10px; }
|
// $action div.item:last-child { margin-right:10px; }
|
||||||
|
@ -174,6 +174,8 @@ func (s Portal) List(m *ice.Message, arg ...string) {
|
|||||||
s.DisplayBase(m, "").DisplayCSS("")
|
s.DisplayBase(m, "").DisplayCSS("")
|
||||||
}
|
}
|
||||||
func (s Portal) PlaceListOption(m *ice.Message, arg ...string) *ice.Message {
|
func (s Portal) PlaceListOption(m *ice.Message, arg ...string) *ice.Message {
|
||||||
|
m.Option("portal_icon", m.Resource(kit.Select(ice.Info.NodeIcon, m.GetCommand().Icon)))
|
||||||
|
m.Option("space_title", ice.Info.Titles)
|
||||||
msg := m.Cmd("", s.PlaceList, m.Option(model.USER_UID), arg[0])
|
msg := m.Cmd("", s.PlaceList, m.Option(model.USER_UID), arg[0])
|
||||||
if msg.Length() == 0 {
|
if msg.Length() == 0 {
|
||||||
msg = m.Cmd(s.Place, s.Table.Select, model.UID, arg[0])
|
msg = m.Cmd(s.Place, s.Table.Select, model.UID, arg[0])
|
||||||
|
@ -32,7 +32,12 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
{view: html.TITLE, list: [value.auth_name||value._name, can.onimport.authView(can, value),
|
{view: html.TITLE, list: [value.auth_name||value._name, can.onimport.authView(can, value),
|
||||||
{text: [value.__type, "", [mdb.TYPE, value._type, value._type_style]]}, value._role != "visitor" && {text: [value.__role, "", [aaa.ROLE, value._role, value._role_style]]},
|
{text: [value.__type, "", [mdb.TYPE, value._type, value._type_style]]}, value._role != "visitor" && {text: [value.__role, "", [aaa.ROLE, value._role, value._role_style]]},
|
||||||
]},
|
]},
|
||||||
can.ConfIndex() != "web.team.renzhengshouquan.portal" && {view: html.STATUS, list: [value.city_name, value._street, can.ConfHelp(), can.user.info.titles]},
|
can.ConfIndex() != "web.team.renzhengshouquan.portal" && {view: html.STATUS, list: [
|
||||||
|
value.city_name, "|",
|
||||||
|
value._street, "|",
|
||||||
|
can.ConfHelp(), "|",
|
||||||
|
value.space_title||can.user.info.titles,
|
||||||
|
]},
|
||||||
{view: html.STATUS, list: [value.auth_info||value._info]},
|
{view: html.STATUS, list: [value.auth_info||value._info]},
|
||||||
] },
|
] },
|
||||||
myTrans: function(can, value) {
|
myTrans: function(can, value) {
|
||||||
@ -57,6 +62,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
var USER_PLACE_ROLE = can.Conf("_user_place_role"), STREET_NAME = can.Conf("_street_name")
|
var USER_PLACE_ROLE = can.Conf("_user_place_role"), STREET_NAME = can.Conf("_street_name")
|
||||||
can.user.isMobile && (can.db.hash = [])
|
can.user.isMobile && (can.db.hash = [])
|
||||||
can.isCmdMode() && (can.db.hash = can.base.Obj(can.misc.SearchHash(can), can.db.hash)), can.db.hash[0] && can.onexport.place(can, can.db.hash[0])
|
can.isCmdMode() && (can.db.hash = can.base.Obj(can.misc.SearchHash(can), can.db.hash)), can.db.hash[0] && can.onexport.place(can, can.db.hash[0])
|
||||||
|
can.isCmdMode() && msg.Option("auth_avatar") && can.page.Append(can, document.head, [{type: "link", href: msg.Option("auth_avatar"), rel: "shortcut icon"}])
|
||||||
if (can.sup._goback) { can.db.hash = can.db.hash.slice(0, 1) }
|
if (can.sup._goback) { can.db.hash = can.db.hash.slice(0, 1) }
|
||||||
if (can.db.hash.length > 1 && can.db.hash[1] && can.db.hash[1] != can.ConfIndex()) {
|
if (can.db.hash.length > 1 && can.db.hash[1] && can.db.hash[1] != can.ConfIndex()) {
|
||||||
can.sup.current = can.onimport.myTrans(can, kit.Dict(msg.OptionSimple(PLACE_UID, PLACE_NAME, PLACE_TYPE, USER_PLACE_ROLE, STREET_NAME, CITY_NAME)))
|
can.sup.current = can.onimport.myTrans(can, kit.Dict(msg.OptionSimple(PLACE_UID, PLACE_NAME, PLACE_TYPE, USER_PLACE_ROLE, STREET_NAME, CITY_NAME)))
|
||||||
@ -87,9 +93,11 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
}
|
}
|
||||||
msg.Length() > 0? can.run({}, [uid], function(msg) { showIndex(can._index_msg = msg) }): can.run({}, [uid], function(msg) { can.onimport.myOrder(can, can._index_msg = msg, can.ui.myorder) })
|
msg.Length() > 0? can.run({}, [uid], function(msg) { showIndex(can._index_msg = msg) }): can.run({}, [uid], function(msg) { can.onimport.myOrder(can, can._index_msg = msg, can.ui.myorder) })
|
||||||
} else { can.onappend.style(can, "public", can._output)
|
} else { can.onappend.style(can, "public", can._output)
|
||||||
|
can.Conf(mdb.ICONS, msg.Option("portal_icon"))
|
||||||
var _msg = can.request({}); if (msg.Option(PLACE_NAME)) { _msg.Push(kit.Dict(UID, "", msg.OptionSimple(
|
var _msg = can.request({}); if (msg.Option(PLACE_NAME)) { _msg.Push(kit.Dict(UID, "", msg.OptionSimple(
|
||||||
PLACE_UID, PLACE_NAME, PLACE_TYPE, USER_PLACE_ROLE, STREET_NAME, CITY_NAME,
|
PLACE_UID, PLACE_NAME, PLACE_TYPE, USER_PLACE_ROLE, STREET_NAME, CITY_NAME,
|
||||||
"member_status", "auth_status", "auth_name", "auth_info", "auth_avatar", "auth_background", "dashboard_uid",
|
"member_status", "auth_status", "auth_name", "auth_info", "auth_avatar", "auth_background", "dashboard_uid",
|
||||||
|
"space_title",
|
||||||
))) } can.onimport.myPlace(can, _msg, can.ui.myplace)
|
))) } can.onimport.myPlace(can, _msg, can.ui.myplace)
|
||||||
if (_msg.Length() == 0) { can.onimport.myOrder(can, msg, can.ui.myorder) } else { showIndex(can._index_msg = msg) }
|
if (_msg.Length() == 0) { can.onimport.myOrder(can, msg, can.ui.myorder) } else { showIndex(can._index_msg = msg) }
|
||||||
// can.user.agent.init(can, [msg.Option(CITY_NAME), msg.Option(STREET_NAME), msg.Option("auth_info")].join(" "), msg.Option("auth_avatar"))
|
// can.user.agent.init(can, [msg.Option(CITY_NAME), msg.Option(STREET_NAME), msg.Option("auth_info")].join(" "), msg.Option("auth_avatar"))
|
||||||
|
BIN
src/main.png
BIN
src/main.png
Binary file not shown.
Before Width: | Height: | Size: 29 KiB |
@ -26,7 +26,9 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
can.onimport.myView(can, msg, function(value) {
|
can.onimport.myView(can, msg, function(value) {
|
||||||
return [
|
return [
|
||||||
{view: html.TITLE, list: [value.name, can.onimport.authView(can, value), can.onimport.textView(can, value, AUTH_TYPE), can.onimport.titleAction(can, value)]},
|
{view: html.TITLE, list: [value.name, can.onimport.authView(can, value), can.onimport.textView(can, value, AUTH_TYPE), can.onimport.titleAction(can, value)]},
|
||||||
value.auth_type == "service" && {view: html.STATUS, list: [value.city_name, value.street_name, value.service_name]},
|
value.auth_type == "service" && {view: html.STATUS, list: [
|
||||||
|
value.city_name, "|", value.street_name, "|", can.base.replaceAll(value.service_name, " ", " | "),
|
||||||
|
]},
|
||||||
{view: html.STATUS, list: [value.info]},
|
{view: html.STATUS, list: [value.info]},
|
||||||
]
|
]
|
||||||
}, function(event, value) {
|
}, function(event, value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user