//var modal = weex.requireModule('modal');
var modal = weex.requireModule('modal');
var stream = weex.requireModule('stream');
export default {
methods: {
login (event) {
//alert('66');
stream.fetch({
method: 'GET',
type: 'json',
url: 'http://xxxxxx.com/xxx/xxx?username=ggjz&password=123'
}, function(ret) {
if(!ret.ok){
modal.toast({
'message': '登陆失败',
'duration': 2.0
})
}else{
modal.toast({
message: '登陆成功',
duration: 2.0
})
}
})
},
}
}
.input-wrapper{
margin-left: auto;
margin-right: auto;
}
.input {
font-size: 60px;
height: 80px;
width: 750px;
}
.text{
color: #666666;
font-size: 60px;
}
.button {
width: 200px;
height: 80px;
text-align: center;
border-width: 2px;
border-style: solid;
border-color: rgb(162, 217, 192);
background-color: rgba(162, 217, 192, 0.2);
margin-top: 20px;
margin-left: auto;
margin-right: auto;
}