index.js 693 Bytes
// 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')
    }
  }
})