forked from x/volcanos
opt mobile
This commit is contained in:
parent
2496b5864b
commit
598a399515
@ -42,7 +42,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg)
|
||||
|
||||
sub.page.Modify(sub, Volcanos.meta.data.menu.first, {style: {
|
||||
left: event.target.offsetLeft+can.run(event, ["search", "River.onexport.width"]),
|
||||
top: event.target.offsetTop-can._output.scrollTop+event.target.offsetHeight+can.run(event, ["search", "Header.onexport.height"]),
|
||||
top: event.target.offsetTop-(can.user.isMobile? can._target.parentNode.parentNode.scrollTop: can._output.scrollTop)+event.target.offsetHeight+can.run(event, ["search", "Header.onexport.height"]),
|
||||
}})
|
||||
},
|
||||
})
|
||||
|
@ -267,8 +267,9 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg,
|
||||
},
|
||||
|
||||
username: function(event, can) {
|
||||
can.onaction.carte(event, can, ["shareuser", "usernick", "clear", "logout"])
|
||||
can.onlayout.figure(event, can, can.menu.first)
|
||||
var ui = can.onaction.carte(event, can, ["shareuser", "usernick", "clear", "logout"])
|
||||
|
||||
can.user.isMobile && can.page.Modify(can, ui.first, {style: {left: 320}})
|
||||
},
|
||||
shareuser: function(event, can) {
|
||||
can.user.share(can, can.request(event), [can._ACTION, can._SHARE, "type", "login"])
|
||||
|
@ -46,7 +46,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
}, {style: {left: can._target.offsetWidth}})
|
||||
}, can._output)
|
||||
|
||||
can.page.Modify(can, item, {onmouseenter: function(event) {
|
||||
!can.user.isMobile && can.page.Modify(can, item, {onmouseenter: function(event) {
|
||||
can.menu = can.user.carte(event, can, can.ondetail, can.ondetail.list, function(ev, item, meta) {
|
||||
can.ondetail[item](event, can, item, value.hash)
|
||||
}, {style: {left: can._target.offsetWidth}})
|
||||
|
Loading…
x
Reference in New Issue
Block a user