|
|
@@ -10,9 +10,17 @@
|
|
|
<div class="requirements-title">发布需求</div>
|
|
|
|
|
|
<div class="requirements-tips">
|
|
|
- 项目信息是最重要的信息,切勿填写“123456”等无关信息;为了给有诚意的开发者更多接单机会,因此导致的审核不通过,可能<span
|
|
|
- >不再二次审核</span
|
|
|
+ 程序员客栈拥有
|
|
|
+ <span
|
|
|
+ ><b>{{ developer_number }}</b
|
|
|
+ >个</span
|
|
|
>
|
|
|
+ 互联网人才,成功完成了
|
|
|
+ <span
|
|
|
+ ><b>{{ project_number }}</b
|
|
|
+ >个</span
|
|
|
+ >
|
|
|
+ 项目,请放心发布您的需求!
|
|
|
</div>
|
|
|
|
|
|
<div class="requirements-step-container">
|
|
|
@@ -116,10 +124,13 @@ export default {
|
|
|
// wait process finish
|
|
|
activeStatus: "wait",
|
|
|
|
|
|
- projectid: ""
|
|
|
+ projectid: "",
|
|
|
+
|
|
|
+ developer_number: 0,
|
|
|
+ project_number: 0
|
|
|
};
|
|
|
},
|
|
|
- asyncData({ route }) {
|
|
|
+ async asyncData({ route, $axios }) {
|
|
|
let active;
|
|
|
if (route.query.step) {
|
|
|
active = Number(route.query.step);
|
|
|
@@ -127,8 +138,18 @@ export default {
|
|
|
} else {
|
|
|
active = 1;
|
|
|
}
|
|
|
+ let countResult = await $axios.$post("/api/index/count");
|
|
|
+ let developer_number = 0;
|
|
|
+ let project_number = 0;
|
|
|
+ if (countResult.status === 1) {
|
|
|
+ developer_number = countResult.data.developer_number;
|
|
|
+ project_number = countResult.data.project_number;
|
|
|
+ }
|
|
|
+
|
|
|
return {
|
|
|
- active
|
|
|
+ active,
|
|
|
+ developer_number,
|
|
|
+ project_number
|
|
|
};
|
|
|
},
|
|
|
head() {
|