mali-applet-ui 1.0.173 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -564,6 +564,9 @@ export default {
|
|
|
564
564
|
this.tempRange.before = this.cale.multipleStatus.before
|
|
565
565
|
this.tempRange.after = this.cale.multipleStatus.after
|
|
566
566
|
}
|
|
567
|
+
if (!this.time) {
|
|
568
|
+
this.time = this.hideSecond ? '00:00' : '00:00:00'
|
|
569
|
+
}
|
|
567
570
|
this.change()
|
|
568
571
|
},
|
|
569
572
|
/**
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<image class="ml-image" :src="url" :mode="mode" :style="imgStyles"></image>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
export default {
|
|
7
|
+
name: 'MlImage',
|
|
8
|
+
props: {
|
|
9
|
+
url: String,
|
|
10
|
+
mode: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: 'aspectFit'
|
|
13
|
+
},
|
|
14
|
+
width: [String, Number],
|
|
15
|
+
height: [String, Number]
|
|
16
|
+
},
|
|
17
|
+
computed: {
|
|
18
|
+
imgStyles () {
|
|
19
|
+
const width = this.width
|
|
20
|
+
const height = this.height
|
|
21
|
+
const wSty = width ? `width: ${isNaN(width) ? width : `${width}rpx`};` : ''
|
|
22
|
+
const hSty = height ? `height: ${isNaN(height) ? height : `${height}rpx`};` : ''
|
|
23
|
+
return `${wSty}${hSty}`
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="scss">
|
|
30
|
+
.ml-image {
|
|
31
|
+
width: 80rpx;
|
|
32
|
+
height: 80rpx;
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
@@ -102,6 +102,10 @@ export default {
|
|
|
102
102
|
return this.showPage
|
|
103
103
|
? {
|
|
104
104
|
pageObj: this.pageVO,
|
|
105
|
+
pageData: {
|
|
106
|
+
[this.pagePropOpts.currentPage || 'page']: this.pageVO.currPage,
|
|
107
|
+
[this.pagePropOpts.pageSize || 'limit']: this.pageVO.pageSize
|
|
108
|
+
},
|
|
105
109
|
data: {
|
|
106
110
|
[this.pagePropOpts.currentPage || 'page']: this.pageVO.currPage,
|
|
107
111
|
[this.pagePropOpts.pageSize || 'limit']: this.pageVO.pageSize
|
package/package.json
CHANGED
package/utils/applet.js
CHANGED
|
@@ -3,21 +3,23 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export function checkForUpdate () {
|
|
5
5
|
const updateManager = uni.getUpdateManager()
|
|
6
|
-
updateManager
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
if (updateManager) {
|
|
7
|
+
updateManager.onCheckForUpdate((res) => {
|
|
8
|
+
console.log('检查版本', res.hasUpdate)
|
|
9
|
+
})
|
|
10
|
+
updateManager.onUpdateReady(() => {
|
|
11
|
+
uni.showModal({
|
|
12
|
+
title: '更新提示',
|
|
13
|
+
content: '新版本已经准备好,是否重启应用?',
|
|
14
|
+
success (res) {
|
|
15
|
+
if (res.confirm) {
|
|
16
|
+
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
|
17
|
+
updateManager.applyUpdate()
|
|
18
|
+
}
|
|
17
19
|
}
|
|
18
|
-
}
|
|
20
|
+
})
|
|
19
21
|
})
|
|
20
|
-
}
|
|
22
|
+
}
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
/**
|