Commit dfbf3cd0 by 胡悦

修改

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