45 lines
656 B

// components/modal/modal.js
Component({
/**
* 组件的属性列表
*/
properties: {
confirm_txt:{
type: String,
value: '确定'
},
show_cancel_btn: {
type: Boolean,
value: true
},
cencel_txt: {
type: String,
value: '取消'
},
},
/**
* 组件的初始数据
*/
data: {
imageServerUrl: getApp().globalData.imageServerUrl,
},
/**
* 组件的方法列表
*/
methods: {
no_bubble() {
},
// 确定
confirm_fn() {
this.triggerEvent('confirm_fn')
},
// 取消
cancel_fn() {
this.triggerEvent('cancel_fn')
},
}
})