提交 80022c88 authored 作者: zs's avatar zs

edit

上级 0b91117e
...@@ -19,6 +19,25 @@ export default { ...@@ -19,6 +19,25 @@ export default {
} }
}, },
async pageSelect(data){
let sqllitedb = await SqlliteDbUtil.initSqlliteDB()
let pre = (data.page -1) * data.size
let nxt = data.size
try {
let count = await sqllitedb.selectSQL(`select count(*) as total from ${table.logListName} limit 1 `)
let sql = `select * from ${table.logListName} ORDER BY time desc limit ${nxt} offset ${pre} `
let rs = await sqllitedb.selectSQL(sql)
console.log('sql',sql)
return {
data:rs || [],
total:count[0].total || 0
}
} catch (e) {
console.log(e.message)
} finally {
await sqllitedb.closeDB();
}
},
async addlog(data) { async addlog(data) {
let sqllitedb = await SqlliteDbUtil.initSqlliteDB() let sqllitedb = await SqlliteDbUtil.initSqlliteDB()
try { try {
......
差异被折叠。
...@@ -77,7 +77,11 @@ ...@@ -77,7 +77,11 @@
mode="aspectFill" mode="aspectFill"
class="photo" class="photo"
></image> ></image>
<view class="photo-mask">拍摄时间:{{photo.time}}</view> <view class="photo-mask">
<view>照片编号:{{photo.id}}</view>
<view>拍摄时间:{{photo.time}}</view>
<view>数据同步:{{ photo.synchronization ? "已同步" : "待同步"}}</view>
</view>
<view <view
class="check-icon" class="check-icon"
:class="{ active: photo.selected }" :class="{ active: photo.selected }"
...@@ -96,7 +100,7 @@ ...@@ -96,7 +100,7 @@
photo.synchronization ? "已同步" : "待同步" photo.synchronization ? "已同步" : "待同步"
}}</view> }}</view>
<view class="photo-info"> <view class="photo-info">
<text class="no">照片编号:{{ photo.id }}</text> 照片编号:{{ photo.id }}
</view> </view>
</view> </view>
</view> </view>
...@@ -485,9 +489,7 @@ export default { ...@@ -485,9 +489,7 @@ export default {
height: 168px; height: 168px;
} }
.photo-mask{
position: absolute;
}
.check-icon { .check-icon {
position: absolute; position: absolute;
top: 6.4px; top: 6.4px;
...@@ -540,7 +542,6 @@ export default { ...@@ -540,7 +542,6 @@ export default {
.photo-mask{ .photo-mask{
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
color: #ffffff; color: #ffffff;
text-align: center;
position: absolute; position: absolute;
bottom: 26.4px; bottom: 26.4px;
width: 148px; width: 148px;
...@@ -548,25 +549,20 @@ export default { ...@@ -548,25 +549,20 @@ export default {
right: 0; right: 0;
border-radius: 4.8px; border-radius: 4.8px;
margin:0 auto; margin:0 auto;
padding: 3.6px; padding:4.8px;
font-size: 9.6px; font-size: 9.6px;
color: #ffffff; color: #ffffff;
line-height: 16px; line-height: 16px;
font-weight: 400;
text-shadow: 0 0 2px rgba(0,0,0,0.30); text-shadow: 0 0 2px rgba(0,0,0,0.30);
font-weight: 400;
} }
.photo-info { .photo-info {
text-align: center; text-align: center;
font-family: PingFangSC-Regular;
text { font-size: 11.2px;
font-family: PingFangSC-Regular; color: #000000;
font-size: 11.2px; line-height: 17.6px;
color: #000000; font-weight: 400;
line-height: 17.6px; }
font-weight: 400;
}
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论