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

111

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