index.js
693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// components/abnormalFlowTips/index.js
import { CLOSE_ICON_URL } from '../../utils/imageBase.js'
Component({
options: {
addGlobalClass: true,
styleIsolation: 'apply-shared'
},
externalClasses: ['custom-class'],
properties: {
show: {
type: Boolean,
value: false
},
count: {
type: Number,
value: 0
},
tipsText: {
type: String,
value: ''
}
},
data: {
IMG_URL:
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/',
closeIconUrl: CLOSE_ICON_URL
},
methods: {
onClose() {
this.triggerEvent('close')
},
onAction() {
this.triggerEvent('action')
}
}
})