|
@@ -55,24 +55,24 @@
|
|
};
|
|
};
|
|
// 公共跳转
|
|
// 公共跳转
|
|
const toCommon = (e) => {
|
|
const toCommon = (e) => {
|
|
- // if (user.value && user.value._id) {
|
|
|
|
- if (e) {
|
|
|
|
|
|
+ if (user.value && user.value._id) {
|
|
|
|
+ if (e) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/${e}`
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ try {
|
|
|
|
+ uni.clearStorage();
|
|
|
|
+ uni.reLaunch({
|
|
|
|
+ url: '/pages/index/index'
|
|
|
|
+ })
|
|
|
|
+ } catch (e) { }
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: `/${e}`
|
|
|
|
|
|
+ url: `/pagesHome/login/index`
|
|
})
|
|
})
|
|
- } else {
|
|
|
|
- try {
|
|
|
|
- uni.clearStorage();
|
|
|
|
- uni.reLaunch({
|
|
|
|
- url: '/pages/index/index'
|
|
|
|
- })
|
|
|
|
- } catch (e) { }
|
|
|
|
}
|
|
}
|
|
- // } else {
|
|
|
|
- // uni.navigateTo({
|
|
|
|
- // url: `/pagesHome/login/index`
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -81,13 +81,14 @@
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
width: 100vw;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
|
+ background-color: var(--f1Color);
|
|
|
|
|
|
.one {
|
|
.one {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
padding: 0 8vw;
|
|
padding: 0 8vw;
|
|
height: 25vh;
|
|
height: 25vh;
|
|
- background: linear-gradient(to bottom, #2979ff, #ffffff);
|
|
|
|
|
|
+ background: linear-gradient(to bottom, #2979ff, #f1f1f1);
|
|
|
|
|
|
.left {
|
|
.left {
|
|
.image {
|
|
.image {
|
|
@@ -111,14 +112,14 @@
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
padding: 2vw;
|
|
padding: 2vw;
|
|
margin: 2vw;
|
|
margin: 2vw;
|
|
- border-radius: 10px;
|
|
|
|
- background-color: var(--mainColor);
|
|
|
|
-
|
|
|
|
.list {
|
|
.list {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
padding: 4vw;
|
|
padding: 4vw;
|
|
|
|
+ margin: 0 0 2vw 0;
|
|
border-bottom: 1px solid var(--f9Color);
|
|
border-bottom: 1px solid var(--f9Color);
|
|
|
|
+ background-color: var(--mainColor);
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
|
.left {
|
|
.left {
|
|
display: flex;
|
|
display: flex;
|