feat:167版本
This commit is contained in:
+14
-12
@@ -4,7 +4,8 @@
|
||||
<view class="home_content_z_warp">
|
||||
<view class="home_header_warp" :style="mpHeaderWarpStyle">
|
||||
<view class="header_title_warp" :style="mpHeaderStyle">
|
||||
<view class="language_warp" :style="mpLanguageStyle" style="width: 100%; justify-content: flex-start;" @click="jumpSearch">
|
||||
<view class="language_warp" :style="mpLanguageStyle" style="flex: 1; justify-content: flex-start;"
|
||||
@click="jumpSearch">
|
||||
<view :style="isMP ? 'display: flex; align-items: center;' : 'margin-top: 10rpx;'">
|
||||
<up-image src="https://static.tbmall.xin/static/home/search_b.png" width="20" height="20"
|
||||
bgColor="#f1f6ff00"></up-image>
|
||||
@@ -62,8 +63,7 @@
|
||||
<!-- <up-loading-icon :show="productLoading"></up-loading-icon> -->
|
||||
<view class="yp_item" v-for="item in faddishProduct" :key="item.id" @click.stop="jumpInfo(item)">
|
||||
<view class="yp_item_image_wrapper">
|
||||
<image :src="item.url" mode="aspectFill" class="yp_item_image" shape="square"
|
||||
radius="15"></image>
|
||||
<image :src="item.url" mode="aspectFill" class="yp_item_image" shape="square" radius="15"></image>
|
||||
<!-- <up-image :src="item.url" width="100%" height="88" bgColor="#f1f6ff00" shape="square"
|
||||
radius="15"></up-image> -->
|
||||
</view>
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user