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.

63 lines
1.1 KiB

3 years ago
import { canIUseGetUserProfile } from '../common/version';
3 years ago
module.exports = {
data() {
return {
canIUseGetUserProfile: canIUseGetUserProfile()
};
},
props: {
3 years ago
id: String,
lang: String,
businessId: Number,
sessionFrom: String,
sendMessageTitle: String,
sendMessagePath: String,
sendMessageImg: String,
showMessageCard: Boolean,
appParameter: String,
ariaLabel: String,
openType: String,
3 years ago
getUserProfileDesc: String
3 years ago
},
3 years ago
externalClasses: ['hover-class'],
3 years ago
methods: {
onGetUserInfo(event) {
3 years ago
this.$emit('getuserinfo', {
detail: event.detail
});
3 years ago
},
3 years ago
3 years ago
onContact(event) {
3 years ago
this.$emit('contact', {
detail: event.detail
});
3 years ago
},
3 years ago
3 years ago
onGetPhoneNumber(event) {
3 years ago
this.$emit('getphonenumber', {
detail: event.detail
});
3 years ago
},
3 years ago
3 years ago
onError(event) {
3 years ago
this.$emit('error', {
detail: event.detail
});
3 years ago
},
3 years ago
3 years ago
onLaunchApp(event) {
3 years ago
this.$emit('launchapp', {
detail: event.detail
});
3 years ago
},
3 years ago
3 years ago
onOpenSetting(event) {
3 years ago
this.$emit('opensetting', {
detail: event.detail
});
}
}
};