修改图片地址引用为在线地址

This commit is contained in:
小朱 2025-04-15 11:45:34 +08:00
parent 00e9760adc
commit 2ec2dfb5b8
2 changed files with 20 additions and 14 deletions

View File

@ -5,6 +5,7 @@
<view class=""> <view class="">
<view class="cu-item"> <view class="cu-item">
<view class="cu-avatar round txImg"> <view class="cu-avatar round txImg">
<image :src= "`${imgPath}static/image/tx.png`" mode=""></image>
</view> </view>
</view> </view>
</view> </view>
@ -53,6 +54,8 @@
showModelMessage, showModelMessage,
getUrlParams getUrlParams
} from '@/utils/tools.js'; } from '@/utils/tools.js';
import config from '@/utils/config';
const imgPath = config.imgPath;
const isSeleid = ref(-1); const isSeleid = ref(-1);
const userInfo = ref(null) const userInfo = ref(null)
onMounted(() => { onMounted(() => {
@ -309,12 +312,15 @@
} }
.txImg { .txImg {
background-image: url("../../static/image/tx.png");
width: 50px; width: 50px;
height: 50px; height: 50px;
margin: 0px 10px; margin: 0px 10px;
margin-top: -5px; margin-top: -5px;
} }
.txImg image{
width: 50px;
height: 50px;
}
.itemtwo { .itemtwo {
width: 60%; width: 60%;

View File

@ -169,63 +169,63 @@
} }
const bzxx = ref("") const bzxx = ref("")
const ebikelingjiantop = ref([{ const ebikelingjiantop = ref([{
image: '/static/userui/ebike/车把.png', image:`${imgPath}static/userui/ebike/车把.png`,
name: '车把', name: '车把',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/车头1.png', image: `${imgPath}static/userui/ebike/车头1.png`,
name: '车头', name: '车头',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/车灯.png', image: `${imgPath}static/userui/ebike/车灯.png`,
name: '车灯', name: '车灯',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/二维码.png', image: `${imgPath}static/userui/ebike/二维码.png`,
name: '二维码', name: '二维码',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/车筐.png', image: `${imgPath}static/userui/ebike/车筐.png`,
name: '车筐', name: '车筐',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/线路.png', image: `${imgPath}static/userui/ebike/线路.png`,
name: '线路', name: '线路',
selected: false selected: false
} }
]); ]);
const ebikelingjianend = ref([{ const ebikelingjianend = ref([{
image: '/static/userui/ebike/车座.png', image: `${imgPath}static/userui/ebike/车座.png`,
name: '车座', name: '车座',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/电池.png', image: `${imgPath}static/userui/ebike/电池.png`,
name: '电池', name: '电池',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/车轮.png', image: `${imgPath}static/userui/ebike/车轮.png`,
name: '车轮', name: '车轮',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/脚蹬.png', image: `${imgPath}static/userui/ebike/脚蹬.png`,
name: '脚蹬', name: '脚蹬',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/车撑.png', image: `${imgPath}static/userui/ebike/车撑.png`,
name: '车撑', name: '车撑',
selected: false selected: false
}, },
{ {
image: '/static/userui/ebike/挡板.png', image: `${imgPath}static/userui/ebike/挡板.png`,
name: '挡板', name: '挡板',
selected: false selected: false
} }