Commit 1c5d1ca2 by 刘泽奇

123

parent b41072b0
......@@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="keywords" content="PAAS 开放平台">
<meta name="baidu-site-verification" content="lATAxZAm8y" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8, user-scalable=1">
<title id="idtitle"></title>
<!-- <%=app?app.name:'应用未启用'%> -->
......@@ -104,6 +104,7 @@
<script src="/js/cropper/index.js"></script>
<script src="/js/vue/base64.js"></script>
<script src="/js/common.js"></script>
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script type="module" src="/js/index.js"></script>
</body>
......
//axios.get("/vue/comp/base").then(function(res){
basecomp.forEach(function (comp) {
try {
var obj = eval("(" + comp + ")");
......@@ -8,7 +7,6 @@ basecomp.forEach(function (comp) {
console.log(e);
}
});
console.log("load base component finished...");
function buildPromise(compath) {
return Promise.resolve(new Promise(function (resolve, reject) {
......@@ -77,6 +75,8 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
if (to.path == "/" && location.hostname == "tm.plus.jdcloud.com") {
router.replace({ path: '/jd/jdtrademark' });
}
console.log(to, from);
next();
});
Vue.use(window['vue-cropper']);
......
......@@ -196,6 +196,9 @@
});
},
jumpJdProductDetails(code){
console.log(this.$root.channelName);
switch (this.$root.channelName) {
case "jd":
if (code.channelItemCode) {
......
......@@ -279,26 +279,23 @@
};
that.$refs.form2.validate(valid => {
if (valid) {
that.$root.postReq("/web/userCtl/login", { u: obj }).then(function (d) {
var userInfo = that.$root.copyParams(obj, "userPinByLgoin", "/auth/accessAuth/springBoard");
console.log(userInfo, 'mmmmmmmmmmmmmmmmmmmmmm');
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", userInfo).then((d) => {
if (d.status == 0) {
that.$root.refreshLoginState(() => {
console.log("....................................................................................innner");
var afto = localStorage.getItem("afterLogin");
if (afto) {
that.$root.pushx(JSON.parse(afto));
localStorage.removeItem("afterLogin");
that.$root.removetab("/login");
} else {
location.reload();
}
});
$.cookie('channelUserId', this.$root.channelUserId);
this.$root.channelUserId = decodeURIComponent(d.data.channelUserId);
$.cookie('channelUserId', d.data.channelUserId);
$.cookie('userName', d.data.userName);
console.log("返回信息", d)
} else if (d.status == 2010) {
console.log(d.msg);
} else if (d.status == 2060) {
console.log(d.msg);
} else {
that.$message({
type: 'error',
message: '用户名或密码错误,请重试.'
});
console.log(d.msg);
}
})
});
}
});
},
......
......@@ -121,7 +121,7 @@
<el-form-item prop="password">
<el-input type="password" v-model="form4.password" placeholder="请设置6-18位密码,区分大小写"></el-input>
</el-form-item>
<el-form-item style="margin-bottom:8px;">
<el-button style="margin-bottom:8px;">
<el-button type="primary" class="login-content-button" @click="submitregister">注册</el-button>
</el-form-item>
<div style="font-size:12px;color:#828282">点击“登录”即表示同意
......
......@@ -12,7 +12,7 @@
}
}
if (rule.field == "code") {
if (that.rcode != value) {
if (that.form1.code.length != 6) {
return callback(new Error("输入验证码有误,请重新输入"));
}
}
......@@ -161,7 +161,18 @@
this.resetall();
},
obtaincode1(){
let obj = this.$root.copyParams({ mobile: this.form1.mobile }, "getVerifyCode", "/auth/accessAuth/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
if (d.status == 0) {
console.log("返回信息", d);
} else {
console.log(d.msg);
}
});
/*
this.fetchVcode(this.form1.mobile)
*/
},
obtaincode2(){
var that = this;
......@@ -253,30 +264,24 @@
var obj = {
mobile: that.form1.mobile,
password: that.form1.password,
vcode: that.form1.code,
};
that.$refs.form1.validate(valid => {
if (valid) {
that.$root.postReq("/web/userCtl/loginByMobile", { u: obj }).then(function (d) {
var userInfo = that.$root.copyParams(obj, "userPinByRegister", "/auth/accessAuth/springBoard");
console.log(userInfo, 'mmmmmmmmmmmmmmmmmmmmmm');
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", userInfo).then((d) => {
if (d.status == 0) {
console.log("..................................................helllo..................................");
that.$root.refreshLoginState(() => {
console.log("....................................................................................innner");
var afto = localStorage.getItem("afterLogin");
if (afto) {
that.$root.pushx(JSON.parse(afto));
localStorage.removeItem("afterLogin");
that.$root.removetab("/login");
} else {
location.reload();
that.$root.pushx({
title: "首页",
name: "/"
})
}
});
this.$root.channelUserId = d.data.channelUserId;
console.log("返回信息", d)
} else if (d.status == 2030) {
console.log(d.msg);
} else if (d.status == 2060) {
console.log(d.msg);
} else {
console.log(d.msg);
}
})
});
} else {
console.log('输入有误')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment