Browse Source

机构升级init

chao 4 years ago
parent
commit
e3732142f7

+ 21 - 0
src/main/resources/static/css/account/upgrade.css

@@ -0,0 +1,21 @@
+@charset "utf-8";
+li{list-style:none}
+/**
+ * PC端
+ */
+@media screen and (min-width:768px){
+body{background: #FFF url(/img/account/register.png) no-repeat center 84px;background-attachment: fixed;}
+footer .footTop{display:none;}
+
+
+}
+
+/**
+* 移动端
+*/
+@media screen and (max-width:768px){
+body{width:100%;height:100%;background:#FFF url(/img/account/register.png) no-repeat center bottom;background-size:100% auto;background-attachment: fixed;}
+footer{display:none}
+
+
+}

+ 18 - 0
src/main/resources/static/js/account/upgrade.js

@@ -0,0 +1,18 @@
+var upgradePage = new Vue({
+    el: "#upgradePage",
+    data: {
+
+    },
+    computed: {
+
+    },
+    methods: {
+
+    },
+    created: function () {
+
+    },
+    mounted: function () {
+        var _self = this;
+    }
+});

+ 9 - 1
src/main/resources/static/js/base.js

@@ -124,6 +124,7 @@ $(function(){
                     text: '去登录',
                     btnClass: 'btn-confirm-login',
                     action: function(){
+                        localStorage.setItem("loginBeforePath", window.location.href);
                         window.location.href = '/login.html';
                     }
                 },
@@ -364,7 +365,14 @@ function setProductPrice(productList, userId, callback){
         return callback();
     })
 }
-
+// 登录后返回登录前页面
+function toBeforePath(){
+    var beforePath = localStorage.getItem("loginBeforePath");
+    if (!beforePath) {
+        beforePath = '/index.html';
+    }
+    window.location.href = beforePath;
+}
 /**
  * 至少保留两位小数
  * 10 => "10.00"

+ 23 - 0
src/main/resources/templates/account/upgrade.html

@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="https://www.thymeleaf.org ">
+<head>
+    <title>采美365网-中国美业全方位线上交易服务互动平台,做美业,上采美</title>
+    <template th:replace="components/head-link"></template>
+    <link th:href="@{/css/account/upgrade.css(v=${version})}" rel="stylesheet" type="text/css">
+</head>
+<body>
+<!-- 引用头部 -->
+<template th:replace="components/header-account"></template>
+
+<!-- 升级机构 -->
+<div id="upgradePage">
+
+</div>
+
+<!-- 引入底部 -->
+<template th:replace="components/footer"></template>
+<template th:replace="components/foot-link"></template>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/account/upgrade.js(v=${version})}"></script>
+</body>
+</html>

+ 1 - 1
src/main/resources/templates/components/header-account.html

@@ -6,7 +6,7 @@
                 <img class="pcOnly" src="/img/base/logo.png" alt="采美 生美/医美采购服务平台"/>
                 <img class="h5Only" src="/img/base/logo_m.png" alt="采美 生美/医美采购服务平台"/>
             </a>
-            <a href="javascript:void(0);" title="关闭" class="h5Only closeAccount"></a>
+            <a href="javascript:void(0);" title="关闭" class="h5Only closeAccount" onclick="toBeforePath()"></a>
             <p class="accountLogin">已有账号?请直接<a href="/login.html">登录</a></p>
         </div>
     </div>