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
e49e8632
Commit
e49e8632
authored
May 27, 2020
by
jiangyipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f47160d9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
7 deletions
+8
-7
index.html
public/html/dist/index.html
+1
-1
app.2c07f4a44cf6e5b0072b.js.map
public/html/dist/static/js/app.2c07f4a44cf6e5b0072b.js.map
+0
-1
app.c645385019aae5975efb.js
public/html/dist/static/js/app.c645385019aae5975efb.js
+2
-2
app.c645385019aae5975efb.js.map
public/html/dist/static/js/app.c645385019aae5975efb.js.map
+1
-0
manifest.f99cf827c593c896d635.js.map
.../html/dist/static/js/manifest.f99cf827c593c896d635.js.map
+1
-1
ddLogin.js
public/html/src/assets/js/ddLogin.js
+3
-2
No files found.
public/html/dist/index.html
View file @
e49e8632
<!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>
<!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.c645385019aae5975efb.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
public/html/dist/static/js/app.2c07f4a44cf6e5b0072b.js.map
deleted
100644 → 0
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":"sRACeA,GACXC,OAAO,+BACPC,YAAY,oCAGZC,WAAW,iC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,OAAQ,SAAU,YAAa,YAC9BC,OAAU,IAAKA,OAAU,MACzBA,QAAW,EAAG,EAAG,EAAG,EAAG,EAAG,GAAG,SAQrClF,IAAII,IAAJ+E,EAAA,GACAnF,IAAII,IAAJgF,EAAA,GACApF,IAAII,IAAJiF,EAAA,GACArF,IAAII,IAAJkF,EAAA,GACAtF,IAAII,IAAJmF,EAAA,GACAvF,IAAII,IAAJoF,EAAA,GACAxF,IAAIP,OAAOgG,eAAgB,EAG3B,IAAIzF,KACF0F,GAAI,OACJxB,SACAyB,YAAcC,OACdC,SAAU","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
public/html/dist/static/js/app.
2c07f4a44cf6e5b0072
b.js
→
public/html/dist/static/js/app.
c645385019aae5975ef
b.js
View file @
e49e8632
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"
]);
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
(){
var
n
=
this
;
this
.
config
(
function
(
e
){
dd
.
ready
(
function
(){
dd
.
runtime
.
permission
.
requestAuthCode
({
corpId
:
e
.
corpId
,
onSuccess
:
function
(
e
){
alert
(
111
),
n
.
getSsoToken
(
e
.
code
)},
onFail
:
function
(
e
){
alert
(
g
()(
e
)),
n
.
getSsoToken
(
e
.
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
//# sourceMappingURL=app.c645385019aae5975efb.js.map
\ No newline at end of file
\ No newline at end of file
public/html/dist/static/js/app.c645385019aae5975efb.js.map
0 → 100644
View file @
e49e8632
{"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","_this","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":"sRACeA,GACXC,OAAO,+BACPC,YAAY,oCAGZC,WAAW,iCACXC,YAAY,kCACZC,cAAc,oCACdC,YAAY,mCCJZC,EAAK,cAAIC,GAGbC,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,OAAOjB,KACHmB,OAAO,OACPC,QA3BE,kCA4BFF,IAAIA,EACJT,KAAKY,IAAGC,UAAUb,MCjCfc,EAAA,GAEX/B,OAFW,SAEJiB,GACH,OAAOO,EAAS,SAASP,IAG7BhB,YANW,SAMCgB,GACR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IAAID,KACbE,SAEQC,KAAM,IACN/B,KAAM,QACNgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,eACfC,WAEQJ,KAAM,SACN/B,KAAK,SACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,UACN/B,KAAK,UACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,aACN/B,KAAK,aACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,iBAGfH,KAAM,OACN/B,KAAK,OACLgC,UAAW,kBAAIlC,EAAAmC,EAAA,GAAA7B,KAAAN,EAAAoC,KAAA,qBAOnCL,EAAOO,WAAW,SAACC,EAAIC,EAAMC,GAErBjB,EAAME,MAAMC,WACZvB,EAAQQ,UAEZ6B,MAGWV,2DCnCfnE,IAAII,IAAI0E,KACNC,YAAY,QACZC,SACEC,WACIC,YACD,OAAQ,SAAU,YAAa,YAC9BC,OAAU,IAAKA,OAAU,MACzBA,QAAW,EAAG,EAAG,EAAG,EAAG,EAAG,GAAG,SAQrCnF,IAAII,IAAJgF,EAAA,GACApF,IAAII,IAAJiF,EAAA,GACArF,IAAII,IAAJkF,EAAA,GACAtF,IAAII,IAAJmF,EAAA,GACAvF,IAAII,IAAJoF,EAAA,GACAxF,IAAII,IAAJqF,EAAA,GACAzF,IAAIP,OAAOiG,eAAgB,EAG3B,IAAI1F,KACF2F,GAAI,OACJxB,SACAyB,YAAcC,OACdC,SAAU","file":"static/js/app.c645385019aae5975efb.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 let _this = this;\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
public/html/dist/static/js/manifest.f99cf827c593c896d635.js.map
View file @
e49e8632
{"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,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AAA9C,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 470de61e84bf4b2e7820"],"sourceRoot":""}
{"version":3,"sources":["webpack:///webpack/bootstrap 914d55fc785a9e604948"],"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,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,wBAAuI3C,GAAA,MAC/M,IAAAkC,EAAAU,WAAAC,EAAA,MAEA,SAAAA,IAEAhB,EAAAiB,QAAAjB,EAAAkB,OAAA,KACAC,aAAAd,GACA,IAAAe,EAAA5C,EAAAL,GACA,IAAAiD,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAlD,EAAA,aAEAK,EAAAL,QAAAmD,GAKA,OAfAtB,EAAAiB,QAAAjB,EAAAkB,OAAAF,EAaAnB,EAAA0B,YAAAvB,GAEAL,GAIAX,EAAAwC,EAAA1C,EAGAE,EAAAyC,EAAAvC,EAGAF,EAAA0C,EAAA,SAAAtC,EAAAuC,EAAAC,GACA5C,EAAA6C,EAAAzC,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 914d55fc785a9e604948"],"sourceRoot":""}
\ No newline at end of file
\ No newline at end of file
public/html/src/assets/js/ddLogin.js
View file @
e49e8632
...
@@ -21,6 +21,7 @@ export default {
...
@@ -21,6 +21,7 @@ export default {
},
},
//获取微应用免登授权码
//获取微应用免登授权码
getCode
(){
getCode
(){
let
_this
=
this
;
this
.
config
((
data
)
=>
{
this
.
config
((
data
)
=>
{
dd
.
ready
(
function
()
{
dd
.
ready
(
function
()
{
dd
.
runtime
.
permission
.
requestAuthCode
({
dd
.
runtime
.
permission
.
requestAuthCode
({
...
@@ -28,11 +29,11 @@ export default {
...
@@ -28,11 +29,11 @@ export default {
onSuccess
:
function
(
info
)
{
onSuccess
:
function
(
info
)
{
alert
(
111
)
alert
(
111
)
// code = info.code // 通过该免登授权码可以获取用户身份
// code = info.code // 通过该免登授权码可以获取用户身份
this
.
getSsoToken
(
info
.
code
);
_
this
.
getSsoToken
(
info
.
code
);
},
},
onFail
:
function
(
info
)
{
onFail
:
function
(
info
)
{
alert
(
JSON
.
stringify
(
info
))
alert
(
JSON
.
stringify
(
info
))
this
.
getSsoToken
(
info
.
code
);
_
this
.
getSsoToken
(
info
.
code
);
},
},
});
});
});
});
...
...
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