addressCell.js 575 Bytes
/**
 * addressCell.js
 *@author dennis
 *@createtime 2018/10/26
 *@description 地址选择及展示
 */

Component({
  properties: {//属性值可以在组件使用时指定
    hasAddress: {
      type:Boolean,
      value: false
    },
    address: {
      type: Object,
      value: ''
    }
  },
  data: {//组件内部数据
    addressIcon: '../../../../assets/images/noad@2x.png',
    noAddressText: '添加地址',
  },

  created(options) {
  },

  ready() {
  },

  methods: {
    chooseAddress: function(){
     this.triggerEvent('addressevent',{})
    }
  }

})