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
a16086fc
Commit
a16086fc
authored
May 27, 2020
by
jiangyipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1152f5da
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
15 deletions
+7
-15
index.html
public/html/dist/index.html
+1
-1
app.767399c98aac4faf2c07.js
public/html/dist/static/js/app.767399c98aac4faf2c07.js
+0
-2
app.767399c98aac4faf2c07.js.map
public/html/dist/static/js/app.767399c98aac4faf2c07.js.map
+0
-1
manifest.f99cf827c593c896d635.js.map
.../html/dist/static/js/manifest.f99cf827c593c896d635.js.map
+1
-1
index.js
public/html/src/api/index.js
+2
-3
ddLogin.js
public/html/src/assets/js/ddLogin.js
+0
-4
index.js
public/html/src/router/index.js
+3
-3
No files found.
public/html/dist/index.html
View file @
a16086fc
<!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><title>
doc
</title><link
href=
./static/css/app.79ec67043b2d0f27abb2f9b496be3186.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
./static/js/manifest.f99cf827c593c896d635.js
></script><script
type=
text/javascript
src=
./static/js/vendor.77c8694682b600976327.js
></script><script
type=
text/javascript
src=
./static/js/app.767399c98aac4faf2c07.js
></script></body></html>
<!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><title>
doc
</title><link
href=
./static/css/app.79ec67043b2d0f27abb2f9b496be3186.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
./static/js/manifest.f99cf827c593c896d635.js
></script><script
type=
text/javascript
src=
./static/js/vendor.77c8694682b600976327.js
></script><script
type=
text/javascript
src=
./static/js/app.2c07f4a44cf6e5b0072b.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
public/html/dist/static/js/app.767399c98aac4faf2c07.js
deleted
100644 → 0
View file @
1152f5da
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
i
=
t
(
"//Fk"
),
r
=
t
.
n
(
i
),
o
=
t
(
"mtWM"
),
a
=
t
.
n
(
o
),
u
=
t
(
"mw3O"
),
c
=
t
.
n
(
u
),
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
r
.
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
r
.
a
.
reject
(
n
)});
var
l
=
function
(
n
,
e
){
var
t
=
f
[
n
];
return
a
()({
method
:
"post"
,
baseURL
:
"http://doc-phone.linanquan.com/"
,
url
:
t
,
data
:
c
.
a
.
stringify
(
e
)})};
e
.
a
=
{
config
:
function
(
n
){
return
l
(
"config"
,
n
)},
getSsoToken
:
function
(
n
){
return
l
(
"getSsoToken"
,
n
)},
folderList
:
function
(
n
){
return
l
(
"folderList"
,
n
)},
articleList
:
function
(
n
){
return
l
(
"articleList"
,
n
)},
articleDetail
:
function
(
n
){
return
l
(
"articleDetail"
,
n
)},
articleEdit
:
function
(
n
){
return
l
(
"articleEdit"
,
n
)}}},
Lorf
:
function
(
n
,
e
){},
NHnr
:
function
(
n
,
e
,
t
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
t
(
"cOrn"
);
var
i
=
t
(
"77gS"
),
r
=
(
t
(
"MY4N"
),
t
(
"0zAV"
)),
o
=
(
t
(
"nOaS"
),
t
(
"pIDD"
)),
a
=
(
t
(
"Ny/I"
),
t
(
"7Tnr"
)),
u
=
(
t
(
"3Lne"
),
t
(
"SSsa"
)),
c
=
(
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
l
=
t
(
"VU/8"
)({
name
:
"App"
},
s
,
!
1
,
function
(
n
){
t
(
"Lorf"
)},
null
,
null
).
exports
,
p
=
t
(
"/ocq"
),
d
=
(
t
(
"mvHQ"
),
t
(
"I22p"
),
t
(
"NYxO"
));
f
.
a
.
use
(
d
.
a
);
new
d
.
a
.
Store
({
state
:{
user_info
:
null
},
mutations
:{
userInfo
:
function
(
n
,
e
){
n
.
user_info
=
e
}}});
f
.
a
.
use
(
p
.
a
);
var
h
=
new
p
.
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"
))}}]}]});
h
.
beforeEach
(
function
(
n
,
e
,
t
){
t
()});
var
m
=
h
,
g
=
t
(
"G0J2"
),
x
=
t
.
n
(
g
);
t
(
"3f40"
),
t
(
"4qOc"
),
t
(
"+cgv"
);
f
.
a
.
use
(
x
.
a
,{
placeholder
:
"请输入内容"
,
modules
:{
toolbar
:[[{
color
:[]}],[
"bold"
,
"italic"
,
"underline"
,
"strike"
],[{
header
:
1
},{
header
:
2
}],[{
header
:[
1
,
2
,
3
,
4
,
5
,
6
,
!
1
]}]]}}),
f
.
a
.
use
(
c
.
a
),
f
.
a
.
use
(
u
.
a
),
f
.
a
.
use
(
a
.
a
),
f
.
a
.
use
(
o
.
a
),
f
.
a
.
use
(
r
.
a
),
f
.
a
.
use
(
i
.
a
),
f
.
a
.
config
.
productionTip
=!
1
,
new
f
.
a
({
el
:
"#app"
,
router
:
m
,
components
:{
App
:
l
},
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.767399c98aac4faf2c07.js.map
\ No newline at end of file
public/html/dist/static/js/app.767399c98aac4faf2c07.js.map
deleted
100644 → 0
View file @
1152f5da
{"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/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","Vuex","Store","state","user_info","mutations","userInfo","Router","router","routes","path","component","e","then","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":"sRACeA,GACXC,OAAO,+BACPC,YAAY,oCAGZC,WAAW,iCACXC,YAAY,kCACZC,cAAc,oCACdC,YAAY,mCCJZC,EAAK,cAAIC,GAIbC,IAAMC,aAAaC,QAAQC,IAAI,SAAUX,GAErC,OAAOA,GACR,SAAUY,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAI1BJ,IAAMC,aAAaO,SAASL,IAAI,SAAUK,GAKtC,OAH8B,IAA3BA,EAASC,KAAKC,UACbZ,EAAGa,SAAUC,KAAK,SAASC,SAAU,IAAKC,QAAQN,EAASC,KAAKM,UAE7DP,EAASC,MACjB,SAAUL,GAET,OAAOC,EAAAC,EAAQC,OAAOH,KAGX,IAAAY,EAAA,SACNC,EAAQR,GACT,IAAIS,EAAM3B,EAAQ0B,GAClB,O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AAId,EAAAe,EAAA,GAAAC,KAAAhB,EAAAiB,KAAA,qBAOnCN,EAAOQ,WAAW,SAACC,EAAIC,EAAMC,GAKzBA,MAGWX,2DCnCf/C,IAAII,IAAIuD,KACNC,YAAY,QACZC,SACEC,WACIC,YACD,OAAQ,SAAU,YAAa,YAC9BC,OAAU,IAAKA,OAAU,MACzBA,QAAW,EAAG,EAAG,EAAG,EAAG,EAAG,GAAG,SAQrChE,IAAII,IAAJ6D,EAAA,GACAjE,IAAII,IAAJ8D,EAAA,GACAlE,IAAII,IAAJ+D,EAAA,GACAnE,IAAII,IAAJgE,EAAA,GACApE,IAAII,IAAJiE,EAAA,GACArE,IAAII,IAAJkE,EAAA,GACAtE,IAAIP,OAAO8E,eAAgB,EAG3B,IAAIvE,KACFwE,GAAI,OACJzB,SACA0B,YAAcC,OACdC,SAAU","file":"static/js/app.767399c98aac4faf2c07.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'; //引入vue\r\n//必须实例化 Vue\r\nlet vm = new Vue();\r\n\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","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
public/html/dist/static/js/manifest.f99cf827c593c896d635.js.map
View file @
a16086fc
{"version":3,"sources":["webpack:///webpack/bootstrap 1f4b68f3a2b10c292f52"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","7","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACA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C,EAAAuC,IACAjD,OAAAoD,eAAA1C,EAAAuC,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA5C,EAAAkD,EAAA,SAAA7C,GACA,IAAAuC,EAAAvC,KAAA8C,WACA,WAA2B,OAAA9C,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAA0C,EAAAE,EAAA,IAAAA,GACAA,GAIA5C,EAAA6C,EAAA,SAAAO,EAAAC,GAAsD,OAAA3D,OAAAC,UAAAC,eAAAC,KAAAuD,EAAAC,IAGtDrD,EAAAyB,EAAA,KAGAzB,EAAAsD,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.f99cf827c593c896d635.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t7: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"52de32fa6da87aa0fbe3\",\"1\":\"da211ff3b2862716ea36\",\"2\":\"ff952c6835523357530f\",\"3\":\"41f78fb7461aaef8a580\",\"4\":\"7549692b6f51f1afe6fc\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 1f4b68f3a2b10c292f52"],"sourceRoot":""}
{"version":3,"sources":["webpack:///webpack/bootstrap 470de61e84bf4b2e7820"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","7","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","3","4","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,S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oBA","file":"static/js/manifest.f99cf827c593c896d635.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t7: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"52de32fa6da87aa0fbe3\",\"1\":\"da211ff3b2862716ea36\",\"2\":\"ff952c6835523357530f\",\"3\":\"41f78fb7461aaef8a580\",\"4\":\"7549692b6f51f1afe6fc\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 470de61e84bf4b2e7820"],"sourceRoot":""}
\ No newline at end of file
\ No newline at end of file
public/html/src/api/index.js
View file @
a16086fc
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
qs
from
'qs'
;
import
qs
from
'qs'
;
import
apiList
from
'./apiList'
;
import
apiList
from
'./apiList'
;
import
Vue
from
'vue'
;
//引入vue
import
Vue
from
'vue'
;
//必须实例化 Vue
let
vm
=
new
Vue
();
let
vm
=
new
Vue
();
let
baseUrl
=
'http://doc-phone.linanquan.com/'
;
let
baseUrl
=
'http://doc-phone.linanquan.com/'
;
// 添加请求拦截器
// 添加请求拦截器
axios
.
interceptors
.
request
.
use
(
function
(
config
)
{
axios
.
interceptors
.
request
.
use
(
function
(
config
)
{
...
...
public/html/src/assets/js/ddLogin.js
View file @
a16086fc
...
@@ -22,10 +22,7 @@ export default {
...
@@ -22,10 +22,7 @@ export default {
//获取微应用免登授权码
//获取微应用免登授权码
getCode
(){
getCode
(){
this
.
config
((
data
)
=>
{
this
.
config
((
data
)
=>
{
console
.
log
(
data
,
'????'
)
alert
(
111
)
dd
.
ready
(
function
()
{
dd
.
ready
(
function
()
{
alert
(
111
)
dd
.
runtime
.
permission
.
requestAuthCode
({
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
data
.
corpId
,
// 企业id
corpId
:
data
.
corpId
,
// 企业id
onSuccess
:
function
(
info
)
{
onSuccess
:
function
(
info
)
{
...
@@ -35,7 +32,6 @@ export default {
...
@@ -35,7 +32,6 @@ export default {
},
},
onFail
:
function
(
info
)
{
onFail
:
function
(
info
)
{
alert
(
JSON
.
stringify
(
info
))
alert
(
JSON
.
stringify
(
info
))
// code = info.code // 通过该免登授权码可以获取用户身份
this
.
getSsoToken
(
info
.
code
);
this
.
getSsoToken
(
info
.
code
);
},
},
});
});
...
...
public/html/src/router/index.js
View file @
a16086fc
...
@@ -39,9 +39,9 @@ let router = new Router({
...
@@ -39,9 +39,9 @@ let router = new Router({
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
//没有用户信息说明则获取
//没有用户信息说明则获取
//
if(!store.state.user_info){
if
(
!
store
.
state
.
user_info
){
//
ddLogin.getCode();
ddLogin
.
getCode
();
//
}
}
next
();
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