mbti-rengeceshi/components/dialogModal/index.js

50 lines
1.0 KiB
JavaScript

getApp(), Component({
data: {},
properties: {
isShow: {
type: Boolean,
value: !1
},
title: {
type: String,
value: "提示"
},
content: {
type: String,
value: ""
},
cancelText: {
type: String,
value: "取消"
},
confirmText: {
type: String,
value: "确定"
},
isNeedAuth: {
type: Boolean,
value: !1
},
cancelType: {
type: String,
value: ""
},
confirmType: {
type: String,
value: ""
}
},
methods: {
preventTouchMove: function() {},
cancel: function() {
this.setData({
isShow: !1
}), this.triggerEvent("cancel");
},
confirm: function() {
this.setData({
isShow: !1
}), this.triggerEvent("confirm");
}
}
});