v1.0.2+19

This commit is contained in:
范鹏 2024-09-26 15:58:20 +08:00
parent ac18e067fa
commit 6a24461bdc
2 changed files with 14 additions and 2 deletions

View File

@ -2,8 +2,8 @@
"name" : "wx-starlock",
"appid" : "__UNI__933D519",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : "18",
"versionName" : "1.0.2",
"versionCode" : "19",
"transformPx" : false,
/* */
"mp-weixin" : {

View File

@ -68,10 +68,22 @@ export default {
async onLoad() {
this.deviceInfo = await this.getDeviceInfo()
this.temporaryTime = this.setTime()
this.minDate = Number(this.getNextFullHour())
},
methods: {
...mapActions(useBasicStore, ['getDeviceInfo', 'backAndToast', 'getNetworkType']),
...mapActions(useLockStore, ['getPasswordList', 'updatePasswordSearch']),
//
getNextFullHour() {
const now = new Date()
const currentHour = now.getHours()
now.setHours(currentHour + 1);
now.setMinutes(0);
now.setSeconds(0);
now.setMilliseconds(0);
return now;
},
setTime() {
const now = new Date()
now.setMinutes(0, 0, 0)