fix:图片访问

fix:权限修改
This commit is contained in:
dzc committed 2026-10-29 14:25:30 +08:00
1 parent 569884e804
commit 0fafe8762f
78 files changed
+759 -236

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ const toDetail = async (v: any) => {
>
<view class="h-20rpx" />
<view class="flex-row card p-20rpx m-b-20rpx" v-for="(v, i) in pageHook.list" :key="i" @tap="toDetail(v)">
<image class="w-180rpx h-180rpx rounded-12rpx" :src="filePath(v.logoPic)" mode="aspectFill" />
<image class="w-180rpx h-180rpx rounded-12rpx" :src="$fileUrl(filePath(v.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="flex-1 flex-col m-l-20rpx">
<view class="flex-row items-center justify-between">
<view class="flex-row-center sub-text-34">{{ v.name }}</view>
+3 -3
View File
@@ -136,8 +136,8 @@ const toBranchDetail = async (b: any) => {
<view class="card m-b-20rpx overflow-hidden" hover-class="card-hover" v-for="(v, i) in pageHook.list"
:key="v.id ?? i" @tap="toDetail(v)">
<view class="flex p-24rpx">
<image class="w-160rpx h-160rpx rounded-16rpx bg-#F2F6FA my-auto flex-none" :src="filePath(v.logoPic)"
mode="aspectFill" />
<image class="w-160rpx h-160rpx rounded-16rpx bg-#F2F6FA my-auto flex-none" :src="$fileUrl(filePath(v.logoPic))"
mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="flex-1 flex-col m-l-20rpx min-w-0">
<view class="flex items-center">
<text class="sub-text-30 font-bold flex-1 min-w-0 show-line">{{ v.name }}</text>
@@ -188,7 +188,7 @@ const toBranchDetail = async (b: any) => {
<view v-for="(b, bi) in v._children || []" :key="b.id ?? bi" class="branch-item"
hover-class="branch-item-hover" @tap.stop="toBranchDetail(b)">
<image v-if="b.logoPic" class="w-56rpx h-56rpx rounded-10rpx bg-#F2F6FA flex-none"
:src="filePath(b.logoPic)" mode="aspectFill" />
:src="$fileUrl(filePath(b.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(b.logoPic))" />
<view v-else class="branch-logo-fallback flex-row-center">
<tm-icon name="store-2-line" color="#9BBDF6" :size="28" />
</view>
+1 -1
View File
@@ -23,7 +23,7 @@
<view class="bg-white rounded-16rpx p-2 mb-2" v-for="(v, i) in pageHook.list" :key="i">
<view class="flex justify-between items-center text-sm text-gray-800 mb-1">
<view class="flex items-center">
<image class="w-50rpx h-50rpx rounded-8rpx" :src="filePath(v.logoPic)" mode="aspectFill" />
<image class="w-50rpx h-50rpx rounded-8rpx" :src="$fileUrl(filePath(v.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="ml-2">{{ v.merchantName }}</view>
</view>
<view>{{ v.day }}</view>
+1 -1
View File
@@ -259,7 +259,7 @@ const doModuleJump = (item: any) => {
:key="index">
<view class="w-half text-center rounded-1 active:bg-#e8e8e8 duration-200"
@tap="doModuleJump(item)">
<image class="w-80 h-80 px-2 pt-2" :src="item.iconPath" />
<image class="w-80 h-80 px-2 pt-2" :src="$fileUrl(item.iconPath)" @error="$fileRetry(item.iconPath)" />
<tm-text font-size="32">{{ item.text }}</tm-text>
</view>
</view>
+1 -1
View File
@@ -8,7 +8,7 @@
<div class="service-grid">
<div v-for="item in services" :key="item.name" class="service-item" @click="goPage(item)">
<div class="service-icon-wrapper">
<image :src="item.icon" class="service-icon" />
<image :src="$fileUrl(item.icon)" class="service-icon" @error="$fileRetry(item.icon)" />
<view v-if="item.name === 'todo' && todoCount > 0" class="badge">{{ todoCount > 99 ? "99+" :
todoCount }}</view>
</div>
+2 -2
View File
@@ -4,7 +4,7 @@
<view class="flex items-center py-3 px-5">
<view class="flex items-center" v-if="state.userInfo?.sysUser?.userId" @tap="doUserArea">
<image v-if="state.userInfo?.sysUser?.avatar" class="size-100rpx rounded-full"
:src="filePath(state.userInfo.sysUser.avatar)" mode="aspectFill" />
:src="$fileUrl(filePath(state.userInfo.sysUser.avatar))" mode="aspectFill" @error="$fileRetry(filePath(state.userInfo.sysUser.avatar))" />
<image v-else class="w-100rpx h-100rpx rounded-full" src="/static/icon/default-avatar.png"
mode="aspectFill" />
<view class="ml-30rpx">
@@ -32,7 +32,7 @@
<view class="service_item flex items-center justify-between" v-for="(v, i) in state.menuList" :key="i"
@tap="onTabMenu(v)">
<view class="flex-row-center">
<image class="size-40rpx" :src="v.icon" mode="aspectFill" />
<image class="size-40rpx" :src="$fileUrl(v.icon)" mode="aspectFill" @error="$fileRetry(v.icon)" />
<text class="sub-text-28 m-l-20rpx">{{ v.text }}</text>
</view>
<view class="iconfont icon-youjiantou" />
+2 -2
View File
@@ -72,8 +72,8 @@
:class="[state.curMerchantRadioId == item.id ? 'bg-#e8e8e8' : '']" :value="item.id">
<template v-slot:label="checked">
<view class="flex items-center">
<image class="size-80rpx rounded-2 mr-2" :src="filePath(item.logoPic)"
mode="aspectFill" />
<image class="size-80rpx rounded-2 mr-2" :src="$fileUrl(filePath(item.logoPic))"
mode="aspectFill" @error="$fileRetry(filePath(item.logoPic))" />
<tm-text font-size="30">{{ item.name }}</tm-text>
</view>
</template>
+4 -4
View File
@@ -91,7 +91,7 @@ const doRefund = (v: any) => {
<view class="flex-col justify-center card p-3 m-b-20rpx" v-for="(v, i) in pageHook.list" :key="i">
<view class="flex-row">
<image class="size-130rpx rounded-8rpx" :src="filePath(v.logoPic)" mode="aspectFill" />
<image class="size-130rpx rounded-8rpx" :src="$fileUrl(filePath(v.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="flex-1 ml-20rpx">
<view class="flex-row items-center justify-between">
<view class="sub-text-30">{{ v.merchantName }}</view>
@@ -138,9 +138,9 @@ const doRefund = (v: any) => {
<view class="flex items-center w-6/10">
<view class="size-100rpx">
<image v-if="v.payType == '9'" class="size-100rpx rounded-8rpx"
:src="pV.productPic" mode="aspectFill" />
<image v-else class="size-100rpx rounded-8rpx" :src="filePath(pV.productPic)"
mode="aspectFill" />
:src="$fileUrl(pV.productPic)" mode="aspectFill" @error="$fileRetry(pV.productPic)" />
<image v-else class="size-100rpx rounded-8rpx" :src="$fileUrl(filePath(pV.productPic))"
mode="aspectFill" @error="$fileRetry(filePath(pV.productPic))" />
</view>
<view class="ml-2 overflow-hidden">
<view class="sub-text-26 truncate">{{ pV.productName }}</view>
+4 -4
View File
@@ -36,8 +36,8 @@
<view class="card p-20rpx mb-20rpx" v-for="(v, i) in pageHook.list" :key="i" @tap="toDetail(v)">
<view class="flex">
<image class="w-160rpx h-160rpx bg-#eeeeee rounded-12rpx" :src="filePath(v.images)"
mode="aspectFill" />
<image class="w-160rpx h-160rpx bg-#eeeeee rounded-12rpx" :src="$fileUrl(filePath(v.images))"
mode="aspectFill" @error="$fileRetry(filePath(v.images))" />
<view class="ml-20rpx flex-1 overflow-hidden">
<view class="sub-text-32 truncate">{{ v.name }}</view>
<view class="second-text-26 flex justify-between my-6rpx">
@@ -57,8 +57,8 @@
<view class="flex mt-2">
<view class="w-180rpx flex-col items-center mr-20rpx" v-for="(pV, pI) in v.featuredProducts"
:key="pI">
<image class="size-180rpx rounded-12rpx bg-#eeeeee" :src="filePath(pV.coverImage)"
mode="aspectFill" />
<image class="size-180rpx rounded-12rpx bg-#eeeeee" :src="$fileUrl(filePath(pV.coverImage))"
mode="aspectFill" @error="$fileRetry(filePath(pV.coverImage))" />
<view class="w-full mt-4rpx sub-text-24 truncate">{{ pV.title }}</view>
<view class="w-full flex justify-between">
<text class="text-26 color-red!">
+1 -1
View File
@@ -94,7 +94,7 @@ const toDetail = async (v: any) => {
</template>
<view class="flex-row card p-20rpx m-b-20rpx" v-for="(v, i) in pageHook.list" :key="i" @tap="toDetail(v)">
<image class="w-180rpx h-180rpx rounded-12rpx my-auto" :src="filePath(v.logoPic)" mode="aspectFill" />
<image class="w-180rpx h-180rpx rounded-12rpx my-auto" :src="$fileUrl(filePath(v.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="flex-1 flex-col m-l-20rpx">
<view class="sub-text-34">
<text class="mr-2">{{ v.name }}</text>
+1 -1
View File
@@ -41,7 +41,7 @@ const toDetail = async (v: any) => {
:auto-clean-list-when-reload="false" :auto-scroll-to-top-when-reload="false" @scroll="pageHook.scroll">
<view class="h-20rpx" />
<view class="flex-row card p-20rpx m-b-20rpx" v-for="(v, i) in pageHook.list" :key="i" @tap="toDetail(v)">
<image class="w-180rpx h-180rpx rounded-12rpx" :src="filePath(v.logoPic)" mode="aspectFill" />
<image class="w-180rpx h-180rpx rounded-12rpx" :src="$fileUrl(filePath(v.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="flex-1 flex-col m-l-20rpx">
<view class="flex-row items-center justify-between">
<view class="flex-row-center sub-text-34">{{ v.name }}</view>
+1 -1
View File
@@ -62,7 +62,7 @@ const toDetail = async (v: any) => {
</view>
</view>
<view class="flex-col card p-20rpx m-b-20rpx" v-for="(v, i) in pageHook.list" :key="i" @tap="toDetail(v)">
<image class="w-100% h-300rpx rounded-12rpx" :src="filePath(v.logoPic)" mode="aspectFill" />
<image class="w-100% h-300rpx rounded-12rpx" :src="$fileUrl(filePath(v.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="flex-1 flex-col m-l-20rpx">
<view class="flex-row items-center justify-between mt-20rpx">
<view class="flex-row-center sub-text-34">{{ v.name }}</view>
+3 -3
View File
@@ -30,7 +30,7 @@
<view class="flex-col justify-center card p-3 m-b-20rpx border-2rpx border-solid border-color-#eeeeee"
v-for="(v, i) in pageHook.list" :key="i">
<view class="flex-row">
<image class="w-160rpx h-212rpx rounded-8rpx" :src="filePath(v.logoPic)" mode="aspectFill" />
<image class="w-160rpx h-212rpx rounded-8rpx" :src="$fileUrl(filePath(v.logoPic))" mode="aspectFill" @error="$fileRetry(filePath(v.logoPic))" />
<view class="flex-1 m-l-20rpx">
<view class="flex-row items-center justify-between">
<view class="flex-row items-center">
@@ -149,8 +149,8 @@
<view class="flex-col justify-center card p-x-15rpx p-y-25rpx m-b-10rpx">
<view class="flex-row items-center">
<image class="w-100rpx h-100rpx rounded-8rpx" :src="filePath(state.curOrder.logoPic)"
mode="aspectFill" />
<image class="w-100rpx h-100rpx rounded-8rpx" :src="$fileUrl(filePath(state.curOrder.logoPic))"
mode="aspectFill" @error="$fileRetry(filePath(state.curOrder.logoPic))" />
<view class="flex-1 flex-col m-l-20rpx">
<view class="flex-row items-center justify-between">
<view class="flex-row items-center">