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
21fd77a3
Commit
21fd77a3
authored
Jan 11, 2020
by
刘泽奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
17b260bd
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
87 additions
and
201 deletions
+87
-201
igirl-channel-web/app/front/entry/admin.ejs
+0
-128
igirl-channel-web/app/front/entry/index.ejs
+1
-1
igirl-channel-web/app/front/entry/public/js/index.js
+17
-3
igirl-channel-web/app/front/vues/pages/admin/admin.css
+0
-7
igirl-channel-web/app/front/vues/pages/admin/admin.html
+0
-3
igirl-channel-web/app/front/vues/pages/admin/admin.js
+0
-17
igirl-channel-web/app/front/vues/pages/login/login.html
+4
-4
igirl-channel-web/app/front/vues/pages/login/login.js
+61
-37
igirl-channel-web/app/front/vues/pages/register/register.js
+4
-1
No files found.
igirl-channel-web/app/front/entry/admin.ejs
deleted
100644 → 0
View file @
17b260bd
<!DOCTYPE html>
<html
lang=
"zh-CN"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"keywords"
content=
"PAAS 开放平台"
>
<meta
name=
"baidu-site-verification"
content=
"lATAxZAm8y"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=0.8, maximum-scale=0.8, user-scalable=1"
>
<title
id=
"idtitle"
><
%=
app
.
name
%
></title>
<link
rel=
"stylesheet"
href=
"/css/ele/index_2.5.4.css"
>
<link
rel=
"stylesheet"
href=
"/css/pagecom.css"
>
<link
rel=
"stylesheet"
href=
"http://p.apps.com:3001/css/pagecom.css"
>
<link
rel=
"stylesheet"
href=
"/css/fontface-timely.css"
>
<script
src=
"/js/vue/vue.min_2.6.10.js"
></script>
<script
src=
"/js/vue/vue-router.min.js"
></script>
<script
src=
"/js/vue/vuex.min.js"
></script>
<script
src=
"/js/ele/index_2.5.4.js"
></script>
<script
src=
"/js/vue/axios.min.js"
></script>
<script>
//缓存当前域名对应的公司信息,公司、页脚、银行账号---全局变量
var
appinfo
=
JSON
.
parse
(
unescape
(
'<%=appinfo%>'
));
console
.
log
(
appinfo
);
//缓存当前的基础组件列表
var
basecomp
=
JSON
.
parse
(
unescape
(
'<%=basecomp%>'
));
//缓存当前的菜单配置
var
global_rsconfig
=
JSON
.
parse
(
unescape
(
'<%=rsconfig%>'
));
console
.
log
(
JSON
.
stringify
(
global_rsconfig
));
</script>
<style>
body
{
margin
:
0px
;
padding
:
0px
;
font-size
:
14px
;
box-sizing
:
border-box
;
height
:
100%
;
}
.app-main
{
width
:
100%
;
height
:
100%
;
background
:
url
(
"<%=
app
.
bkimageUrl
?
app
.
bkimageUrl
:
'/imgs/pt3.jpg'
%>"
)
no-repeat
;
background-size
:
cover
;
box-sizing
:
border-box
;
}
.app-header
{
display
:
flex
;
justify-content
:
space-between
;
color
:
white
;
padding
:
15px
;
box-sizing
:
border-box
;
cursor
:
pointer
;
}
.app-stage
{
display
:
flex
;
width
:
100%
;
padding
:
5px
;
box-sizing
:
border-box
;
}
.app-stage
.leftnav
{
background-color
:
green
;
max-width
:
250px
;
min-width
:
250px
;
flex-grow
:
1
;
box-sizing
:
border-box
;
}
.app-stage
.leftnav
.el-card__body
{
height
:
85%
;
}
.app-stage
.rightcontent
{
flex-grow
:
2
;
margin-left
:
5px
;
margin-right
:
15px
;
box-sizing
:
border-box
;
}
.app-stage
.rightcontent
>
.el-card
{
border-radius
:
0px
;
height
:
100%
;
box-shadow
:
unset
;
box-sizing
:
border-box
;
}
.app-stage
.is-always-shadow
{
box-shadow
:
unset
;
}
.app-stage
.leftnav
>
.el-card
{
border-radius
:
0px
;
height
:
100%
;
box-sizing
:
border-box
;
}
#appName
{
font-size
:
30px
;
font-family
:
MicrosoftYaHei
;
}
.el-button--text
{
color
:
white
}
.activeColor
{
color
:
deepskyblue
;
}
</style>
</head>
<body>
<div
id=
"app"
v-loading=
"loading"
class=
"app-main"
style=
"visibility:hidden"
>
<div
id=
"app-header"
class=
"app-header"
>
<div
id=
"appName"
@
click=
"clkapp"
><
%=
app
.
name
%
>
后台管理
</div>
<div
id=
"login"
>
<span
v-if=
"currentUser"
>
欢迎您,{{currentUser.nickName}}
<el-button
@
click=
"exitclick"
type=
"text"
icon=
"el-icon-setting"
>
退出
</el-button></span>
</div>
</div>
<div
id=
"app-stage"
class=
"app-stage"
>
<div
class=
"leftnav"
>
<el-card
id=
"leftnav"
>
<gsb-leftmenu
bkcolor=
"white"
ref=
"leftmenu"
key=
"leftmenu"
formatprop=
"formatItem"
@
menuselect=
"onMenuSelect"
></gsb-leftmenu>
</el-card>
</div>
<div
class=
"rightcontent"
>
<transition
name=
"slide-fade"
>
<router-view>
</router-view>
</transition>
</div>
</div>
</div>
<script
src=
"/js/vue/jquery.min.js"
></script>
<script
src=
"/js/common.js"
></script>
<script
src=
"/js/admin.js"
></script>
</body>
</html>
\ No newline at end of file
igirl-channel-web/app/front/entry/index.ejs
View file @
21fd77a3
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<div
class=
"jc_hd"
></div>
<div
class=
"jc_hd"
></div>
</div>
</div>
<!-- 启服通公共头 -->
<!-- 启服通公共头 -->
<div
class=
"commonchannel"
v-if=
"channelName == 'bw'"
>
<div
class=
"commonchannel"
v-if=
"channelName == 'bw'
&& !isLogin
"
>
<div>
<div>
<div>
<div>
<img
src=
"/imgs/pt.jpg"
alt=
""
>
<img
src=
"/imgs/pt.jpg"
alt=
""
>
...
...
igirl-channel-web/app/front/entry/public/js/index.js
View file @
21fd77a3
...
@@ -35,7 +35,7 @@ const store = new Vuex.Store({
...
@@ -35,7 +35,7 @@ const store = new Vuex.Store({
currentUser
:
null
,
currentUser
:
null
,
curSelRow
:
{},
curSelRow
:
{},
reqUrl
:
""
,
reqUrl
:
""
,
channelName
:
""
,
channelName
:
""
,
},
},
});
});
Vue
.
mixin
({
Vue
.
mixin
({
...
@@ -171,6 +171,7 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
...
@@ -171,6 +171,7 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
commonFooter
:
true
,
commonFooter
:
true
,
user_Name
:
""
,
user_Name
:
""
,
channelMessage
:
""
,
channelMessage
:
""
,
isLogin
:
false
,
};
};
},
},
created
()
{
created
()
{
...
@@ -277,11 +278,24 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
...
@@ -277,11 +278,24 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
});
});
break
;
break
;
case
"bw"
:
case
"bw"
:
var
userPin
=
this
.
$root
.
copyParams
({
"userpin"
:
$
.
cookie
(
'userpin'
)
},
"logout"
,
"/auth/accessAuth/springBoard"
);
this
.
$root
.
loading
=
true
;
this
.
$root
.
postReq
(
"/web/trademark/tmqueryCtl/doPost"
,
userPin
).
then
((
d
)
=>
{
this
.
$root
.
loading
=
false
;
if
(
d
.
status
==
0
)
{
$
.
removeCookie
(
"userpin"
);
$
.
removeCookie
(
"userpin"
);
$
.
removeCookie
(
"userName"
);
$
.
removeCookie
(
"userName"
);
$
.
removeCookie
(
"channelUserId"
);
$
.
removeCookie
(
"channelUserId"
);
this
.
user_Name
=
""
;
this
.
$root
.
user_Name
=
""
;
this
.
channelUserId
=
''
;
this
.
$root
.
channelUserId
=
''
;
this
.
$message
(
"您已退出"
);
}
else
{
this
.
$message
(
"请重试"
);
}
});
break
;
break
;
default
:
default
:
break
;
break
;
...
...
igirl-channel-web/app/front/vues/pages/admin/admin.css
deleted
100644 → 0
View file @
17b260bd
.admin
{
color
:
black
;
width
:
100%
;
height
:
100%
;
box-sizing
:
border-box
;
}
\ No newline at end of file
igirl-channel-web/app/front/vues/pages/admin/admin.html
deleted
100644 → 0
View file @
17b260bd
<div
class=
"admin"
>
xxxxxxxxxxxxxxxxx
</div>
igirl-channel-web/app/front/vues/pages/admin/admin.js
deleted
100644 → 0
View file @
17b260bd
{
template
:
'${tmpl}'
,
data
:
function
(){
return
{
}
},
mounted
:
function
(){
},
created
:
function
(){
},
methods
:{
},
vname
:
"gsb-admin"
}
igirl-channel-web/app/front/vues/pages/login/login.html
View file @
21fd77a3
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
<div
style=
"font-size:12px;color:#B2B2B2;margin-top: -4px;
<div
style=
"font-size:12px;color:#B2B2B2;margin-top: -4px;
margin-left: 85px;"
>
margin-left: 85px;"
>
<span
style=
"color:#108EE9;cursor:pointer"
@
click=
"register()"
>
没有账号?去注册
</span>
<span
style=
"color:#108EE9;cursor:pointer"
@
click=
"register()"
>
没有账号?去注册
</span>
<
!-- <
span style="margin:0 4px;">|</span>
<span
style=
"margin:0 4px;"
>
|
</span>
<span style="color:#999999;cursor:pointer" @click="rsetpassword">忘记密码?</span>
-->
<span
style=
"color:#999999;cursor:pointer"
@
click=
"rsetpassword"
>
忘记密码?
</span>
</div>
</div>
<el-form-item
style=
"margin-bottom:8px;"
>
<el-form-item
style=
"margin-bottom:8px;"
>
<el-button
type=
"primary"
class=
"login-content-button"
@
click=
"checklogin1"
style=
"margin-top: 50px;"
>
登录
</el-button>
<el-button
type=
"primary"
class=
"login-content-button"
@
click=
"checklogin1"
style=
"margin-top: 50px;"
>
登录
</el-button>
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
<div
style=
"font-size:12px;color:#B2B2B2;margin-top: -4px;
<div
style=
"font-size:12px;color:#B2B2B2;margin-top: -4px;
margin-left: 85px;"
>
margin-left: 85px;"
>
<span
style=
"color:#108EE9;cursor:pointer"
@
click=
"register()"
>
没有账号?去注册
</span>
<span
style=
"color:#108EE9;cursor:pointer"
@
click=
"register()"
>
没有账号?去注册
</span>
<
!-- <
span style="margin:0 4px;">|</span>
<span
style=
"margin:0 4px;"
>
|
</span>
<span style="color:#999999;cursor:pointer" @click="rsetpassword">忘记密码?</span>
-->
<span
style=
"color:#999999;cursor:pointer"
@
click=
"rsetpassword"
>
忘记密码?
</span>
</div>
</div>
<el-form-item
style=
"margin-bottom:8px;"
>
<el-form-item
style=
"margin-bottom:8px;"
>
<el-button
type=
"primary"
key=
"xxcccc"
class=
"login-content-button"
@
click=
"checklogin2"
style=
"margin-top: 50px;"
>
登录
</el-button>
<el-button
type=
"primary"
key=
"xxcccc"
class=
"login-content-button"
@
click=
"checklogin2"
style=
"margin-top: 50px;"
>
登录
</el-button>
...
...
igirl-channel-web/app/front/vues/pages/login/login.js
View file @
21fd77a3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
data
:
function
()
{
data
:
function
()
{
var
that
=
this
;
var
that
=
this
;
var
validateMethod
=
function
(
rule
,
value
,
callback
)
{
var
validateMethod
=
function
(
rule
,
value
,
callback
)
{
console
.
log
(
rule
);
console
.
log
(
rule
,
value
);
if
(
rule
.
field
==
"mobile"
)
{
if
(
rule
.
field
==
"mobile"
)
{
if
(
/^1
[
23456789
]\d{9}
$/
.
test
(
value
)
==
false
)
{
if
(
/^1
[
23456789
]\d{9}
$/
.
test
(
value
)
==
false
)
{
return
callback
(
new
Error
(
"请输入正确格式的手机号"
));
return
callback
(
new
Error
(
"请输入正确格式的手机号"
));
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
}
}
}
}
if
(
rule
.
field
==
"code"
)
{
if
(
rule
.
field
==
"code"
)
{
if
(
that
.
form1
.
cod
e
.
length
!=
6
)
{
if
(
valu
e
.
length
!=
6
)
{
return
callback
(
new
Error
(
"输入验证码有误,请重新输入"
));
return
callback
(
new
Error
(
"输入验证码有误,请重新输入"
));
}
}
}
}
...
@@ -101,7 +101,8 @@
...
@@ -101,7 +101,8 @@
mounted
:
function
()
{
mounted
:
function
()
{
if
(
this
.
$route
.
query
.
reqUrl
!=
""
)
{
if
(
this
.
$route
.
query
.
reqUrl
!=
""
)
{
this
.
reqUrl
=
this
.
$route
.
query
.
reqUrl
;
this
.
reqUrl
=
this
.
$route
.
query
.
reqUrl
;
}
};
this
.
$root
.
isLogin
=
true
;
},
},
created
:
function
()
{
created
:
function
()
{
...
@@ -111,7 +112,9 @@
...
@@ -111,7 +112,9 @@
}
else
{
}
else
{
this
.
loginUrl
=
"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_41110157500594182420192913391824zhuce_background.png"
;
this
.
loginUrl
=
"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_41110157500594182420192913391824zhuce_background.png"
;
}
}
},
destroyed
()
{
this
.
$root
.
isLogin
=
false
;
},
},
methods
:
{
methods
:
{
handleSelect
(
key
,
keyPath
)
{
handleSelect
(
key
,
keyPath
)
{
...
@@ -190,37 +193,28 @@
...
@@ -190,37 +193,28 @@
});
});
return
;
return
;
};
};
that
.
$root
.
postReq
(
"/web/userCtl/getUserByMobile"
,
{
mobile
:
that
.
form3
.
mobile
}).
then
(
function
(
d
)
{
let
obj
=
this
.
$root
.
copyParams
({
mobile
:
this
.
form3
.
mobile
},
"getVerifyCode"
,
"/auth/accessAuth/springBoard"
);
if
(
d
.
code
==
0
)
{
this
.
$root
.
loading
=
true
;
var
timer
=
setInterval
(
function
()
{
this
.
$root
.
postReq
(
"/web/trademark/tmqueryCtl/doPost"
,
obj
).
then
((
d
)
=>
{
console
.
log
(
"----------getNumber-----------"
);
this
.
$root
.
loading
=
false
;
$
(
"#resetCode"
).
attr
(
"disabled"
,
"disabled"
);
if
(
d
.
status
==
0
)
{
$
(
"#resetCode"
).
css
(
"cursor"
,
"not-allowed"
);
let
date
=
60
;
$
(
"#resetCode"
).
text
(
that
.
Num2
+
"秒后重新获取"
);
this
.
vCodeClick
=
true
;
console
.
log
(
that
.
Num2
);
let
timer
=
setInterval
(()
=>
{
if
(
that
.
Num2
>
0
)
{
$
(
'.resetCode'
).
text
(
date
--
);
console
.
log
(
that
.
Num2
);
if
(
date
<
1
)
{
that
.
Num2
--
;
}
else
{
$
(
"#resetCode"
).
attr
(
"disabled"
,
false
);
$
(
"#resetCode"
).
text
(
"获取验证码"
);
that
.
Num2
=
60
;
clearInterval
(
timer
);
clearInterval
(
timer
);
this
.
vCodeClick
=
false
;
$
(
'#loginCode'
).
text
(
'获取验证码'
);
}
}
},
1000
);
},
1000
);
that
.
$root
.
postReq
(
"/web/userCtl/fetchVcode"
,
{
mobile
:
that
.
form3
.
mobile
}).
then
(
function
(
d
)
{
console
.
log
(
"返回信息"
,
d
);
console
.
log
(
d
);
if
(
d
.
status
==
0
)
{
that
.
rcode
=
d
.
data
.
vcodestr
;
}
})
}
else
{
}
else
{
that
.
$message
({
console
.
log
(
d
.
msg
);
type
:
'error'
,
message
:
'用户尚未注册'
});
}
}
})
});
},
},
obtaincode3
(){
obtaincode3
(){
var
that
=
this
;
var
that
=
this
;
...
@@ -376,14 +370,44 @@
...
@@ -376,14 +370,44 @@
};
};
that
.
$refs
.
form3
.
validate
(
valid
=>
{
that
.
$refs
.
form3
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
that
.
$root
.
postReq
(
"/web/userCtl/resetPassword"
,
obj
).
then
(
function
(
d
)
{
var
resetObj
=
{
if
(
d
.
status
==
0
)
{
"mobile"
:
this
.
form3
.
mobile
,
that
.
$message
({
"vcode"
:
this
.
form3
.
code
,
type
:
'success'
,
"newPwd"
:
this
.
form3
.
password
,
message
:
'密码重置成功'
"userpin"
:
$
.
cookie
(
'userpin'
)
});
};
var
resetObj
=
that
.
$root
.
copyParams
(
resetObj
,
"putUserPwdByMobile"
,
"/auth/accessAuth/springBoard"
);
this
.
$root
.
loading
=
true
;
this
.
$root
.
postReq
(
"/web/trademark/tmqueryCtl/doPost"
,
resetObj
).
then
((
d
)
=>
{
this
.
$root
.
loading
=
false
;
console
.
log
(
d
);
let
userpin
=
$
.
cookie
(
'userpin'
);
switch
(
d
.
status
)
{
case
0
:
if
(
userpin
&&
userpin
!=
""
)
{
$
.
removeCookie
(
"userpin"
);
$
.
removeCookie
(
"userName"
);
$
.
removeCookie
(
"channelUserId"
);
this
.
$root
.
user_Name
=
""
;
this
.
$root
.
channelUserId
=
''
;
this
.
$message
({
type
:
'wraing'
,
message
:
"修改成功,请重新登陆"
});
}
else
{
this
.
a
=
true
;
this
.
b
=
false
;
this
.
c
=
false
;
this
.
activeIndex
=
2
;
this
.
$message
({
type
:
'wraing'
,
message
:
"修改成功,请登陆"
});
}
}
})
break
;
case
2030
:
this
.
$message
({
type
:
'wraing'
,
message
:
"验证码错误,请重试"
});
break
;
default
:
this
.
$message
({
type
:
'wraing'
,
message
:
"修改失败,请重试"
});
break
;
}
});
}
}
})
})
},
},
...
...
igirl-channel-web/app/front/vues/pages/register/register.js
View file @
21fd77a3
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
}
}
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
$root
.
isLogin
=
true
;
},
},
created
:
function
()
{
created
:
function
()
{
console
.
log
(
this
.
pfooterinfo
);
console
.
log
(
this
.
pfooterinfo
);
...
@@ -114,6 +114,9 @@
...
@@ -114,6 +114,9 @@
this
.
loginUrl
=
"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_41110157500594182420192913391824zhuce_background.png"
;
this
.
loginUrl
=
"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_41110157500594182420192913391824zhuce_background.png"
;
}
}
},
},
destroyed
()
{
this
.
$root
.
isLogin
=
false
;
},
methods
:
{
methods
:
{
handleSelect
(
key
,
keyPath
)
{
handleSelect
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
console
.
log
(
key
,
keyPath
);
...
...
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