diff --git a/components/common/product-seckill-card.vue b/components/common/product-seckill-card.vue index 3691c60..9698248 100644 --- a/components/common/product-seckill-card.vue +++ b/components/common/product-seckill-card.vue @@ -12,9 +12,8 @@ - - - + @@ -227,6 +226,7 @@ export default { .tag_image { height: 28rpx; display: block; + flex-shrink: 0; } } diff --git a/manifest.json b/manifest.json index 88a4896..03a69be 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__4910728", "description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。", "versionName" : "1.0.3", - "versionCode" : 165, + "versionCode" : 167, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/home/home.vue b/pages/home/home.vue index 7cae72f..b6b1c08 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -4,7 +4,8 @@ - + @@ -62,8 +63,7 @@ - + @@ -335,15 +335,15 @@ export default { const menuButton = uni.getMenuButtonBoundingClientRect(); const systemInfo = uni.getSystemInfoSync(); const statusBarHeight = systemInfo.statusBarHeight || 0; - + const menuButtonHeight = menuButton.height; const menuButtonTop = menuButton.top; const menuButtonLeft = menuButton.left; const windowWidth = systemInfo.windowWidth; - + // Calculate padding-right to avoid the capsule button (add extra margin of 10px) const paddingRight = windowWidth - menuButtonLeft + 10; - + // Dynamic styles for MP this.mpHeaderStyle = { paddingTop: `${menuButtonTop}px`, @@ -387,9 +387,9 @@ export default { url().then((res) => { console.log("获取秒杀", res); if (res.bizcode === 100) { - this.seckillGoodsList = []; - if(res.data?.activityId){ - this.onGetSeckillGoodsList(res.data.activityId, "seckillGoodsList"); + this.seckillGoodsList = []; + if (res.data?.activityId) { + this.onGetSeckillGoodsList(res.data.activityId, "seckillGoodsList"); } } }); @@ -397,7 +397,7 @@ export default { // 获取秒杀商品 onGetSeckillGoodsList(activityId, key) { - + getSeckillGoodsList({ activityId: activityId, page: 1, @@ -718,7 +718,8 @@ export default { .home_warp { background: #f4f4f4; height: calc(100vh - env(safe-area-inset-bottom)); // 是底部的导航栏高度 - overflow: auto; + overflow-y: auto; + overflow-x: hidden; position: relative; &.iosplatformType { @@ -748,6 +749,7 @@ export default { z-index: 999; background: linear-gradient(270deg, #af39c4 0%, #7732ff 100%); padding: calc(var(--status-bar-height) + 20rpx) 30rpx 20rpx; + box-sizing: border-box; /* 解决部分机型下 fixed 定位底部出现 1px 渲染缝隙(白线)的问题 */ border-bottom: 1px solid transparent; border-image: linear-gradient(270deg, #af39c4 0%, #7732ff 100%) 1; @@ -932,7 +934,7 @@ export default { display: flex; justify-content: center; - .yp_item_image{ + .yp_item_image { width: 100%; height: 176rpx; border-radius: 15rpx; diff --git a/utils/config.js b/utils/config.js index df11c16..1605f29 100644 --- a/utils/config.js +++ b/utils/config.js @@ -5,7 +5,7 @@ export const BASE_URL = "https://api.tbmall.xin"; //生产 export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产 - + // export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试 // export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试 // https://h.o.tbmall.xin/#/