feat(hjf): 伞下积分奖励开关、隐藏会员码、资产与排队页跳转及样式
- 后台排队配置:伞下积分奖励开关及 API - PointsRewardServices:仅对 depth>0 祖先应用伞下开关,直推逻辑不变 - 会员模板隐藏会员码;资产页积分明细跳转与背景/渐变 - 排队状态页链接参数与样式对齐;移除误提交 pro_v3.5.1_副本 全量副本 Made-with: Cursor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="hjf-assets-page" :style="colorStyle">
|
||||
<!-- #ifdef MP -->
|
||||
<NavBar titleText="我的资产" :iconColor="iconColor" :textColor="iconColor" showBack :isScrolling="isScrolling"></NavBar>
|
||||
<!-- #ifdef MP || APP-PLUS -->
|
||||
<NavBar titleText="我的资产" :iconColor="iconColor" :textColor="iconColor" :isScrolling="isScrolling" showBack></NavBar>
|
||||
<!-- #endif -->
|
||||
|
||||
<view class="assets-wrapper">
|
||||
@@ -119,9 +119,7 @@
|
||||
<script>
|
||||
import { getAssetsOverview } from '@/api/hjfAssets.js';
|
||||
import colors from '@/mixins/color.js';
|
||||
// #ifdef MP
|
||||
import NavBar from '@/components/NavBar.vue';
|
||||
// #endif
|
||||
|
||||
export default {
|
||||
name: 'AssetsIndex',
|
||||
@@ -129,15 +127,15 @@ export default {
|
||||
mixins: [colors],
|
||||
|
||||
components: {
|
||||
// #ifdef MP
|
||||
NavBar,
|
||||
// #endif
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
iconColor: '#FFFFFF',
|
||||
// #ifdef MP || APP-PLUS
|
||||
iconColor: '#000000',
|
||||
isScrolling: false,
|
||||
// #endif
|
||||
assetsInfo: null,
|
||||
loading: false
|
||||
};
|
||||
@@ -175,15 +173,18 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
// #ifdef MP
|
||||
onPageScroll(e) {
|
||||
uni.$emit('scroll');
|
||||
if (e.scrollTop > 50) {
|
||||
this.isScrolling = true;
|
||||
this.iconColor = '#333333';
|
||||
} else {
|
||||
this.iconColor = '#000000';
|
||||
} else if (e.scrollTop < 50) {
|
||||
this.isScrolling = false;
|
||||
this.iconColor = '#FFFFFF';
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
|
||||
methods: {
|
||||
fetchAssetsOverview() {
|
||||
@@ -203,7 +204,7 @@ export default {
|
||||
},
|
||||
|
||||
goPointsDetail() {
|
||||
uni.navigateTo({ url: '/pages/assets/points_detail' });
|
||||
uni.navigateTo({ url: '/pages/users/user_integral_detail/index' });
|
||||
},
|
||||
|
||||
goCashDetail() {
|
||||
@@ -220,12 +221,12 @@ export default {
|
||||
<style scoped lang="scss">
|
||||
.hjf-assets-page {
|
||||
min-height: 100vh;
|
||||
background-color: #db5d02;
|
||||
background-color: #f4f5f7;
|
||||
padding-bottom: 60rpx;
|
||||
}
|
||||
|
||||
.assets-wrapper {
|
||||
background: linear-gradient(180deg, var(--view-theme, #e93323) 0%, var(--view-gradient, #f76b1c) 50%, #f4f5f7 100%);
|
||||
// background: linear-gradient(180deg, rgba(233, 51, 35, 0.18) 0%, rgba(247, 107, 28, 0.08) 45%, #f4f5f7 75%);
|
||||
padding-bottom: 4rpx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user