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

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

View File

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