v1.0.2+19
This commit is contained in:
parent
ac18e067fa
commit
6a24461bdc
@ -2,8 +2,8 @@
|
|||||||
"name" : "wx-starlock",
|
"name" : "wx-starlock",
|
||||||
"appid" : "__UNI__933D519",
|
"appid" : "__UNI__933D519",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.1",
|
"versionName" : "1.0.2",
|
||||||
"versionCode" : "18",
|
"versionCode" : "19",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin" : {
|
"mp-weixin" : {
|
||||||
|
|||||||
@ -68,10 +68,22 @@ export default {
|
|||||||
async onLoad() {
|
async onLoad() {
|
||||||
this.deviceInfo = await this.getDeviceInfo()
|
this.deviceInfo = await this.getDeviceInfo()
|
||||||
this.temporaryTime = this.setTime()
|
this.temporaryTime = this.setTime()
|
||||||
|
this.minDate = Number(this.getNextFullHour())
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(useBasicStore, ['getDeviceInfo', 'backAndToast', 'getNetworkType']),
|
...mapActions(useBasicStore, ['getDeviceInfo', 'backAndToast', 'getNetworkType']),
|
||||||
...mapActions(useLockStore, ['getPasswordList', 'updatePasswordSearch']),
|
...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() {
|
setTime() {
|
||||||
const now = new Date()
|
const now = new Date()
|
||||||
now.setMinutes(0, 0, 0)
|
now.setMinutes(0, 0, 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user