Files
venue_wx/component/confirmDialog/confirmDialog.js
2020-06-21 16:27:58 +08:00

73 lines
1.1 KiB
JavaScript

// component/confirmDialog/confirmDialog.js
Component({
/**
* 组件的属性列表
*/
properties: {
title: {
type: String,
value: ''
},
message: {
type: String,
value: ''
},
confirmBtnTitle: {
type: String,
value: '确认'
},
cancelBtnTitle: {
type: String,
value: '取消'
},
showCancel: {
type: Boolean,
value: true
},
isAuth: {
type: Boolean,
value: false
},
isUserInfo: {
type: Boolean,
value: false
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
unMove() {
return;
},
// 点击取消
cancel() {
this.triggerEvent('cancelselect', {}, {})
},
// 点击确认
confirm() {
this.triggerEvent('confirmselect', {}, {})
},
// 点击编辑授权
openSetting(e) {
this.triggerEvent('opensetting', e.detail, {});
},
// 点击获取个人信息
openUserInfo(e) {
this.triggerEvent('getuserinfo', e.detail, {});
}
}
})