mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
d377063c0f
commit
0cdd17355f
@ -362,7 +362,7 @@ fieldset.input.date>div.output td span.lunar { font-size:8px; display:block; cle
|
|||||||
fieldset.input.date>div.output td span.lunar.term { color:green; }
|
fieldset.input.date>div.output td span.lunar.term { color:green; }
|
||||||
fieldset.input.date>div.output td span.lunar.fest { color:red; }
|
fieldset.input.date>div.output td span.lunar.fest { color:red; }
|
||||||
fieldset.input.date>div.output td { cursor:pointer; }
|
fieldset.input.date>div.output td { cursor:pointer; }
|
||||||
fieldset.input.date>div.output td.select { background-color:var(--notice-bg-color); }
|
fieldset.input.date>div.output td.select { background-color:var(--notice-bg-color); color:var(--notice-fg-color); }
|
||||||
fieldset.input.date>div.status { text-align:center; border-top:unset; }
|
fieldset.input.date>div.status { text-align:center; border-top:unset; }
|
||||||
fieldset.input.date>div.status>div.today { padding:var(--input-padding); }
|
fieldset.input.date>div.status>div.today { padding:var(--input-padding); }
|
||||||
body.mobile fieldset.input.date { left:0 !important; width:100%; }
|
body.mobile fieldset.input.date { left:0 !important; width:100%; }
|
||||||
|
@ -349,13 +349,14 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
}, sub._output)
|
}, sub._output)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function goback(event) { if (can._stacks_current.length == 1) { return }
|
function goback(event, cb) { if (can._stacks_current.length == 1) { return cb && cb()}
|
||||||
if (sub._history.length > 1) { sub.request(event, {_toast: "reload"}); return sub.onimport.back(event, sub) }
|
if (sub._history.length > 1) { sub.request(event, {_toast: "reload"}); return sub.onimport.back(event, sub), cb && cb() }
|
||||||
var _last = can._stacks_current.pop()
|
var _last = can._stacks_current.pop()
|
||||||
can.onmotion.slideOut(_last, function() { var last = can._stacks_current[can._stacks_current.length-1]; last._select()
|
can.onmotion.slideOut(_last, function() { var last = can._stacks_current[can._stacks_current.length-1]; last._select()
|
||||||
last.request(event, {_toast: "reload"})
|
last.request(event, {_toast: "reload"})
|
||||||
if (last.ConfIndex().split(".").pop() == "message") { last.Update(event) }
|
if (last.ConfIndex().split(".").pop() == "message") { last.Update(event) }
|
||||||
can._stacks_current.length == 1 && last._output.innerHTML == "" && last.Update(event)
|
can._stacks_current.length == 1 && last._output.innerHTML == "" && last.Update(event)
|
||||||
|
cb && cb()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function reload(event) {
|
function reload(event) {
|
||||||
@ -433,7 +434,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
},
|
},
|
||||||
textView: function(can, value, key, type) {
|
textView: function(can, value, key, type) {
|
||||||
key || can.core.Item(value, function(k, v) { if (k == "status" || can.base.endWith(k, "_status")) { key = k } }); if (!type) { type = key.split("_").pop() }
|
key || can.core.Item(value, function(k, v) { if (k == "status" || can.base.endWith(k, "_status")) { key = k } }); if (!type) { type = key.split("_").pop() }
|
||||||
return value[key] && value[key] != "finish" && {text: [can.user.transValue(can, value, key), "", [type, value[key], can.Conf("_trans.value."+key+".style."+value[key])||""]]}
|
return value[key] && !can.base.isIn(value[key], "finish", "done") && {text: [can.user.transValue(can, value, key), "", [type, value[key], can.Conf("_trans.value."+key+".style."+value[key])||""]]}
|
||||||
},
|
},
|
||||||
cityView: function(can, value) {
|
cityView: function(can, value) {
|
||||||
return {text: value.city_name, onclick: function(event) {
|
return {text: value.city_name, onclick: function(event) {
|
||||||
@ -469,7 +470,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
typeStyle: function(can, value, key) { return can.Conf("_trans.value."+key+".style."+value[key])||"" },
|
typeStyle: function(can, value, key) { return can.Conf("_trans.value."+key+".style."+value[key])||"" },
|
||||||
roleStyle: function(can, value, key) { return can.Conf("_trans.value."+key+".style."+value[key])||"" },
|
roleStyle: function(can, value, key) { return can.Conf("_trans.value."+key+".style."+value[key])||"" },
|
||||||
shareTitle: function(can, msg, title, content) { if (msg.IsDetail()) { var value = msg.TableDetail()
|
shareTitle: function(can, msg, title, content) { if (msg.IsDetail()) { var value = msg.TableDetail()
|
||||||
msg.Option("_share_title", (value[title]||value.name||value.uid).slice(0, 6)), msg.Option("_share_content", value[content]||value.info)
|
msg.Option("_share_title", msg.Option("_share_title")||(value[title]||value.title||value.name||value.uid).slice(0, 6)), msg.Option("_share_content", value[content]||value.info)
|
||||||
} },
|
} },
|
||||||
titleAction: function(can, value, filter) { var filter = can.core.List(arguments).slice(2)
|
titleAction: function(can, value, filter) { var filter = can.core.List(arguments).slice(2)
|
||||||
return {view: html.ACTION, _init: function(target) { if (!can.user.isMobile) { return }
|
return {view: html.ACTION, _init: function(target) { if (!can.user.isMobile) { return }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user