要搞直接登录
This commit is contained in:
22
common/checker.js
Normal file
22
common/checker.js
Normal file
@@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
error:'',
|
||||
isJSON : function (str){
|
||||
if (typeof str == 'string') {
|
||||
try {
|
||||
var obj=JSON.parse(str);
|
||||
if(typeof obj == 'object' && obj ){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
} catch(e) {
|
||||
console.log('error:'+str+'!!!'+e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
isNumber : function (checkVal){
|
||||
var reg = /^-?[1-9][0-9]?.?[0-9]*$/;
|
||||
return reg.test(checkVal);
|
||||
}
|
||||
}
|
||||
@@ -26,12 +26,13 @@ page {
|
||||
}
|
||||
|
||||
.my-bg {
|
||||
background-color: #f1f2f7 !important;
|
||||
background-color: #f1f2f7 !important;
|
||||
}
|
||||
|
||||
.oil-main-color {
|
||||
color: #FE0505 !important;
|
||||
}
|
||||
|
||||
.bg-main-oil {
|
||||
background-color: #FE0505 !important;
|
||||
}
|
||||
@@ -129,12 +130,23 @@ page {
|
||||
.margin-0 {
|
||||
margin: 0;
|
||||
}
|
||||
.w100{
|
||||
|
||||
.w100 {
|
||||
min-width: 100%;
|
||||
}
|
||||
.padding-bottom-0{
|
||||
|
||||
.padding-bottom-0 {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.page-content{
|
||||
|
||||
.page-content {
|
||||
min-height: 100%;
|
||||
}
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 客服热线 */
|
||||
.bottom-part {
|
||||
min-width: 100%;
|
||||
position: absolute;
|
||||
bottom: 50rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user