Commit 5561f836 authored by chenqikuai's avatar chenqikuai

feat: 调整所有弹出框的样式。

统一调整弹出框。除了首页弹出框外圆角为6,其他弹框圆角为10
parent 61701490
<template> <template>
<div id="app"> <div id="app">
<!-- <keep-alive :exclude="/^[a-zA-Z]*Detail$/"> --> <!-- <keep-alive :exclude="/^[a-zA-Z]*Detail$/"> -->
<router-view></router-view> <router-view></router-view>
<!-- </keep-alive> --> <!-- </keep-alive> -->
</div> </div>
</template> </template>
...@@ -10,16 +10,20 @@ ...@@ -10,16 +10,20 @@
import { Component, Vue, Provide } from 'vue-property-decorator'; import { Component, Vue, Provide } from 'vue-property-decorator';
import { Getter, Action } from 'vuex-class'; import { Getter, Action } from 'vuex-class';
@Component({ @Component({})
})
export default class App extends Vue { export default class App extends Vue {
@Provide('isSy') private isSy: boolean = process.env.VUE_APP_CATEGORY !== 'cs'; @Provide('isSy') private isSy: boolean =
process.env.VUE_APP_CATEGORY !== 'cs';
@Provide('APP-NAME') private APP_NAME: string = process.env.VUE_APP_NAME; @Provide('APP-NAME') private APP_NAME: string = process.env.VUE_APP_NAME;
@Action('getUserInfo') private getUserInfo!: () => void; @Action('getUserInfo') private getUserInfo!: () => void;
@Provide('getProofViewingWebSite') private getProofViewingWebSite = (proof: any): string => process.env.VUE_APP_BROWSER + `/product?hash=${proof.hash}` @Provide('getProofViewingWebSite') private getProofViewingWebSite = (
@Provide('goToBrowser') private goToBrowser: (proof: any) => void = (proof: any) => { proof: any
): string => process.env.VUE_APP_BROWSER + `/product?hash=${proof.hash}`;
@Provide('goToBrowser') private goToBrowser: (proof: any) => void = (
proof: any
) => {
location.href = process.env.VUE_APP_BROWSER + `/product?hash=${proof.hash}`; location.href = process.env.VUE_APP_BROWSER + `/product?hash=${proof.hash}`;
} };
private mounted() { private mounted() {
this.getUserInfo(); this.getUserInfo();
} }
...@@ -33,8 +37,40 @@ export default class App extends Vue { ...@@ -33,8 +37,40 @@ export default class App extends Vue {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
text-align: center; text-align: center;
color: #2c3e50; color: #2c3e50;
.van-dialog {
border-radius: 10px;
.van-dialog__header {
padding-left: 16px;
text-align: left;
color: #353535;
font-weight: 500;
}
.van-field__body {
border-bottom: 1px solid #f0f1f5;
.van-field__control {
line-height: 40px;
}
}
.van-dialog__footer--buttons {
justify-content: space-evenly;
margin: 10px 0 20px;
.van-button {
border: 1px solid #d7d7d7;
width: 140px;
height: 45px;
flex: none;
border-radius: 4px;
}
.van-dialog__confirm {
background: linear-gradient(180deg, #6c7afe 0%, #5d7bf6 100%);
color: #ffffff;
}
}
}
} }
html{ html {
// background: #F9FBFF; // background: #F9FBFF;
// background: #f9f9f9; // background: #f9f9f9;
} }
......
...@@ -223,34 +223,8 @@ export default class IndexSy extends Mixins(IndexMixin) { ...@@ -223,34 +223,8 @@ export default class IndexSy extends Mixins(IndexMixin) {
} }
} }
.van-dialog { .van-dialog {
border-radius: 6px; border-radius: 6px !important;
::v-deep .van-dialog__header {
padding-left: 16px;
text-align: left;
color: #353535;
font-weight: 500;
}
::v-deep .van-field__body {
border-bottom: 1px solid #f0f1f5;
.van-field__control {
line-height: 40px;
}
}
::v-deep .van-dialog__footer--buttons {
justify-content: space-evenly;
margin: 10px 0 20px;
.van-button {
border: 1px solid #d7d7d7;
width: 140px;
height: 45px;
flex: none;
border-radius: 4px;
}
.van-dialog__confirm {
background: linear-gradient(180deg, #6c7afe 0%, #5d7bf6 100%);
color: #ffffff;
}
}
} }
} }
</style> </style>
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