diff --git a/common/http.api.js b/common/http.api.js
index c9682b1..6a2c14b 100644
--- a/common/http.api.js
+++ b/common/http.api.js
@@ -6,7 +6,9 @@ let apiApp = {
score: '/api/mobile/school/score',
middleSchoolIndicatorList: '/api/mobile/school/middle-school-indicator',
middleSchoolIndicatorDetail: '/api/mobile/school/middle-school-indicator-detail',
- independentRecruitmentsSubmit: '/api/mobile/batch/independent-recruitments-submit'
+ independentRecruitmentsSubmit: '/api/mobile/batch/independent-recruitments-submit',
+ batchIndex: '/api/mobile/batch/index',
+ batchDetail: '/api/mobile/batch/detail'
}
const apiUser = {
appletLogin: '/api/mobile/user/applet-login',
@@ -38,6 +40,8 @@ const install = (Vue, vm) => {
const middleSchoolIndicatorList = (params = {}) => vm.$u.get(apiApp.middleSchoolIndicatorList, params)
const middleSchoolIndicatorDetail = (params = {}) => vm.$u.get(apiApp.middleSchoolIndicatorDetail, params)
const independentRecruitmentsSubmit = (params = {}) => vm.$u.post(apiApp.independentRecruitmentsSubmit, params)
+ const batchIndex = (params = {}) => vm.$u.get(apiApp.batchIndex, params)
+ const batchDetail = (params = {}) => vm.$u.get(apiApp.batchDetail, params)
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
vm.$u.api = {
// 用户相关
@@ -56,6 +60,8 @@ const install = (Vue, vm) => {
middleSchoolIndicatorList,
middleSchoolIndicatorDetail,
independentRecruitmentsSubmit,
+ batchIndex,
+ batchDetail,
};
}
diff --git a/package_sub/pages/BatchForm/BatchForm.vue b/package_sub/pages/BatchForm/BatchForm.vue
new file mode 100644
index 0000000..c28a6ca
--- /dev/null
+++ b/package_sub/pages/BatchForm/BatchForm.vue
@@ -0,0 +1,361 @@
+
+
+
+
+
+
+ 报考年份
+
+
+
+ 所在区域
+
+
+ {{ item.name }}
+
+
+
+
+
+ {
+ if (form.area_id) {
+ stepClick('next')
+ } else {
+ $u.toast('请选择区域')
+ }
+ }">下一步
+
+
+
+
+ {{ form.year }}年
+ {{ formArea }}
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+ form.year = e.year">
+
+
+
+
+
+
diff --git a/package_sub/pages/FormSuccess/FormSuccess.vue b/package_sub/pages/FormSuccess/FormSuccess.vue
index 6f73c4c..3d514a0 100644
--- a/package_sub/pages/FormSuccess/FormSuccess.vue
+++ b/package_sub/pages/FormSuccess/FormSuccess.vue
@@ -6,6 +6,25 @@
+
+
+ {{ title }} 已完成
+
+
+ 我们会安排专业的人员和您沟通
+
+
+ 返回列表
@@ -21,9 +40,13 @@ export default {
onLoad(options) {
if (options.title) {
this.title = options.title
+ } else {
+ this.title = "填报"
}
if (options.redirect) {
- this.title = options.redirect
+ this.redirect = options.redirect
+ } else {
+ this.redirect = '/pages/index/index'
}
}
}
@@ -48,6 +71,28 @@ export default {
align-items: center;
justify-content: center;
}
+
+ .wrap {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ position: relative;;
+ z-index: 4;
+
+ .text {
+ font-size: 36rpx;
+ line-height: 66rpx;
+ text-transform: uppercase;
+ color: #333333;
+ text-align: center;
+ margin-top: 10.5vh;
+
+ & > view:nth-child(2) {
+ font-size: 28rpx;
+ }
+ }
+ }
}
.bkg {
position: fixed;
diff --git a/package_sub/pages/IndependentRecruitment/IndependentRecruitment.vue b/package_sub/pages/IndependentRecruitment/IndependentRecruitment.vue
index 6453912..7916e95 100644
--- a/package_sub/pages/IndependentRecruitment/IndependentRecruitment.vue
+++ b/package_sub/pages/IndependentRecruitment/IndependentRecruitment.vue
@@ -359,7 +359,6 @@ export default {
this.step = this.step - 1
}
}
- this.setTitle()
},
async getArea() {
try {
@@ -372,7 +371,12 @@ export default {
async submit() {
try {
const res = await this.$u.api.independentRecruitmentsSubmit(this.form)
- this.$u.toast("提交成功")
+ this.$u.route({
+ url: '/package_sub/pages/FormSuccess/FormSuccess',
+ params: {
+ title: "自主招生志愿填报"
+ }
+ })
} catch (err) {
console.error(err)
}
@@ -388,6 +392,11 @@ export default {
return this.areaList?.find(i => i.id === this.form.area_id)?.name
}
},
+ watch: {
+ step(newVal) {
+ this.setTitle()
+ }
+ },
onShow() {
this.setTitle()
},
diff --git a/pages.json b/pages.json
index e049d80..73b2b84 100644
--- a/pages.json
+++ b/pages.json
@@ -95,6 +95,13 @@
"navigationBarTitleText": "提交成功",
"enablePullDownRefresh": true
}
+ },
+ {
+ "path": "pages/BatchForm/BatchForm",
+ "style": {
+ "navigationBarTitleText": "志愿填报",
+ "enablePullDownRefresh": false
+ }
}
]
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4df43b3..ef59a05 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -11,7 +11,7 @@
智能推荐
冲、稳、保学校
-
+
苏州中考志愿
模拟填报