1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <template>
- <div class="nav-container">
- <div class="nav-main">
- <div style="background-color: #07c160;border-color: #07c160" @click="toWechatLogin">
- <img style="height:25px;width:25px" src="~@/assets/wechat.png" />
- <span style="font-weight: 600;">微信授权登录</span>
- </div>
- <div style="background-color: #087af5;;border-color:#087af5" @click="toPath">
- <img style="height:30px;width:30px;margin:0 2px 0 5px;" src="~@/assets/purch.png" />
- <span style="font-weight: 600;">采销平台登录</span>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { getParameterByName } from "@/utils/auth"
- export default {
- methods:{
- toWechatLogin(){
- const name = getParameterByName("name");
- const back = getParameterByName("back");
- this.$router.push('/login?name=' + name + "&" + "back=" + back)
- },
- toPath(){
- const back = getParameterByName("back")
- window.location.href = back + "/?from=authorization";
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .nav-container{
- background: url("~@/assets/bg-phone.jpg") no-repeat;
- background-size: cover;
- position: relative;
- height:100vh;
- .nav-main{
- position: fixed;
- width:100%;
- bottom: 120px;
- height: 60px;
- display: flex;
- flex-direction: column;
- padding: 10px;
- align-items:center;
- gap:20px;
- div{
- height: 40px;
- width:80%;
- display: flex;
- flex-direction: row;
- align-items:center;
- justify-content: center;
- line-height: 40px;
- color: #fff;
- border-radius: 80px;
- cursor: pointer;
- user-select: none;
- img {
- margin:0 5px 0 10px;
- }
- }
- }
- }
- </style>
|