feat:app嵌套h5
This commit is contained in:
@@ -9,19 +9,18 @@ import { getUserInfo } from '@/api/common/index.js';
|
||||
import { showFailToast } from 'vant';
|
||||
const contentShow = ref(false);
|
||||
onMounted(async() => {
|
||||
|
||||
onMounted(async () => {
|
||||
if (utils.getParameter('digitalYiliToken')) {
|
||||
const appToken = utils.getParameter('digitalYiliToken');
|
||||
getUserInfo(appToken).then((res) => {
|
||||
const query = {
|
||||
xToken: utils.getParameter('digitalYiliToken')
|
||||
};
|
||||
getUserInfo(query).then((res) => {
|
||||
if (res.data) {
|
||||
contentShow.value = true;
|
||||
utils.setSessionStorage('userInfo', res.data.data);
|
||||
utils.setSessionStorage('userInfo', res.data);
|
||||
} else {
|
||||
contentShow.value = false;
|
||||
showFailToast(error.response.data?.message || error.data?.message || error.message || '服务器错误');
|
||||
showFailToast(error.data?.message || error.message || '服务器错误');
|
||||
}
|
||||
}).catch((error) => {
|
||||
contentShow.value = false;
|
||||
showFailToast(error.response.data?.message || error.message || '服务器错误');
|
||||
});
|
||||
} else {
|
||||
contentShow.value = true;
|
||||
@@ -46,13 +45,13 @@ onMounted(async() => {
|
||||
padding: 0 10px 60px;
|
||||
background: linear-gradient(0deg, #f5f5f5 0%, #f5f5f5 84%, #a5d380 100%);
|
||||
|
||||
&> :first-child {
|
||||
& > :first-child {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
border-radius: 6px;
|
||||
background-color: white;
|
||||
|
||||
&>div {
|
||||
& > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 50px;
|
||||
|
||||
Reference in New Issue
Block a user