diff --git a/App.vue b/App.vue index 79ef9fd1..714e2eaa 100644 --- a/App.vue +++ b/App.vue @@ -1922,6 +1922,12 @@ return uni.upx2px(rpx); }, + // 是否pc + is_pc() { + var arr = ['macos', 'windows']; + return arr.indexOf(uni.getSystemInfoSync().platform) != -1; + }, + // 终端类型 application_client() { var type = ''; diff --git a/components/cart/cart.vue b/components/cart/cart.vue index 084a2392..94ee09bc 100644 --- a/components/cart/cart.vue +++ b/components/cart/cart.vue @@ -140,7 +140,7 @@ - +