Commit cf5178d6 authored by FE-安焕焕's avatar FE-安焕焕 👣

fix:手机号存储问题

parent aa57310e
...@@ -49,6 +49,7 @@ import AccountInput from './components/AccountInput.vue'; ...@@ -49,6 +49,7 @@ import AccountInput from './components/AccountInput.vue';
import { throttle } from '@/service/utils.service'; import { throttle } from '@/service/utils.service';
import { isPhone } from '@/service/validation.service'; import { isPhone } from '@/service/validation.service';
import { ITEM_WIDTH } from './components/constant'; import { ITEM_WIDTH } from './components/constant';
import localStorage from '@/service/localStorage.service';
export default { export default {
name: 'VipLife', name: 'VipLife',
components: { components: {
...@@ -142,6 +143,7 @@ export default { ...@@ -142,6 +143,7 @@ export default {
const [res] = await rechargeApi.getSpuList(); const [res] = await rechargeApi.getSpuList();
if (res) { if (res) {
this.account = res?.userPhoneInfo?.phoneNo; this.account = res?.userPhoneInfo?.phoneNo;
localStorage.set('phoneNo', this.account);
this.spuData = res.vipLife; this.spuData = res.vipLife;
this.updateSpuInfo(this.spuData[this.currentTab - 1].itemList[0]); this.updateSpuInfo(this.spuData[this.currentTab - 1].itemList[0]);
this.getSkuListDebounce(); this.getSkuListDebounce();
......
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