Commit de95b0d7 authored by zL's avatar zL

fix:去除无用代码&&登录组件css变更

parent 87ebac80
...@@ -4,55 +4,64 @@ ...@@ -4,55 +4,64 @@
<h1>邮箱登录</h1> <h1>邮箱登录</h1>
<div class="tip"> <div class="tip">
您还可以进行 您还可以进行
<span @click="changeLogin">{{loginMethod}}</span>&nbsp;登录 <span @click="changeLogin">{{ loginMethod }}</span
>&nbsp;登录
</div> </div>
<div> <div>
<el-input <el-input
placeholder="请输入邮箱地址" placeholder="请输入邮箱地址"
class="input-box" class="input-box"
v-model.trim="email" v-model.trim="email"
@input="email=email.replace(/[\u4e00-\u9fa5]/ig,'')" @input="email = email.replace(/[\u4e00-\u9fa5]/gi, '')"
/> />
<!-- code输入框 --> <!-- code输入框 -->
<div class="el-input input-box input-box__code" v-if="loginType===1"> <div class="el-input input-box input-box__code" v-if="loginType === 1">
<input <input
type="text" type="text"
maxlength="9" maxlength="9"
autocomplete="off" autocomplete="off"
v-model.trim="code" v-model.trim="code"
@input="code=code.replace(/[^\d]/g,'')" @input="code = code.replace(/[^\d]/g, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请输入邮箱验证码" placeholder="请输入邮箱验证码"
/> />
<div <div
class="btn" :class="{ btn: true, 'btn-js__active': curIntervalSeconds === 0 }"
@click="getCode" @click="getCode"
>{{curIntervalSeconds === 0 ? '发送验证码' : curIntervalSeconds + '秒后重新发送'}}</div> >
{{
curIntervalSeconds === 0
? "发送验证码"
: curIntervalSeconds + "秒后重新发送"
}}
</div>
</div> </div>
<!-- 密码输入框 --> <!-- 密码输入框 -->
<div class="el-input input-box input-password" v-if="loginType===0"> <div class="el-input input-box input-password" v-if="loginType === 0">
<input <input
:type="[openOrClose?'password':'text']" :type="[openOrClose ? 'password' : 'text']"
maxlength="30" maxlength="30"
autocomplete="off" autocomplete="off"
v-model.trim="password" v-model.trim="password"
@input="password=password.replace(/[\u4e00-\u9fa5]/ig,'')" @input="password = password.replace(/[\u4e00-\u9fa5]/gi, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请输入密码" placeholder="请输入密码"
/> />
<div class="icon" @click="changeOpen"> <div class="icon" @click="changeOpen">
<i class="iconfont" :class="[openOrClose?'iconYJ':'iconYC']"></i> <i class="iconfont" :class="[openOrClose ? 'iconYJ' : 'iconYC']"></i>
</div> </div>
</div> </div>
<!-- 底部登录按钮 --> <!-- 底部登录按钮 -->
<div class="sign-in-btn" @click="loginStart">登录</div> <div class="sign-in-btn" @click="loginStart">登录</div>
<!-- 记住密码or设置密码等 --> <!-- 记住密码or设置密码等 -->
<div class="operation-box" v-if="loginType===0"> <div class="operation-box" v-if="loginType === 0">
<div class="left-link-zone"> <div class="left-link-zone">
<el-checkbox v-model="isAutoLogin">记住密码</el-checkbox> <el-checkbox v-model="isAutoLogin">记住密码</el-checkbox>
</div> </div>
<div class="right-link-zone"> <div class="right-link-zone">
<a href="javascript:void(0)" class="set-up" @click="SetPassword(2)">设置密码</a> <a href="javascript:void(0)" class="set-up" @click="SetPassword(2)"
>设置密码</a
>
<a href="javascript:void(0)" @click="SetPassword(3)">忘记密码</a> <a href="javascript:void(0)" @click="SetPassword(3)">忘记密码</a>
</div> </div>
</div> </div>
...@@ -291,6 +300,9 @@ export default { ...@@ -291,6 +300,9 @@ export default {
background: rgba(244, 244, 244, 1); background: rgba(244, 244, 244, 1);
border-radius: 3px; border-radius: 3px;
} }
.btn-js__active {
color: #3f79fe;
}
} }
.input-password { .input-password {
position: relative; position: relative;
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<h1>手机登录</h1> <h1>手机登录</h1>
<div class="tip"> <div class="tip">
您还可以进行 您还可以进行
<span @click="changeLogin">{{loginMethod}}</span>&nbsp;登录 <span @click="changeLogin">{{ loginMethod }}</span
>&nbsp;登录
</div> </div>
<div> <div>
<el-input <el-input
...@@ -12,48 +13,56 @@ ...@@ -12,48 +13,56 @@
class="input-box" class="input-box"
v-model.trim="phone" v-model.trim="phone"
maxlength="11" maxlength="11"
@input="phone=phone.replace(/[^\d]/g,'')" @input="phone = phone.replace(/[^\d]/g, '')"
/> />
<!-- code输入框 --> <!-- code输入框 -->
<div class="el-input input-box input-box__code" v-if="loginType===1"> <div class="el-input input-box input-box__code" v-if="loginType === 1">
<input <input
type="text" type="text"
maxlength="9" maxlength="9"
autocomplete="off" autocomplete="off"
v-model.trim="code" v-model.trim="code"
@input="code=code.replace(/[^\d]/g,'')" @input="code = code.replace(/[^\d]/g, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请输入短信验证码" placeholder="请输入短信验证码"
/> />
<div <div
class="btn" :class="{ btn: true, 'btn-js__active': curIntervalSeconds === 0 }"
@click="getCode" @click="getCode"
>{{curIntervalSeconds === 0 ? '发送验证码' : curIntervalSeconds + '秒后重新发送'}}</div> >
{{
curIntervalSeconds === 0
? "发送验证码"
: curIntervalSeconds + "秒后重新发送"
}}
</div>
</div> </div>
<!-- 密码输入框 --> <!-- 密码输入框 -->
<div class="el-input input-box input-password" v-if="loginType===0"> <div class="el-input input-box input-password" v-if="loginType === 0">
<input <input
:type="[openOrClose?'password':'text']" :type="[openOrClose ? 'password' : 'text']"
maxlength="30" maxlength="30"
autocomplete="off" autocomplete="off"
v-model.trim="password" v-model.trim="password"
@input="password=password.replace(/[\u4e00-\u9fa5]/ig,'')" @input="password = password.replace(/[\u4e00-\u9fa5]/gi, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请输入密码" placeholder="请输入密码"
/> />
<div class="icon" @click="changeOpen"> <div class="icon" @click="changeOpen">
<i class="iconfont" :class="[openOrClose?'iconYJ':'iconYC']"></i> <i class="iconfont" :class="[openOrClose ? 'iconYJ' : 'iconYC']"></i>
</div> </div>
</div> </div>
<!-- 底部登录按钮 --> <!-- 底部登录按钮 -->
<div class="sign-in-btn" @click="loginStart">登录</div> <div class="sign-in-btn" @click="loginStart">登录</div>
<!-- 记住密码or设置密码等 --> <!-- 记住密码or设置密码等 -->
<div class="operation-box" v-if="loginType===0"> <div class="operation-box" v-if="loginType === 0">
<div class="left-link-zone"> <div class="left-link-zone">
<el-checkbox v-model="isAutoLogin">记住密码</el-checkbox> <el-checkbox v-model="isAutoLogin">记住密码</el-checkbox>
</div> </div>
<div class="right-link-zone"> <div class="right-link-zone">
<a href="javascript:void(0)" class="set-up" @click="SetPassword(0)">设置密码</a> <a href="javascript:void(0)" class="set-up" @click="SetPassword(0)"
>设置密码</a
>
<a href="javascript:void(0)" @click="SetPassword(1)">忘记密码</a> <a href="javascript:void(0)" @click="SetPassword(1)">忘记密码</a>
</div> </div>
</div> </div>
...@@ -297,6 +306,9 @@ export default { ...@@ -297,6 +306,9 @@ export default {
background: rgba(244, 244, 244, 1); background: rgba(244, 244, 244, 1);
border-radius: 3px; border-radius: 3px;
} }
.btn-js__active {
color: #3f79fe;
}
} }
.input-password { .input-password {
position: relative; position: relative;
......
<template> <template>
<div> <div>
<h1>{{title}}</h1> <h1>{{ title }}</h1>
<el-input <el-input
placeholder="请输入手机号" placeholder="请输入手机号"
class="input-box" class="input-box"
v-model="phone" v-model="phone"
v-if="getType===0||getType===1" v-if="getType === 0 || getType === 1"
maxlength="11" maxlength="11"
@input="phone=phone.replace(/[^\d]/g,'')" @input="phone = phone.replace(/[^\d]/g, '')"
/> />
<el-input <el-input
v-if="getType===2||getType===3" v-if="getType === 2 || getType === 3"
placeholder="请输入邮箱地址" placeholder="请输入邮箱地址"
class="input-box" class="input-box"
v-model.trim="email" v-model.trim="email"
@blur="cheack" @blur="cheack"
@input="email=email.replace(/[\u4e00-\u9fa5]/ig,'')" @input="email = email.replace(/[\u4e00-\u9fa5]/gi, '')"
/> />
<!-- code输入框 --> <!-- code输入框 -->
<div class="el-input input-box input-box__code" v-if="getType===0||getType===1"> <div
class="el-input input-box input-box__code"
v-if="getType === 0 || getType === 1"
>
<input <input
type="text" type="text"
maxlength="9" maxlength="9"
autocomplete="off" autocomplete="off"
v-model="code" v-model="code"
@input="code=code.replace(/[^\d]/g,'')" @input="code = code.replace(/[^\d]/g, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请输入短信验证码" placeholder="请输入短信验证码"
/> />
<div <div
class="btn" :class="{ btn: true, 'btn-js__active': curIntervalSeconds === 0 }"
@click="getCode" @click="getCode"
>{{curIntervalSeconds === 0 ? '发送验证码' : curIntervalSeconds + '秒后重新发送'}}</div> >
{{
curIntervalSeconds === 0
? "发送验证码"
: curIntervalSeconds + "秒后重新发送"
}}
</div>
</div> </div>
<div class="el-input input-box input-box__code" v-if="getType===2||getType===3"> <div
class="el-input input-box input-box__code"
v-if="getType === 2 || getType === 3"
>
<input <input
type="text" type="text"
maxlength="9" maxlength="9"
autocomplete="off" autocomplete="off"
v-model.trim="code" v-model.trim="code"
@input="code=code.replace(/[^\d]/g,'')" @input="code = code.replace(/[^\d]/g, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请输入邮箱验证码" placeholder="请输入邮箱验证码"
/> />
<div <div
class="btn" :class="{ btn: true, 'btn-js__active': curIntervalSeconds === 0 }"
@click="getEmailCode" @click="getEmailCode"
>{{curIntervalSeconds === 0 ? '发送验证码' : curIntervalSeconds + '秒后重新发送'}}</div> >
{{
curIntervalSeconds === 0
? "发送验证码"
: curIntervalSeconds + "秒后重新发送"
}}
</div>
</div> </div>
<!-- 密码输入框 --> <!-- 密码输入框 -->
<div class="el-input input-box input-password"> <div class="el-input input-box input-password">
<input <input
:type="[openOrClose1?'password':'text']" :type="[openOrClose1 ? 'password' : 'text']"
maxlength="30" maxlength="30"
autocomplete="off" autocomplete="off"
v-model.trim="passwordOne" v-model.trim="passwordOne"
@input="passwordOne=passwordOne.replace(/[\u4e00-\u9fa5]/ig,'')" @input="passwordOne = passwordOne.replace(/[\u4e00-\u9fa5]/gi, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请输入密码" placeholder="请输入密码"
/> />
<div class="icon" @click="changeOpen1"> <div class="icon" @click="changeOpen1">
<i class="iconfont" :class="[openOrClose1?'iconYJ':'iconYC']"></i> <i class="iconfont" :class="[openOrClose1 ? 'iconYJ' : 'iconYC']"></i>
</div> </div>
</div> </div>
<div class="el-input input-box input-password"> <div class="el-input input-box input-password">
<input <input
:type="[openOrClose2?'password':'text']" :type="[openOrClose2 ? 'password' : 'text']"
maxlength="30" maxlength="30"
autocomplete="off" autocomplete="off"
v-model.trim="passwordTwo" v-model.trim="passwordTwo"
@input="passwordTwo=passwordTwo.replace(/[\u4e00-\u9fa5]/ig,'')" @input="passwordTwo = passwordTwo.replace(/[\u4e00-\u9fa5]/gi, '')"
class="el-input__inner" class="el-input__inner"
placeholder="请再次确认密码" placeholder="请再次确认密码"
/> />
<div class="icon" @click="changeOpen2"> <div class="icon" @click="changeOpen2">
<i class="iconfont" :class="[openOrClose2?'iconYJ':'iconYC']"></i> <i class="iconfont" :class="[openOrClose2 ? 'iconYJ' : 'iconYC']"></i>
</div> </div>
</div> </div>
<div class="sign-in-btn" @click="setPassword">{{title}}</div> <div class="sign-in-btn" @click="setPassword">{{ title }}</div>
<div class="sign-in-btn--bgw" @click="goback">返回登录</div> <div class="sign-in-btn--bgw" @click="goback">返回登录</div>
</div> </div>
</template> </template>
...@@ -423,6 +441,9 @@ h1 { ...@@ -423,6 +441,9 @@ h1 {
background: rgba(244, 244, 244, 1); background: rgba(244, 244, 244, 1);
border-radius: 3px; border-radius: 3px;
} }
.btn-js__active {
color: #3f79fe;
}
} }
.sign-in-btn { .sign-in-btn {
width: 441px; width: 441px;
......
...@@ -27,165 +27,6 @@ const configModules = { ...@@ -27,165 +27,6 @@ const configModules = {
filename: 'index.html' filename: 'index.html'
} }
}, },
// 慈善>测试环境
"cs_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9033/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46788',
INDEX: {
entry: './src/entry/cs/main.ts',
template: './public/cs/index.html',
filename: 'index.html'
}
},
// 慈善>正式环境
"cs_prod": {
CHAIN_BROWSER_URL_PREFIX: 'https://ccs.chain33.pro/',
INERFACE_URL_PREFIX: 'https://cs.chain33.pro/api',
INDEX: {
entry: './src/entry/cs/main.ts',
template: './public/cs/index.html',
filename: 'index.html'
}
},
// 百斯特>测试环境
"best_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: {
entry: './src/entry/best/main.ts',
template: './public/best/index.html',
filename: 'index.html'
}
},
// 百斯特>正式环境
"best_prod": {
CHAIN_BROWSER_URL_PREFIX: 'https://llq.hrzl.net.cn/', // 浏览器
INERFACE_URL_PREFIX: 'https://hrzl.net.cn/api', // 服务器地址
INDEX: {
entry: './src/entry/best/main.ts',
template: './public/best/index.html',
filename: 'index.html'
}
},
// hd>测试环境
"hd_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: {
entry: './src/entry/hd/main.ts',
template: './public/hd/index.html',
filename: 'index.html'
}
},
// hd>正式环境
"hd_prod": {
CHAIN_BROWSER_URL_PREFIX: 'https://cx.honordecentcoin.com/',
INERFACE_URL_PREFIX: 'https://sy.honordecentcoin.com/api',
INDEX: {
entry: './src/entry/hd/main.ts',
template: './public/hd/index.html',
filename: 'index.html'
}
},
// dl>测试环境
"dl_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: {
entry: './src/entry/dl/main.ts',
template: './public/dl/index.html',
filename: 'index.html'
}
},
// dl>正式环境
"dl_prod": {
CHAIN_BROWSER_URL_PREFIX: 'https://browser.scdliot.com/',
INERFACE_URL_PREFIX: 'https://user.scdliot.com/api',
INDEX: {
entry: './src/entry/dl/main.ts',
template: './public/dl/index.html',
filename: 'index.html'
}
},
// hl>测试环境
"hl_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: {
entry: './src/entry/hl/main.ts',
template: './public/hl/index.html',
filename: 'index.html'
}
},
// hl正式环境
"hl_prod": {
CHAIN_BROWSER_URL_PREFIX: 'https://llq.chainchacha.com/',
INERFACE_URL_PREFIX: 'https://chainchacha.com/api',
INDEX: {
entry: './src/entry/hl/main.ts',
template: './public/hl/index.html',
filename: 'index.html'
}
},
// boe>测试环境
"boe_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: {
entry: './src/entry/boe/main.ts',
template: './public/boe/index.html',
filename: 'index.html'
}
},
//
// boe>演示环境
"boe_prod": {
CHAIN_BROWSER_URL_PREFIX: 'http://124.70.129.56:8995/',
INERFACE_URL_PREFIX: 'http://124.70.129.56:46789',
INDEX: {
entry: './src/entry/boe/main.ts',
template: './public/boe/index.html',
filename: 'index.html'
}
},
// 甘肃>测试环境
"gs_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://121.41.198.216:9010/',
INERFACE_URL_PREFIX: 'http://121.41.198.216:46789',
INDEX: {
entry: './src/entry/gs/main.ts',
template: './public/gs/index.html',
filename: 'index.html'
}
},
"gs_prod": {
CHAIN_BROWSER_URL_PREFIX: 'http://25.215.128.192:9010/',
INERFACE_URL_PREFIX: 'http://25.215.128.28:46789',
INDEX: {
entry: './src/entry/gs/main.ts',
template: './public/gs/index.html',
filename: 'index.html'
}
},
// 财政厅项目
"czt_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:8998/',
INERFACE_URL_PREFIX: 'http://124.71.144.118:46789',
INDEX: {
entry: './src/entry/czt/main.ts',
template: './public/czt/index.html',
filename: 'index.html'
}
},
// todo 待修改接口链接
"czt_prod": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:8998/',
INERFACE_URL_PREFIX: 'http://124.71.144.118:46789',
INDEX: {
entry: './src/entry/czt/main.ts',
template: './public/czt/index.html',
filename: 'index.html'
}
}
}; };
exports.model = configModules[process.env.VUE_APP_CURRENTMODE] exports.model = configModules[process.env.VUE_APP_CURRENTMODE]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment