注册页添加登录按钮

This commit is contained in:
GYJ
2024-12-15 18:21:24 +08:00
parent fa60aeec42
commit e7afd83085
4 changed files with 29 additions and 11 deletions

View File

@@ -1,14 +1,14 @@
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; // const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名 const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名 const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; // // const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名 // const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名 // const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
const ROOTPATH1 = "http://192.168.1.5:8100/sqx_fast/"; // // const ROOTPATH1 = "http://192.168.1.5:8100/sqx_fast/"; //
const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名 // const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名
const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名 // const ROOTPATH2 = "http://192.168.1.5:8100"; //后台服务域名
module.exports = { module.exports = {
APIHOST: ROOTPATH, APIHOST: ROOTPATH,

View File

@@ -541,6 +541,10 @@
} }
} }
if (document.documentElement.scrollHeight <= document.documentElement.clientHeight) {
bodyTag = document.getElementsByTagName('body')[0];
bodyTag.style.height = document.documentElement.clientWidth / screen.width * screen.height + 'px';
}
}, },
methods: { methods: {

View File

@@ -34,7 +34,8 @@
<input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)" <input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)"
data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" /> data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" />
</view> --> </view> -->
<button class="confirm-btn" @click="toLogin">注册</button> <button class="confirm-btn" @click="toRegister">注册</button>
<button class="confirm-btn" @click="toLogin">登录</button>
</view> </view>
<view class="footer"> <view class="footer">
<text @tap="isShowAgree" class="cuIcon" <text @tap="isShowAgree" class="cuIcon"
@@ -163,6 +164,12 @@
}); });
}, },
toLogin() { toLogin() {
console.log("123");
uni.reLaunch({
url: '/pages/login/login'
});
},
toRegister() {
const { const {
mobile, mobile,
password, password,
@@ -434,7 +441,7 @@
text-align: center; text-align: center;
line-height: 100rpx; line-height: 100rpx;
border-radius: 16rpx; border-radius: 16rpx;
margin-top: 80rpx; margin-top: 40rpx;
background: #EC6F48; background: #EC6F48;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;

View File

@@ -34,7 +34,8 @@
<input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)" <input type="text" v-if="registerCode == '否'" :value="invitation" placeholder="请填写邀请码(选填)"
data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" /> data-key="invitation" maxlength="20" @input="inputChange" @confirm="toLogin" />
</view> --> </view> -->
<button class="confirm-btn" @click="toLogin">注册</button> <button class="confirm-btn" @click="toRegister">注册</button>
<button class="confirm-btn" @click="toLogin">登录</button>
</view> </view>
<view class="footer"> <view class="footer">
<text @tap="isShowAgree" class="cuIcon" <text @tap="isShowAgree" class="cuIcon"
@@ -171,6 +172,12 @@
}); });
}, },
toLogin() { toLogin() {
console.log("123");
uni.reLaunch({
url: '/pages/login/login'
});
},
toRegister() {
const { const {
mobile, mobile,
password, password,
@@ -365,7 +372,7 @@
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
bottom: 278rpx; bottom: 178rpx;
.cuIcon::before{ .cuIcon::before{
width: 30rpx; width: 30rpx;
height: 30rpx; height: 30rpx;
@@ -440,7 +447,7 @@
text-align: center; text-align: center;
line-height: 100rpx; line-height: 100rpx;
border-radius: 16rpx; border-radius: 16rpx;
margin-top: 80rpx; margin-top: 40rpx;
background: #EC6F48; background: #EC6F48;
font-size: 32rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;