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.
39 lines
558 B
39 lines
558 B
Component({
|
|
externalClasses: ['wr-class'],
|
|
|
|
properties: {
|
|
phoneNumber: String,
|
|
desc: String,
|
|
},
|
|
|
|
data: {
|
|
show: false,
|
|
},
|
|
|
|
methods: {
|
|
onBtnTap() {
|
|
this.setData({
|
|
show: true,
|
|
});
|
|
},
|
|
|
|
onDialogClose() {
|
|
this.setData({
|
|
show: false,
|
|
});
|
|
},
|
|
|
|
onCall() {
|
|
const { phoneNumber } = this.properties;
|
|
wx.makePhoneCall({
|
|
phoneNumber,
|
|
});
|
|
},
|
|
onCallOnlineService() {
|
|
wx.showToast({
|
|
title: '你点击了在线客服',
|
|
});
|
|
},
|
|
},
|
|
});
|