fix: tabBar颜色rgba→hex、我的页去重复五星域进度条(首页已有)、signData补currencyType=CNY修复ILLEGAL_CURRENCY_TYPE

This commit is contained in:
2026-09-14 11:33:40 +08:00
parent 97f75bee35
commit 8fe3029a28
3 changed files with 10 additions and 17 deletions
+2 -2
View File
@@ -52,14 +52,14 @@ function applyTabBarTheme(theme) {
try {
if (theme === 'dark') {
uni.setTabBarStyle({
color: 'rgba(255,255,255,0.35)',
color: '#a2a2b8',
selectedColor: '#a2b2ff',
backgroundColor: '#181828',
borderStyle: 'black'
})
} else {
uni.setTabBarStyle({
color: 'rgba(0,0,0,0.3)',
color: '#999999',
selectedColor: '#5b5ff8',
backgroundColor: '#ffffff',
borderStyle: 'white'
+7 -15
View File
@@ -41,21 +41,7 @@
</view>
</view>
<!-- 五星域点亮进度 -->
<view class="dims-progress" v-if="stats">
<view v-for="dim in dimensions" :key="dim.id" class="dim-row" @click="goDim(dim.id)">
<view class="dim-dot" :style="{ background: dim.iconBg }">
<AppIcon :name="dim.icon" :size="13" />
</view>
<text class="dim-name">{{ dim.name }}</text>
<view class="dim-bar">
<view class="dim-bar-fill" :style="{ width: dimPercent(dim.id) + '%', background: dim.color }"></view>
</view>
<text class="dim-frac">{{ stats.litByDim?.[dim.id] || 0 }}/{{ byDim[dim.id] || 0 }}</text>
</view>
</view>
<!-- 星尘余额 + 今日免费(已登录) -->
<!-- 星尘余额 + 今日免费(已登录) -->
<view class="balance-card" v-if="userStore.isLoggedIn">
<!-- 未登录:引导登录(简洁明确) -->
<view class="balance-card login-guide" v-if="!userStore.isLoggedIn" @click="goLogin">
@@ -250,6 +236,7 @@ async function handleLogout() {
function goLogin() { uni.navigateTo({ url: '/pages/login/login' }) }
function goHome() { uni.switchTab({ url: '/pages/index/index' }) }
function goRecharge() { uni.navigateTo({ url: '/pages/vpay/recharge' }) }
function goChat() { uni.switchTab({ url: '/pages/chat/chat' }) }
function goFavorites() { uni.navigateTo({ url: '/pages/favorites/favorites' }) }
@@ -653,3 +640,8 @@ onShareTimeline(() => ({
flex-shrink: 0;
}
</style>
<style scoped>
.stats-hint { text-align: center; padding: 4px 0 8px; }
.stats-hint text { font-size: 11px; color: var(--text-muted); }
</style>
+1
View File
@@ -38,6 +38,7 @@ function buildPayParams(user, pack, outTradeNo) {
const sd = {
attach: JSON.stringify({ uid: String(user._id), pack: pack.id }),
buyQuantity: pack.coins,
currencyType: 'CNY',
env: ENV,
mode: 'short_series_coin',
offerId: String(OFFER_ID),