Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
Details
Activity
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
zong
Compass
Commits
20de73b6
Commit
20de73b6
authored
Mar 15, 2020
by
shijiuyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d8f4ae9f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
31 deletions
+29
-31
editCircle2.js
src/wx/pages/editCircle2/editCircle2.js
+15
-17
newCircle2.js
src/wx/pages/newCircle2/newCircle2.js
+12
-14
util.js
src/wx/utils/util.js
+2
-0
No files found.
src/wx/pages/editCircle2/editCircle2.js
View file @
20de73b6
...
...
@@ -231,23 +231,21 @@ Page({
for
(
var
i
in
that
.
data
.
imageList
)
{
var
file
=
that
.
data
.
imageList
[
i
];
if
(
file
.
path
!==
undefined
)
{
setTimeout
(
function
()
{
wx
.
uploadFile
({
url
:
app
.
url
+
'ajax_circle_edit2.php?unionId='
+
config
.
unionId
+
'&circleId='
+
that
.
data
.
circleId
+
'&clear=false'
,
filePath
:
file
.
path
,
name
:
'image'
,
success
:
function
(
resp2
)
{
that
.
deleteImg
();
setTimeout
(
function
(){
that
.
setData
({
uploadCount
:
that
.
data
.
uploadCount
+
1
},
function
()
{
that
.
finish
();
})
},
300
)
}
})
},
500
);
wx
.
uploadFile
({
url
:
app
.
url
+
'ajax_circle_edit2.php?unionId='
+
config
.
unionId
+
'&circleId='
+
that
.
data
.
circleId
+
'&clear=false'
,
filePath
:
file
.
path
,
name
:
'image'
,
success
:
function
(
resp2
)
{
that
.
deleteImg
();
setTimeout
(
function
()
{
that
.
setData
({
uploadCount
:
that
.
data
.
uploadCount
+
1
},
function
()
{
that
.
finish
();
})
},
300
)
}
})
}
}
}
else
{
...
...
src/wx/pages/newCircle2/newCircle2.js
View file @
20de73b6
...
...
@@ -165,20 +165,18 @@ Page({
if
(
that
.
data
.
fileList1
.
length
>
0
){
for
(
var
i
in
that
.
data
.
fileList1
){
var
file
=
that
.
data
.
fileList1
[
i
];
setTimeout
(
function
(){
wx
.
uploadFile
({
url
:
app
.
url
+
'ajax_circle_new2.php?unionId='
+
res
.
data
.
unionId
+
'&circleId='
+
that
.
data
.
circleId
,
filePath
:
file
.
path
,
name
:
'image'
,
success
:
function
(
resp2
)
{
that
.
setData
({
uploadCount
:
that
.
data
.
uploadCount
+
1
},
function
()
{
that
.
finish
();
})
}
})
},
500
);
wx
.
uploadFile
({
url
:
app
.
url
+
'ajax_circle_new2.php?unionId='
+
res
.
data
.
unionId
+
'&circleId='
+
that
.
data
.
circleId
,
filePath
:
file
.
path
,
name
:
'image'
,
success
:
function
(
resp2
)
{
that
.
setData
({
uploadCount
:
that
.
data
.
uploadCount
+
1
},
function
()
{
that
.
finish
();
})
}
})
}
}
else
{
wx
.
showToast
({
...
...
src/wx/utils/util.js
View file @
20de73b6
...
...
@@ -14,6 +14,8 @@ const formatNumber = n => {
return
n
[
1
]
?
n
:
'0'
+
n
}
module
.
exports
=
{
formatTime
:
formatTime
}
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