Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
1c5d1ca2
Commit
1c5d1ca2
authored
Jan 09, 2020
by
刘泽奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
b41072b0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
41 deletions
+47
-41
igirl-channel-web/app/front/entry/index.ejs
+2
-1
igirl-channel-web/app/front/entry/public/js/index.js
+2
-2
igirl-channel-web/app/front/vues/pages/jdtrademark/jdtrademark.js
+3
-0
igirl-channel-web/app/front/vues/pages/login/login.js
+14
-17
igirl-channel-web/app/front/vues/pages/register/register.html
+1
-1
igirl-channel-web/app/front/vues/pages/register/register.js
+25
-20
No files found.
igirl-channel-web/app/front/entry/index.ejs
View file @
1c5d1ca2
...
...
@@ -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>
...
...
igirl-channel-web/app/front/entry/public/js/index.js
View file @
1c5d1ca2
//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'
]);
...
...
igirl-channel-web/app/front/vues/pages/jdtrademark/jdtrademark.js
View file @
1c5d1ca2
...
...
@@ -196,6 +196,9 @@
});
},
jumpJdProductDetails
(
code
){
console
.
log
(
this
.
$root
.
channelName
);
switch
(
this
.
$root
.
channelName
)
{
case
"jd"
:
if
(
code
.
channelItemCode
)
{
...
...
igirl-channel-web/app/front/vues/pages/login/login.js
View file @
1c5d1ca2
...
...
@@ -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
);
}
})
})
;
}
});
},
...
...
igirl-channel-web/app/front/vues/pages/register/register.html
View file @
1c5d1ca2
...
...
@@ -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"
>
点击“登录”即表示同意
...
...
igirl-channel-web/app/front/vues/pages/register/register.js
View file @
1c5d1ca2
...
...
@@ -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
(
'输入有误'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment