refactor: 更新项目图标和配置并优化界面布局

- 将favicon从png格式替换为ico格式,并更新相关引用
- 修改项目标题从"借还柜"变为"智柜通"
- 优化产品绑定弹窗样式,增加标题和边距
- 调整个人中心网格布局,隐藏商品管理入口
- 为ProductList组件添加scss支持
This commit is contained in:
dzq 2025-06-04 09:51:01 +08:00
parent bd0cce7aab
commit 2c2ca7745c
11 changed files with 13 additions and 12 deletions

2
.env
View File

@ -1,7 +1,7 @@
# 所有环境的环境变量(命名必须以 VITE_ 开头)
## 项目标题
VITE_APP_TITLE = 借还柜
VITE_APP_TITLE = 智柜通
## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = hash

View File

@ -1,5 +1,5 @@
<div align="center">
<img alt="logo" width="120" height="120" src="./public/favicon.png">
<img alt="logo" width="120" height="120" src="./public/favicon.ico">
<h1>Mobile + Vue = MobVue</h1>
</div>

View File

@ -1,5 +1,5 @@
<div align="center">
<img alt="logo" width="120" height="120" src="./public/favicon.png">
<img alt="logo" width="120" height="120" src="./public/favicon.ico">
<h1>Mobile + Vue = MobVue</h1>
</div>

View File

@ -6,7 +6,7 @@
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
/>
<link rel="icon" href="/favicon.png" type="image/png" />
<link rel="icon" href="/favicon.ico" type="image/png" />
<link rel="stylesheet" href="/app-loading.css" />
<title>%VITE_APP_TITLE%</title>
</head>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@ -11,7 +11,7 @@ const props = withDefaults(defineProps<Props>(), {
<template>
<div>
<h1 un-flex-y-center>
<img src="/favicon.png" un-w-38px un-h-38px>
<img src="/favicon.ico" un-w-38px un-h-38px>
<span un-ml-16px un-text-32px un-fw400>MobVue</span>
</h1>
<h2 un-color-hex-969799 un-text-14px un-fw400>

View File

@ -84,25 +84,25 @@ wxStore.refreshBalance();
<van-col span="24">
<div class="section-title text-sm font-bold pb-2">个人中心</div>
</van-col>
<van-col span="6">
<van-col span="8">
<div class="custom-btn" @click="router.push('/order-list')">
<van-icon name="orders-o" size="20px" />
<span>订单列表</span>
</div>
</van-col>
<van-col span="6">
<!-- <van-col span="6">
<div v-if="wxStore.isCabinetAdmin" class="custom-btn" @click="router.push('/manage/goods')">
<van-icon name="comment-o" size="20px" />
<span>商品管理</span>
</div>
</van-col>
<van-col span="6">
</van-col> -->
<van-col span="8">
<div v-if="wxStore.isCabinetAdmin" class="custom-btn" @click="router.push('/cabinet')">
<van-icon name="manager-o" size="20px" />
<span>柜机管理</span>
</div>
</van-col>
<van-col span="6">
<van-col span="8">
<div v-if="wxStore.isCabinetAdmin" class="custom-btn" @click="router.push('/approval/list')">
<van-icon name="comment-o" size="20px" />
<span>审批中心</span>

View File

@ -256,7 +256,8 @@ async function handleAb98Bind() {
<VanPopup v-model:show="showCartPopup" position="bottom" :style="{ height: '80%' }" round>
<Cart class="detail-container" @cart-close="showCartPopup = false" />
</VanPopup>
<VanPopup v-model:show="showAb98BindPopup" position="center" round>
<VanPopup v-model:show="showAb98BindPopup" position="center" :style="{ padding: '12px' }" round>
<div style="text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 16px;">请绑定汇邦云账号</div>
<van-form @submit="handleAb98Bind">
<van-cell-group inset>
<van-field
@ -281,7 +282,7 @@ async function handleAb98Bind() {
</VanPopup>
</template>
<style scoped>
<style scoped lang="scss">
.product-container {
display: flex;
height: 100vh;