【fix】优化代码
This commit is contained in:
@ -16,7 +16,7 @@ import { pageIntegralBill } from "@/api/account/integral";
|
||||
import { usePaging } from "@/hooks/usePaging";
|
||||
import moment from "moment";
|
||||
import Empty from '@/components/Empty/index.vue'
|
||||
import { useMainStore } from "@/store/store";
|
||||
import { useMainStore } from "@/store/modules/useMainStore";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
const {scrollTop} = useScroll();
|
||||
@ -24,7 +24,7 @@ onPageScroll(() => {
|
||||
})
|
||||
|
||||
const mainStore = useMainStore()
|
||||
const {user} = storeToRefs(mainStore);
|
||||
const {user, integralName} = storeToRefs(mainStore);
|
||||
|
||||
const filterTabs = [
|
||||
{label: '全部', value: 99},
|
||||
@ -63,14 +63,14 @@ onLoad(() => {
|
||||
<Header
|
||||
:scroll-top="scrollTop"
|
||||
system-bar-area-bg="#fff"
|
||||
header-area-bg="#fff"> 我的积分
|
||||
header-area-bg="#fff"> 我的{{ integralName }}
|
||||
</Header>
|
||||
<view class="integral">
|
||||
<!-- 积分展示 -->
|
||||
<view
|
||||
class="num-card"
|
||||
:style="{backgroundImage:`url(${accountIntegralBg})`}">
|
||||
<view class="title">当前积分</view>
|
||||
<view class="title">当前{{ integralName }}</view>
|
||||
<view class="num"> {{ user.integral || '0.00' }}</view>
|
||||
</view>
|
||||
<!-- tabs -->
|
||||
|
Reference in New Issue
Block a user