Commit fbb4fb30 by 徐忆琳

Merge branch 'xuyl_v3.13_0' into 'scrmv3.13.0'

更新冒烟代码

See merge request !11
2 parents c0da700f 22457473
...@@ -29,17 +29,17 @@ export default { ...@@ -29,17 +29,17 @@ export default {
return { return {
yesterday: '', yesterday: '',
now: new Date().format('yyyy-MM-dd hh:mm:ss'), now: new Date().format('yyyy-MM-dd hh:mm:ss'),
merchantNum: { // merchantNum: {
totalNum: '--', // totalNum: '--',
increLastMonthNum: '--', // increLastMonthNum: '--',
increThisMonthNum: '--' // increThisMonthNum: '--'
} // }
} }
}, },
mounted() { mounted() {
this.yesterday = new Date(new Date().setDate(new Date().getDate() - 1)).format('yyyy-MM-dd') this.yesterday = new Date(new Date().setDate(new Date().getDate() - 1)).format('yyyy-MM-dd')
this.timer() this.timer()
this.getMerchantNum() // this.getMerchantNum()
}, },
methods: { methods: {
timer() { timer() {
...@@ -47,16 +47,13 @@ export default { ...@@ -47,16 +47,13 @@ export default {
this.now = new Date().format('yyyy-MM-dd hh:mm:ss') this.now = new Date().format('yyyy-MM-dd hh:mm:ss')
}, 1e3) }, 1e3)
}, },
getMerchantNum() { // getMerchantNum() {
this.api.overview.getMerchantNum({}).then(res => { // this.api.overview.getMerchantNum({}).then(res => {
if (res.code === '0') { // if (res.code === '0') {
this.merchantNum = res.data.dataList[0] // this.merchantNum = res.data.dataList[0]
} // }
})
// this.api.renewal.getRanking({}).then(res =>{
// console.log(res)
// }) // })
} // }
} }
} }
</script> </script>
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
<div class='authorization-wrap'> <div class='authorization-wrap'>
<div class='username-wrap flex'> <div class='username-wrap flex'>
<img class='user-icon' src='../../../src/assets/images/login/login-user-icon.png'> <img class='user-icon' src='../../../src/assets/images/login/login-user-icon.png'>
<el-input placeholder='请输入用户名' v-model='userName'></el-input> <el-input class='user-input' placeholder='请输入用户名' v-model='userName'></el-input>
</div> </div>
<div class='password-wrap flex'> <div class='password-wrap flex'>
<img class='user-icon' src='../../../src/assets/images/login/login-psw-icon.png'> <img class='user-icon' src='../../../src/assets/images/login/login-psw-icon.png'>
<el-input placeholder='请输入密码' v-model='passWord' show-password></el-input> <el-input class='user-input' placeholder='请输入密码' v-model='passWord' show-password></el-input>
</div> </div>
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
let pwd = this.passWord let pwd = this.passWord
if (!user || !pwd) { if (!user || !pwd) {
this.$message.error('请输入账号密码') this.$message.error('请输入账号密码')
}else{ } else {
if (Object.keys(this.accountPassword).includes(user)) { if (Object.keys(this.accountPassword).includes(user)) {
if (pwd == this.accountPassword[user]) { if (pwd == this.accountPassword[user]) {
this.$router.push('./home') this.$router.push('./home')
...@@ -65,7 +65,18 @@ export default { ...@@ -65,7 +65,18 @@ export default {
} }
</script> </script>
<style lang='scss'>
.authorization-wrap {
/deep/ .el-input_inner {
background: linear-gradient(269deg, #ff660000 0%, #fb6900c7 51%, #FA6A00 98%);
border: none;
opacity: 0.67;
color: #fff
}
}
</style>
<style lang='scss' scoped> <style lang='scss' scoped>
.user-icon { .user-icon {
width: 80px; width: 80px;
height: 80px; height: 80px;
...@@ -115,6 +126,21 @@ export default { ...@@ -115,6 +126,21 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.authorization-wrap {
.user-input{
/deep/ .el-input__inner {
background: linear-gradient(269deg, #ff660000 0%, #fb6900c7 51%, #FA6A00 98%);
border: none;
//opacity: 0.67;
color: #FFFFFF;
}
/deep/ .el-input__inner::placeholder {
color: #FFFFFF;
}
}
}
.login-btn { .login-btn {
background-image: url('./../../assets/images/login/login-bottom.png'); background-image: url('./../../assets/images/login/login-bottom.png');
background-repeat: no-repeat; background-repeat: no-repeat;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!