登陆页面写活

This commit is contained in:
WindowBird 2025-11-25 10:11:31 +08:00
parent fa7e7dc32f
commit ba3d92bf98
2 changed files with 47 additions and 28 deletions

View File

@ -137,6 +137,7 @@ export default {
loading: true, // trueAPI loading: true, // trueAPI
// API // API
pageConfig: { pageConfig: {
login: { img: "" },
background: { img: "" }, background: { img: "" },
announcement: { icon: "", text: "" }, announcement: { icon: "", text: "" },
topIcons: { topIcons: {
@ -275,6 +276,8 @@ export default {
this.navigationItems = parsedConfig.navigationItems || []; this.navigationItems = parsedConfig.navigationItems || [];
this.bottomSection = parsedConfig.bottomSection || this.bottomSection; this.bottomSection = parsedConfig.bottomSection || this.bottomSection;
console.log("配置更新完成"); console.log("配置更新完成");
console.log("pageConfig.login.img", this.pageConfig.login.img);
uni.setStorageSync("loginImg", this.pageConfig.login.img);
}, },
/** /**

View File

@ -1,20 +1,21 @@
<template> <template>
<view class="page"> <view class="page">
<u-navbar <!-- <u-navbar-->
:background="bgc" <!-- :background="bgc"-->
:border-bottom="false" <!-- :border-bottom="false"-->
:is-back="false" <!-- :is-back="false"-->
:title="titleTxt" <!-- :title="titleTxt"-->
height="36" <!-- height="36"-->
title-color="#000" <!-- title-color="#000"-->
title-size="36" <!-- title-size="36"-->
> <!-- >-->
</u-navbar> <!-- </u-navbar>-->
<!-- 背景图 -->
<image :src="getLoginImg" class="bj" mode="aspectFill"></image>
<view class="imgbox"> <view class="imgbox">
<image <image :src="getLoginImg" mode=""></image>
mode=""
src="https://api.ccttiot.com/e3227491d46d2d7ac1c1c592e44f48bc-1754467412954.jpg"
></image>
</view> </view>
<button class="button" @click="goToLogin">授权登录</button> <button class="button" @click="goToLogin">授权登录</button>
<view class="tip"> <view class="tip">
@ -91,6 +92,7 @@ import { getPrivacyPolicy, getServiceTerms } from "@/api/article/article.js";
export default { export default {
data() { data() {
return { return {
loginImg: "",
bgc: { bgc: {
backgroundColor: "#fff", backgroundColor: "#fff",
}, },
@ -110,6 +112,11 @@ export default {
}, },
onLoad() {}, onLoad() {},
onUnload() {}, onUnload() {},
computed: {
getLoginImg() {
return uni.getStorageSync("loginImg");
},
},
methods: { methods: {
userType(num) { userType(num) {
this.chooseType = false; this.chooseType = false;
@ -324,22 +331,22 @@ page {
} }
.imgbox { .imgbox {
margin: 102rpx auto; //margin: 102rpx auto;
width: 750rpx; //width: 750rpx;
height: 422rpx; //height: 755rpx;
z-index: 0; //z-index: 0;
image { image {
width: 750rpx; //width: 750rpx;
height: 422rpx; //height: 422rpx;
} }
} }
.button { .button {
margin-top: 200rpx; margin-top: 1200rpx;
width: 586rpx; width: 586rpx;
height: 90rpx; //height: 90rpx;
background: #4c97e7; background: #522510;
border-radius: 54rpx 54rpx 54rpx 54rpx; border-radius: 54rpx 54rpx 54rpx 54rpx;
font-weight: 500; font-weight: 500;
font-size: 40rpx; font-size: 40rpx;
@ -347,7 +354,7 @@ page {
} }
.tip { .tip {
margin-top: 128rpx; margin-top: 64rpx;
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
@ -357,7 +364,7 @@ page {
color: #979797; color: #979797;
.link-text { .link-text {
color: #4c97e7; color: #522510;
text-decoration: underline; text-decoration: underline;
} }
} }
@ -383,8 +390,8 @@ page {
} }
.checkbox.checked { .checkbox.checked {
background-color: #4c97e7; background-color: #522510;
border-color: #4c97e7; border-color: #522510;
} }
.checkmark { .checkmark {
@ -463,11 +470,20 @@ page {
.popup-btn { .popup-btn {
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
background: #4c97e7; background: #522510;
color: #fff; color: #fff;
border: none; border: none;
border-radius: 40rpx; border-radius: 40rpx;
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
} }
.bj {
width: 100%;
height: 100vh;
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
</style> </style>