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
ee1d935a
Commit
ee1d935a
authored
Aug 27, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-photo-upload' into test
parents
a444077b
7299c106
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
.env.dev.js
.env.dev.js
+1
-1
.env.js
.env.js
+2
-2
.env.prod.js
.env.prod.js
+1
-1
.env.test.js
.env.test.js
+1
-1
task.js
src/components/upload/task.js
+2
-2
complete.vue
src/pages/order/complete.vue
+1
-1
No files found.
.env.dev.js
View file @
ee1d935a
...
@@ -11,6 +11,6 @@ const UNI_APP = {
...
@@ -11,6 +11,6 @@ const UNI_APP = {
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'http://deudn.c.pp.cc/'
,
qn_asset_url
:
'http://deudn.c.pp.cc/'
,
argoDebugMode
:
1
,
argoDebugMode
:
1
,
version
:
'v1.4.
8
'
version
:
'v1.4.
9
'
}
}
module
.
exports
=
UNI_APP
;
module
.
exports
=
UNI_APP
;
.env.js
View file @
ee1d935a
;(
function
()
{
;(
function
()
{
let
NODE_ENV
=
'
test
'
// dev:开发环境 | test:测试环境 | prod:生产环境
let
NODE_ENV
=
'
prod
'
// dev:开发环境 | test:测试环境 | prod:生产环境
let
ENV_VAR
=
null
let
ENV_VAR
=
null
let
VERSION_NUMBER
=
'1.4.
8
'
//版本号
let
VERSION_NUMBER
=
'1.4.
9
'
//版本号
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
//小程序是否审核通过,参数配置在ucenter库version表,对应版本号的is_audit设置为1,将显示学习视频
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
if
(
NODE_ENV
===
'dev'
)
{
if
(
NODE_ENV
===
'dev'
)
{
...
...
.env.prod.js
View file @
ee1d935a
...
@@ -10,7 +10,7 @@ const UNI_APP = {
...
@@ -10,7 +10,7 @@ const UNI_APP = {
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
argoDebugMode
:
0
,
argoDebugMode
:
0
,
version
:
'v1.4.
8
'
version
:
'v1.4.
9
'
}
}
module
.
exports
=
UNI_APP
;
module
.
exports
=
UNI_APP
;
.env.test.js
View file @
ee1d935a
...
@@ -11,6 +11,6 @@ const UNI_APP = {
...
@@ -11,6 +11,6 @@ const UNI_APP = {
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_base_url
:
'https://qn-static.banshouhui.com/self-support/'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
qn_asset_url
:
'https://qn-static.banshouhui.com'
,
argoDebugMode
:
1
,
argoDebugMode
:
1
,
version
:
'v1.4.
8
'
version
:
'v1.4.
9
'
}
}
module
.
exports
=
UNI_APP
;
module
.
exports
=
UNI_APP
;
src/components/upload/task.js
View file @
ee1d935a
...
@@ -19,7 +19,7 @@ export default {
...
@@ -19,7 +19,7 @@ export default {
* 执行任务队列
* 执行任务队列
*/
*/
async
uploadImageTask
(
that
)
{
async
uploadImageTask
(
that
)
{
const
uploadTask
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
uploadTask
))
const
uploadTask
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
uploadTask
))
.
reverse
()
const
networkType
=
await
getNetworkType
()
const
networkType
=
await
getNetworkType
()
const
options
=
{
const
options
=
{
files
:
uploadTask
,
// 必填 临时文件路径 格式: [{path: "图片地址"}]
files
:
uploadTask
,
// 必填 临时文件路径 格式: [{path: "图片地址"}]
...
@@ -58,7 +58,7 @@ export default {
...
@@ -58,7 +58,7 @@ export default {
})
})
},
},
refreshTask
(
that
,
result
)
{
refreshTask
(
that
,
result
)
{
const
uploadTask
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
uploadTask
))
const
uploadTask
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
uploadTask
))
.
reverse
()
let
newTask
=
[]
let
newTask
=
[]
uploadTask
.
forEach
(
v
=>
{
uploadTask
.
forEach
(
v
=>
{
if
(
!
result
.
includes
(
`/
${
v
.
key
}
`
))
{
// 删除已上传的图片
if
(
!
result
.
includes
(
`/
${
v
.
key
}
`
))
{
// 删除已上传的图片
...
...
src/pages/order/complete.vue
View file @
ee1d935a
...
@@ -1038,7 +1038,7 @@ export default {
...
@@ -1038,7 +1038,7 @@ export default {
}
}
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
res
.
data
,
title
:
res
.
message
,
type
:
'error'
,
type
:
'error'
,
})
})
}
}
...
...
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