Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
6b0021b8
Commit
6b0021b8
authored
Aug 29, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
223fd4c9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
App.vue
App.vue
+1
-1
components/plan-image-upload/up_img.vue
components/plan-image-upload/up_img.vue
+7
-1
manifest.json
manifest.json
+0
-8
utils/request.js
utils/request.js
+3
-3
No files found.
App.vue
View file @
6b0021b8
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
},
},
//获取 语音消息
//获取 语音消息
async
getnewsRemind
(
type
){
async
getnewsRemind
(
type
){
console
.
log
(
'
语音消息
'
)
//
console.log('语音消息')
var
date
=
new
Date
();
var
date
=
new
Date
();
let
hours
=
date
.
getHours
();
//当前 时间 小时
let
hours
=
date
.
getHours
();
//当前 时间 小时
...
...
components/plan-image-upload/up_img.vue
View file @
6b0021b8
...
@@ -92,6 +92,9 @@
...
@@ -92,6 +92,9 @@
uni
.
chooseImage
({
uni
.
chooseImage
({
count
:
_self
.
limit
?
(
_self
.
limit
-
_self
.
value
.
length
)
:
999
,
count
:
_self
.
limit
?
(
_self
.
limit
-
_self
.
value
.
length
)
:
999
,
success
:
function
(
e
){
success
:
function
(
e
){
console
.
info
(
"
---------------------e----------------------
"
);
console
.
info
(
"
e
"
,
e
);
console
.
info
(
"
---------------------e----------------------
"
);
var
imagePathArr
=
e
.
tempFilePaths
var
imagePathArr
=
e
.
tempFilePaths
//如果设置了limit限制,在web上count参数无效,这里做判断控制选择的数量是否合要求
//如果设置了limit限制,在web上count参数无效,这里做判断控制选择的数量是否合要求
...
@@ -123,6 +126,7 @@
...
@@ -123,6 +126,7 @@
console
.
info
(
"
_self.formData
"
,
_self
.
formData
);
console
.
info
(
"
_self.formData
"
,
_self
.
formData
);
for
(
let
i
=
0
;
i
<
imagePathArr
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
imagePathArr
.
length
;
i
++
){
console
.
info
(
plus
.
io
.
convertLocalFileSystemURL
(
imagePathArr
[
i
]),
"
plus.io.convertLocalFileSystemURL(imagePathArr[i])
"
);
promiseWorkList
.
push
(
new
Promise
((
resolve
,
reject
)
=>
{
promiseWorkList
.
push
(
new
Promise
((
resolve
,
reject
)
=>
{
let
remoteUrlIndex
=
remoteIndexStart
+
i
let
remoteUrlIndex
=
remoteIndexStart
+
i
console
.
info
(
"
_self.serverUrl
"
,
_self
.
serverUrl
);
console
.
info
(
"
_self.serverUrl
"
,
_self
.
serverUrl
);
...
@@ -130,12 +134,14 @@
...
@@ -130,12 +134,14 @@
url
:
_self
.
serverUrl
,
url
:
_self
.
serverUrl
,
fileType
:
'
image
'
,
fileType
:
'
image
'
,
formData
:
_self
.
formData
,
formData
:
_self
.
formData
,
filePath
:
imagePathArr
[
i
],
filePath
:
plus
.
io
.
convertLocalFileSystemURL
(
imagePathArr
[
i
]),
// filePath:imagePathArr[i],
header
:{
header
:{
token
:
uni
.
getStorageSync
(
"
token
"
)
token
:
uni
.
getStorageSync
(
"
token
"
)
},
},
name
:
keyname
,
name
:
keyname
,
success
:
function
(
res
){
success
:
function
(
res
){
console
.
info
(
"
uploadres
"
,
res
);
if
(
res
.
statusCode
===
200
){
if
(
res
.
statusCode
===
200
){
_self
.
value
.
push
(
JSON
.
parse
(
res
.
data
))
_self
.
value
.
push
(
JSON
.
parse
(
res
.
data
))
completeImages
++
completeImages
++
...
...
manifest.json
View file @
6b0021b8
...
@@ -30,14 +30,6 @@
...
@@ -30,14 +30,6 @@
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"android"
:
{
"android"
:
{
//
"permissionPhoneState"
:
{
//
"request"
:
"none"
,
//
"prompt"
:
"为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许。"
//
},
//
"permissionExternalStorage"
:
{
//
"request"
:
"none"
,
//
"prompt"
:
"应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
//
},
"permissions"
:
[
"permissions"
:
[
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
...
...
utils/request.js
View file @
6b0021b8
...
@@ -109,9 +109,9 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
...
@@ -109,9 +109,9 @@ export default function request(api, method, data, {noAuth = false, noVerify = f
// data.token = "be09eb9024822c33f0a02632d77b5226---";
// data.token = "be09eb9024822c33f0a02632d77b5226---";
// data.token = store.state.token;//有token 需要把token 带上
// data.token = store.state.token;//有token 需要把token 带上
}
}
console
.
info
(
"
-----------------------------------
"
);
//
console.info("-----------------------------------");
console
.
info
(
data
);
//
console.info(data);
console
.
info
(
"
-----------------------------------
"
);
//
console.info("-----------------------------------");
return
new
Promise
((
reslove
,
reject
)
=>
{
return
new
Promise
((
reslove
,
reject
)
=>
{
uni
.
request
({
uni
.
request
({
url
:
Url
+
api
,
url
:
Url
+
api
,
...
...
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