首页完善

This commit is contained in:
魏啾
2024-05-10 09:40:06 +08:00
parent 678c8fa053
commit 09661b8b0b
13 changed files with 707 additions and 297 deletions

View File

@@ -294,23 +294,23 @@
uni.getLocation({
type: 'wgs84',
success: (res) => {
console.log(res, '获取距离')
// console.log(res, '获取距离')
// this.lng = res.longitude
// this.lat = res.latitude
// this.positionindex()
// // 测试
let datastorage = {
address: '西安市', //地址
lng: res.longitude,
lat: res.latitude,
}
uni.cache.set('getLocationstorage', datastorage);
},
fail: (err) => {
// this.positionindex()
console.log(err, '获取错误')
}
});
// 测试
let datastorage = {
address: '西安市', //地址
lng: '108.949158',
lat: '34.301731',
}
uni.cache.set('getLocationstorage', datastorage);
setTimeout(() => {
this.GetTop()
}, 1000)
@@ -335,7 +335,9 @@
uni.pro.navigateTo('index/uindexlist')
},
fivecontentclick(item) {
uni.pro.navigateTo('product/index', item)
uni.pro.navigateTo('product/index',{
id:item.id
})
},
updateCity(data) {
thiss.list[data].end_times = 0;
@@ -357,7 +359,6 @@
})
},
changeParentValue(newValue) {
console.log(newValue)
this.itemStyle = newValue
},
getStyle(e) {
@@ -786,7 +787,7 @@
.fivecontent_item_boxitemleft {
margin-left: 24rpx;
flex: auto;
flex: 1;
.fivecontent_item_boxitemleftone {
width: 100%;
@@ -799,6 +800,10 @@
}
view {
width: 300rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap; //溢出不换行white-space:nowrap; //溢出不换行
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 28rpx;