|
|
|
@ -1,11 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="zai-box">
|
|
|
|
|
<scroll-view scroll-y class="page">
|
|
|
|
|
<view class="text-center" :style="[{animation: 'show ' + 0.4+ 's 1'}]">
|
|
|
|
|
<!--<image src="@/static/nh-longin.png" mode='aspectFit' class="zai-logo "></image>-->
|
|
|
|
|
<!--<view class="zai-title text-shadow ">能辉云app</view>-->
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
|
|
|
|
|
<view class="bg-box">
|
|
|
|
|
<!-- <image src="/static//home/login_2.png" mode="widthFix"></image> -->
|
|
|
|
|
<view class="box padding-lr-xl login-paddingtop flex flex-column" >
|
|
|
|
|
<block v-if="loginWay==1">
|
|
|
|
|
<view class="cu-form-group margin-top shadow-warp input" :class="[shape=='round'?'round':'']">
|
|
|
|
|
<view class="title"><text class="cuIcon-people margin-right-xs"></text>账号:</view>
|
|
|
|
@ -19,15 +15,15 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="padding text-center margin-top">
|
|
|
|
|
<button class="cu-btn bg-blue lg margin-right shadow" :loading="loading" :class="[shape=='round'?'round':'']"
|
|
|
|
|
<button style="width: 100%;" class="cu-btn bg-gr1 lg margin-right shadow" :loading="loading" :class="[shape=='round'?'round':'']"
|
|
|
|
|
@tap="onLogin"><text space="emsp">{{loading ? "登录中...":" 登录 "}}</text>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="cu-btn line-blue lg margin-left shadow" :loading="loading" :class="[shape=='round'?'round':'']"
|
|
|
|
|
<!-- <button class="cu-btn line-blue lg margin-left shadow" :loading="loading" :class="[shape=='round'?'round':'']"
|
|
|
|
|
@tap="loginWay=3-loginWay">短信登录
|
|
|
|
|
</button>
|
|
|
|
|
</button> -->
|
|
|
|
|
</view>
|
|
|
|
|
</block>
|
|
|
|
|
<block v-else>
|
|
|
|
|
<!-- <block v-else>
|
|
|
|
|
<view class="cu-form-group margin-top shadow-warp" :class="[shape=='round'?'round':'']">
|
|
|
|
|
<view class="title"><text class="cuIcon-mobile margin-right-xs"></text>手机号:</view>
|
|
|
|
|
<input placeholder="请输入手机号" type="number" maxlength="11" v-model="phoneNo"></input>
|
|
|
|
@ -40,14 +36,18 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="padding text-center margin-top">
|
|
|
|
|
<button class="cu-btn bg-blue lg margin-right shadow" :loading="loading" :class="[shape=='round'?'round':'']"
|
|
|
|
|
<button class="cu-btn bg-gr1 lg margin-right shadow" :loading="loading" :class="[shape=='round'?'round':'']"
|
|
|
|
|
@tap="onSMSLogin"><text space="emsp">{{loading ? "登录中...":" 登录 "}}</text>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="cu-btn line-blue lg margin-left shadow" :loading="loading" :class="[shape=='round'?'round':'']"
|
|
|
|
|
@tap="loginWay=1">账户登录
|
|
|
|
|
</button>
|
|
|
|
|
</view>
|
|
|
|
|
</block>
|
|
|
|
|
</block> -->
|
|
|
|
|
<view class="compony">Copyright ©上海能辉科技股份有限公司</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zai-box">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
|
@ -56,8 +56,8 @@
|
|
|
|
|
</view>
|
|
|
|
|
<!-- #endif -->
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 登录加载弹窗 -->
|
|
|
|
|
<view class="cu-load load-modal" v-if="loading">
|
|
|
|
|
<!-- <view class="cuIcon-emojifill text-orange"></view> -->
|
|
|
|
@ -66,6 +66,8 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
@ -255,23 +257,42 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.compony {
|
|
|
|
|
font-size: 24upx;
|
|
|
|
|
transform: scale(0.9);
|
|
|
|
|
align-self: center;
|
|
|
|
|
justify-self: center;
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
|
.bg-box {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
}
|
|
|
|
|
.input {
|
|
|
|
|
border-radius: 9px;
|
|
|
|
|
}
|
|
|
|
|
.login-paddingtop {
|
|
|
|
|
padding-top: 620upx;
|
|
|
|
|
padding-left: 39upx;
|
|
|
|
|
border-radius: 25px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
top: 45%;
|
|
|
|
|
width: 85%;
|
|
|
|
|
}
|
|
|
|
|
.bg-gr1 {
|
|
|
|
|
background-color: #2bb88d;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.zai-box {
|
|
|
|
|
padding: 0 20upx;
|
|
|
|
|
padding-top: 10upx;
|
|
|
|
|
padding-left: 40upx;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 1331rpx;
|
|
|
|
|
background-image: url(@/static/long_2.png);
|
|
|
|
|
height: 700upx;
|
|
|
|
|
background-image: url(@/static/home/login_2.png);
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: contain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|