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