style: 样式展示问题

This commit is contained in:
2026-06-09 15:20:25 +08:00
parent 5551b08d5a
commit 6dee56e17f
8 changed files with 138 additions and 10 deletions
+5
View File
@@ -16,3 +16,8 @@
- `会员优选`商品卡片点击不再跳转到商品详情页
- 购物车为空时:底部不显示“去结算”
- 会员专区→买商品→支付→支付结果→返回首页「选品广场」;选品广场→买商品→支付→支付结果→返回首页「我的店铺」
## [1.4.1] - 2026-06-09
### 修改
- 我的页面蓝色背景不展示问题
- ai店铺页面nav下展示白色border问题
+9
View File
@@ -0,0 +1,9 @@
### 项目打包配置
- 更改版本号
- 当前版本号`1.4.1`
- 包名:`uni.UNI8B187414`
- 应用名称:`优购商城`
- appId:`__UNI__8B19741`
- api地址`.env`:
- 线上`https://www.qflyqzy.net/yg-api`
- 测试`https://yougoutest.api.riananyoumu.com`
+2 -2
View File
@@ -2,8 +2,8 @@
"name" : "优购商城",
"appid" : "__UNI__8B19741",
"description" : "",
"versionName" : "1.3.9",
"versionCode" : 139,
"versionName" : "1.4.1",
"versionCode" : 141,
"transformPx" : false,
"app-plus" : {
"privacy" : {
+2 -1
View File
@@ -35,7 +35,8 @@
{
"path": "pages/index/aiStore",
"style": {
"navigationBarTitleText": "AI店铺"
"navigationBarTitleText": "AI店铺",
"navigationStyle": "custom"
},
"meta": {
"sync": true,
+1 -1
View File
@@ -483,7 +483,7 @@
position: relative;
display: flex;
justify-content: center;
margin-top: 12rpx;
// margin-top: 12rpx;
}
.tab-item {
+7 -4
View File
@@ -1,7 +1,6 @@
<template>
<view class="pages theme-ai">
<view class="bc">
<!-- <image src="/static/home/bc.png" mode="scaleToFill" /> -->
<view class="bc" :style="bcStyle">
</view>
<view class="con" :style="{ paddingTop: paddingTop + 'px' }">
<view class="con_top flex-center ju-flex-start">
@@ -129,6 +128,10 @@
let paddingTop = ref(20);
paddingTop.value = sysInfo.statusBarHeight + uni.upx2px(88);
const headerBgHeight = computed(() => `${paddingTop.value + uni.upx2px(320)}px`);
const bcStyle = computed(() => ({
height: headerBgHeight.value,
background: 'linear-gradient(135deg, #2c8cfa 0%, #3d5efb 100%)',
}));
let realStatus = ref(0); //是否已经实名认证
let agentLevelObj = {
2: 'home/igency_1.png',
@@ -325,9 +328,9 @@
top: 0;
left: 0;
width: 100%;
height: v-bind('headerBgHeight');
background: url('@/static/index/login_bg.png') no-repeat 100%;
height: auto;
border-radius: 0 0 30rpx 30rpx;
overflow: hidden;
image {
width: 100%;
+107 -2
View File
@@ -72,11 +72,21 @@
<s-menu-tools />
</view>
<cardTabber v-if="props.tabbar" :path="tabbarPath" />
<view v-if="showUpdateProgress" class="update-progress-mask">
<view class="update-progress-card">
<view class="update-progress-title">{{ updateProgressText }}</view>
<view class="update-progress-bar">
<view class="update-progress-bar__fill" :style="{ width: updateProgress + '%' }"></view>
</view>
<view class="update-progress-percent">{{ updateProgress }}%</view>
</view>
</view>
</view>
</template>
<script setup>
import { getCurrentInstance, ref, computed, watch } from 'vue';
import { getCurrentInstance, ref, computed, watch, onMounted, onUnmounted } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import innerNavbar from '@/components/card_navbar/inner-navbar';
import cardNavbar from '@/components/card_navbar/card_navbar';
@@ -178,9 +188,36 @@
const modalStore = sheep.$store('modal');
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
let paddingTop = ref();
paddingTop.value = statusBarHeight + 44;
paddingTop.value = statusBarHeight + uni.upx2px(88);
const tabbarPath = ref('');
const showUpdateProgress = ref(false);
const updateProgress = ref(0);
const updateProgressText = ref('下载中...');
const HOT_UPDATE_PROGRESS_EVENT = '__hot_update_progress__';
const handleUpdateProgress = (payload) => {
if (!payload) return;
const type = String(payload.type || '');
if (type === 'show') {
showUpdateProgress.value = true;
updateProgress.value = 0;
updateProgressText.value = String(payload.text || '下载中...');
return;
}
if (type === 'set') {
showUpdateProgress.value = true;
updateProgress.value = Math.max(0, Math.min(100, Number(payload.percent) || 0));
if (payload.text) updateProgressText.value = String(payload.text);
return;
}
if (type === 'hide') {
showUpdateProgress.value = false;
updateProgress.value = 0;
updateProgressText.value = '下载中...';
}
};
const normalizePath = (p) => {
if (!p) return '';
@@ -200,6 +237,21 @@
onShow(() => updateTabbarPath());
watch(() => props.tabbar, () => updateTabbarPath(), { immediate: true });
onMounted(() => {
if (typeof uni !== 'undefined' && typeof uni.$on === 'function') {
uni.$on(HOT_UPDATE_PROGRESS_EVENT, handleUpdateProgress);
}
if (typeof uni !== 'undefined' && uni.__hotUpdatePendingProgress) {
handleUpdateProgress(uni.__hotUpdatePendingProgress);
}
});
onUnmounted(() => {
if (typeof uni !== 'undefined' && typeof uni.$off === 'function') {
uni.$off(HOT_UPDATE_PROGRESS_EVENT, handleUpdateProgress);
}
});
const pageConStyle = computed(() => {
const style = {
paddingTop: paddingTop.value + 'px',
@@ -323,4 +375,57 @@
.pageCon {
box-sizing: border-box;
}
.update-progress-mask {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx;
box-sizing: border-box;
}
.update-progress-card {
width: 100%;
max-width: 560rpx;
background: #fff;
border-radius: 16rpx;
padding: 32rpx;
box-sizing: border-box;
}
.update-progress-title {
font-size: 28rpx;
color: #333;
text-align: center;
margin-bottom: 20rpx;
}
.update-progress-bar {
height: 18rpx;
background: rgba(0, 0, 0, 0.08);
border-radius: 999rpx;
overflow: hidden;
}
.update-progress-bar__fill {
height: 100%;
background: var(--color2);
border-radius: 999rpx;
width: 0%;
transition: width 0.2s linear;
}
.update-progress-percent {
font-size: 28rpx;
color: #333;
text-align: center;
margin-top: 16rpx;
}
</style>
+5
View File
@@ -7,6 +7,7 @@
:showLeftButton="props.showLeftButton"
:goLeft="props.goLeft"
:tabbar="props.tabbar"
:navPreset="props.navPreset"
@onClickLeft="onClickLeft"
>
<template #navLeft>
@@ -88,6 +89,10 @@
type: [String, Boolean],
default: '',
},
navPreset: {
type: String,
default: '',
},
pink_bg: {
type: Boolean,
default: false,