You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.7 KiB
54 lines
1.7 KiB
"use strict"; |
|
Object.defineProperty(exports, "__esModule", { value: true }); |
|
exports.button = void 0; |
|
var version_1 = require("../common/version"); |
|
exports.button = Behavior({ |
|
externalClasses: ['hover-class'], |
|
properties: { |
|
id: String, |
|
buttonId: String, |
|
lang: String, |
|
businessId: Number, |
|
sessionFrom: String, |
|
sendMessageTitle: String, |
|
sendMessagePath: String, |
|
sendMessageImg: String, |
|
showMessageCard: Boolean, |
|
appParameter: String, |
|
ariaLabel: String, |
|
openType: String, |
|
getUserProfileDesc: String, |
|
}, |
|
data: { |
|
canIUseGetUserProfile: (0, version_1.canIUseGetUserProfile)(), |
|
}, |
|
methods: { |
|
onGetUserInfo: function (event) { |
|
this.triggerEvent('getuserinfo', event.detail); |
|
}, |
|
onContact: function (event) { |
|
this.triggerEvent('contact', event.detail); |
|
}, |
|
onGetPhoneNumber: function (event) { |
|
this.triggerEvent('getphonenumber', event.detail); |
|
}, |
|
onGetRealTimePhoneNumber: function (event) { |
|
this.triggerEvent('getrealtimephonenumber', event.detail); |
|
}, |
|
onError: function (event) { |
|
this.triggerEvent('error', event.detail); |
|
}, |
|
onLaunchApp: function (event) { |
|
this.triggerEvent('launchapp', event.detail); |
|
}, |
|
onOpenSetting: function (event) { |
|
this.triggerEvent('opensetting', event.detail); |
|
}, |
|
onAgreePrivacyAuthorization: function (event) { |
|
this.triggerEvent('agreeprivacyauthorization', event.detail); |
|
}, |
|
onChooseAvatar: function (event) { |
|
this.triggerEvent('chooseavatar', event.detail); |
|
}, |
|
}, |
|
});
|
|
|