提交 fec679f5 authored 作者: 刘旭's avatar 刘旭

优化展示页面

上级 5878f23a
...@@ -154,6 +154,7 @@ onLoad((options: any) => { ...@@ -154,6 +154,7 @@ onLoad((options: any) => {
initProductLine(options.id); initProductLine(options.id);
} else if (options.collectionId) { } else if (options.collectionId) {
flag.value = false; flag.value = false;
// lineId.value = options.id;
// 把加入购物车变成禁用状态 // 把加入购物车变成禁用状态
initProductLine(options.id); initProductLine(options.id);
} else { } else {
...@@ -293,6 +294,7 @@ let heightChange = () => { ...@@ -293,6 +294,7 @@ let heightChange = () => {
// 获取图片尺寸 // 获取图片尺寸
let getImageInfo = () => { let getImageInfo = () => {
console.log('获取图片');
lineList.value.forEach((item: any) => { lineList.value.forEach((item: any) => {
uni.getImageInfo({ uni.getImageInfo({
src: baseUrl + item.url, src: baseUrl + item.url,
...@@ -776,7 +778,6 @@ $nav-heigth: var(--window-bottom); ...@@ -776,7 +778,6 @@ $nav-heigth: var(--window-bottom);
} }
.right-cates { .right-cates {
box-sizing: border-box;
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
...@@ -800,13 +801,9 @@ $nav-heigth: var(--window-bottom); ...@@ -800,13 +801,9 @@ $nav-heigth: var(--window-bottom);
max-width: 420px; max-width: 420px;
margin: 0 auto; margin: 0 auto;
// .u-navbar-content-title { .u-navbar-content-title {
// left: 36% left: 36% !important
// } }
}
:deep(.u-navbar-content-title) {
left: 36%;
} }
:deep(.uni-tab__cart-box) { :deep(.uni-tab__cart-box) {
......
...@@ -36,8 +36,6 @@ function request(url: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', data?: ...@@ -36,8 +36,6 @@ function request(url: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', data?:
header: header, header: header,
responseType, responseType,
success(res: any) { success(res: any) {
console.log(res);
uni.hideLoading(); uni.hideLoading();
if (res.data.code == 200) { if (res.data.code == 200) {
resolve(res); resolve(res);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论