Commit 70e9ac6d authored by ‘yangmengxue’'s avatar ‘yangmengxue’

111

parent 19b95886
......@@ -252,7 +252,6 @@
}
}
.vertical-steps {
position: absolute;
right: 4%;
......@@ -343,4 +342,19 @@
border-left: 1.5px dotted var(--color);
z-index: 1;
}
}
// 下载附件
.annex {
>div{
margin-bottom: 10px;
}
.annex_remarks {
color: red;
font-size: 18px;
}
.annex_urls_name {
color: var(--color);
}
}
\ No newline at end of file
......@@ -1315,7 +1315,12 @@
</div>
</div>
</div>
<!-- 下载附件 -->
<div class="annex" v-show="$store.state.annex_key == 1">
<div class="cont_title">下载附件</div>
<div class="annex_remarks">{{ $store.state.annex_notice }}</div>
<div class="annex_urls_name">{{ annex_urls_name }}</div>
</div>
<div class="btn">
<el-button @click="confirm">提交资料</el-button>
</div>
......@@ -1833,6 +1838,7 @@ export default {
resultPicture: "",
disabled: false, //限制输入框
isOffline: false, //活动形式是否包含线下字段
// 报名流程提示
steps: [
"登录报名系统",
"提交报名信息,等待审核",
......@@ -1842,6 +1848,8 @@ export default {
"下载入营通知书,完成报名",
],
isShowStepsTips: false,
// 下载附件
annex_urls_name: null,
};
},
created() {
......@@ -1903,6 +1911,12 @@ export default {
}
});
}
// 下载附件
let annex_urls = this.$store.state.annex_urls;
if (annex_urls != null) {
this.annex_urls_name = this.getSubstringAfterFourthSlash(annex_urls);
}
},
watch: {
referForm(val) {
......@@ -1987,6 +2001,15 @@ export default {
},
mounted() {},
methods: {
//正则-截取附件名称
getSubstringAfterFourthSlash(str) {
const parts = str.split("/"); // 使用斜杠分割字符串
if (parts.length > 4) {
// 确保有四个或更多的斜杠
return parts.slice(4).join("/"); // 返回第四个斜杠后的所有部分,用斜杠重新连接
}
return ""; // 如果没有足够的斜杠,返回空字符串
},
toShowSteps() {
this.isShowStepsTips = !this.isShowStepsTips;
},
......
......@@ -4,11 +4,11 @@
// export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
// 正式
export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
// export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
// export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
// export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
// 测试
// export const SERVER_URL = "http://192.168.1.146:8088/modules-campsite"; // 正式环境
// export const DEVELOPMENT_SERVER_URL = "http://192.168.1.146:8088/modules-campsite"; //开发环境
// export const SERVER_WS_URL = "wss://192.168.1.146:8088"; // websocket
export const SERVER_URL = "http://192.168.1.145:8088/modules-campsite"; // 正式环境
export const DEVELOPMENT_SERVER_URL = "http://192.168.1.145:8088/modules-campsite"; //开发环境
export const SERVER_WS_URL = "wss://192.168.1.145:8088"; // websocket
......@@ -151,7 +151,7 @@ function checkCam(code, cb) {
getCam(code).then((res) => {
console.log(res)
if (res.data.code == "50018") {
return
return
}
let root = document.querySelector(":root");
root.style.setProperty("--color", res.data.system_color);
......@@ -210,6 +210,14 @@ function checkCam(code, cb) {
if (res.data.registration_end != null) {
store.state.registrationEnd = parseTime(res.data.registration_end);
}
// 是否下载附件
if (res.data.annex_urls != null) {
store.state.annex_key = res.data.annex_key;
// if (annex_notice != null) {
store.state.annex_notice = res.data.annex_notice;
// }
store.state.annex_urls = res.data.annex_urls;
}
cb && cb(true);
}).catch(() => {
......
......@@ -27,11 +27,13 @@ let state = {
isLogin: localStorage.getItem("isLogin") || "0", // 只有1为已登录
activeIndex: window.localStorage.getItem('index-active-path') || "0",
query: {},
open_certificate:0,//是否替换原有结营证书
finish_certificate_address:null,
isPost:0,//是否隐藏填写邮寄地址
registrationEnd:null,//缴费截止时间
open_certificate: 0,//是否替换原有结营证书
finish_certificate_address: null,
isPost: 0,//是否隐藏填写邮寄地址
registrationEnd: null,//缴费截止时间
annex_key: null,//是否下载附件
annex_notice: null,
annex_key: null,
};
export default new Vuex.Store({
......
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