Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
cd-bid
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b11c0c97
authored
Jan 11, 2021
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
注册上传图片判定显示
parent
f7af6819
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
16 deletions
src/common/js/host.js
src/view/register-supplier.vue
src/common/js/host.js
View file @
b11c0c97
let
output
=
{
// 测试环境
//
base: 'http://bid-server.meiqicloud.com/', // 开发路径
base
:
'http://bid-server.meiqicloud.com/'
,
// 开发路径
// base: '/Api/', // 部署路径
//
resources: 'http://bid-web.meiqicloud.com',
//
agentSignIn: 'http://bid-vue.meiqicloud.com/'
resources
:
'http://bid-web.meiqicloud.com'
,
agentSignIn
:
'http://bid-vue.meiqicloud.com/'
// -正式环境
base
:
'/Api/'
,
resources
:
'https://www.fjbidding.com'
,
agentSignIn
:
'https://www.fjbidding.com/admin/'
//
base: '/Api/',
//
resources: 'https://www.fjbidding.com',
//
agentSignIn: 'https://www.fjbidding.com/admin/'
}
output
.
uploadFile
=
output
.
base
+
'bid/common/webupload/upload'
...
...
src/view/register-supplier.vue
View file @
b11c0c97
...
...
@@ -187,7 +187,6 @@
</el-form-item>
</
template
>
<el-form-item
class=
"register-info-button row con-c"
>
<el-button
type=
"primary"
@
click
.
prevent=
"onPrevious()"
>
上一步
</el-button>
<el-button
type=
"primary"
@
click
.
prevent=
"onNext()"
>
下一步
</el-button>
...
...
@@ -470,7 +469,7 @@
* @returns
*/
reset
:
function
()
{
this
.
state
=
1
this
.
state
=
3
this
.
formRegister
=
{
// 基本信息
companyName
:
''
,
...
...
@@ -775,7 +774,7 @@
'password'
:
this
.
formRegister
.
password
,
}
console
.
log
(
JSON
.
stringify
(
funcParam
))
iRequest
.
request
(
iHost
.
base
+
'bid/zUserCompany/registerCompany'
,
funcParam
,
'json'
,
'post'
)
.
then
((
funcResponse
)
=>
{
this
.
state
=
11
...
...
@@ -789,7 +788,6 @@
* @returns
*/
onLoadStatement
:
function
()
{
console
.
log
(
'onLoadStatement'
)
window
.
location
.
href
=
'../../static/quote.zip'
},
...
...
@@ -878,7 +876,7 @@
}
}
if
(
this
.
uploadOption
.
licens
e
.
image
.
length
>
0
)
{
if
(
this
.
uploadOption
.
quot
e
.
image
.
length
>
0
)
{
for
(
let
i
=
0
,
len
=
this
.
uploadOption
.
quote
.
image
.
length
;
i
<
len
;
i
++
)
{
if
(
this
.
uploadOption
.
quote
.
image
[
i
].
status
===
'ready'
)
{
this
.
$refs
.
uploadQuote
.
submit
()
...
...
@@ -887,6 +885,24 @@
}
}
// 校验图片是否完全上传完毕,避免快速点击下一步中断上传。
if
(
this
.
uploadOption
.
license
.
image
.
length
>
0
)
{
for
(
let
i
=
0
,
len
=
this
.
uploadOption
.
license
.
image
.
length
;
i
<
len
;
i
++
)
{
if
(
this
.
uploadOption
.
license
.
image
[
i
].
status
===
'uploading'
)
{
this
.
$message
.
error
(
'正在上传图片,请稍后。'
)
return
}
}
}
if
(
this
.
uploadOption
.
quote
.
image
.
length
>
0
)
{
for
(
let
i
=
0
,
len
=
this
.
uploadOption
.
quote
.
image
.
length
;
i
<
len
;
i
++
)
{
if
(
this
.
uploadOption
.
quote
.
image
[
i
].
status
===
'uploading'
)
{
this
.
$message
.
error
(
'正在上传图片,请稍后。'
)
return
}
}
}
this
.
state
=
5
}
})
...
...
@@ -958,15 +974,14 @@
this
.
$message
.
error
(
'图片仅支持JPG、PNG格式'
)
return
false
}
if
(
funcFile
.
size
>=
629145
6
)
{
if
(
funcFile
.
size
>=
1024
*
1024
*
6
)
{
this
.
$message
.
error
(
'文件大小不超过5MB'
)
return
false
}
break
case
'quote'
:
console
.
log
(
'quote'
,
funcFile
)
if
(
funcFile
.
size
>=
6291456
)
{
if
(
funcFile
.
size
>=
1024
*
1024
*
6
)
{
this
.
$message
.
error
(
'文件大小不超过5MB'
)
return
false
}
...
...
@@ -1102,8 +1117,6 @@
this
.
uploadOption
[
funcType
].
image
=
funcImageList
}
console
.
log
(
this
.
uploadOption
[
funcType
].
image
)
},
/**
...
...
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