style: 样式展示问题
This commit is contained in:
@@ -16,3 +16,8 @@
|
|||||||
- `会员优选`商品卡片点击不再跳转到商品详情页
|
- `会员优选`商品卡片点击不再跳转到商品详情页
|
||||||
- 购物车为空时:底部不显示“去结算”
|
- 购物车为空时:底部不显示“去结算”
|
||||||
- 会员专区→买商品→支付→支付结果→返回首页「选品广场」;选品广场→买商品→支付→支付结果→返回首页「我的店铺」
|
- 会员专区→买商品→支付→支付结果→返回首页「选品广场」;选品广场→买商品→支付→支付结果→返回首页「我的店铺」
|
||||||
|
|
||||||
|
## [1.4.1] - 2026-06-09
|
||||||
|
### 修改
|
||||||
|
- 我的页面蓝色背景不展示问题
|
||||||
|
- ai店铺页面nav下展示白色border问题
|
||||||
@@ -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
@@ -2,8 +2,8 @@
|
|||||||
"name" : "优购商城",
|
"name" : "优购商城",
|
||||||
"appid" : "__UNI__8B19741",
|
"appid" : "__UNI__8B19741",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.3.9",
|
"versionName" : "1.4.1",
|
||||||
"versionCode" : 139,
|
"versionCode" : 141,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"privacy" : {
|
"privacy" : {
|
||||||
|
|||||||
+2
-1
@@ -35,7 +35,8 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/index/aiStore",
|
"path": "pages/index/aiStore",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "AI店铺"
|
"navigationBarTitleText": "AI店铺",
|
||||||
|
"navigationStyle": "custom"
|
||||||
},
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"sync": true,
|
"sync": true,
|
||||||
|
|||||||
@@ -483,7 +483,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: 12rpx;
|
// margin-top: 12rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-item {
|
.tab-item {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="pages theme-ai">
|
<view class="pages theme-ai">
|
||||||
<view class="bc">
|
<view class="bc" :style="bcStyle">
|
||||||
<!-- <image src="/static/home/bc.png" mode="scaleToFill" /> -->
|
|
||||||
</view>
|
</view>
|
||||||
<view class="con" :style="{ paddingTop: paddingTop + 'px' }">
|
<view class="con" :style="{ paddingTop: paddingTop + 'px' }">
|
||||||
<view class="con_top flex-center ju-flex-start">
|
<view class="con_top flex-center ju-flex-start">
|
||||||
@@ -129,6 +128,10 @@
|
|||||||
let paddingTop = ref(20);
|
let paddingTop = ref(20);
|
||||||
paddingTop.value = sysInfo.statusBarHeight + uni.upx2px(88);
|
paddingTop.value = sysInfo.statusBarHeight + uni.upx2px(88);
|
||||||
const headerBgHeight = computed(() => `${paddingTop.value + uni.upx2px(320)}px`);
|
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 realStatus = ref(0); //是否已经实名认证
|
||||||
let agentLevelObj = {
|
let agentLevelObj = {
|
||||||
2: 'home/igency_1.png',
|
2: 'home/igency_1.png',
|
||||||
@@ -325,9 +328,9 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: v-bind('headerBgHeight');
|
height: auto;
|
||||||
background: url('@/static/index/login_bg.png') no-repeat 100%;
|
|
||||||
border-radius: 0 0 30rpx 30rpx;
|
border-radius: 0 0 30rpx 30rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -72,11 +72,21 @@
|
|||||||
<s-menu-tools />
|
<s-menu-tools />
|
||||||
</view>
|
</view>
|
||||||
<cardTabber v-if="props.tabbar" :path="tabbarPath" />
|
<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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<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 { onShow } from '@dcloudio/uni-app';
|
||||||
import innerNavbar from '@/components/card_navbar/inner-navbar';
|
import innerNavbar from '@/components/card_navbar/inner-navbar';
|
||||||
import cardNavbar from '@/components/card_navbar/card_navbar';
|
import cardNavbar from '@/components/card_navbar/card_navbar';
|
||||||
@@ -178,9 +188,36 @@
|
|||||||
const modalStore = sheep.$store('modal');
|
const modalStore = sheep.$store('modal');
|
||||||
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
||||||
let paddingTop = ref();
|
let paddingTop = ref();
|
||||||
paddingTop.value = statusBarHeight + 44;
|
paddingTop.value = statusBarHeight + uni.upx2px(88);
|
||||||
|
|
||||||
const tabbarPath = ref('');
|
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) => {
|
const normalizePath = (p) => {
|
||||||
if (!p) return '';
|
if (!p) return '';
|
||||||
@@ -200,6 +237,21 @@
|
|||||||
onShow(() => updateTabbarPath());
|
onShow(() => updateTabbarPath());
|
||||||
watch(() => props.tabbar, () => updateTabbarPath(), { immediate: true });
|
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 pageConStyle = computed(() => {
|
||||||
const style = {
|
const style = {
|
||||||
paddingTop: paddingTop.value + 'px',
|
paddingTop: paddingTop.value + 'px',
|
||||||
@@ -323,4 +375,57 @@
|
|||||||
.pageCon {
|
.pageCon {
|
||||||
box-sizing: border-box;
|
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>
|
</style>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
:showLeftButton="props.showLeftButton"
|
:showLeftButton="props.showLeftButton"
|
||||||
:goLeft="props.goLeft"
|
:goLeft="props.goLeft"
|
||||||
:tabbar="props.tabbar"
|
:tabbar="props.tabbar"
|
||||||
|
:navPreset="props.navPreset"
|
||||||
@onClickLeft="onClickLeft"
|
@onClickLeft="onClickLeft"
|
||||||
>
|
>
|
||||||
<template #navLeft>
|
<template #navLeft>
|
||||||
@@ -88,6 +89,10 @@
|
|||||||
type: [String, Boolean],
|
type: [String, Boolean],
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
navPreset: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
pink_bg: {
|
pink_bg: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user