node+mysql+中文报错_node+mysql+vue 搭建前后端分离基础框架

注册

name:"register",

data (){return{

cur:0,

account:'',

password:'',

name:''}

},

methods:{//注册

register:function(){var accounts = this.account;var passwords =this.password;var names =this.name;this.$http.get('/api/register', {

params:{

account: accounts,

password: passwords,

name:names

}

},{}).then((response)=>{

console.log(response);

})

},//登录

login:function(){var accounts = this.account;var passwords =this.password;this.$http.get('/api/login', {

params:{

account: accounts,

password: passwords,

}

},{}).then((response)=>{

console.log(response);

})

},

git:function() {//发送get请求

this.$http.post('/api/list').then(function(res){

console.log(res);

},function(){

console.log('请求失败处理');

});

}

},

mounted() {

}

}

width: 300px;

min-height: 100px;

border: 1px solid #dedede;

position: absolute;

left:50%;

top:50%;

transform: translate(-50%, -50%);

border-radius: 8px;

}

.cl_middle-all {

width:100%;

height: 35px;

line-height: 35px;

overflow: hidden;

}

.cl_register {

width:50%;

text-align: center;float: left;

cursor: pointer;

color: red;

position: relative;

}

.cl_login {

width:50%;

text-align: center;float: right;

cursor: pointer;

color: mediumspringgreen;

position: relative;

}

.cl_register:before{

content:"";

width: 30px;

height: 2px;

background: red;

position: absolute;

left:50%;

bottom: 2px;

transform: translate(-50%, 100%);

display: none;

}

.cl_register:after{

content:"";

width: 1px;

height: 20px;

position: absolute;

right:0%;

top:50%;

transform: translate(-50%, -50%);

background: rgba(0,0,0,0.6);

}

.cl_login:before{

content:"";

width: 30px;

height: 2px;

background: mediumspringgreen;

position: absolute;

left:50%;

bottom: 2px;

transform: translate(-50%, 100%);

display: none;

}

.cl_color.cl_login:before{

display: block;

}

.cl_color.cl_register:before{

display: block;

}

.cl_color:nth-child(2){

color: mediumspringgreen;

}

.cl_tab_list{

border-top: 1px solid #dedede;

background: rgba(0,0,0,0.02);

}

.cl_register_list {

width:100%;

min-height: 100px;

}

.cl_login_list {

width:100%;

min-height: 100px;

}

.cl_input {

width:96%;

height: 32px;

margin: 12px auto;

border: 1px solid #dedede;

border-radius: 4px;

}

.cl_input_text {

width:100%;

height: 32px;

border: none;

appearance: none;

outline: none;

outline: medium;

padding:012px;

box-sizing: border-box;

cursor: pointer;

border-radius: 4px;

}

.cl_input_btn {

width:100%;

border: none;

height: 32px;

outline: none;

outline: medium;

cursor: pointer;

border-radius: 4px;

}

.cl_register_btn{

background: red;

color: #ffffff;

}

.cl_login_btn{

background: mediumspringgreen;

color: #ffffff;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值