init project
This commit is contained in:
72
component/confirmDialog/confirmDialog.js
Normal file
72
component/confirmDialog/confirmDialog.js
Normal file
@@ -0,0 +1,72 @@
|
||||
// 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, {});
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user