From 8c6266982938fa1faac9949607784d6dbd7c45a5 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Tue, 4 Mar 2025 17:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 ++++++ components/cart/cart.vue | 28 ++++++++++++++++++------- components/diy/footer.vue | 2 ++ pages/goods-category/goods-category.vue | 14 ++++++++++++- 4 files changed, 41 insertions(+), 9 deletions(-) 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 @@ - +