refactor: 统一将微信小程序条件编译替换为全小程序平台
将项目中所有`MP-WEIXIN`条件编译标识替换为通用的`MP`,适配所有字节小程序平台,减少重复的平台特化代码。
This commit is contained in:
@@ -282,7 +282,7 @@ export class CustomerService {
|
||||
// #ifdef H5
|
||||
window.location.href = config.third_url;
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
// #ifdef MP
|
||||
uni.setClipboardData({
|
||||
data: config.third_url,
|
||||
success: () => {
|
||||
@@ -350,7 +350,7 @@ export class CustomerService {
|
||||
// #ifdef H5
|
||||
window.open(serviceUrl, '_blank');
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
// #ifdef MP
|
||||
uni.setClipboardData({ data: serviceUrl });
|
||||
uni.showToast({ title: '客服链接已复制', icon: 'none' });
|
||||
// #endif
|
||||
|
||||
Reference in New Issue
Block a user