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
ff55d339
Commit
ff55d339
authored
Apr 15, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压缩图片
parent
6f3f8eb4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
119 additions
and
104 deletions
+119
-104
applypage1.vue
pages/apply/applypage1.vue
+58
-52
applypage2.vue
pages/apply/applypage2.vue
+57
-51
applypage3.vue
pages/apply/applypage3.vue
+1
-0
certification.vue
pages/certification/certification.vue
+1
-0
installmentinfo.vue
pages/installment/installmentinfo.vue
+2
-1
No files found.
pages/apply/applypage1.vue
View file @
ff55d339
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<view
class=
"apply_desc"
>
支持(zip/rar)格式
</view>
<view
class=
"apply_desc"
>
支持(zip/rar)格式
</view>
</view>
</view>
<view
class=
"apply_data_item"
>
<view
class=
"apply_data_item"
>
<view
class=
"apply_upload"
v-if=
"!params.bank_card_record"
@
click=
"uploadZip('bank_card_record')
"
>
<view
class=
"apply_upload"
v-if=
"!params.bank_card_record"
ref=
"compress
"
>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"upload_font"
>
企业半年银行流水
</text>
<text
class=
"upload_font"
>
企业半年银行流水
</text>
</view>
</view>
...
@@ -140,33 +140,17 @@
...
@@ -140,33 +140,17 @@
}
}
});
});
},
},
methods
:
{
mounted
()
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
success
:
(
res
)
=>
{
uni
.
showLoading
({
title
:
'上传中'
})
const
tempFilePaths
=
res
.
tempFilePaths
;
uni
.
uploadFile
({
url
:
'/uni/api/resources'
,
filePath
:
tempFilePaths
[
0
],
name
:
'file'
,
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
uni
.
hideLoading
();
}
});
}
})
},
uploadZip
(
key
)
{
// #ifdef H5
// #ifdef H5
const
_input
=
document
.
createElement
(
'input'
);
const
_input
=
document
.
createElement
(
'input'
);
_input
.
type
=
'file'
;
_input
.
type
=
'file'
;
_input
.
accept
=
'application/x-zip-compressed,application/x-rar-compressed'
;
_input
.
accept
=
'application/x-zip-compressed,application/x-rar-compressed'
;
_input
.
click
();
_input
.
style
.
position
=
'absolute'
;
_input
.
style
.
top
=
'0'
;
_input
.
style
.
width
=
'100%'
;
_input
.
style
.
height
=
'100%'
;
_input
.
style
.
opacity
=
'0'
;
this
.
$refs
.
compress
.
$el
.
append
(
_input
);
_input
.
onchange
=
(
e
)
=>
{
_input
.
onchange
=
(
e
)
=>
{
let
file
=
e
.
target
.
files
[
0
];
let
file
=
e
.
target
.
files
[
0
];
let
fileName
=
file
.
name
;
let
fileName
=
file
.
name
;
...
@@ -203,7 +187,7 @@
...
@@ -203,7 +187,7 @@
},
},
success
:
(
uploadFileRes
)
=>
{
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
'bank_card_record'
]
=
data
.
data
;
this
.
compressName
=
fileName
;
this
.
compressName
=
fileName
;
uni
.
hideLoading
();
uni
.
hideLoading
();
}
}
...
@@ -211,6 +195,28 @@
...
@@ -211,6 +195,28 @@
}
}
// #endif
// #endif
},
},
methods
:
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
sizeType
:
[
'compress'
],
success
:
(
res
)
=>
{
const
tempFilePaths
=
res
.
tempFilePaths
;
uni
.
showLoading
({
title
:
'上传中'
})
uni
.
uploadFile
({
url
:
'/uni/api/resources'
,
filePath
:
tempFilePaths
[
0
],
name
:
'file'
,
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
uni
.
hideLoading
();
}
});
}
})
},
clearParams
(
key
)
{
clearParams
(
key
)
{
this
.
params
[
key
]
=
''
;
this
.
params
[
key
]
=
''
;
},
},
...
...
pages/apply/applypage2.vue
View file @
ff55d339
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<view
class=
"apply_desc"
>
支持(zip/rar)格式
</view>
<view
class=
"apply_desc"
>
支持(zip/rar)格式
</view>
</view>
</view>
<view
class=
"apply_data_item"
>
<view
class=
"apply_data_item"
>
<view
class=
"apply_upload"
@
click=
"uploadZip('legal_card_record')"
v-if=
"!params.legal_card_record"
>
<view
class=
"apply_upload"
v-if=
"!params.legal_card_record"
>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"eosfont icons"
>

</text>
<text
class=
"upload_font"
>
法人半年银行流水
</text>
<text
class=
"upload_font"
>
法人半年银行流水
</text>
</view>
</view>
...
@@ -111,35 +111,17 @@
...
@@ -111,35 +111,17 @@
}
}
});
});
},
},
methods
:
{
mounted
()
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
success
:
(
res
)
=>
{
uni
.
showLoading
({
title
:
'上传中'
,
icon
:
'none'
,
duration
:
90000
})
const
tempFilePaths
=
res
.
tempFilePaths
uni
.
uploadFile
({
url
:
'/uni/api/resources'
,
filePath
:
tempFilePaths
[
0
],
name
:
'file'
,
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
uni
.
hideLoading
();
}
});
}
})
},
uploadZip
(
key
)
{
// #ifdef H5
// #ifdef H5
const
_input
=
document
.
createElement
(
'input'
);
const
_input
=
document
.
createElement
(
'input'
);
_input
.
type
=
'file'
;
_input
.
type
=
'file'
;
_input
.
accept
=
'application/x-zip-compressed,application/x-rar-compressed'
;
_input
.
accept
=
'application/x-zip-compressed,application/x-rar-compressed'
;
_input
.
click
();
_input
.
style
.
position
=
'absolute'
;
_input
.
style
.
top
=
'0'
;
_input
.
style
.
width
=
'100%'
;
_input
.
style
.
height
=
'100%'
;
_input
.
style
.
opacity
=
'0'
;
this
.
$refs
.
compress
.
$el
.
append
(
_input
);
_input
.
onchange
=
(
e
)
=>
{
_input
.
onchange
=
(
e
)
=>
{
let
file
=
e
.
target
.
files
[
0
];
let
file
=
e
.
target
.
files
[
0
];
let
fileName
=
file
.
name
;
let
fileName
=
file
.
name
;
...
@@ -176,7 +158,7 @@
...
@@ -176,7 +158,7 @@
},
},
success
:
(
uploadFileRes
)
=>
{
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
this
.
params
[
'legal_card_record'
]
=
data
.
data
;
this
.
compressName
=
fileName
;
this
.
compressName
=
fileName
;
uni
.
hideLoading
();
uni
.
hideLoading
();
}
}
...
@@ -184,6 +166,30 @@
...
@@ -184,6 +166,30 @@
}
}
// #endif
// #endif
},
},
methods
:
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
sizeType
:
[
'compress'
],
success
:
(
res
)
=>
{
uni
.
showLoading
({
title
:
'上传中'
,
icon
:
'none'
,
duration
:
90000
})
const
tempFilePaths
=
res
.
tempFilePaths
uni
.
uploadFile
({
url
:
'/uni/api/resources'
,
filePath
:
tempFilePaths
[
0
],
name
:
'file'
,
success
:
(
uploadFileRes
)
=>
{
const
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
params
[
key
]
=
data
.
data
;
uni
.
hideLoading
();
}
});
}
})
},
clearParams
(
key
)
{
clearParams
(
key
)
{
this
.
params
[
key
]
=
''
;
this
.
params
[
key
]
=
''
;
},
},
...
...
pages/apply/applypage3.vue
View file @
ff55d339
...
@@ -89,6 +89,7 @@
...
@@ -89,6 +89,7 @@
methods
:
{
methods
:
{
uploadImage
(
key
)
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
uni
.
chooseImage
({
sizeType
:
[
'compress'
],
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'上传中'
title
:
'上传中'
...
...
pages/certification/certification.vue
View file @
ff55d339
...
@@ -98,6 +98,7 @@
...
@@ -98,6 +98,7 @@
},
},
uploadImage
(
key
)
{
uploadImage
(
key
)
{
uni
.
chooseImage
({
uni
.
chooseImage
({
sizeType
:
[
'compress'
],
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'上传中'
title
:
'上传中'
...
...
pages/installment/installmentinfo.vue
View file @
ff55d339
...
@@ -505,15 +505,16 @@
...
@@ -505,15 +505,16 @@
.installment_table_box {
.installment_table_box {
padding: 0 28rpx 40rpx;
padding: 0 28rpx 40rpx;
background: #fff;
background: #fff;
overflow: scroll;
.installment_table {
.installment_table {
background: #FBFBFB;
background: #FBFBFB;
border-radius:16rpx;
border-radius:16rpx;
border:1px solid rgba(236,236,236,1);
border:1px solid rgba(236,236,236,1);
padding: 40rpx 40rpx 16rpx;
padding: 40rpx 40rpx 16rpx;
display: flex;
display: flex;
overflow: scroll;
.table_title {
.table_title {
margin-right: 20rpx;
margin-right: 20rpx;
min-width: 160rpx;
view {
view {
height:36rpx;
height:36rpx;
line-height: 36rpx;
line-height: 36rpx;
...
...
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