Commit 13109d24 authored by 杨梦雪's avatar 杨梦雪

1111

parent d291fd5a
......@@ -111,37 +111,37 @@
>
<i style="font-size: 44px" class="el-icon-circle-plus"> </i>
<!-- <div class="text">上传材料</div> -->
<!-- <div slot="file" slot-scope="{ file }"> -->
<div v-for="(item, idx) in fileList" :key="idx">
<img
class="el-upload-list__item-thumbnail"
:src="file.url"
alt=""
/>
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in"></i>
<div slot="file" slot-scope="{ file }">
<div v-for="(item, idx) in fileList" :key="idx">
<img
class="el-upload-list__item-thumbnail"
:src="file.url"
alt=""
/>
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<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
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>
</div>
......@@ -479,7 +479,7 @@ export default {
handlePictureCardPreview(file) {
console.log(file, "11111111");
this.resultPicture = file.url;
this.bankDialogVisible = true;
this.dialogVisible = true;
},
// 文件上传中处理
handleUploadProgress(event, file, fileList) {
......@@ -511,13 +511,23 @@ export default {
type: raw.type,
};
this.file_image = image;
// this.getOssConfigs(image, params.file);
this.getOssConfigs(this.file_image, params.file);
},
// 上传截图
uploadConfirm() {
this.bankDialogVisible = false;
// 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) {
let obj = {
......@@ -548,8 +558,7 @@ export default {
return this.$message.error(ress.data.message);
}
this.resultPicture = filename + "?t=" + Date.parse(new Date());
this.$forceUpdate();
this.$message.success("上传成功");
// this.$forceUpdate();
obj = {
url: ress.data.picture_path,
savefile: res.data.config.savefile,
......@@ -562,6 +571,10 @@ export default {
code,
JSON.stringify(this.fileList)
);
this.$message.success(
"您已上传成功,等待短信通知,审核通过后登录报名网址。"
);
this.changeStatus();
})
.catch((err) => {
this.$message.error(err);
......@@ -612,7 +625,7 @@ export default {
code,
JSON.stringify(this.fileList)
);
this.$message.success(res.data.message);
this.$message.success("删除成功");
window.localStorage.removeItem(
"bank_info" +
window.localStorage.getItem("phone" + code) +
......
<template>
<div class="referInfo">
<!-- <el-form
<!-- 正式 -->
<el-form
v-if="$store.state.indexIdentity == '6c6884d1c83040ee8ca17736a8d67b93'"
ref="referRef"
:model="referForm"
label-position="top"
class="checkForm"
:rules="referInfoRules"
> -->
<el-form
>
<!-- 测试 -->
<!-- <el-form
v-if="$store.state.indexIdentity == 'c432d9028b2840ebbbfd56947b38069b'"
ref="referRef"
:model="referForm"
label-position="top"
class="checkForm"
:rules="referInfoRules"
>
> -->
<div class="cont_title">个人信息</div>
<el-row :gutter="20">
<el-col :span="12">
......@@ -175,9 +177,9 @@
/>
</el-form-item>
</el-col>
<el-col :span="12">
<!-- <el-col :span="12">
<el-form-item label="入学年份" prop="start_school_date">
<el-row :gutter="20">
<el-row :gutter="20"> -->
<!-- <el-col :span="12">
<el-select
v-model="start_grade"
......@@ -194,7 +196,7 @@
</el-option>
</el-select>
</el-col> -->
<el-col :span="24">
<!-- <el-col :span="24">
<el-select
ref="start_school_date"
v-model="start_year"
......@@ -214,7 +216,7 @@
</el-col>
</el-row>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="12">
<el-form-item label="政治面貌" prop="political_status">
<el-select
......
......@@ -12,11 +12,11 @@
// export const SERVER_WS_URL = 'wss://api1.testgate.cn' // websocket
// 正式
// export const 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_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_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_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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment