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
13109d24
Commit
13109d24
authored
Mar 31, 2022
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
d291fd5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
49 deletions
+64
-49
src/components/index/SignUp/paying.vue
src/components/index/SignUp/paying.vue
+48
-35
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+10
-8
src/config/server.js
src/config/server.js
+6
-6
No files found.
src/components/index/SignUp/paying.vue
View file @
13109d24
...
@@ -111,37 +111,37 @@
...
@@ -111,37 +111,37 @@
>
>
<i
style=
"font-size: 44px"
class=
"el-icon-circle-plus"
>
</i>
<i
style=
"font-size: 44px"
class=
"el-icon-circle-plus"
>
</i>
<!--
<div
class=
"text"
>
上传材料
</div>
-->
<!--
<div
class=
"text"
>
上传材料
</div>
-->
<!--
<div
slot=
"file"
slot-scope=
"
{ file }"> -->
<div
slot=
"file"
slot-scope=
"
{ file }">
<div
v-for=
"(item, idx) in fileList"
:key=
"idx"
>
<div
v-for=
"(item, idx) in fileList"
:key=
"idx"
>
<img
<img
class=
"el-upload-list__item-thumbnail"
class=
"el-upload-list__item-thumbnail"
:src=
"file.url"
:src=
"file.url"
alt=
""
alt=
""
/>
/>
<span
class=
"el-upload-list__item-actions"
>
<span
class=
"el-upload-list__item-actions"
>
<span
<span
class=
"el-upload-list__item-preview"
class=
"el-upload-list__item-preview"
@
click=
"handlePictureCardPreview(file)"
@
click=
"handlePictureCardPreview(file)"
>
>
<i
class=
"el-icon-zoom-in"
></i>
<i
class=
"el-icon-zoom-in"
></i>
</span>
<span
v-if=
"!disabled"
class=
"el-upload-list__item-delete"
@
click=
"handleDownload(file)"
>
<i
class=
"el-icon-download"
></i>
</span>
<span
v-if=
"!disabled"
class=
"el-upload-list__item-delete"
@
click=
"handleRemove(file)"
>
<i
class=
"el-icon-delete"
></i>
</span>
</span>
</span>
<span
</div>
v-if=
"!disabled"
class=
"el-upload-list__item-delete"
@
click=
"handleDownload(file)"
>
<i
class=
"el-icon-download"
></i>
</span>
<span
v-if=
"!disabled"
class=
"el-upload-list__item-delete"
@
click=
"handleRemove(file)"
>
<i
class=
"el-icon-delete"
></i>
</span>
</span>
</div>
</div>
<!--
</div>
-->
</el-upload>
</el-upload>
</div>
</div>
...
@@ -479,7 +479,7 @@ export default {
...
@@ -479,7 +479,7 @@ export default {
handlePictureCardPreview
(
file
)
{
handlePictureCardPreview
(
file
)
{
console
.
log
(
file
,
"
11111111
"
);
console
.
log
(
file
,
"
11111111
"
);
this
.
resultPicture
=
file
.
url
;
this
.
resultPicture
=
file
.
url
;
this
.
bankD
ialogVisible
=
true
;
this
.
d
ialogVisible
=
true
;
},
},
// 文件上传中处理
// 文件上传中处理
handleUploadProgress
(
event
,
file
,
fileList
)
{
handleUploadProgress
(
event
,
file
,
fileList
)
{
...
@@ -511,13 +511,23 @@ export default {
...
@@ -511,13 +511,23 @@ export default {
type
:
raw
.
type
,
type
:
raw
.
type
,
};
};
this
.
file_image
=
image
;
this
.
file_image
=
image
;
// this.getOssConfigs(
image, params.file);
this
.
getOssConfigs
(
this
.
file_
image
,
params
.
file
);
},
},
// 上传截图
// 上传截图
uploadConfirm
()
{
uploadConfirm
()
{
this
.
bankDialogVisible
=
false
;
this
.
bankDialogVisible
=
false
;
// this.$message.success("你的支付信息已提交,请留意短信通知。");
// this.$message.success("你的支付信息已提交,请留意短信通知。");
this
.
getOssConfigs
(
this
.
file_image
,
this
.
file
);
// this.getOssConfigs(this.file_image, this.file);
},
async
changeStatus
()
{
// console.log(SERVER_WS_URL);
let
{
data
:
res
}
=
await
getWxConfig
({
pay_type
:
4
,
});
if
(
res
.
code
!==
200
)
{
return
Toast
(
res
.
message
);
}
// Toast(res.message);
},
},
async
getOssConfigs
(
image
,
file
)
{
async
getOssConfigs
(
image
,
file
)
{
let
obj
=
{
let
obj
=
{
...
@@ -548,8 +558,7 @@ export default {
...
@@ -548,8 +558,7 @@ export default {
return
this
.
$message
.
error
(
ress
.
data
.
message
);
return
this
.
$message
.
error
(
ress
.
data
.
message
);
}
}
this
.
resultPicture
=
filename
+
"
?t=
"
+
Date
.
parse
(
new
Date
());
this
.
resultPicture
=
filename
+
"
?t=
"
+
Date
.
parse
(
new
Date
());
this
.
$forceUpdate
();
// this.$forceUpdate();
this
.
$message
.
success
(
"
上传成功
"
);
obj
=
{
obj
=
{
url
:
ress
.
data
.
picture_path
,
url
:
ress
.
data
.
picture_path
,
savefile
:
res
.
data
.
config
.
savefile
,
savefile
:
res
.
data
.
config
.
savefile
,
...
@@ -562,6 +571,10 @@ export default {
...
@@ -562,6 +571,10 @@ export default {
code
,
code
,
JSON
.
stringify
(
this
.
fileList
)
JSON
.
stringify
(
this
.
fileList
)
);
);
this
.
$message
.
success
(
"
您已上传成功,等待短信通知,审核通过后登录报名网址。
"
);
this
.
changeStatus
();
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
err
);
this
.
$message
.
error
(
err
);
...
@@ -612,7 +625,7 @@ export default {
...
@@ -612,7 +625,7 @@ export default {
code
,
code
,
JSON
.
stringify
(
this
.
fileList
)
JSON
.
stringify
(
this
.
fileList
)
);
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
"
删除成功
"
);
window
.
localStorage
.
removeItem
(
window
.
localStorage
.
removeItem
(
"
bank_info
"
+
"
bank_info
"
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
window
.
localStorage
.
getItem
(
"
phone
"
+
code
)
+
...
...
src/components/index/SignUp/referInfo.vue
View file @
13109d24
<
template
>
<
template
>
<div
class=
"referInfo"
>
<div
class=
"referInfo"
>
<!--
<el-form
<!-- 正式 -->
<el-form
v-if=
"$store.state.indexIdentity == '6c6884d1c83040ee8ca17736a8d67b93'"
v-if=
"$store.state.indexIdentity == '6c6884d1c83040ee8ca17736a8d67b93'"
ref=
"referRef"
ref=
"referRef"
:model=
"referForm"
:model=
"referForm"
label-position=
"top"
label-position=
"top"
class=
"checkForm"
class=
"checkForm"
:rules=
"referInfoRules"
:rules=
"referInfoRules"
>
-->
>
<el-form
<!-- 测试 -->
<!--
<el-form
v-if=
"$store.state.indexIdentity == 'c432d9028b2840ebbbfd56947b38069b'"
v-if=
"$store.state.indexIdentity == 'c432d9028b2840ebbbfd56947b38069b'"
ref=
"referRef"
ref=
"referRef"
:model=
"referForm"
:model=
"referForm"
label-position=
"top"
label-position=
"top"
class=
"checkForm"
class=
"checkForm"
:rules=
"referInfoRules"
:rules=
"referInfoRules"
>
>
-->
<div
class=
"cont_title"
>
个人信息
</div>
<div
class=
"cont_title"
>
个人信息
</div>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -175,9 +177,9 @@
...
@@ -175,9 +177,9 @@
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<
!--
<
el-col
:span=
"12"
>
<el-form-item
label=
"入学年份"
prop=
"start_school_date"
>
<el-form-item
label=
"入学年份"
prop=
"start_school_date"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
-->
<!--
<el-col
:span=
"12"
>
<!--
<el-col
:span=
"12"
>
<el-select
<el-select
v-model=
"start_grade"
v-model=
"start_grade"
...
@@ -194,7 +196,7 @@
...
@@ -194,7 +196,7 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-col>
-->
</el-col>
-->
<el-col
:span=
"24"
>
<
!--
<
el-col
:span=
"24"
>
<el-select
<el-select
ref=
"start_school_date"
ref=
"start_school_date"
v-model=
"start_year"
v-model=
"start_year"
...
@@ -214,7 +216,7 @@
...
@@ -214,7 +216,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"政治面貌"
prop=
"political_status"
>
<el-form-item
label=
"政治面貌"
prop=
"political_status"
>
<el-select
<el-select
...
...
src/config/server.js
View file @
13109d24
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
// export const SERVER_WS_URL = 'wss://api1.testgate.cn' // websocket
// export const SERVER_WS_URL = 'wss://api1.testgate.cn' // websocket
// 正式
// 正式
//
export const SERVER_URL = "https://api.campcenter.cn/"; // 正式环境
export
const
SERVER_URL
=
"
https://api.campcenter.cn/
"
;
// 正式环境
//
export const DEVELOPMENT_SERVER_URL = "https://api.campcenter.cn/"; //开发环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://api.campcenter.cn/
"
;
//开发环境
//
export const SERVER_WS_URL = "wss://api.campcenter.cn"; // websocket
export
const
SERVER_WS_URL
=
"
wss://api.campcenter.cn
"
;
// websocket
// 测试
// 测试
export
const
SERVER_URL
=
"
https://ying-test.campcenter.cn
"
;
// 正式环境
//
export const SERVER_URL = "https://ying-test.campcenter.cn"; // 正式环境
export
const
DEVELOPMENT_SERVER_URL
=
"
https://ying-test.campcenter.cn/
"
;
//开发环境
//
export const DEVELOPMENT_SERVER_URL = "https://ying-test.campcenter.cn/"; //开发环境
export
const
SERVER_WS_URL
=
"
wss://ying-test.campcenter.cn
"
;
// websocket
//
export const SERVER_WS_URL = "wss://ying-test.campcenter.cn"; // websocket
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