Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
orqfff committed Nov 19, 2019
1 parent f73dadc commit 1ffb65b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
26 changes: 18 additions & 8 deletions mzitu/mzitu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const current_version = "0.2";
const current_version = "0.3";
const author = "YJluang";
const title = "mzitu";

Expand Down Expand Up @@ -257,7 +257,6 @@ const template = {
type: "view",
props: {
id: "contentView",
bgcolor: $color("white"),
radius: 7,
},
views: [
Expand All @@ -266,13 +265,16 @@ const template = {
props: {
id: "title",
bgcolor: $color("white"),
font: $font(24),
lines: 0,
font: $font(18),
textColor: $color("#ff88af"),
align: $align.left,
lines: 2,
alpha: 0.5,
},
layout: function(make, view) {
make.left.right.inset(5)
make.top.equalTo(8)
make.height.equalTo(45)
}
},
{
Expand All @@ -282,9 +284,9 @@ const template = {
align: $align.center,
},
layout: function(make, view) {
make.top.equalTo(view.prev.bottom);
make.top.equalTo(view.prev.bottom)
make.bottom.equalTo(0)
make.left.right.inset(5)
make.height.equalTo($("mainData").frame.height - (view.super.frame.height * 2) - $("menu").frame.height)
}
}
]
Expand Down Expand Up @@ -359,12 +361,20 @@ $ui.render({
props: {
id: 'mainData',
template: template,
rowHeight: 500,
rowHeight: 560,
},
events: {
didSelect: function(tableView, indexPath) {
viewHotDetail(tableView.object(indexPath).id, tableView.object(indexPath).title)
}
},
// didLongPress: function(sender, indexPath, data) {
// console.log(sender)
// console.log(indexPath)
// console.log(data)
// $quicklook.open({
// url: data.image.source.url
// })
// }
},
layout: function(make, view) {
make.left.bottom.right.equalTo(0)
Expand Down
2 changes: 1 addition & 1 deletion mzitu/updateInfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 0.2,
"version": 0.3,
"msg": "首页优化"
}

0 comments on commit 1ffb65b

Please sign in to comment.