index.js 508 Bytes
// 商品card
Component({
  externalClasses: ['custom-class'],
  /**
   * 组件的属性列表
   */
  properties: {
    src: {
      type: String,
      value: ''
    },
    mode: {
      type: String,
      value: 'widthFix'
    },
    lazyLoad: {
      type: Boolean,
      value: true
    },
    tag: {
      type: [String, Number],
      value: ''
    },
    title: {
      type: [String, Number],
      value: ''
    }
  },

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

})