月兑活动修改为红色

This commit is contained in:
2023-07-14 16:42:17 +08:00
parent ebb9575bd0
commit f74b177f6d
24 changed files with 2969 additions and 2130 deletions

View File

@@ -2,10 +2,10 @@
<view class="content">
<view class="campus-header">
<view class="logo">
<image src="@/static/img/campus_logo.jpg" mode="aspectFill"></image>
<image src="@/static/img/campusLogin_logo.png" mode="aspectFill"></image>
<view class="title">超级红包活动用户注册</view>
</view>
<image class="cover" src="@/static/img/campusLogin_back_01.png" mode="aspectFill"></image>
<image class="cover" src="@/static/img/campusLogin_back_red.png" mode="aspectFill"></image>
</view>
<view class="campus-cont">
<form @submit="submitRegister">
@@ -29,71 +29,71 @@
</view>
</template>
<script>
import { send, register } from '@/apis/interfaces/auth'
export default {
data() {
return {
codename : '获取验证码',
mobileNo : '', // 手机号
<script>
import { send, register } from '@/apis/interfaces/auth'
export default {
data() {
return {
codename : '获取验证码',
mobileNo : '', // 手机号
code : '', // 验证码
disabled : false,
}
},
disabled : false,
}
},
methods: {
// mobileNo
getNameValue(e) {
this.mobileNo = e.detail.value
},
// 获取code
getCode(){
let mobileNo = this.mobileNo
var _this = this
if (mobileNo == "") {
uni.showToast({
title : '手机号不能为空',
icon : 'none',
duration : 1000
})
return false;
}else{
send({mobile: mobileNo, channel: 'LOGIN'}).then(res=>{
uni.showToast({
title : '发送成功',
icon : 'success',
duration: 2000
})
var num = 61;
var timer = setInterval(function () {
num--;
if (num <= 0) {
clearInterval(timer);
_this.codename = '重新发送'
_this.disabled = false
} else {
_this.codename = num + "s后重新获取"
_this.disabled = true
}
}, 1000)
}).catch(err=>{
uni.showToast({
title : err.message,
icon :'none',
duration: 2000
})
})
}
},
// 获取后输入code
getCodeValue (e) {
this.code = e.detail.value
},
// 立即登录
// mobileNo
getNameValue(e) {
this.mobileNo = e.detail.value
},
// 获取code
getCode(){
let mobileNo = this.mobileNo
var _this = this
if (mobileNo == "") {
uni.showToast({
title : '手机号不能为空',
icon : 'none',
duration : 1000
})
return false;
}else{
send({mobile: mobileNo, channel: 'LOGIN'}).then(res=>{
uni.showToast({
title : '发送成功',
icon : 'success',
duration: 2000
})
var num = 61;
var timer = setInterval(function () {
num--;
if (num <= 0) {
clearInterval(timer);
_this.codename = '重新发送'
_this.disabled = false
} else {
_this.codename = num + "s后重新获取"
_this.disabled = true
}
}, 1000)
}).catch(err=>{
uni.showToast({
title : err.message,
icon :'none',
duration: 2000
})
})
}
},
// 获取后输入code
getCodeValue (e) {
this.code = e.detail.value
},
// 立即登录
submitRegister(e){
let formValue = e.detail.value
@@ -124,15 +124,16 @@
icon : 'none'
})
})
}
}
}
}
}
</script>
<style lang="scss">
.content{
min-height: 100vh;
background-image: linear-gradient(to top right, #cbaf7f, #fcf4cb);
// background-image: linear-gradient(to top right, #cbaf7f, #fcf4cb);
background-image: linear-gradient(to top right, #fff9f9, #fff9f9);
}
.campus-cont{
padding: 40rpx 60rpx;
@@ -140,8 +141,9 @@
.campus-inputs{
position: relative;
padding-left: 30rpx;
padding-right: 30rpx;
background-image: linear-gradient(to right, #575a85, #252f4b);
padding-right: 30rpx;
background-image: linear-gradient(to right, #f4eeee, #f4eeee);
// background-image: linear-gradient(to right, #575a85, #252f4b);
height: 90rpx;
line-height: 90rpx;
border-radius: 45rpx;
@@ -159,7 +161,7 @@
font-size: 30rpx;
height: 90rpx;
line-height: 90rpx;
color: white;
color: #f25448;
&::after{
border: none;
}
@@ -178,7 +180,7 @@
}
.campus-form-input{
height: 90rpx;
color: white;
color: #000000;
font-size: 32rpx;
}
@@ -188,8 +190,9 @@
height: 90rpx;
line-height: 90rpx;
padding: 0;
border-radius: 45rpx;
background-image: linear-gradient(to right, #575a85, #252f4b);
border-radius: 45rpx;
background-image: linear-gradient(to right, #f25448, #fe786d);
// background-image: linear-gradient(to right, #575a85, #252f4b);
font-size: 32rpx;
color: white;
}
@@ -226,7 +229,7 @@
width: 160rpx;
height: 160rpx;
vertical-align: top;
margin-bottom: 30rpx;
margin-bottom: 30rpx;
border-radius: 50%;
}
.title{