fix: tabBar颜色rgba→hex、我的页去重复五星域进度条(首页已有)、signData补currencyType=CNY修复ILLEGAL_CURRENCY_TYPE
This commit is contained in:
+2
-2
@@ -52,14 +52,14 @@ function applyTabBarTheme(theme) {
|
|||||||
try {
|
try {
|
||||||
if (theme === 'dark') {
|
if (theme === 'dark') {
|
||||||
uni.setTabBarStyle({
|
uni.setTabBarStyle({
|
||||||
color: 'rgba(255,255,255,0.35)',
|
color: '#a2a2b8',
|
||||||
selectedColor: '#a2b2ff',
|
selectedColor: '#a2b2ff',
|
||||||
backgroundColor: '#181828',
|
backgroundColor: '#181828',
|
||||||
borderStyle: 'black'
|
borderStyle: 'black'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.setTabBarStyle({
|
uni.setTabBarStyle({
|
||||||
color: 'rgba(0,0,0,0.3)',
|
color: '#999999',
|
||||||
selectedColor: '#5b5ff8',
|
selectedColor: '#5b5ff8',
|
||||||
backgroundColor: '#ffffff',
|
backgroundColor: '#ffffff',
|
||||||
borderStyle: 'white'
|
borderStyle: 'white'
|
||||||
|
|||||||
@@ -41,21 +41,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</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" v-if="userStore.isLoggedIn">
|
||||||
<!-- 未登录:引导登录(简洁明确) -->
|
<!-- 未登录:引导登录(简洁明确) -->
|
||||||
<view class="balance-card login-guide" v-if="!userStore.isLoggedIn" @click="goLogin">
|
<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 goLogin() { uni.navigateTo({ url: '/pages/login/login' }) }
|
||||||
|
|
||||||
|
function goHome() { uni.switchTab({ url: '/pages/index/index' }) }
|
||||||
function goRecharge() { uni.navigateTo({ url: '/pages/vpay/recharge' }) }
|
function goRecharge() { uni.navigateTo({ url: '/pages/vpay/recharge' }) }
|
||||||
function goChat() { uni.switchTab({ url: '/pages/chat/chat' }) }
|
function goChat() { uni.switchTab({ url: '/pages/chat/chat' }) }
|
||||||
function goFavorites() { uni.navigateTo({ url: '/pages/favorites/favorites' }) }
|
function goFavorites() { uni.navigateTo({ url: '/pages/favorites/favorites' }) }
|
||||||
@@ -653,3 +640,8 @@ onShareTimeline(() => ({
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.stats-hint { text-align: center; padding: 4px 0 8px; }
|
||||||
|
.stats-hint text { font-size: 11px; color: var(--text-muted); }
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ function buildPayParams(user, pack, outTradeNo) {
|
|||||||
const sd = {
|
const sd = {
|
||||||
attach: JSON.stringify({ uid: String(user._id), pack: pack.id }),
|
attach: JSON.stringify({ uid: String(user._id), pack: pack.id }),
|
||||||
buyQuantity: pack.coins,
|
buyQuantity: pack.coins,
|
||||||
|
currencyType: 'CNY',
|
||||||
env: ENV,
|
env: ENV,
|
||||||
mode: 'short_series_coin',
|
mode: 'short_series_coin',
|
||||||
offerId: String(OFFER_ID),
|
offerId: String(OFFER_ID),
|
||||||
|
|||||||
Reference in New Issue
Block a user