Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 874fb1d9
authored
Jul 02, 2024
by
yixinjj
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.7' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.7
2 parents
16ab2579
377f1fcb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
15 deletions
components/HomeFrame/components/RecordList.vue
hybrid/html/index.html
mixin/uploader.js
components/HomeFrame/components/RecordList.vue
View file @
874fb1d
...
...
@@ -225,7 +225,7 @@ export default {
console
.
log
(
i
.
bussinessType
,
sceneType
)
return
i
.
merchantId
==
shopMerchantId
&&
i
.
bussinessType
==
(
sceneType
==
0
?
1
:
2
)
&&
i
.
loginPhone
==
phone
}
)
this
.
recordFailList
=
recordFailList
this
.
recordFailList
=
recordFailList
.
reverse
();
}
,
getRecordFail
()
{
this
.
getRecordNum
()
...
...
hybrid/html/index.html
View file @
874fb1d
...
...
@@ -3,13 +3,42 @@
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<title>
file upload oss
</title>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dolorum in saepe
quia, amet quis, at id aperiam nesciunt incidunt, rerum aut modi facilis
culpa expedita repellat cupiditate vero dicta ut.
<title></title>
</head>
<style>
body
,
html
{
margin
:
0
;
padding
:
0
;
height
:
100%
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background
:
rgb
(
0
,
0
,
0
,
0.5
);
}
<body>
.loading
{
width
:
50px
;
height
:
50px
;
border
:
3px
solid
#666
;
border-radius
:
50%
;
border-top-color
:
#fff
;
animation
:
spin
1s
linear
infinite
;
}
@keyframes
spin
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
</style>
</head>
<body>
<div
class=
"loading"
></div>
<script
src=
"js/uni.webview.1.5.5.js"
></script>
<script
src=
"js/aliyun-oss-sdk-6.18.1.min.js"
></script>
<script
src=
"js/OSSUpLoader.js"
></script>
...
...
mixin/uploader.js
View file @
874fb1d
import
{
getOssToken
}
from
"@/utils/ossUploadFile/uploadFile.js"
;
import
Queue
from
"@/utils/Queue.js"
;
const
interval
=
6
;
const
interval
=
6
0
;
export
default
{
onLoad
()
{},
data
()
{
...
...
@@ -107,7 +107,7 @@ export default {
async
getRecordsSnapshotFlatten
()
{
const
_records
=
await
this
.
getRecordsSnapshot
();
console
.
log
(
_records
,
"_records"
);
const
_snapshot
=
this
.
flattenData
(
_records
);
const
_snapshot
=
this
.
flattenData
(
_records
||
[]
);
return
_snapshot
;
},
/**
...
...
@@ -159,15 +159,18 @@ export default {
delete
fileInfo
.
status
;
}
});
console
.
log
(
recordFileList
,
"recordFileList"
);
//删除客户端的文件
uni
.
removeSavedFile
({
filePath
:
filePathOnClient
,
complete
:
function
(
res
)
{
console
.
log
(
res
);
},
});
if
(
recordFileList
.
every
((
i
)
=>
i
.
status
==
undefined
))
{
const
pathArr
=
recordFileList
.
map
((
i
)
=>
i
.
file
);
const
res
=
await
uni
.
$api
.
commonApi
.
saveRecCustomer
({
...
record
,
recordFileList
:
pathArr
,
});
console
.
log
(
record
,
res
,
"record"
);
const
params
=
{
...
record
,
recordUrlList
:
pathArr
};
const
res
=
await
uni
.
$api
.
commonApi
.
saveRecCustomer
(
params
);
console
.
log
(
params
,
res
,
"record"
);
if
(
res
)
{
uni
.
$recordManager
.
removeRecord
(
recordId
);
}
...
...
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