|
callPhone() {
const service_phone = JSON.parse(api.getPrefs({
sync: true,
key: 'service_phone'
}));
if (isMP()) {
wx.makePhoneCall({
//phoneNumber: this.data.shopInfo.phone
phoneNumber: service_phone
})
} else {
api.call({
type: 'tel_prompt',
//number: this.data.shopInfo.phone
number: service_phone
});
}
}, |
|