Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2da171af
authored
Jul 23, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
5e0ab353
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
src/api/request.js
src/api/sign.js
src/base.js
src/views/tao/sale/index/index.vue
src/api/request.js
View file @
2da171a
...
...
@@ -5,10 +5,9 @@ import {
GlAxios
}
from
'glsx-vue-common'
const
request
=
(
params
=
{},
url
,
method
=
RequestMethods
.
POST
,
noSignAttr
=
[])
=>
{
console
.
log
(
'出发'
,
window
.
vm
.
$config
)
params
.
method
=
url
.
trimStart
().
trimEnd
()
// this.$get_session_common_config().axios.sys.appKey
params
.
appKey
=
window
.
vm
.
$config
.
axios
.
appKey
params
.
appKey
=
window
.
$config
.
axios
.
appKey
// params.timestamp = new Date().getTime()
params
.
v
=
'1.0.0'
params
.
format
=
'json'
...
...
src/api/sign.js
View file @
2da171a
import
sha1
from
'sha1'
import
qs
from
'qs'
const
sign
=
(
params
,
noSignAttr
=
[])
=>
{
const
secret
=
window
.
vm
.
$config
.
axios
.
secret
const
secret
=
window
.
$config
.
axios
.
secret
delete
params
.
sign
var
objStr
=
qs
.
stringify
(
params
,
{
arrayFormat
:
'indices'
,
encode
:
false
,
allowDots
:
true
})
var
objVal
=
objStr
.
split
(
'&'
)
...
...
src/base.js
View file @
2da171a
...
...
@@ -73,7 +73,7 @@ const getConfig = (url = URL + '/oss_dj_equity_config') => {
xhr
.
onreadystatechange
=
()
=>
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
let
config
=
JSON
.
parse
(
xhr
.
responseText
)
Vue
.
prototype
.
$config
=
config
window
.
$config
=
config
resolve
({
'vue'
:
Vue
,
'config'
:
config
...
...
src/views/tao/sale/index/index.vue
View file @
2da171a
...
...
@@ -145,7 +145,7 @@ export default {
mixins
:
[
orderMixin
,
searchMixin
],
data
()
{
return
{
flag
:
fals
e
,
flag
:
tru
e
,
tabIndex
:
''
,
tableParams
:
{
listName
:
'list'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment