|
|
|
|
@ -340,6 +340,7 @@
|
|
|
|
|
/**
|
|
|
|
|
* 登录提示页
|
|
|
|
|
*/
|
|
|
|
|
import jsonrpc from "@/shopro/jsonrpc/jsonrpc2.0.js"
|
|
|
|
|
import FormValidate from "@/shopro/validate/form";
|
|
|
|
|
import schema from "@/uview-ui/libs/util/async-validator";
|
|
|
|
|
import wechat from "@/shopro/wechat/wechat";
|
|
|
|
|
@ -498,11 +499,23 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 检测
|
|
|
|
|
checkValue(e, key) {
|
|
|
|
|
this.validation(key);
|
|
|
|
|
console.log("checkValue@@@@")
|
|
|
|
|
// this.validation(key);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 校验数据
|
|
|
|
|
validation(key, callback = () => { }) {
|
|
|
|
|
console.log("validation")
|
|
|
|
|
let wqy = function(responce){
|
|
|
|
|
console.log(responce)
|
|
|
|
|
}
|
|
|
|
|
let res = {
|
|
|
|
|
"method":"/account/login",
|
|
|
|
|
"jsonrpc":"2.0",
|
|
|
|
|
"params":{"username":"admin",
|
|
|
|
|
"password":"123"}
|
|
|
|
|
}
|
|
|
|
|
jsonrpc.send("http://192.168.10.151:5080/jsonrpc",res,wqy,wqy)
|
|
|
|
|
let that = this;
|
|
|
|
|
//拿到需要校验的数据
|
|
|
|
|
let fieldValue = this.form[this.authType].data[key];
|
|
|
|
|
|