Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doc_phone
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyipeng
doc_phone
Commits
c948d909
Commit
c948d909
authored
May 28, 2020
by
jiangyipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
af0e2abb
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
7 deletions
+15
-7
index.html
public/html/dist/index.html
+1
-1
app.12b80a9a7f85b2d49c3c.js
public/html/dist/static/js/app.12b80a9a7f85b2d49c3c.js
+2
-2
app.12b80a9a7f85b2d49c3c.js.map
public/html/dist/static/js/app.12b80a9a7f85b2d49c3c.js.map
+1
-0
app.1a2b6c0b3f2878d333f9.js.map
public/html/dist/static/js/app.1a2b6c0b3f2878d333f9.js.map
+0
-1
manifest.2564c4fec04e5b285562.js.map
.../html/dist/static/js/manifest.2564c4fec04e5b285562.js.map
+1
-1
ddLogin.js
public/html/src/assets/js/ddLogin.js
+3
-2
index.js
public/html/src/router/index.js
+7
-0
No files found.
public/html/dist/index.html
View file @
c948d909
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><script
src=
https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js
></script><script
src=
./static/showdown.min.js
></script><script
src=
./static/marked.min.js
></script><script
src=
./static/mdjs.min.js
></script><title>
doc
</title><link
href=
./static/css/app.7efdf569684612a991f0c7e25a0c943e.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
./static/js/manifest.2564c4fec04e5b285562.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2df28332b4a58963dfd2.js
></script><script
type=
text/javascript
src=
./static/js/app.03796cd94445da39f2cd.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><script
src=
https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js
></script><script
src=
./static/showdown.min.js
></script><script
src=
./static/marked.min.js
></script><script
src=
./static/mdjs.min.js
></script><title>
doc
</title><link
href=
./static/css/app.7efdf569684612a991f0c7e25a0c943e.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
./static/js/manifest.2564c4fec04e5b285562.js
></script><script
type=
text/javascript
src=
./static/js/vendor.2df28332b4a58963dfd2.js
></script><script
type=
text/javascript
src=
./static/js/app.12b80a9a7f85b2d49c3c.js
></script></body></html>
\ No newline at end of file
public/html/dist/static/js/app.1
a2b6c0b3f2878d333f9
.js
→
public/html/dist/static/js/app.1
2b80a9a7f85b2d49c3c
.js
View file @
c948d909
webpackJsonp
([
7
],{
"+cgv"
:
function
(
n
,
e
){},
"02pT"
:
function
(
n
,
e
){},
"1H7Z"
:
function
(
n
,
e
){},
"3IMD"
:
function
(
n
,
e
){},
"3f40"
:
function
(
n
,
e
){},
"4qOc"
:
function
(
n
,
e
){},
FhoU
:
function
(
n
,
e
){},
I22p
:
function
(
n
,
e
,
t
){
"use strict"
;
var
o
=
t
(
"//Fk"
),
i
=
t
.
n
(
o
),
r
=
t
(
"mtWM"
),
a
=
t
.
n
(
r
),
c
=
t
(
"mw3O"
),
u
=
t
.
n
(
c
),
d
=
{
config
:
"index.php/login/index/config"
,
getSsoToken
:
"index.php/login/index/getSsoToken"
,
folderList
:
"index.php/api/index/folderList"
,
articleList
:
"index.php/api/index/articleList"
,
articleDetail
:
"index.php/api/index/articleDetail"
,
articleEdit
:
"index.php/api/index/articleEdit"
},
l
=
t
(
"7+uW"
),
f
=
t
(
"RjhT"
),
s
=
new
l
.
a
;
a
.
a
.
interceptors
.
request
.
use
(
function
(
n
){
return
n
},
function
(
n
){
return
i
.
a
.
reject
(
n
)}),
a
.
a
.
interceptors
.
response
.
use
(
function
(
n
){
return
0
!==
n
.
data
.
err_code
?
s
.
$notify
({
type
:
"danger"
,
duration
:
2
e3
,
message
:
n
.
data
.
err_msg
}):
10003
===
n
.
data
.
err_code
&&
f
.
a
.
getCode
(),
n
.
data
},
function
(
n
){
return
i
.
a
.
reject
(
n
)});
var
p
=
function
(
n
,
e
){
var
t
=
d
[
n
];
return
a
()({
method
:
"post"
,
baseURL
:
"http://doc-phone.linanquan.com/"
,
url
:
t
,
data
:
u
.
a
.
stringify
(
e
)})};
function
h
(
n
){
var
e
=
n
||
{};
return
e
.
token
=
localStorage
.
getItem
(
"doc_phone_token"
),
e
}
e
.
a
=
{
config
:
function
(
n
){
return
p
(
"config"
,
n
)},
getSsoToken
:
function
(
n
){
return
p
(
"getSsoToken"
,
n
)},
folderList
:
function
(
n
){
return
p
(
"folderList"
,
h
(
n
))},
articleList
:
function
(
n
){
return
p
(
"articleList"
,
h
(
n
))},
articleDetail
:
function
(
n
){
return
p
(
"articleDetail"
,
h
(
n
))},
articleEdit
:
function
(
n
){
return
p
(
"articleEdit"
,
h
(
n
))}}},
Lorf
:
function
(
n
,
e
){},
NHnr
:
function
(
n
,
e
,
t
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
t
(
"cOrn"
);
var
o
=
t
(
"77gS"
),
i
=
(
t
(
"MY4N"
),
t
(
"0zAV"
)),
r
=
(
t
(
"nOaS"
),
t
(
"pIDD"
)),
a
=
(
t
(
"Ny/I"
),
t
(
"7Tnr"
)),
c
=
(
t
(
"3Lne"
),
t
(
"SSsa"
)),
u
=
(
t
(
"4yKu"
),
t
(
"wolx"
)),
d
=
t
(
"7+uW"
),
l
=
{
render
:
function
(){
var
n
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
n
;
return
e
(
"div"
,{
attrs
:{
id
:
"app"
}},[
e
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
f
=
t
(
"VU/8"
)({
name
:
"App"
},
l
,
!
1
,
function
(
n
){
t
(
"Lorf"
)},
null
,
null
).
exports
,
s
=
t
(
"/ocq"
),
p
=
t
(
"RjhT"
),
h
=
t
(
"NYxO"
);
d
.
a
.
use
(
h
.
a
);
new
h
.
a
.
Store
({
state
:{
user_info
:
null
},
mutations
:{
userInfo
:
function
(
n
,
e
){
n
.
user_info
=
e
}}});
d
.
a
.
use
(
s
.
a
);
var
g
=
new
s
.
a
({
routes
:[{
path
:
"/"
,
name
:
"index"
,
component
:
function
(){
return
t
.
e
(
0
).
then
(
t
.
bind
(
null
,
"2NXm"
))},
children
:[{
path
:
"folder"
,
name
:
"folder"
,
component
:
function
(){
return
t
.
e
(
2
).
then
(
t
.
bind
(
null
,
"C0Ug"
))}},{
path
:
"folder2"
,
name
:
"folder2"
,
component
:
function
(){
return
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"M+ft"
))}},{
path
:
"wangeditor"
,
name
:
"wangeditor"
,
component
:
function
(){
return
t
.
e
(
5
).
then
(
t
.
bind
(
null
,
"5DMK"
))}},{
path
:
"markdown"
,
name
:
"markdown"
,
component
:
function
(){
return
t
.
e
(
3
).
then
(
t
.
bind
(
null
,
"tZVe"
))}},{
path
:
"test"
,
name
:
"test"
,
component
:
function
(){
return
t
.
e
(
4
).
then
(
t
.
bind
(
null
,
"Y7I0"
))}}]}]});
g
.
beforeEach
(
function
(
n
,
e
,
t
){
localStorage
.
getItem
(
"doc_phone_token"
)?(
alert
(
"有token"
),
window
.
location
.
href
.
includes
(
"token"
)
||
(
alert
(
"地址加token"
),
window
.
location
.
href
=
window
.
location
.
href
+
"?token="
+
localStorage
.
getItem
(
"doc_phone_token"
)),
t
()):(
alert
(
"没token"
),
p
.
a
.
getCode
(
function
(){
return
t
()}))});
var
m
=
g
,
k
=
t
(
"G0J2"
),
w
=
t
.
n
(
k
);
t
(
"3f40"
),
t
(
"4qOc"
),
t
(
"+cgv"
);
d
.
a
.
use
(
w
.
a
,{
placeholder
:
"请输入内容"
,
modules
:{
toolbar
:[[{
color
:[]}],[
"bold"
,
"italic"
,
"underline"
,
"strike"
],[{
header
:
1
},{
header
:
2
}],[{
header
:[
1
,
2
,
3
,
4
,
5
,
6
,
!
1
]}]]}}),
d
.
a
.
use
(
u
.
a
),
d
.
a
.
use
(
c
.
a
),
d
.
a
.
use
(
a
.
a
),
d
.
a
.
use
(
r
.
a
),
d
.
a
.
use
(
i
.
a
),
d
.
a
.
use
(
o
.
a
),
d
.
a
.
config
.
productionTip
=!
1
,
new
d
.
a
({
el
:
"#app"
,
router
:
m
,
components
:{
App
:
f
},
template
:
"<App/>"
})},
RjhT
:
function
(
n
,
e
,
t
){
"use strict"
;
var
o
=
t
(
"mvHQ"
),
i
=
t
.
n
(
o
),
r
=
t
(
"I22p"
);
e
.
a
=
{
config
:
function
(
n
){
r
.
a
.
config
().
then
(
function
(
e
){
0
==
e
.
err_code
&&
(
console
.
log
(
"config::"
,
e
),
n
(
e
.
data
))})},
getSsoToken
:
function
(
n
,
e
){
r
.
a
.
getSsoToken
({
code
:
n
}).
then
(
function
(
n
){
alert
(
i
()(
n
)),
0
==
n
.
err_code
&&
(
localStorage
.
setItem
(
"doc_phone_token"
,
n
.
data
.
token
),
window
.
location
.
href
.
includes
(
"token"
)
||
(
window
.
location
.
href
=
window
.
location
.
href
+
"?token="
+
localStorage
.
getItem
(
"doc_phone_token"
)),
e
())})},
getCode
:
function
(
n
){
var
e
=
this
;
this
.
config
(
function
(
t
){
dd
.
ready
(
function
(){
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
t
.
corpId
,
onSuccess
:
function
(
t
){
alert
(
i
()(
t
)),
e
.
getSsoToken
(
t
.
code
,
function
(){
return
n
()})},
onFail
:
function
(
n
){
alert
(
i
()(
n
)),
e
.
getSsoToken
(
n
.
code
)}})})})}}},
T2s0
:
function
(
n
,
e
){},
WRFY
:
function
(
n
,
e
){},
WpgC
:
function
(
n
,
e
){},
hW8u
:
function
(
n
,
e
){},
"n/tq"
:
function
(
n
,
e
){},
nsZj
:
function
(
n
,
e
){},
px3J
:
function
(
n
,
e
){},
qpP9
:
function
(
n
,
e
){}},[
"NHnr"
]);
//# sourceMappingURL=app.1a2b6c0b3f2878d333f9.js.map
\ No newline at end of file
webpackJsonp
([
7
],{
"+cgv"
:
function
(
n
,
e
){},
"02pT"
:
function
(
n
,
e
){},
"1H7Z"
:
function
(
n
,
e
){},
"3IMD"
:
function
(
n
,
e
){},
"3f40"
:
function
(
n
,
e
){},
"4qOc"
:
function
(
n
,
e
){},
FhoU
:
function
(
n
,
e
){},
I22p
:
function
(
n
,
e
,
t
){
"use strict"
;
var
o
=
t
(
"//Fk"
),
i
=
t
.
n
(
o
),
r
=
t
(
"mtWM"
),
a
=
t
.
n
(
r
),
c
=
t
(
"mw3O"
),
u
=
t
.
n
(
c
),
d
=
{
config
:
"index.php/login/index/config"
,
getSsoToken
:
"index.php/login/index/getSsoToken"
,
folderList
:
"index.php/api/index/folderList"
,
articleList
:
"index.php/api/index/articleList"
,
articleDetail
:
"index.php/api/index/articleDetail"
,
articleEdit
:
"index.php/api/index/articleEdit"
},
l
=
t
(
"7+uW"
),
f
=
t
(
"RjhT"
),
s
=
new
l
.
a
;
a
.
a
.
interceptors
.
request
.
use
(
function
(
n
){
return
n
},
function
(
n
){
return
i
.
a
.
reject
(
n
)}),
a
.
a
.
interceptors
.
response
.
use
(
function
(
n
){
return
0
!==
n
.
data
.
err_code
?
s
.
$notify
({
type
:
"danger"
,
duration
:
2
e3
,
message
:
n
.
data
.
err_msg
}):
10003
===
n
.
data
.
err_code
&&
f
.
a
.
getCode
(),
n
.
data
},
function
(
n
){
return
i
.
a
.
reject
(
n
)});
var
p
=
function
(
n
,
e
){
var
t
=
d
[
n
];
return
a
()({
method
:
"post"
,
baseURL
:
"http://doc-phone.linanquan.com/"
,
url
:
t
,
data
:
u
.
a
.
stringify
(
e
)})};
function
h
(
n
){
var
e
=
n
||
{};
return
e
.
token
=
localStorage
.
getItem
(
"doc_phone_token"
),
e
}
e
.
a
=
{
config
:
function
(
n
){
return
p
(
"config"
,
n
)},
getSsoToken
:
function
(
n
){
return
p
(
"getSsoToken"
,
n
)},
folderList
:
function
(
n
){
return
p
(
"folderList"
,
h
(
n
))},
articleList
:
function
(
n
){
return
p
(
"articleList"
,
h
(
n
))},
articleDetail
:
function
(
n
){
return
p
(
"articleDetail"
,
h
(
n
))},
articleEdit
:
function
(
n
){
return
p
(
"articleEdit"
,
h
(
n
))}}},
Lorf
:
function
(
n
,
e
){},
NHnr
:
function
(
n
,
e
,
t
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
t
(
"cOrn"
);
var
o
=
t
(
"77gS"
),
i
=
(
t
(
"MY4N"
),
t
(
"0zAV"
)),
r
=
(
t
(
"nOaS"
),
t
(
"pIDD"
)),
a
=
(
t
(
"Ny/I"
),
t
(
"7Tnr"
)),
c
=
(
t
(
"3Lne"
),
t
(
"SSsa"
)),
u
=
(
t
(
"4yKu"
),
t
(
"wolx"
)),
d
=
t
(
"7+uW"
),
l
=
{
render
:
function
(){
var
n
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
n
;
return
e
(
"div"
,{
attrs
:{
id
:
"app"
}},[
e
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
f
=
t
(
"VU/8"
)({
name
:
"App"
},
l
,
!
1
,
function
(
n
){
t
(
"Lorf"
)},
null
,
null
).
exports
,
s
=
t
(
"/ocq"
),
p
=
t
(
"RjhT"
),
h
=
t
(
"NYxO"
);
d
.
a
.
use
(
h
.
a
);
new
h
.
a
.
Store
({
state
:{
user_info
:
null
},
mutations
:{
userInfo
:
function
(
n
,
e
){
n
.
user_info
=
e
}}});
d
.
a
.
use
(
s
.
a
);
var
g
=
new
s
.
a
({
routes
:[{
path
:
"/"
,
name
:
"index"
,
component
:
function
(){
return
t
.
e
(
0
).
then
(
t
.
bind
(
null
,
"2NXm"
))},
children
:[{
path
:
"folder"
,
name
:
"folder"
,
component
:
function
(){
return
t
.
e
(
2
).
then
(
t
.
bind
(
null
,
"C0Ug"
))}},{
path
:
"folder2"
,
name
:
"folder2"
,
component
:
function
(){
return
t
.
e
(
1
).
then
(
t
.
bind
(
null
,
"M+ft"
))}},{
path
:
"wangeditor"
,
name
:
"wangeditor"
,
component
:
function
(){
return
t
.
e
(
5
).
then
(
t
.
bind
(
null
,
"5DMK"
))}},{
path
:
"markdown"
,
name
:
"markdown"
,
component
:
function
(){
return
t
.
e
(
3
).
then
(
t
.
bind
(
null
,
"tZVe"
))}},{
path
:
"test"
,
name
:
"test"
,
component
:
function
(){
return
t
.
e
(
4
).
then
(
t
.
bind
(
null
,
"Y7I0"
))}}]}]});
g
.
beforeEach
(
function
(
n
,
e
,
t
){
var
o
=
localStorage
.
getItem
(
"doc_phone_token"
);
alert
(
"???????"
),
o
?(
alert
(
"有token"
),
window
.
location
.
href
.
includes
(
"token"
)
||
(
alert
(
"地址加token"
),
window
.
location
.
href
=
window
.
location
.
href
+
"?token="
+
localStorage
.
getItem
(
"doc_phone_token"
)),
t
()):(
alert
(
"没token"
),
p
.
a
.
getCode
(
function
(){
return
t
()}))});
var
m
=
g
,
k
=
t
(
"G0J2"
),
w
=
t
.
n
(
k
);
t
(
"3f40"
),
t
(
"4qOc"
),
t
(
"+cgv"
);
d
.
a
.
use
(
w
.
a
,{
placeholder
:
"请输入内容"
,
modules
:{
toolbar
:[[{
color
:[]}],[
"bold"
,
"italic"
,
"underline"
,
"strike"
],[{
header
:
1
},{
header
:
2
}],[{
header
:[
1
,
2
,
3
,
4
,
5
,
6
,
!
1
]}]]}}),
d
.
a
.
use
(
u
.
a
),
d
.
a
.
use
(
c
.
a
),
d
.
a
.
use
(
a
.
a
),
d
.
a
.
use
(
r
.
a
),
d
.
a
.
use
(
i
.
a
),
d
.
a
.
use
(
o
.
a
),
d
.
a
.
config
.
productionTip
=!
1
,
new
d
.
a
({
el
:
"#app"
,
router
:
m
,
components
:{
App
:
f
},
template
:
"<App/>"
})},
RjhT
:
function
(
n
,
e
,
t
){
"use strict"
;
var
o
=
t
(
"mvHQ"
),
i
=
t
.
n
(
o
),
r
=
t
(
"I22p"
);
e
.
a
=
{
config
:
function
(
n
){
r
.
a
.
config
().
then
(
function
(
e
){
0
==
e
.
err_code
&&
(
console
.
log
(
"config::"
,
e
),
n
(
e
.
data
))})},
getSsoToken
:
function
(
n
,
e
){
r
.
a
.
getSsoToken
({
code
:
n
}).
then
(
function
(
n
){
alert
(
i
()(
n
)),
0
==
n
.
err_code
&&
(
localStorage
.
setItem
(
"doc_phone_token"
,
n
.
data
.
token
),
window
.
location
.
href
.
includes
(
"token"
)
||
(
window
.
location
.
href
=
window
.
location
.
href
+
"?token="
+
localStorage
.
getItem
(
"doc_phone_token"
)),
e
())})},
getCode
:
function
(
n
){
var
e
=
this
;
this
.
config
(
function
(
t
){
dd
.
ready
(
function
(){
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
t
.
corpId
,
onSuccess
:
function
(
t
){
alert
(
i
()(
t
)),
e
.
getSsoToken
(
t
.
code
,
function
(){
return
n
()})},
onFail
:
function
(
n
){
alert
(
i
()(
n
)),
e
.
getSsoToken
(
n
.
code
)}})})})}}},
T2s0
:
function
(
n
,
e
){},
WRFY
:
function
(
n
,
e
){},
WpgC
:
function
(
n
,
e
){},
hW8u
:
function
(
n
,
e
){},
"n/tq"
:
function
(
n
,
e
){},
nsZj
:
function
(
n
,
e
){},
px3J
:
function
(
n
,
e
){},
qpP9
:
function
(
n
,
e
){}},[
"NHnr"
]);
//# sourceMappingURL=app.12b80a9a7f85b2d49c3c.js.map
\ No newline at end of file
public/html/dist/static/js/app.12b80a9a7f85b2d49c3c.js.map
0 → 100644
View file @
c948d909
This diff is collapsed.
Click to expand it.
public/html/dist/static/js/app.1a2b6c0b3f2878d333f9.js.map
deleted
100644 → 0
View file @
af0e2abb
This diff is collapsed.
Click to expand it.
public/html/dist/static/js/manifest.2564c4fec04e5b285562.js.map
View file @
c948d909
This diff is collapsed.
Click to expand it.
public/html/src/assets/js/ddLogin.js
View file @
c948d909
import
api
from
'../../api/methods'
;
import
store
from
'../../vuex/index'
;
export
default
{
//获取钉钉配置信息
config
(
callback
){
...
...
@@ -16,8 +15,10 @@ export default {
alert
(
JSON
.
stringify
(
data
))
if
(
data
.
err_code
==
0
){
// alert(JSON.stringify(data))
console
.
log
(
'getSsoToken::'
,
data
)
localStorage
.
setItem
(
'doc_phone_token'
,
data
.
data
.
token
);
if
(
!
window
.
location
.
href
.
includes
(
'token'
)){
window
.
location
.
href
=
window
.
location
.
href
+
'?token='
+
localStorage
.
getItem
(
'doc_phone_token'
);
}
callback
();
}
})
...
...
public/html/src/router/index.js
View file @
c948d909
...
...
@@ -45,9 +45,16 @@ let router = new Router({
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
//没有token则去获取
let
token
=
localStorage
.
getItem
(
'doc_phone_token'
);
alert
(
'???????'
)
if
(
!
token
){
alert
(
'没token'
)
ddLogin
.
getCode
(()
=>
next
());
}
else
{
alert
(
'有token'
)
if
(
!
window
.
location
.
href
.
includes
(
'token'
)){
alert
(
'地址加token'
)
window
.
location
.
href
=
window
.
location
.
href
+
'?token='
+
localStorage
.
getItem
(
'doc_phone_token'
);
}
next
();
}
});
...
...
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