mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:13:26 +08:00
uniapp【新增】: 头部返回增加返回首页icon
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
<view class="page-back">
|
<view class="page-back">
|
||||||
<image v-if="props.isBack" @click="hanlderBack" class="back"
|
<image v-if="props.isBack" @click="hanlderBack" class="back"
|
||||||
:src="handleStaticResources('/static/images/back.png')"></image>
|
:src="handleStaticResources('/static/images/back.png')"></image>
|
||||||
|
<image v-if="props.isBack" @click="handleRouteSwitchTab(RouteSwitchTabEnum.home)" class="back"
|
||||||
|
:src="handleStaticResources('/static/images/back-home.png')"></image>
|
||||||
<text class="name" v-if="props.mode === 'left'"
|
<text class="name" v-if="props.mode === 'left'"
|
||||||
:style="{ 'color': props.titleColor }">{{ props.title }}</text>
|
:style="{ 'color': props.titleColor }">{{ props.title }}</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -18,7 +20,9 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSystemInfo } from '@/core/hooks';
|
import { useSystemInfo } from '@/core/hooks';
|
||||||
import { handleStaticResources } from '@/core/utils';
|
import { handleStaticResources, handleRouteSwitchTab } from '@/core/utils';
|
||||||
|
import { RouteSwitchTabEnum } from '@/core/enum';
|
||||||
|
|
||||||
const { menuButtonHeight } = useSystemInfo();
|
const { menuButtonHeight } = useSystemInfo();
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
|
|||||||
BIN
CoreCms.Net.Uni-App/CoreShop/static/images/back-home.png
Normal file
BIN
CoreCms.Net.Uni-App/CoreShop/static/images/back-home.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 932 B |
Reference in New Issue
Block a user