| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <template>
- <div class="container" id="markIsAppWebview" :data-app="deviceType.app">
- <nuxt class="main"/>
- </div>
- </template>
- <script>
- import ProginnHeader from "@/components/header";
- import ProginnFooter from "@/components/footer";
- import WxHeader from "@/components/wx_header";
- import {mapState, mapMutations} from "vuex";
- import Stats from "@/mixins/stats";
- export default {
- components: {
- ProginnHeader,
- ProginnFooter,
- WxHeader
- },
- data() {
- return {
- isWeixinApp: true
- }
- },
- mixins: [Stats],
- computed: {
- ...mapState(["isPC", "isWeixin", "deviceType", "noneCommonFooter"])
- },
- mounted() {
- console.log("route.path", this.$route);
- this.isWeixinApp = navigator.userAgent.indexOf("miniProgram") > -1;
- this.checkTerminal();
- window.addEventListener("resize", this.checkInnerWidth);
- // 修改密码处理
- if (
- this.$route.path.includes("/setting/check/change_mobile") ||
- this.$route.path.includes("/setting/check/real_info")
- ) {
- // 如果上页不是验证码页面,则认为是复制地址过来,强制踢出
- if (
- localStorage.getItem("proginn-history") !== "/setting/check/old_mobile"
- ) {
- this.$message("请验证旧手机号。");
- setTimeout(() => {
- this.$router.replace("/setting/check/old_mobile");
- }, 1500);
- }
- } else {
- localStorage.removeItem("proginn-history");
- }
- },
- methods: {
- ...mapMutations(["updateIsPC", "updateIsWeixin"]),
- checkTerminal() {
- this.updateIsPC({
- isPC: window.innerWidth > 960
- });
- this.updateIsWeixin({
- isWeixin: window.navigator.userAgent
- .toLowerCase()
- .match(/MicroMessenger/i)
- });
- }
- }
- };
- </script>
- <style>
- *,
- *:before,
- *:after {
- box-sizing: border-box;
- margin: 0;
- }
- .container {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .main {
- min-width: 1000px;
- min-height: calc(100vh - 376px);
- margin: 20px 0 30px !important;
- }
- .__nuxt-error-page .title {
- font-size: 100%;
- }
- @media screen and (max-width: 960px) {
- .main {
- min-width: auto;
- }
- }
- </style>
|