Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
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
郑秀明
shop_mobile_uni
Commits
705a63c9
Commit
705a63c9
authored
Apr 15, 2020
by
王建威
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add loading
parent
c23f242d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
26 deletions
+18
-26
manifest.json
manifest.json
+1
-1
applypage1.vue
pages/apply/applypage1.vue
+6
-9
applypage2.vue
pages/apply/applypage2.vue
+5
-6
applypage3.vue
pages/apply/applypage3.vue
+3
-5
certification.vue
pages/certification/certification.vue
+3
-5
No files found.
manifest.json
View file @
705a63c9
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
"disableHostCheck"
:
true
,
"disableHostCheck"
:
true
,
"proxy"
:
{
"proxy"
:
{
"/uni/api"
:
{
"/uni/api"
:
{
"target"
:
"http://
192.168.50.133:6564
/"
,
"target"
:
"http://
39.96.85.45:9093
/"
,
"changeOrigin"
:
true
,
"changeOrigin"
:
true
,
"secure"
:
false
,
"secure"
:
false
,
"pathRewrite"
:
{
"pathRewrite"
:
{
...
...
pages/apply/applypage1.vue
View file @
705a63c9
...
@@ -144,10 +144,8 @@
...
@@ -144,10 +144,8 @@
uploadImage
(
key
)
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
uni
.
chooseImage
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
uni
.
showToast
({
uni
.
showLoading
({
title
:
'上传中'
,
title
:
'上传中'
icon
:
'none'
,
duration
:
90000
})
})
const
tempFilePaths
=
res
.
tempFilePaths
;
const
tempFilePaths
=
res
.
tempFilePaths
;
uni
.
uploadFile
({
uni
.
uploadFile
({
...
@@ -157,7 +155,7 @@
...
@@ -157,7 +155,7 @@
success
:
(
uploadFileRes
)
=>
{
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
key
]
=
data
.
data
;
uni
.
hide
Toast
();
uni
.
hide
Loading
();
}
}
});
});
}
}
...
@@ -193,9 +191,8 @@
...
@@ -193,9 +191,8 @@
// mozilla(firefox)
// mozilla(firefox)
url
=
window
.
URL
.
createObjectURL
(
file
);
url
=
window
.
URL
.
createObjectURL
(
file
);
}
}
uni
.
showToast
({
uni
.
showLoading
({
title
:
'上传中'
,
title
:
'上传中'
icon
:
'none'
})
})
uni
.
uploadFile
({
uni
.
uploadFile
({
url
:
'/uni/api/resources'
,
url
:
'/uni/api/resources'
,
...
@@ -208,7 +205,7 @@
...
@@ -208,7 +205,7 @@
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
key
]
=
data
.
data
;
this
.
compressName
=
fileName
;
this
.
compressName
=
fileName
;
uni
.
hide
Toast
();
uni
.
hide
Loading
();
}
}
});
});
}
}
...
...
pages/apply/applypage2.vue
View file @
705a63c9
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
uploadImage
(
key
)
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
uni
.
chooseImage
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
uni
.
show
Toast
({
uni
.
show
Loading
({
title
:
'上传中'
,
title
:
'上传中'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
90000
duration
:
90000
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
success
:
(
uploadFileRes
)
=>
{
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
key
]
=
data
.
data
;
uni
.
hide
Toast
();
uni
.
hide
Loading
();
}
}
});
});
}
}
...
@@ -164,9 +164,8 @@
...
@@ -164,9 +164,8 @@
// mozilla(firefox)
// mozilla(firefox)
url
=
window
.
URL
.
createObjectURL
(
file
);
url
=
window
.
URL
.
createObjectURL
(
file
);
}
}
uni
.
showToast
({
uni
.
showLoading
({
title
:
'上传中'
,
title
:
'上传中'
icon
:
'none'
})
})
uni
.
uploadFile
({
uni
.
uploadFile
({
url
:
'/uni/api/resources'
,
url
:
'/uni/api/resources'
,
...
@@ -179,7 +178,7 @@
...
@@ -179,7 +178,7 @@
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
key
]
=
data
.
data
;
this
.
compressName
=
fileName
;
this
.
compressName
=
fileName
;
uni
.
hide
Toast
();
uni
.
hide
Loading
();
}
}
});
});
}
}
...
...
pages/apply/applypage3.vue
View file @
705a63c9
...
@@ -90,10 +90,8 @@
...
@@ -90,10 +90,8 @@
uploadImage
(
key
)
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
uni
.
chooseImage
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
uni
.
showToast
({
uni
.
showLoading
({
title
:
'上传中'
,
title
:
'上传中'
icon
:
'none'
,
duration
:
90000
})
})
const
tempFilePaths
=
res
.
tempFilePaths
const
tempFilePaths
=
res
.
tempFilePaths
uni
.
uploadFile
({
uni
.
uploadFile
({
...
@@ -103,7 +101,7 @@
...
@@ -103,7 +101,7 @@
success
:
(
uploadFileRes
)
=>
{
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
key
]
=
data
.
data
;
uni
.
hide
Toast
();
uni
.
hide
Loading
();
}
}
});
});
}
}
...
...
pages/certification/certification.vue
View file @
705a63c9
...
@@ -99,10 +99,8 @@
...
@@ -99,10 +99,8 @@
uploadImage
(
key
)
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
uni
.
chooseImage
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
uni
.
showToast
({
uni
.
showLoading
({
title
:
'上传中'
,
title
:
'上传中'
icon
:
'none'
,
duration
:
90000
})
})
const
tempFilePaths
=
res
.
tempFilePaths
const
tempFilePaths
=
res
.
tempFilePaths
uni
.
uploadFile
({
uni
.
uploadFile
({
...
@@ -112,7 +110,7 @@
...
@@ -112,7 +110,7 @@
success
:
(
uploadFileRes
)
=>
{
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
key
]
=
data
.
data
;
uni
.
hide
Toast
();
uni
.
hide
Loading
();
}
}
});
});
}
}
...
...
郑秀明
@zhengxiuming
mentioned in commit
693adf77
·
Apr 15, 2020
mentioned in commit
693adf77
mentioned in commit 693adf77fcee07df59209e6d7852d5446c016f82
Toggle commit list
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