From 35fd8e62accfe9f4f722cda3eb7443f673df4d11 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 21 Apr 2025 22:48:26 +0800 Subject: [PATCH] no message --- public/images/device/phone.svg | 1 + public/images/device/tablet.svg | 1 + resources/assets/js/pages/manage/setting/device.vue | 11 ++++++++++- resources/assets/sass/pages/page-setting.scss | 8 ++++++++ .../assets/statics/public/images/device/phone.svg | 1 + .../assets/statics/public/images/device/tablet.svg | 1 + 6 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 public/images/device/phone.svg create mode 100644 public/images/device/tablet.svg create mode 100644 resources/assets/statics/public/images/device/phone.svg create mode 100644 resources/assets/statics/public/images/device/tablet.svg diff --git a/public/images/device/phone.svg b/public/images/device/phone.svg new file mode 100644 index 000000000..0e08ace55 --- /dev/null +++ b/public/images/device/phone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/device/tablet.svg b/public/images/device/tablet.svg new file mode 100644 index 000000000..00f6af319 --- /dev/null +++ b/public/images/device/tablet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/assets/js/pages/manage/setting/device.vue b/resources/assets/js/pages/manage/setting/device.vue index 9aac0ab4d..56c9c8d01 100644 --- a/resources/assets/js/pages/manage/setting/device.vue +++ b/resources/assets/js/pages/manage/setting/device.vue @@ -67,11 +67,20 @@ export default { }) }, - getIcon({app_type}) { + getIcon({app_type, app_name}) { if (/ios/i.test(app_type)) { + if (/ipad/i.test(app_name)) { + return 'tablet'; + } + if (/iphone/i.test(app_name)) { + return 'phone'; + } return 'apple'; } else if (/android/i.test(app_type)) { + if (/(tablet|phablet)/i.test(app_name)) { + return 'tablet'; + } return 'android'; } else if (/mac/i.test(app_type)) { diff --git a/resources/assets/sass/pages/page-setting.scss b/resources/assets/sass/pages/page-setting.scss index 1f6f36391..2a5486131 100755 --- a/resources/assets/sass/pages/page-setting.scss +++ b/resources/assets/sass/pages/page-setting.scss @@ -386,6 +386,14 @@ width: 20px; height: 20px; + &.phone { + background-image: url("../images/device/phone.svg"); + } + + &.tablet { + background-image: url("../images/device/tablet.svg"); + } + &.android { background-image: url("../images/device/android.svg"); } diff --git a/resources/assets/statics/public/images/device/phone.svg b/resources/assets/statics/public/images/device/phone.svg new file mode 100644 index 000000000..0e08ace55 --- /dev/null +++ b/resources/assets/statics/public/images/device/phone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/assets/statics/public/images/device/tablet.svg b/resources/assets/statics/public/images/device/tablet.svg new file mode 100644 index 000000000..00f6af319 --- /dev/null +++ b/resources/assets/statics/public/images/device/tablet.svg @@ -0,0 +1 @@ + \ No newline at end of file