deguodaigou/components/chooseaddr/address/address.js
2019-12-23 10:04:09 +08:00

36 lines
548 B
JavaScript

// components/chooseaddr/address/address.js
Component({
/**
* 组件的属性列表
*/
properties: {
username:String,
tel:String,
address:String,
isdefault:String,
youzheng:String,
addressid:String
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
del(){
// console.log("del")
this.triggerEvent('delete')
},
setdefault(){
this.triggerEvent('default',this.data.addressid)
}
}
})