perf: 分包+修改本地图片为远程图片

This commit is contained in:
范鹏 2025-03-27 16:57:59 +08:00
parent e350ecd958
commit 5085098c9d
146 changed files with 867 additions and 898 deletions

View File

@ -5,6 +5,12 @@
"stylelint-config-recess-order",
"stylelint-config-html/vue"
],
"overrides": [
{
"files": ["**/*.(scss|css|vue|html)"],
"customSyntax": "postcss-scss"
}
],
"rules": {
"no-descending-specificity": null,
"selector-class-pattern": null,
@ -17,204 +23,6 @@
}
],
"color-hex-length": null,
"order/properties-order": [
true,
{
"properties": [
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"display",
"float",
"width",
"height",
"max-width",
"max-height",
"min-width",
"min-height",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"margin-collapse",
"margin-top-collapse",
"margin-right-collapse",
"margin-bottom-collapse",
"margin-left-collapse",
"overflow",
"overflow-x",
"overflow-y",
"clip",
"clear",
"font",
"font-family",
"font-size",
"font-smoothing",
"font-style",
"font-weight",
"hyphens",
"src",
"line-height",
"letter-spacing",
"word-spacing",
"color",
"text-align",
"text-decoration",
"text-indent",
"text-overflow",
"text-rendering",
"text-size-adjust",
"text-shadow",
"text-transform",
"word-break",
"word-wrap",
"white-space",
"vertical-align",
"list-style",
"list-style-position",
"list-style-type",
"list-style-image",
"pointer-events",
"cursor",
"background",
"background-attachment",
"background-color",
"background-image",
"background-position",
"background-repeat",
"background-size",
"border",
"border-collapse",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-color",
"border-image",
"border-top-color",
"border-right-color",
"border-bottom-color",
"border-left-color",
"border-spacing",
"border-style",
"border-width",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"border-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"border-top-left-radius",
"border-radius-topright",
"border-radius-bottomright",
"border-radius-bottomleft",
"border-radius-topleft",
"box-shadow",
"transform",
"transform-origin",
"backface-visibility",
"backface-visibility",
"perspective",
"perspective-origin",
"visibility",
"opacity",
"filter",
"isolation",
"object-fit",
"object-position",
"mask",
"mask-image",
"mask-mode",
"mask-position",
"mask-repeat",
"mask-size",
"mask-clip",
"mask-origin",
"mask-composite",
"mask-type",
"mask-border",
"mask-border-source",
"mask-border-slice",
"mask-border-width",
"mask-border-outset",
"mask-border-repeat",
"mask-border-mode",
"mask-box-image",
"mask-box-image-source",
"mask-box-image-slice",
"mask-box-image-width",
"mask-box-image-outset",
"mask-box-image-repeat",
"mask-box-image-mode",
"box-decoration-break",
"background-clip",
"background-origin",
"background-size",
"background-position",
"background-attachment",
"background-repeat",
"background-image",
"box-sizing",
"content",
"quotes",
"counter-reset",
"counter-increment",
"resize",
"user-select",
"nav-index",
"nav-up",
"nav-right",
"nav-down",
"nav-left",
"tab-size",
"outline",
"outline-width",
"outline-style",
"outline-color",
"outline-offset",
"table-layout",
"empty-cells",
"caption-side",
"background-color",
"border-spacing",
"border-collapse",
"speak",
"volume",
"pause",
"pause-before",
"pause-after",
"page-break-before",
"page-break-after",
"page-break-inside",
"orphans",
"widows",
"display",
"flex-direction",
"flex-order",
"flex-grow",
"flex-shrink",
"flex-basis",
"flex-flow",
"flex-wrap",
"flex",
"justify-content",
"align-self",
"align-items",
"align-content"
]
}
],
"declaration-property-value-no-unknown": [
true,
{

View File

@ -17,7 +17,7 @@
:style="{ width: size * 0.75 - 2 + 'rpx', height: size * 0.75 - 2 + 'rpx' }"
>
<image
src="/static/images/icon_lock_transparent.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_lock_transparent.png"
mode="aspectFill"
:style="{ width: size * 0.35 + 'rpx', height: size * 0.35 + 'rpx' }"
></image>

View File

@ -1,30 +1,30 @@
export const keysType = {
1: {
name: '电子钥匙',
icon: '/static/images/icon_user.png'
icon: 'https://oss-lock.xhjcn.ltd/mp/icon_user.png'
},
2: {
name: '密码',
icon: '/static/images/icon_password.png'
icon: 'https://oss-lock.xhjcn.ltd/mp/icon_password.png'
},
3: {
name: '指纹',
icon: '/static/images/icon_fingerprint_white.png'
icon: 'https://oss-lock.xhjcn.ltd/mp/icon_fingerprint_white.png'
},
4: {
name: '卡',
icon: '/static/images/icon_card_white.png'
icon: 'https://oss-lock.xhjcn.ltd/mp/icon_card_white.png'
},
5: {
name: '人脸',
icon: '/static/images/icon_face_white.png'
icon: 'https://oss-lock.xhjcn.ltd/mp/icon_face_white.png'
},
6: {
name: '掌静脉',
icon: '/static/images/icon_palm_vein_white.png'
icon: 'https://oss-lock.xhjcn.ltd/mp/icon_palm_vein_white.png'
},
7: {
name: '遥控',
icon: '/static/images/icon_remote_white.png'
icon: 'https://oss-lock.xhjcn.ltd/mp/icon_remote_white.png'
}
}

View File

@ -1,28 +1,30 @@
{
"name" : "wx-starlock",
"appid" : "__UNI__933D519",
"description" : "",
"versionName" : "1.2.0",
"versionCode" : "34",
"transformPx" : false,
/* */
"mp-weixin" : {
"appid" : "wx9829a39e65550757",
"setting" : {
"urlCheck" : true,
"minified" : true
},
"permission" : {
"scope.bluetooth" : {
"desc" : "蓝牙将用于控制和管理您的智能门锁"
},
"scope.userLocation" : {
"desc" : "获取您的位置信息将用于智能门锁的位置服务"
}
},
"requiredPrivateInfos" : [ "getLocation" ],
"usingComponents" : true,
"lazyCodeLoading" : "requiredComponents"
"name": "wx-starlock",
"appid": "__UNI__933D519",
"description": "",
"versionName": "1.2.0",
"versionCode": "34",
"transformPx": false,
"mp-weixin": {
"appid": "wx9829a39e65550757",
"setting": {
"urlCheck": true,
"minified": true
},
"vueVersion" : "3"
"permission": {
"scope.bluetooth": {
"desc": "蓝牙将用于控制和管理您的智能门锁"
},
"scope.userLocation": {
"desc": "获取您的位置信息将用于智能门锁的位置服务"
}
},
"requiredPrivateInfos": ["getLocation"],
"usingComponents": true,
"lazyCodeLoading": "requiredComponents",
"optimization": {
"subPackages": true
}
},
"vueVersion": "3"
}

View File

@ -28,6 +28,7 @@
"stylelint-config-standard": "^37.0.0",
"unocss": "^65.4.3",
"unocss-preset-weapp": "^65.4.1",
"vite-plugin-eslint": "^1.8.1"
"vite-plugin-eslint": "^1.8.1",
"postcss-scss": "^4.0.9"
}
}

1052
pages.json

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,11 @@
<template>
<view>
<view class="title">摸亮触摸屏</view>
<image src="/static/images/icon_lock_touch_screen.png" mode="aspectFill" class="icon"></image>
<image
src="https://oss-lock.xhjcn.ltd/mp/icon_lock_touch_screen.png"
mode="aspectFill"
class="icon"
></image>
<view class="tips">摸亮触摸屏锁进入可添加状态点击下一步</view>
<view @click="toSearchDevice" class="button">下一步</view>
</view>

View File

@ -14,10 +14,13 @@
@click="connect(device)"
>
<view class="device" style="justify-content: flex-start">
<image class="device-lock" src="/static/images/icon_door_lock.png"></image>
<image
class="device-lock"
src="https://oss-lock.xhjcn.ltd/mp/icon_door_lock.png"
></image>
<view class="device-name">{{ device.name }}</view>
</view>
<image class="device-add" src="/static/images/icon_add.png"></image>
<image class="device-add" src="https://oss-lock.xhjcn.ltd/mp/icon_add.png"></image>
</view>
</view>
</scroll-view>

View File

@ -120,7 +120,7 @@
id: 1,
latitude: res.latitude,
longitude: res.longitude,
iconPath: '/static/images/icon_address.png',
iconPath: 'https://oss-lock.xhjcn.ltd/mp/icon_address.png',
width: '48rpx',
height: '48rpx'
}

View File

@ -2,7 +2,7 @@
<view>
<view class="flex justify-center flex-col pt-20">
<image
src="/static/images/icon_add_card.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_card.png"
mode="aspectFill"
class="mx-[200rpx] w-350 h-350"
></image>

View File

@ -3,13 +3,13 @@
<view class="flex justify-center flex-col pt-10 text-align-center text-base">
<image
v-if="showProcess"
src="/static/images/icon_add_face_1.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_face_1.png"
mode="widthFix"
class="mx-[100rpx] w-550 mt-5 rounded-2xl"
></image>
<image
v-else
src="/static/images/icon_add_face_2.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_face_2.png"
mode="widthFix"
class="mx-[100rpx] w-550 mt-5 rounded-2xl"
></image>

View File

@ -6,7 +6,7 @@
</view>
<view v-if="showProcess" class="mt-5 font-bold">({{ process }}/{{ maxProcess }})</view>
<image
:src="`/static/images/icon_fingerprint_${process}.png`"
:src="`https://oss-lock.xhjcn.ltd/mp/icon_fingerprint_${process}.png`"
mode="widthFix"
class="mx-[250rpx] w-250 mt-5"
></image>

View File

@ -2,7 +2,7 @@
<view>
<view class="flex justify-center flex-col pt-20">
<image
src="/static/images/icon_add_palm_vein.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_palm_vein.png"
mode="aspectFill"
class="mx-[125rpx] w-500 h-500"
></image>

View File

@ -2,7 +2,7 @@
<view>
<view class="flex justify-center flex-col pt-20">
<image
src="/static/images/icon_add_remote.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_remote.png"
mode="aspectFill"
class="mx-[200rpx] w-350 h-350"
></image>

View File

@ -29,7 +29,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -47,7 +47,7 @@
<view class="item" @click="toDetail(item)">
<image
class="item-left"
src="/static/images/icon_card_white.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_card_white.png"
mode="aspectFill"
></image>
<view class="item-right">

View File

@ -29,7 +29,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -47,7 +47,7 @@
<view class="item" @click="toDetail(item)">
<image
class="item-left"
src="/static/images/icon_face_white.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_face_white.png"
mode="aspectFill"
></image>
<view class="item-right">

View File

@ -29,7 +29,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -47,7 +47,7 @@
<view class="item" @click="toDetail(item)">
<image
class="item-left"
src="/static/images/icon_fingerprint_white.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_fingerprint_white.png"
mode="aspectFill"
></image>
<view class="item-right">

View File

@ -29,7 +29,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -48,7 +48,7 @@
<view class="item-left rounded-50% bg-#2863f6 flex items-center justify-center">
<image
class="w-50 h-50"
src="/static/images/icon_palm_vein_white.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_palm_vein_white.png"
mode="aspectFill"
></image>
</view>

View File

@ -29,7 +29,7 @@
<view v-if="passwordList.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -47,7 +47,7 @@
<view class="password" @click="toPasswordDetail(password)">
<image
class="password-left"
src="/static/images/icon_password.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_password.png"
mode="aspectFill"
></image>
<view class="password-right">

View File

@ -58,7 +58,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>

View File

@ -29,7 +29,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -48,7 +48,7 @@
<view class="item-left rounded-50% bg-#2863f6 flex items-center justify-center">
<image
class="w-80 h-80"
src="/static/images/icon_remote_white.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_remote_white.png"
mode="aspectFill"
></image>
</view>

View File

@ -17,7 +17,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -45,7 +45,7 @@
<image
class="w-48 h-48 m-a mt-2.5"
mode="aspectFill"
src="/static/images/icon_sync.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_sync.png"
></image>
<view>同步记录</view>
</view>

View File

@ -29,7 +29,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -47,7 +47,11 @@
<view class="item" @click="toDetail(item)">
<image
class="item-left rounded-50%"
:src="item.headUrl === '' ? '/static/images/icon_user.png' : item.headUrl"
:src="
item.headUrl === ''
? 'https://oss-lock.xhjcn.ltd/mp/icon_user.png'
: item.headUrl
"
mode="aspectFill"
></image>
<view class="item-right">

View File

@ -29,7 +29,7 @@
<view v-if="keyList.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -47,7 +47,9 @@
<view class="key" @click="toKeyDetail(key)">
<image
class="key-left"
:src="key.headUrl === '' ? '/static/images/icon_user.png' : key.headUrl"
:src="
key.headUrl === '' ? 'https://oss-lock.xhjcn.ltd/mp/icon_user.png' : key.headUrl
"
mode="aspectFill"
></image>
<view class="key-right">
@ -57,13 +59,13 @@
class="key-admin"
mode="aspectFill"
v-if="key.remoteEnable === 1"
src="/static/images/icon_remote_unlock.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_remote_unlock.png"
></image>
<image
class="key-admin"
mode="aspectFill"
v-if="key.keyRight === 1"
src="/static/images/icon_admin.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_admin.png"
></image>
<view
class="key-status"

View File

@ -34,7 +34,7 @@
<view class="lock-list" v-if="!penging">
<view v-if="lockList.length === 0 && lockSearch.searchStr === '' && !focus">
<image
src="/static/images/icon_add_round.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_round.png"
mode="aspectFill"
class="button-add-big"
@click="toSearchDevice"
@ -59,7 +59,10 @@
>
<view class="lock" @click="toLockDeatil(lock)">
<view class="lock-top">
<image class="lock-image-lock" src="/static/images/icon_lock.png"></image>
<image
class="lock-image-lock"
src="https://oss-lock.xhjcn.ltd/mp/icon_lock.png"
></image>
<view class="lock-top-right">
<view class="lock-top-right-power">
<image
@ -131,7 +134,7 @@
</scroll-view>
<image
v-if="lockList.length !== 0"
src="/static/images/icon_add_round.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_add_round.png"
mode="aspectFill"
class="button-add"
@click="toSearchDevice"

View File

@ -15,7 +15,7 @@
<view class="top">
<image
class="top-background"
src="/static/images/background_main.jpg"
src="https://oss-lock.xhjcn.ltd/mp/background_main.jpg"
mode="aspectFill"
></image>
<view style="width: 100%; height: 50rpx">
@ -26,7 +26,11 @@
mode="aspectFill"
></image>
<view class="power-text">{{ $bluetooth.currentLockInfo.electricQuantity }}%</view>
<image class="power-tips" src="/static/images/icon_tips.png" mode="aspectFill"></image>
<image
class="power-tips"
src="https://oss-lock.xhjcn.ltd/mp/icon_tips.png"
mode="aspectFill"
></image>
</view>
</view>
<view class="switch" @click="openDoorOperate('open')" @longpress="openDoorOperate('close')">
@ -35,7 +39,11 @@
<view class="switch-text">点击开锁长按闭锁</view>
<view class="bottom">
<view class="bottom-side">
<image class="bottom-icon" src="/static/images/icon_role.png" mode="aspectFill"></image>
<image
class="bottom-icon"
src="https://oss-lock.xhjcn.ltd/mp/icon_role.png"
mode="aspectFill"
></image>
<view>{{
$lock.getRole(
$bluetooth.currentLockInfo.userType,
@ -48,8 +56,8 @@
class="bottom-icon"
:src="
$bluetooth.currentLockInfo.appUnlockOnline
? '/static/images/icon_cloud_active.png'
: '/static/images/icon_cloud.png'
? 'https://oss-lock.xhjcn.ltd/mp/icon_cloud_active.png'
: 'https://oss-lock.xhjcn.ltd/mp/icon_cloud.png'
"
mode="aspectFill"
style="width: 40rpx; height: 40rpx"
@ -65,7 +73,7 @@
</view>
<view class="menu">
<view class="menu-title">
<image class="menu-image" src="/static/images/icon_menu.png"></image>
<image class="menu-image" src="https://oss-lock.xhjcn.ltd/mp/icon_menu.png"></image>
<view>功能</view>
</view>
<view class="menu-main">
@ -76,7 +84,7 @@
>
<image
class="menu-main-image transform-scale-90"
src="/static/images/icon_key.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_key.png"
></image>
<view>电子钥匙</view>
</view>
@ -88,7 +96,10 @@
class="menu-main-view"
@click="$basic.routeJump({ name: 'passwordList' })"
>
<image class="menu-main-image" src="/static/images/icon_password_green.png"></image>
<image
class="menu-main-image"
src="https://oss-lock.xhjcn.ltd/mp/icon_password_green.png"
></image>
<view>密码</view>
</view>
<view
@ -101,7 +112,7 @@
>
<image
class="menu-main-image transform-scale-110"
src="/static/images/icon_card.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_card.png"
></image>
<view></view>
</view>
@ -113,7 +124,10 @@
class="menu-main-view"
@click="$basic.routeJump({ name: 'fingerprintList' })"
>
<image class="menu-main-image" src="/static/images/icon_fingerprint.png"></image>
<image
class="menu-main-image"
src="https://oss-lock.xhjcn.ltd/mp/icon_fingerprint.png"
></image>
<view>指纹</view>
</view>
<view
@ -124,7 +138,10 @@
class="menu-main-view transform-scale-110"
@click="$basic.routeJump({ name: 'remoteList' })"
>
<image class="menu-main-image" src="/static/images/icon_remote.png"></image>
<image
class="menu-main-image"
src="https://oss-lock.xhjcn.ltd/mp/icon_remote.png"
></image>
<view>遥控</view>
</view>
<view
@ -135,7 +152,10 @@
class="menu-main-view"
@click="$basic.routeJump({ name: 'faceList' })"
>
<image class="menu-main-image" src="/static/images/icon_face.png"></image>
<image
class="menu-main-image"
src="https://oss-lock.xhjcn.ltd/mp/icon_face.png"
></image>
<view>人脸</view>
</view>
<view
@ -146,7 +166,10 @@
class="menu-main-view"
@click="$basic.routeJump({ name: 'palmVeinList' })"
>
<image class="menu-main-image" src="/static/images/icon_palm_vein.png"></image>
<image
class="menu-main-image"
src="https://oss-lock.xhjcn.ltd/mp/icon_palm_vein.png"
></image>
<view>掌静脉</view>
</view>
<view
@ -156,7 +179,7 @@
>
<image
class="menu-main-image transform-scale-140"
src="/static/images/icon_admin_black.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_admin_black.png"
></image>
<view>授权管理员</view>
</view>
@ -164,7 +187,10 @@
class="menu-main-view transform-scale-105"
@click="$basic.routeJump({ name: 'recordList' })"
>
<image class="menu-main-image" src="/static/images/icon_record.png"></image>
<image
class="menu-main-image"
src="https://oss-lock.xhjcn.ltd/mp/icon_record.png"
></image>
<view>操作记录</view>
</view>
<view
@ -174,16 +200,20 @@
>
<image
class="menu-main-image transform-scale-110"
src="/static/images/icon_remind.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_remind.png"
></image>
<view>消息提醒</view>
</view>
</view>
</view>
<view class="setting" @click="$basic.routeJump({ name: 'setting' })">
<image class="setting-image" src="/static/images/icon_setting.png"></image>
<image class="setting-image" src="https://oss-lock.xhjcn.ltd/mp/icon_setting.png"></image>
<view class="setting-text">设置</view>
<image class="setting-arrow" mode="aspectFill" src="/static/images/icon_arrow.png"></image>
<image
class="setting-arrow"
mode="aspectFill"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
></image>
</view>
</scroll-view>
<up-popup
@ -198,8 +228,8 @@
class="popup-background"
:src="
typeValue === 'close'
? '/static/images/background_close_door.png'
: '/static/images/background_open_door.png'
? 'https://oss-lock.xhjcn.ltd/mp/background_close_door.png'
: 'https://oss-lock.xhjcn.ltd/mp/background_open_door.png'
"
mode="aspectFill"
/>

View File

@ -4,29 +4,49 @@
<view class="view">
<view class="view-button" @click="toUsereInfo">
<view>个人信息</view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
<view class="view-line"></view>
<label for="contact">
<view class="view-button">
<view>客服</view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
</label>
<view class="view-line"></view>
<view class="view-button" @click="toWebview()">
<view>公司介绍</view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
<view class="view-line"></view>
<view class="view-button" @click="toWebview('userAgreement')">
<view>用户协议</view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
<view class="view-line"></view>
<view class="view-button" @click="toWebview('privacy')">
<view>隐私政策</view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
</view>
<view class="env" v-if="env">

View File

@ -15,7 +15,7 @@
<view v-if="notificationList.length === 0">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -36,7 +36,7 @@
<view v-if="notification.readAt === 0">
<image
class="icon"
src="/static/images/icon_notification_unread.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_notification_unread.png"
mode="aspectFill"
></image>
<view class="point"></view>
@ -44,7 +44,7 @@
<image
v-else
class="icon"
src="/static/images/icon_notification_read.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_notification_read.png"
mode="aspectFill"
></image>
<view>
@ -76,7 +76,11 @@
@click="deleteAllNotification"
v-if="isLogin && requestFinished && notificationList.length !== 0"
>
<image class="delete-image" src="/static/images/icon_delete.png" mode="aspectFill" />
<image
class="delete-image"
src="https://oss-lock.xhjcn.ltd/mp/icon_delete.png"
mode="aspectFill"
/>
</view>
<button
open-type="getPhoneNumber"

View File

@ -29,7 +29,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -52,9 +52,13 @@
<image
class="w-40 h-40"
v-if="info?.id === item.id && info?.openLockType === item.openLockType"
src="/static/images/icon_select.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_select.png"
></image>
<image
v-else
class="w-40 h-40"
src="https://oss-lock.xhjcn.ltd/mp/icon_not_select.png"
></image>
<image v-else class="w-40 h-40" src="/static/images/icon_not_select.png"></image>
</view>
</view>
<view class="line"></view>

View File

@ -22,7 +22,7 @@
<view v-if="list.length === 0">
<image
class="w-150 h-150 transform-translate-x-[-50%] mt-300rpx mr-a mb-20rpx ml-50%"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="text-center text-base text-#999999">暂无数据</view>

View File

@ -25,7 +25,7 @@
<view v-if="list.length === 0 && requestFinished">
<image
class="empty-list"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="empty-list-text">暂无数据</view>
@ -48,9 +48,13 @@
<image
class="w-40 h-40"
v-if="info?.id === item.id && info?.openLockType === item.openLockType"
src="/static/images/icon_select.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_select.png"
></image>
<image
v-else
class="w-40 h-40"
src="https://oss-lock.xhjcn.ltd/mp/icon_not_select.png"
></image>
<image v-else class="w-40 h-40" src="/static/images/icon_not_select.png"></image>
</view>
</view>
<view class="line"></view>

View File

@ -2,19 +2,23 @@
<view>
<view class="mx-4 pt-5 text-base">
<view class="font-bold">请谨慎选择您家的开门方向(如果选择错误将无法正常开关门)</view>
<image src="/static/images/icon_open_direction.png" mode="widthFix" class="w-full"></image>
<image
src="https://oss-lock.xhjcn.ltd/mp/icon_open_direction.png"
mode="widthFix"
class="w-full"
></image>
<view class="flex items-center justify-between mx-10 mt-8">
<view @click="updateValue(1)" class="flex items-center">
<image
class="w-40 h-40"
v-if="value === 1"
src="/static/images/icon_select.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_select.png"
mode="aspectFill"
></image>
<image
class="w-40 h-40"
v-else
src="/static/images/icon_not_select.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_not_select.png"
mode="aspectFill"
></image>
<view class="ml-2">左开</view>
@ -23,13 +27,13 @@
<image
v-if="value === 2"
class="w-40 h-40"
src="/static/images/icon_select.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_select.png"
mode="aspectFill"
></image>
<image
class="w-40 h-40"
v-else
src="/static/images/icon_not_select.png"
src="https://oss-lock.xhjcn.ltd/mp/icon_not_select.png"
mode="aspectFill"
></image>
<view class="ml-2">右开</view>

View File

@ -22,7 +22,7 @@
<view v-if="list.length === 0">
<image
class="w-150 h-150 transform-translate-x-[-50%] mt-300rpx mr-a mb-20rpx ml-50%"
src="/static/images/background_empty_list.png"
src="https://oss-lock.xhjcn.ltd/mp/background_empty_list.png"
mode="aspectFill"
></image>
<view class="text-center text-base text-#999999">暂无数据</view>

View File

@ -37,8 +37,16 @@
<view class="ml-a">
<view class="flex items-center" @click="isAllDay = isAllDay === 1 ? 0 : 1">
<view class="mr-2">全天</view>
<image class="w-40 h-40" v-if="isAllDay" src="/static/images/icon_select.png"></image>
<image v-else class="w-40 h-40" src="/static/images/icon_not_select.png"></image>
<image
class="w-40 h-40"
v-if="isAllDay"
src="https://oss-lock.xhjcn.ltd/mp/icon_select.png"
></image>
<image
v-else
class="w-40 h-40"
src="https://oss-lock.xhjcn.ltd/mp/icon_not_select.png"
></image>
</view>
</view>
</view>

View File

@ -6,7 +6,11 @@
<view>头像</view>
<view class="view-button" style="padding: 0">
<image class="avatar" :src="userInfo.headUrl" mode="aspectFill"></image>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
</view>
</label>
@ -15,7 +19,11 @@
<view>昵称</view>
<view class="view-button" style="padding: 20rpx 0">
<view class="name-info">{{ userInfo.nickname }}</view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
</view>
<view class="view-line"></view>
@ -25,7 +33,11 @@
<view class="view-button" style="padding: 0">
<view v-if="userInfo.mobile !== ''" class="info">{{ userInfo.mobile }}</view>
<view v-else class="red-dot"></view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
</view>
</label>
@ -35,13 +47,21 @@
<view class="view-button" style="padding: 0">
<view v-if="userInfo.email !== ''" class="info">{{ userInfo.email }}</view>
<view v-else class="red-dot"></view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
</view>
<view class="view-line"></view>
<view class="view-button" @click="toUpdatePassword">
<view>重置密码</view>
<image class="icon-arrow" src="/static/images/icon_arrow.png" mode="aspectFill"></image>
<image
class="icon-arrow"
src="https://oss-lock.xhjcn.ltd/mp/icon_arrow.png"
mode="aspectFill"
></image>
</view>
<view class="view-line"></view>
<view class="view-button">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Some files were not shown because too many files have changed in this diff Show More