Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
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
杨梦雪
campSite
Commits
554c945a
Commit
554c945a
authored
Oct 08, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload
parent
fcdc2e72
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
141 additions
and
82 deletions
+141
-82
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+80
-55
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+1
-1
src/views/base/home/Home.vue
src/views/base/home/Home.vue
+40
-1
src/views/index/camp/SignUp.vue
src/views/index/camp/SignUp.vue
+0
-2
src/views/index/camp/homework/refer.vue
src/views/index/camp/homework/refer.vue
+20
-23
No files found.
src/components/index/SignUp/paying.vue
View file @
554c945a
...
...
@@ -157,13 +157,13 @@
:before-close=
"handleClose"
:visible.sync=
"bankDialogVisible"
title=
"银行卡支付"
width=
"
30%
"
width=
"
200
"
>
<div
>
收款单位:
{{
payee
}}
</div
>
<div>
账号:
{{
bank_idcard
}}
</div>
<div>
开户行:
{{
bank_first
}}
</div>
<div>
上传转账截图
</div>
<div
class=
"bank_pay"
>
<div><span>
收款单位:
</span>
{{
payee
}}
</div>
<div><span>
账号:
</span>
{{
bank_idcard
}}
</div>
<div><span>
开户行:
</span>
{{
bank_first
}}
</div>
<span>
上传转账截图
</span>
<div
class=
"image_add"
>
<div
class=
"image_in"
>
<el-upload
...
...
@@ -212,7 +212,7 @@
</span>
</div>
</div>
<i
class=
"el-icon-circle-plus"
style=
"font-size: 44px
"
>
</i>
<i
class=
"el-icon-circle-plus
"
>
</i>
</el-upload>
</div>
...
...
@@ -220,6 +220,8 @@
<img
:src=
"resultPicture"
alt=
""
width=
"100%"
/>
</el-dialog>
</div>
</div>
<span
class=
"dialog-footer"
slot=
"footer"
>
<el-button
@
click=
"bankDialogVisible = false"
>
取 消
</el-button>
...
...
@@ -232,10 +234,9 @@
<
script
>
/* eslint-disable */
import
ConfirmSignUp
from
"
c/index/SignUp/ConfirmSignUp
"
;
import
{
SERVER_WS_URL
}
from
"
@/config/server
"
;
import
{
delPayingPic
,
getAccount
,
signUpInit
,}
from
"
r/index/signUp
"
;
import
{
getWxConfig
}
from
"
r/index/pay
"
;
import
{
getSignature
,
checkAsync
}
from
"
r/index/cosUpload
"
;
import
{
achievementCallBack
,
cosSignature
}
from
"
r/index/cosUpload
"
;
import
COS
from
"
cos-js-sdk-v5
"
;
export
default
{
...
...
@@ -310,11 +311,11 @@
});
},
// 子组件触发,关闭确认报名弹框
closeCFSUDialog
(
val
,
isSuccess
)
{
closeCFSUDialog
(
val
,
isSuccess
)
{
console
.
log
(
val
,
"
val
"
);
console
.
log
(
isSuccess
,
"
isSuccess
"
);
this
.
confirmSignUpDialogFu
=
val
;
if
(
isSuccess
==
1
)
{
if
(
isSuccess
==
1
)
{
this
.
$emit
(
"
getstatus
"
,
6
);
}
},
...
...
@@ -510,7 +511,7 @@
async
getCosConfigs
(
image
,
file
)
{
console
.
log
(
file
)
this
.
loading
=
true
;
await
getSignature
(
3
)
await
cosSignature
({
image
:
image
,
index
:
'
3
'
}
)
.
then
((
res
)
=>
{
console
.
log
(
res
,
"
开始上传图片
"
);
let
resData
=
res
.
data
.
data
...
...
@@ -519,19 +520,19 @@
// 必选参数
getAuthorization
:
(
options
,
callback
)
=>
{
callback
({
TmpSecretId
:
resData
.
credentials
.
tmpSecretId
,
TmpSecretKey
:
resData
.
credentials
.
tmpSecretKey
,
XCosSecurityToken
:
resData
.
credentials
.
sessionToken
,
StartTime
:
resData
.
startTime
,
// 时间戳,单位秒,如:1580000000
ExpiredTime
:
resData
.
expiredTime
,
// 时间戳,单位秒,如:1580000900
TmpSecretId
:
resData
.
credentials
.
credential
.
credentials
.
tmpSecretId
,
TmpSecretKey
:
resData
.
credentials
.
credential
.
credentials
.
tmpSecretKey
,
XCosSecurityToken
:
resData
.
credentials
.
credential
.
credentials
.
sessionToken
,
StartTime
:
resData
.
credentials
.
credential
.
startTime
,
// 时间戳,单位秒,如:1580000000
ExpiredTime
:
resData
.
credentials
.
credential
.
expiredTime
,
// 时间戳,单位秒,如:1580000900
});
},
});
console
.
log
(
resData
)
cos
.
putObject
({
Bucket
:
resData
.
bucket
,
Region
:
resData
.
region
,
Key
:
'
111/fg.png
'
,
Bucket
:
resData
.
credentials
.
bucket
,
Region
:
resData
.
credentials
.
region
,
Key
:
resData
.
key
,
Body
:
file
,
onProgress
:
(
progressData
)
=>
{
console
.
log
(
"
上传进度:
"
+
JSON
.
stringify
(
progressData
));
...
...
@@ -545,7 +546,7 @@
this
.
$message
.
error
(
'
上传失败!
'
)
}
else
{
console
.
log
(
data
);
this
.
signUploadSuccess
(
'
http://
'
+
data
.
Location
);
this
.
signUploadSuccess
(
'
http://
'
+
data
.
Location
,
resData
);
}
}
);
...
...
@@ -559,16 +560,30 @@
});
},
// cos上传-告诉后端上传成功
async
signUploadSuccess
(
path
)
{
await
getSignature
(
3
).
then
(
res
=>
{
async
signUploadSuccess
(
path
,
resData
)
{
await
achievementCallBack
({
key
:
resData
.
key
,
index
:
1
}
).
then
(
res
=>
{
if
(
res
.
data
.
code
!=
200
)
{
this
.
loading
=
false
;
return
this
.
$message
.
error
(
'
上传失败!
'
);
}
this
.
loading
=
false
;
this
.
$message
.
success
(
'
上传成功!
'
);
// this.selfInfo.picture_path
= path + "?t=" + Date.parse(new Date());
this
.
resultPicture
=
path
+
"
?t=
"
+
Date
.
parse
(
new
Date
());
this
.
$forceUpdate
();
let
obj
=
{
url
:
res
.
data
.
picture_path
,
savefile
:
res
.
data
.
config
.
savefile
,
};
this
.
fileList
.
push
(
obj
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
"
sign_up_payfile_
"
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
code
,
JSON
.
stringify
(
this
.
fileList
));
this
.
$message
.
success
({
message
:
"
您已上传成功,等待短信通知,审核通过后登录报名网址。
"
,
duration
:
5000
,
});
this
.
changeStatus
();
this
.
hideUpload
=
this
.
fileList
.
length
>=
this
.
limitCount
;
}).
catch
(
err
=>
{
this
.
loading
=
false
;
})
...
...
@@ -820,4 +835,14 @@
// line-height: 12px;
// }
// }
.bank_pay
{
&
div
{
margin
:
8px
0
;
}
&
span
{
font-weight
:
600
;
}
}
</
style
>
src/components/index/SignUp/referInfo.vue
View file @
554c945a
...
...
@@ -590,7 +590,7 @@
: [
{ required: false }]
"
label="备注或其它"
prop="
clothes_size
"
prop="
note_other
"
style="height: 73px"
>
<el-input
...
...
src/views/base/home/Home.vue
View file @
554c945a
...
...
@@ -6,7 +6,16 @@
<img
:src=
"item.url"
class=
"small"
style=
"width: 100%;"
/>
</el-carousel-item>
</el-carousel>
<div
@
click=
"viewMore"
class=
"search"
>
<div
class=
"search_back"
>
<div
class=
"search_input"
>
<span>
快速搜索 CAMP CENTER
</span>
<i
class=
"el-icon-search"
></i>
</div>
</div>
</div>
</div>
<div
class=
"com-container home_content"
>
<!-- 热门活动 -->
<div>
...
...
@@ -105,7 +114,6 @@
<
script
>
import
banner1
from
"
../../../assets/img/Banner/banner1.png
"
;
import
banner2
from
"
../../../assets/img/Banner/banner2.jpg
"
;
import
{
hot
}
from
"
r/base/home
"
;
export
default
{
...
...
@@ -195,6 +203,7 @@
.bannerImg
{
width
:
100%
;
min-width
:
1150px
;
position
:
relative
;
::v-deep
.el-carousel__container
{
height
:
inherit
;
...
...
@@ -215,6 +224,36 @@
/*width: 100%;*/
height
:
inherit
;
}
.search
{
display
:
flex
;
justify-content
:
center
;
position
:
absolute
;
bottom
:
0
;
z-index
:
1000
;
width
:
100%
;
cursor
:
pointer
;
.search_back
{
color
:
#cccccc
;
background-color
:
#fff
;
padding
:
22px
22px
6px
22px
;
width
:
60%
;
.search_input
{
background-color
:
#fff
;
padding
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
border-bottom
:
2px
solid
var
(
--
all_color
);
}
i
{
font-size
:
20px
;
}
}
}
}
.home_title
{
...
...
src/views/index/camp/SignUp.vue
View file @
554c945a
...
...
@@ -277,11 +277,9 @@
// 是否填写邀请码
console
.
log
(
this
.
doubt_code
)
if
(
this
.
doubt_code
==
0
)
{
console
.
log
(
'
referInfo
'
)
this
.
type
=
"
referInfo
"
;
this
.
status
=
2
;
}
else
{
console
.
log
(
'
invitation
'
)
this
.
type
=
"
invitation
"
;
this
.
status
=
1
;
}
...
...
src/views/index/camp/homework/refer.vue
View file @
554c945a
...
...
@@ -245,7 +245,7 @@
<
script
>
import
{
delPic
,
downloadTeacherWork
,
getStudentWork
,
subStudentWork
}
from
"
r/index/homework
"
;
import
{
cosSignature
,
get
Signature
}
from
"
r/index/cosUpload
"
;
import
{
achievementCallBack
,
cos
Signature
}
from
"
r/index/cosUpload
"
;
import
fileImg
from
"
@/assets/img/homework/file_img.png
"
;
import
COS
from
"
cos-js-sdk-v5
"
;
...
...
@@ -500,8 +500,8 @@
// cos上传
async
getCosConfigs
(
image
,
file
)
{
console
.
log
(
file
)
this
.
loading
=
true
;
await
getSignature
(
2
)
this
.
isUp
loading
=
true
;
await
cosSignature
({
image
:
image
,
index
:
'
2
'
}
)
.
then
((
res
)
=>
{
console
.
log
(
res
,
"
开始上传图片
"
);
let
resData
=
res
.
data
.
data
...
...
@@ -510,19 +510,19 @@
// 必选参数
getAuthorization
:
(
options
,
callback
)
=>
{
callback
({
TmpSecretId
:
resData
.
credential
.
credentials
.
tmpSecretId
,
TmpSecretKey
:
resData
.
credential
.
credentials
.
tmpSecretKey
,
XCosSecurityToken
:
resData
.
credential
.
credentials
.
sessionToken
,
StartTime
:
resData
.
credential
.
startTime
,
// 时间戳,单位秒,如:1580000000
ExpiredTime
:
resData
.
credential
.
expiredTime
,
// 时间戳,单位秒,如:1580000900
TmpSecretId
:
resData
.
credential
s
.
credential
.
credentials
.
tmpSecretId
,
TmpSecretKey
:
resData
.
credential
s
.
credential
.
credentials
.
tmpSecretKey
,
XCosSecurityToken
:
resData
.
credential
s
.
credential
.
credentials
.
sessionToken
,
StartTime
:
resData
.
credential
s
.
credential
.
startTime
,
// 时间戳,单位秒,如:1580000000
ExpiredTime
:
resData
.
credential
s
.
credential
.
expiredTime
,
// 时间戳,单位秒,如:1580000900
});
},
});
console
.
log
(
resData
)
cos
.
putObject
({
Bucket
:
resData
.
bucket
,
Region
:
resData
.
region
,
Key
:
'
111/fg.png
'
,
Bucket
:
resData
.
credentials
.
bucket
,
Region
:
resData
.
credentials
.
region
,
Key
:
resData
.
key
,
Body
:
file
,
onProgress
:
(
progressData
)
=>
{
console
.
log
(
"
上传进度:
"
+
JSON
.
stringify
(
progressData
));
...
...
@@ -532,11 +532,11 @@
console
.
log
(
data
);
if
(
err
)
{
console
.
log
(
err
);
this
.
loading
=
false
;
this
.
isUp
loading
=
false
;
this
.
$message
.
error
(
'
上传失败!
'
)
}
else
{
console
.
log
(
data
);
this
.
signUploadSuccess
(
'
http://
'
+
data
.
Location
,
image
);
this
.
signUploadSuccess
(
'
http://
'
+
data
.
Location
,
resData
);
}
}
);
...
...
@@ -546,24 +546,22 @@
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
// this.getIdCardPic();
});
},
// cos上传-告诉后端上传成功
async
signUploadSuccess
(
path
,
image
)
{
await
cosSignature
({
image
:
image
,
index
:
'
2
'
}).
then
(
res
=>
{
async
signUploadSuccess
(
path
,
resData
)
{
await
achievementCallBack
({
key
:
resData
.
key
,
index
:
2
}).
then
(
res
=>
{
if
(
res
.
data
.
code
!=
200
)
{
this
.
loading
=
false
;
return
this
.
$message
.
error
(
'
上传失败!
'
);
}
this
.
loading
=
false
;
this
.
isUp
loading
=
false
;
this
.
$message
.
success
(
'
上传成功!
'
);
this
.
$forceUpdate
();
this
.
resultPicture
=
path
+
"
?t=
"
+
Date
.
parse
(
new
Date
());
this
.
$
message
.
success
(
"
上传成功
"
);
this
.
$
forceUpdate
(
);
let
obj
=
{
url_open
:
res
.
data
.
savefile
,
//
savefile: res.data.config.savefile,
url_open
:
res
.
data
.
picture_path
,
savefile
:
res
.
data
.
config
.
savefile
,
name
:
res
.
data
.
config
.
savefile
.
split
(
"
/work/
"
)[
1
],
};
this
.
stu_fileList
.
push
(
obj
);
...
...
@@ -573,7 +571,6 @@
return
item
.
url_open
;
})
.
join
(
"
,
"
);
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
"
student_file_
"
+
+
window
.
localStorage
.
getItem
(
"
index-phone-all
"
)
+
...
...
@@ -581,7 +578,7 @@
JSON
.
stringify
(
this
.
stu_fileListoss
)
);
}).
catch
(
err
=>
{
this
.
loading
=
false
;
this
.
isUp
loading
=
false
;
})
},
// async getOssConfigs(image, file) {
...
...
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