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
f47160d9
Commit
f47160d9
authored
May 27, 2020
by
jiangyipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a16086fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
app.2c07f4a44cf6e5b0072b.js
public/html/dist/static/js/app.2c07f4a44cf6e5b0072b.js
+2
-0
app.2c07f4a44cf6e5b0072b.js.map
public/html/dist/static/js/app.2c07f4a44cf6e5b0072b.js.map
+1
-0
No files found.
public/html/dist/static/js/app.2c07f4a44cf6e5b0072b.js
0 → 100644
View file @
f47160d9
webpackJsonp
([
6
],{
"+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
),
f
=
{
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"
},
s
=
new
(
t
(
"7+uW"
).
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
}),
n
.
data
},
function
(
n
){
return
i
.
a
.
reject
(
n
)});
var
d
=
function
(
n
,
e
){
var
t
=
f
[
n
];
return
a
()({
method
:
"post"
,
baseURL
:
"http://doc-phone.linanquan.com/"
,
url
:
t
,
data
:
u
.
a
.
stringify
(
e
)})};
e
.
a
=
{
config
:
function
(
n
){
return
d
(
"config"
,
n
)},
getSsoToken
:
function
(
n
){
return
d
(
"getSsoToken"
,
n
)},
folderList
:
function
(
n
){
return
d
(
"folderList"
,
n
)},
articleList
:
function
(
n
){
return
d
(
"articleList"
,
n
)},
articleDetail
:
function
(
n
){
return
d
(
"articleDetail"
,
n
)},
articleEdit
:
function
(
n
){
return
d
(
"articleEdit"
,
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"
)),
f
=
t
(
"7+uW"
),
s
=
{
render
:
function
(){
var
n
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
n
;
return
e
(
"div"
,{
attrs
:{
id
:
"app"
}},[
e
(
"router-view"
)],
1
)},
staticRenderFns
:[]};
var
d
=
t
(
"VU/8"
)({
name
:
"App"
},
s
,
!
1
,
function
(
n
){
t
(
"Lorf"
)},
null
,
null
).
exports
,
l
=
t
(
"/ocq"
),
p
=
t
(
"mvHQ"
),
g
=
t
.
n
(
p
),
h
=
t
(
"I22p"
),
m
=
{
config
:
function
(
n
){
h
.
a
.
config
().
then
(
function
(
e
){
0
==
e
.
err_code
&&
(
console
.
log
(
"config::"
,
e
),
n
(
e
.
data
))})},
getSsoToken
:
function
(
n
){
h
.
a
.
getSsoToken
({
code
:
n
}).
then
(
function
(
n
){
0
==
n
.
err_code
&&
(
alert
(
g
()(
n
)),
console
.
log
(
"config::"
,
n
))})},
getCode
:
function
(){
this
.
config
(
function
(
n
){
dd
.
ready
(
function
(){
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
n
.
corpId
,
onSuccess
:
function
(
n
){
alert
(
111
),
this
.
getSsoToken
(
n
.
code
)},
onFail
:
function
(
n
){
alert
(
g
()(
n
)),
this
.
getSsoToken
(
n
.
code
)}})})})}},
x
=
t
(
"NYxO"
);
f
.
a
.
use
(
x
.
a
);
var
v
=
new
x
.
a
.
Store
({
state
:{
user_info
:
null
},
mutations
:{
userInfo
:
function
(
n
,
e
){
n
.
user_info
=
e
}}});
f
.
a
.
use
(
l
.
a
);
var
S
=
new
l
.
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
(
4
).
then
(
t
.
bind
(
null
,
"5DMK"
))}},{
path
:
"test"
,
name
:
"test"
,
component
:
function
(){
return
t
.
e
(
3
).
then
(
t
.
bind
(
null
,
"Y7I0"
))}}]}]});
S
.
beforeEach
(
function
(
n
,
e
,
t
){
v
.
state
.
user_info
||
m
.
getCode
(),
t
()});
var
L
=
S
,
T
=
t
(
"G0J2"
),
b
=
t
.
n
(
T
);
t
(
"3f40"
),
t
(
"4qOc"
),
t
(
"+cgv"
);
f
.
a
.
use
(
b
.
a
,{
placeholder
:
"请输入内容"
,
modules
:{
toolbar
:[[{
color
:[]}],[
"bold"
,
"italic"
,
"underline"
,
"strike"
],[{
header
:
1
},{
header
:
2
}],[{
header
:[
1
,
2
,
3
,
4
,
5
,
6
,
!
1
]}]]}}),
f
.
a
.
use
(
u
.
a
),
f
.
a
.
use
(
c
.
a
),
f
.
a
.
use
(
a
.
a
),
f
.
a
.
use
(
r
.
a
),
f
.
a
.
use
(
i
.
a
),
f
.
a
.
use
(
o
.
a
),
f
.
a
.
config
.
productionTip
=!
1
,
new
f
.
a
({
el
:
"#app"
,
router
:
L
,
components
:{
App
:
d
},
template
:
"<App/>"
})},
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.2c07f4a44cf6e5b0072b.js.map
\ No newline at end of file
public/html/dist/static/js/app.2c07f4a44cf6e5b0072b.js.map
0 → 100644
View file @
f47160d9
{"version":3,"sources":["webpack:///./src/api/apiList.js","webpack:///./src/api/index.js","webpack:///./src/api/methods.js","webpack:///./src/App.vue?bbff","webpack:///./src/App.vue","webpack:///src/App.vue","webpack:///./src/assets/js/ddLogin.js","webpack:///./src/vuex/index.js","webpack:///./src/router/index.js","webpack:///./src/main.js"],"names":["apiList","config","getSsoToken","folderList","articleList","articleDetail","articleEdit","vm","Vue","axios","interceptors","request","use","error","promise_default","a","reject","response","data","err_code","$notify","type","duration","message","err_msg","api","apiName","url","method","baseURL","qs","stringify","__webpack_exports__","selectortype_template_index_0_src_App","render","_h","this","$createElement","_c","_self","attrs","id","staticRenderFns","src_App","__webpack_require__","normalizeComponent","name","ssrContext","ddLogin","callback","then","console","log","code","alert","stringify_default","getCode","dd","ready","runtime","permission","requestAuthCode","corpId","onSuccess","info","onFail","Vuex","store","Store","state","user_info","mutations","userInfo","Router","router","routes","path","component","e","bind","children","beforeEach","to","from","next","VueQuillEditor","placeholder","modules","toolbar","color","header","search","es_button","divider","loading","field","notify","productionTip","el","components","App","template"],"mappings":"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","file":"static/js/app.2c07f4a44cf6e5b0072b.js","sourcesContent":["\r\nexport default {\r\n config:'index.php/login/index/config', //获取钉钉配置信息\r\n getSsoToken:'index.php/login/index/getSsoToken', //通过免签码获取uid\r\n\r\n\r\n folderList:'index.php/api/index/folderList', //访问文件夹列表\r\n articleList:'index.php/api/index/articleList', //访问文件列表\r\n articleDetail:'index.php/api/index/articleDetail', //获取文件详情\r\n articleEdit:'index.php/api/index/articleEdit', //修改文件\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/apiList.js","import axios from 'axios';\r\nimport qs from 'qs';\r\nimport apiList from './apiList';\r\nimport Vue from 'vue';\r\n\r\nlet vm = new Vue();\r\nlet baseUrl = 'http://doc-phone.linanquan.com/';\r\n// 添加请求拦截器\r\naxios.interceptors.request.use(function (config) {\r\n // 在发送请求之前做些什么\r\n return config;\r\n}, function (error) {\r\n // 对请求错误做些什么\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\naxios.interceptors.response.use(function (response) {\r\n // 对响应数据做点什么\r\n if(response.data.err_code !== 0){\r\n vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});\r\n }\r\n return response.data;\r\n}, function (error) {\r\n // 对响应错误做点什么\r\n return Promise.reject(error);\r\n});\r\n\r\nexport default {\r\n post(apiName,data){\r\n let url = apiList[apiName];\r\n return axios({\r\n method:'post',\r\n baseURL:baseUrl,\r\n url:url,\r\n data:qs.stringify(data),\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/index.js","import api from './index';\r\n\r\nexport default {\r\n //获取钉钉配置信息\r\n config(data){\r\n return api.post('config',data);\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(data){\r\n return api.post('getSsoToken',data);\r\n },\r\n\r\n\r\n //访问文件夹列表\r\n folderList(data){\r\n return api.post('folderList',data);\r\n },\r\n //访问文件列表\r\n articleList(data){\r\n return api.post('articleList',data);\r\n },\r\n //获取文件详情\r\n articleDetail(data){\r\n return api.post('articleDetail',data);\r\n },\r\n //修改文件\r\n articleEdit(data){\r\n return api.post('articleEdit',data);\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/api/methods.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2408f9b8\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2408f9b8\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","<template>\n <div id=\"app\">\n <router-view/>\n </div>\n</template>\n\n<script>\n export default {\n name: 'App'\n }\n</script>\n\n<style lang=\"less\">\n @import \"./style/app.less\";\n @import \"./assets/font.css\";\n @import \"./style/normalize.css\";\n @basefont: 50;\n #app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size:24rem /@basefont;\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","\r\nimport api from '../../api/methods';\r\nexport default {\r\n //获取钉钉配置信息\r\n config(callback){\r\n api.config().then((data)=>{\r\n if(data.err_code == 0){\r\n console.log('config::',data)\r\n callback(data.data);\r\n }\r\n })\r\n },\r\n //通过免签码获取uid\r\n getSsoToken(code){\r\n api.getSsoToken({code:code\t}).then((data)=>{\r\n if(data.err_code == 0){\r\n alert(JSON.stringify(data))\r\n console.log('config::',data)\r\n }\r\n })\r\n },\r\n //获取微应用免登授权码\r\n getCode(){\r\n this.config((data)=>{\r\n dd.ready(function() {\r\n dd.runtime.permission.requestAuthCode({\r\n corpId: data.corpId, // 企业id\r\n onSuccess: function (info) {\r\n alert(111)\r\n // code = info.code // 通过该免登授权码可以获取用户身份\r\n this.getSsoToken(info.code);\r\n },\r\n onFail: function (info) {\r\n alert(JSON.stringify(info))\r\n this.getSsoToken(info.code);\r\n },\r\n });\r\n });\r\n })\r\n },\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/assets/js/ddLogin.js","import Vue from 'vue';\r\nimport Vuex from 'vuex';\r\n\r\nVue.use(Vuex);\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n user_info:null, //用户信息\r\n },\r\n mutations: {\r\n userInfo(state,data){\r\n state.user_info = data;\r\n },\r\n }\r\n});\r\n\r\nexport default store;\n\n\n// WEBPACK FOOTER //\n// ./src/vuex/index.js","import Vue from 'vue';\nimport Router from 'vue-router';\nimport ddLogin from '../assets/js/ddLogin';\nimport store from '../vuex/index';\n\nVue.use(Router);\n\nlet router = new Router({\n routes: [\n {\n path: '/',\n name: 'index',\n component: ()=>import('@/pages/index.vue'),\n children:[\n {\n path: 'folder',\n name:'folder',\n component: ()=>import('@/pages/folder.vue'),\n },\n {\n path: 'folder2',\n name:'folder2',\n component: ()=>import('@/pages/folder2.vue'),\n },\n {\n path: 'wangeditor',\n name:'wangeditor',\n component: ()=>import('@/pages/wangeditor.vue'),\n },\n {\n path: 'test',\n name:'test',\n component: ()=>import('@/pages/test.vue'),\n },\n ]\n },\n ]\n});\n\nrouter.beforeEach((to, from, next) => {\n //没有用户信息说明则获取\n if(!store.state.user_info){\n ddLogin.getCode();\n }\n next();\n});\n\nexport default router;\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport Vue from 'vue'\nimport App from './App'\nimport router from './router'\nimport { Button,Search,Divider,Loading,Field,Notify } from 'vant';\nimport VueQuillEditor from 'vue-quill-editor';\n// require styles\nimport 'quill/dist/quill.core.css';\nimport 'quill/dist/quill.snow.css';\nimport 'quill/dist/quill.bubble.css';\n\nVue.use(VueQuillEditor, /* { default global options } */{\n placeholder:'请输入内容',\n modules: {\n toolbar: [\n [{'color': []}],\n ['bold', 'italic', 'underline', 'strike'],\n [{'header': 1}, {'header': 2}],\n [{'header': [1, 2, 3, 4, 5, 6, false]}\n ],\n ],\n },\n // readOnly: false,\n // theme: 'bubble'\n});\n\nVue.use(Search);\nVue.use(Button);\nVue.use(Divider);\nVue.use(Loading);\nVue.use(Field);\nVue.use(Notify);\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n router,\n components: { App },\n template: '<App/>'\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""}
\ No newline at end of file
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