Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
36428db0
Commit
36428db0
authored
May 06, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
从vuex获取token
parent
b3be061b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
9 deletions
+10
-9
.env.js
.env.js
+3
-2
preview.vue
src/components/photo/preview.vue
+1
-1
setting.vue
src/components/photo/setting.vue
+2
-2
list.vue
src/pages/photo/list.vue
+1
-1
preview.vue
src/pages/photo/preview.vue
+1
-1
setting.vue
src/pages/photo/setting.vue
+2
-2
No files found.
.env.js
View file @
36428db0
;
;
(
function
()
{
(
function
()
{
let
NODE_ENV
=
'
dev
'
;
// dev:开发环境 | test:测试环境
let
NODE_ENV
=
'
test
'
;
// dev:开发环境 | test:测试环境
let
ENV_VAR
=
null
;
let
ENV_VAR
=
null
;
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
NODE_ENV
===
'dev'
)
{
if
(
NODE_ENV
===
'dev'
)
{
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
}
}
}
else
if
(
process
.
env
.
NODE_ENV
===
"production"
)
{
}
else
if
(
process
.
env
.
NODE_ENV
===
"production"
)
{
ENV_VAR
=
require
(
'./.env.prod.js'
);
ENV_VAR
=
require
(
'./.env.prod.js'
);
//ENV_VAR = require('./.env.test.js');
}
}
if
(
ENV_VAR
)
{
if
(
ENV_VAR
)
{
process
.
uniEnv
=
{};
process
.
uniEnv
=
{};
...
...
src/components/photo/preview.vue
View file @
36428db0
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
// if(e.standardId) {
// if(e.standardId) {
// this.standardId = e.standardId
// this.standardId = e.standardId
// }
// }
this
.
token
=
getApp
().
globalData
.
token
this
.
token
=
this
.
vuex_
token
},
},
methods
:
{
methods
:
{
// 保存照片到本地
// 保存照片到本地
...
...
src/components/photo/setting.vue
View file @
36428db0
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
api
.
getUserWatermark
({
this
.
$u
.
api
.
getUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'system_id'
:
this
.
systemId
'system_id'
:
this
.
systemId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
saveUserWatermark
:
function
()
{
saveUserWatermark
:
function
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
api
.
saveUserWatermark
({
this
.
$u
.
api
.
saveUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'watermark'
:
this
.
result
'watermark'
:
this
.
result
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
result
.
code
==
true
)
{
if
(
res
.
result
.
code
==
true
)
{
...
...
src/pages/photo/list.vue
View file @
36428db0
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
this
.
loading
=
true
this
.
loading
=
true
let
that
=
this
let
that
=
this
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'classify_id'
:
this
.
classifyId
,
'classify_id'
:
this
.
classifyId
,
'system_id'
:
this
.
systemId
,
'system_id'
:
this
.
systemId
,
'brand_id'
:
this
.
brandId
'brand_id'
:
this
.
brandId
...
...
src/pages/photo/preview.vue
View file @
36428db0
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
this
.
standardId
=
e
.
standardId
this
.
standardId
=
e
.
standardId
}
}
this
.
token
=
getApp
().
globalData
.
token
this
.
token
=
this
.
vuex_
token
},
},
methods
:
{
methods
:
{
// 保存照片到本地
// 保存照片到本地
...
...
src/pages/photo/setting.vue
View file @
36428db0
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
cloudApi
.
getUserWatermark
({
this
.
$u
.
cloudApi
.
getUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'system_id'
:
this
.
systemId
'system_id'
:
this
.
systemId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
&&
res
.
result
)
{
if
(
res
&&
res
.
result
)
{
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
saveUserWatermark
:
function
()
{
saveUserWatermark
:
function
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
cloudApi
.
saveUserWatermark
({
this
.
$u
.
cloudApi
.
saveUserWatermark
({
'token'
:
getApp
().
globalData
.
token
,
'token'
:
this
.
vuex_
token
,
'watermark'
:
this
.
result
'watermark'
:
this
.
result
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
result
.
code
==
true
)
{
if
(
res
.
result
.
code
==
true
)
{
...
...
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