Commit 11d6fa3f authored by 王炽's avatar 王炽

我的页面积分修改

parent a7c09cdf
This diff is collapsed.
This diff is collapsed.
...@@ -2238,7 +2238,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -2238,7 +2238,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
// jump({ // jump({
// type: JumpType.H5, // type: JumpType.H5,
// url: "https://fh0926-activity.dexfu.cn/customShare/share?id=Did1NjI1MzU" // url: "https://fh0926-activity.dexfu.cn/customShare/share?id=Did1NjI1NTE"
// }) // })
// return; // return;
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
src="https://course.feihe.com/momclub-picture/my/integralBg.png" src="https://course.feihe.com/momclub-picture/my/integralBg.png"
mode="aspectFit" mode="aspectFit"
/> />
<text class="integralText0">{{ babyInfo.points || "0" }}</text> <text class="integralText0">{{points || "0" }}</text>
<text class="integralText1">积分</text> <text class="integralText1">积分</text>
</view> </view>
</view> </view>
...@@ -160,6 +160,7 @@ import { jump, JumpType } from "@/utils"; ...@@ -160,6 +160,7 @@ import { jump, JumpType } from "@/utils";
import { getHealthField } from "@/api/common"; import { getHealthField } from "@/api/common";
import { hideLoading, showLoading } from "../utils"; import { hideLoading, showLoading } from "../utils";
import md from "../md.js"; import md from "../md.js";
import { onShow } from '@dcloudio/uni-app';
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const $baseUrl = proxy.$baseUrl; const $baseUrl = proxy.$baseUrl;
...@@ -182,6 +183,8 @@ const babyInfo = computed(() => userStore?.babyInfo || {}); ...@@ -182,6 +183,8 @@ const babyInfo = computed(() => userStore?.babyInfo || {});
const showRegisterLayer = ref(false); const showRegisterLayer = ref(false);
const showBabySwitcher = ref(false); const showBabySwitcher = ref(false);
const points = ref(0);
const babyId = ref(0); const babyId = ref(0);
const handleHot = (e) => { const handleHot = (e) => {
...@@ -382,6 +385,14 @@ const initExposure = () => { ...@@ -382,6 +385,14 @@ const initExposure = () => {
} }
// onShow(async () => {
// console.log('onShow')
// await userStore.loadMemberInfo();
// points.value = userStore.memberInfo?.points;
// console.log('userStore.memberInfo=', userStore.memberInfo)
// })
// 获取用户信息 // 获取用户信息
const initData = async () => { const initData = async () => {
if ( if (
...@@ -583,6 +594,11 @@ watch([() => userStore.userInfo, () => userStore.babyInfo], () => { ...@@ -583,6 +594,11 @@ watch([() => userStore.userInfo, () => userStore.babyInfo], () => {
)?.id; )?.id;
}); });
watch(() => userStore.memberInfo, () => {
console.log('userStore.memberInfo变化', userStore.memberInfo)
points.value = userStore.memberInfo?.points;
})
//会员活动点击事件 //会员活动点击事件
const handleVipActiveClick = (index, item) => { const handleVipActiveClick = (index, item) => {
let buttonName = ''; let buttonName = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment