style: 登录/注册页面ui换新
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
<view class="shop-summary-metrics flex-center">
|
||||
<view class="metric flex1">
|
||||
<view class="metric-label">总收益</view>
|
||||
<view class="metric-value">{{ formatAmount(shopSummary.totalEarnings) }}</view>
|
||||
<view class="metric-value">{{ $fen2yuan(shopSummary.totalEarnings) }}</view>
|
||||
</view>
|
||||
<view class="metric-divider"></view>
|
||||
<view class="metric flex1">
|
||||
|
||||
+66
-19
@@ -1,16 +1,16 @@
|
||||
<template>
|
||||
<!-- 空登陆页 -->
|
||||
<s-layout navbar="inner" title="登录" color="#19203b">
|
||||
<s-layout navbar="inner" title="登录" navPreset="float">
|
||||
<view class="login">
|
||||
<view class="login_top_img w100" :style="{ top: -height + 'px' }">
|
||||
<image :src="$url + 'index/login_bg1.png'" mode="widthFix" class="w100" />
|
||||
<image src="@/static/index/login_bg.png" mode="widthFix" class="w100" />
|
||||
</view>
|
||||
<view class="login_con w100 flex-column ju-between">
|
||||
<view class="login_top">
|
||||
<view class="font-Heavy size52 c0">Hello!</view>
|
||||
<view class="font-Heavy size52 c0">欢迎使用优购商城</view>
|
||||
<view class="font-Heavy size52 c1">Hello!</view>
|
||||
<view class="font-Heavy size52 c1">欢迎使用优购商城</view>
|
||||
</view>
|
||||
<view class="flex1 bottomCon">
|
||||
<view class=" bottomCon">
|
||||
<view class="login_bottom">
|
||||
<view class="size40 f500 title">{{ dataObj.con[type].title }}</view>
|
||||
<view class="form">
|
||||
@@ -22,6 +22,7 @@
|
||||
:name="dataObj.formArr[v].value"
|
||||
>
|
||||
<view class="flex-center border_bottom">
|
||||
<image class="input-icon" :src="inputIconMap[v]" mode="aspectFit" />
|
||||
<uni-easyinput
|
||||
v-model="formData[dataObj.formArr[v].value]"
|
||||
:placeholder="dataObj.formArr[v].placeholder"
|
||||
@@ -41,13 +42,13 @@
|
||||
<view class="flex-row">
|
||||
<view class="">{{ dataObj.con[type].text }}</view>
|
||||
<view
|
||||
class="c_primary"
|
||||
class="c_switch"
|
||||
@click="typeChange(dataObj.btns[dataObj.con[type].btn1].value)"
|
||||
>{{ dataObj.btns[dataObj.con[type].btn1].text }}</view
|
||||
>
|
||||
</view>
|
||||
<view
|
||||
class="c_primary"
|
||||
class="c_switch"
|
||||
@click="typeChange(dataObj.btns[dataObj.con[type].btn2].value)"
|
||||
v-if="dataObj.con[type].btn2"
|
||||
>{{ dataObj.btns[dataObj.con[type].btn2]?.text }}</view
|
||||
@@ -61,12 +62,12 @@
|
||||
<view class="radio-box">
|
||||
<radio-group @change="radioChange">
|
||||
<label class="flex-center">
|
||||
<radio color="#FA7E31" class="radio" value="1" :checked="false" />
|
||||
<radio color="#C02F3B" class="radio" value="1" :checked="false" />
|
||||
<view class="flex-center size24">
|
||||
我已阅读并同意
|
||||
<text class="c_primary" @click="go(2)">《用户服务协议》</text>
|
||||
<text class="c_agreement" @click="go(2)">《用户服务协议》</text>
|
||||
和
|
||||
<text class="c_primary" @click="go(1)">《隐私政策》</text>
|
||||
<text class="c_agreement" @click="go(1)">《隐私政策》</text>
|
||||
</view>
|
||||
</label>
|
||||
</radio-group>
|
||||
@@ -85,6 +86,13 @@
|
||||
let type = ref(2);
|
||||
let formData = reactive({});
|
||||
let num = ref(0);
|
||||
const inputIconMap = {
|
||||
1: '/static/icon/icon1.png',
|
||||
2: '/static/icon/icon2.png',
|
||||
3: '/static/icon/icon3.png',
|
||||
4: '/static/icon/icon3.png',
|
||||
5: '/static/icon/icon4.png',
|
||||
};
|
||||
let dataObj = reactive({
|
||||
con: {
|
||||
1: {
|
||||
@@ -360,35 +368,74 @@
|
||||
margin-bottom: 48rpx;
|
||||
}
|
||||
.bottomCon {
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
background-color: #ffffff;
|
||||
border-radius: 80rpx 80rpx 0 0;
|
||||
border-radius: 40rpx;
|
||||
position: absolute;
|
||||
top:220rpx;
|
||||
left: 5%;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
padding: 0 0 20rpx;
|
||||
}
|
||||
.login_bottom {
|
||||
// background: linear-gradient(144deg, #19203b 0%, #070c18 100%);
|
||||
padding: 60rpx;
|
||||
border-radius: 40rpx;
|
||||
padding: 40rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.border_bottom {
|
||||
border-bottom: 1px solid #999999;
|
||||
background-color: #f3f4f7;
|
||||
border-radius: 10rpx;
|
||||
padding: 0 24rpx;
|
||||
box-sizing: border-box;
|
||||
min-height: 80rpx;
|
||||
}
|
||||
.submit-btn {
|
||||
margin-top: 18rpx;
|
||||
margin-top: 40rpx;
|
||||
height: 108rpx;
|
||||
border-radius: 54rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--primary-grad-start, #2c8cfa) 0%,
|
||||
var(--primary-grad-end, #3d5efb) 100%
|
||||
);
|
||||
box-shadow: 0 18rpx 44rpx var(--primary-shadow, rgba(47, 124, 246, 0.35));
|
||||
}
|
||||
.input-icon {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin-right: 16rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.radio-box {
|
||||
padding-top: 100rpx;
|
||||
padding-bottom: 60rpx;
|
||||
background-color: #ffffff;
|
||||
padding-top: 20rpx;
|
||||
padding-bottom: 36rpx;
|
||||
// background-color: #ffffff;
|
||||
}
|
||||
.radio {
|
||||
transform: scale(0.6);
|
||||
}
|
||||
.btns {
|
||||
margin-top: 70rpx;
|
||||
margin-top: 40rpx;
|
||||
}
|
||||
.title {
|
||||
margin-bottom: 70rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
:deep(.uni-radio-input) {
|
||||
background-color: transparent;
|
||||
}
|
||||
.c_agreement {
|
||||
color: #c02f3b;
|
||||
}
|
||||
.c_switch {
|
||||
color: #c02f3b;
|
||||
}
|
||||
:deep(.border_bottom .uni-easyinput__content) {
|
||||
border: none !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user