ShadeTip.js 916 Bytes
// packageEquity/pages/carEquity/components/ShadeTip/ShadeTip.js
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    isShow: {
      type: Boolean,
      value: false
    },
    type: {
      type: String,
      value: 'success'
    },
    title: {
      type: String,
      value: '提单成功'
    },
    tipTxt: {
      type: String,
      value: ''
    },
    btnTxt: {
      type: String,
      value: '查看合同'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    IMG_URL,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleClick() {
      // 信息确认直接关闭弹窗
      if (this.data.type == 'warning') return this.triggerEvent('close', {type: 'warning'})
      this.triggerEvent('click')
    },
    handleClose() {
      this.triggerEvent('close')
    }
  }
})