Commit dfbf3cd0 by 胡悦

修改

1 parent 66e13565
......@@ -4,7 +4,7 @@
<div class="wrapper-content">
<div class="wrapper-integral">
<span>可用积分</span>
<span class="integral">1800</span>
<span class="integral">{{data.userInfo.integral}}</span>
<img class="coin-img" src="@/assets/images/coin.png" alt="" />
</div>
<div class="wrapper-userinfo">
......@@ -120,6 +120,7 @@ type UserInfo = {
mobile?: string;
plateNo?: string;
authStatus?: number;
integral?: number;
};
const userStore = useUserStore();
......@@ -135,6 +136,7 @@ const data: {
mobile: "",
plateNo: "",
authStatus: 0,
integral: 0
},
});
// 积分历史明细列表
......@@ -161,6 +163,13 @@ const getUserInfo = async () => {
data.userInfo = res;
};
// 查询可用积分
const getIntegral = async() => {
const res = await req('scrm.api.renewal.h5.integral.get')
console.log(res)
data.userInfo.integral = res.amount
}
// 路由跳转,value:跳转页面路径
const routerTo = (value: string) => {
router.push(`/${value}`);
......@@ -205,6 +214,7 @@ const onLoad = async () => {
// 组件挂载完成
onBeforeMount(() => {
hasSession();
// getIntegral()
// onLoad();
});
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!