diff --git a/component/survey-box/survey-box.js b/component/survey-box/survey-box.js
new file mode 100644
index 0000000..8307c20
--- /dev/null
+++ b/component/survey-box/survey-box.js
@@ -0,0 +1,33 @@
+// pagesSquare/components/survey-box/survey-box.js
+Component({
+
+ /**
+ * 组件的属性列表
+ */
+ properties: {
+ duckProphet: Object,
+ newest: {
+ type: String,
+ observer(res) {
+ if (!res) return
+ this.setData({
+ newest: res.toLocaleUpperCase()
+ })
+ }
+ }
+ },
+
+ /**
+ * 组件的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 组件的方法列表
+ */
+ methods: {
+
+ }
+})
\ No newline at end of file
diff --git a/component/survey-box/survey-box.json b/component/survey-box/survey-box.json
new file mode 100644
index 0000000..e8cfaaf
--- /dev/null
+++ b/component/survey-box/survey-box.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/component/survey-box/survey-box.less b/component/survey-box/survey-box.less
new file mode 100644
index 0000000..8c4570a
--- /dev/null
+++ b/component/survey-box/survey-box.less
@@ -0,0 +1,131 @@
+/* pagesSquare/components/survey-box/survey-box.wxss */
+.flexflex {
+ display: flex;
+}
+
+.flexcenter {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.flexjcenter {
+ display: flex;
+ justify-content: center;
+}
+
+.flexacenter {
+ display: flex;
+ align-items: center;
+}
+
+.flex1 {
+ flex: 1;
+}
+
+.block {
+ background-color: rgba(255, 255, 255, 1);
+ border: 1rpx solid rgba(235, 235, 235, 1);
+ border-radius: 18rpx;
+ margin-bottom: 60rpx;
+ margin-left: 36rpx;
+}
+
+.survey {
+ padding: 18rpx;
+
+ .head {
+ .head-icon {
+ width: 117rpx;
+ height: 145.5rpx;
+ margin-top: 2px;
+ margin-right: 12rpx;
+ }
+
+ .head-title {
+ width: 300rpx;
+ height: 66rpx;
+ margin-top: -12rpx;
+ }
+ }
+
+ .survey-box {
+ width: 531rpx;
+ background-color: rgba(242, 242, 242, 1);
+ border-radius: 12rpx;
+ padding: 19.5rpx 30rpx;
+ margin-bottom: 15rpx;
+ margin-top: -6rpx;
+ position: relative;
+
+ .title {
+ text-align: center;
+ color: #333333;
+ font-size: 21rpx;
+ margin: 0 auto 21rpx;
+ height: 34.5rpx;
+
+ .season {
+ font-family: 'Arial', 'Arial Black', sans-serif;
+ font-weight: 900;
+ font-size: 24rpx;
+ color: #F25D11;
+ }
+ }
+
+ .across {
+ justify-content: space-between;
+
+ // margin-bottom: 21rpx;
+ &:not(:last-of-type) {
+ margin-bottom: 21rpx;
+ }
+
+ .item {
+ height: 90rpx;
+ background-color: rgba(253, 223, 109, 1);
+ border-radius: 7.5rpx;
+ flex-direction: column;
+
+ &:not(:last-of-type) {
+ margin-right: 21rpx;
+ }
+
+ .date {
+ font-family: 'Arial', 'Arial-Black', 'Arial Black', sans-serif;
+ font-weight: 900;
+ font-style: normal;
+ font-size: 22.5rpx;
+ text-align: center;
+ }
+
+ line-height: 39rpx;
+
+ .text {
+ font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
+ font-weight: 400;
+ font-style: normal;
+ font-size: 21rpx;
+ color: #333333;
+ text-align: center;
+ }
+ }
+ }
+
+ }
+
+ .remark {
+ font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
+ font-weight: 400;
+ font-size: 19.5rpx;
+ color: #555555;
+ line-height: 28.5rpx;
+
+ .remark-ps {
+ font-family: 'Arial-Black', 'Arial Black', sans-serif;
+ font-weight: 900;
+ color: #000000;
+ font-size: 21rpx;
+ }
+ }
+}
\ No newline at end of file
diff --git a/component/survey-box/survey-box.wxml b/component/survey-box/survey-box.wxml
new file mode 100644
index 0000000..a0c1480
--- /dev/null
+++ b/component/survey-box/survey-box.wxml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+ 本项目
+ {{ newest }}
+ 通知下达观察
+
+
+
+ {{ duckProphet.earliestdate || '-' }}
+ 最早通知
+
+
+ {{ duckProphet.latestdate || '-' }}
+ 最近通知
+
+
+
+
+ {{ duckProphet.studentcount || '-' }}
+ 人数
+
+
+ {{ duckProphet.offercount || '-' }}
+ Offer
+
+
+ {{ duckProphet.rejectcount || '-' }}
+ 拒信
+
+
+
+
+
\ No newline at end of file
diff --git a/component/survey-box/survey-box.wxss b/component/survey-box/survey-box.wxss
new file mode 100644
index 0000000..68b742c
--- /dev/null
+++ b/component/survey-box/survey-box.wxss
@@ -0,0 +1,107 @@
+/* pagesSquare/components/survey-box/survey-box.wxss */
+.flexflex {
+ display: flex;
+}
+.flexcenter {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.flexjcenter {
+ display: flex;
+ justify-content: center;
+}
+.flexacenter {
+ display: flex;
+ align-items: center;
+}
+.flex1 {
+ flex: 1;
+}
+.block {
+ background-color: #ffffff;
+ border: 1rpx solid #ebebeb;
+ border-radius: 18rpx;
+ margin-bottom: 60rpx;
+ margin-left: 36rpx;
+}
+.survey {
+ padding: 18rpx;
+}
+.survey .head .head-icon {
+ width: 117rpx;
+ height: 145.5rpx;
+ margin-top: 2px;
+ margin-right: 12rpx;
+}
+.survey .head .head-title {
+ width: 300rpx;
+ height: 66rpx;
+ margin-top: -12rpx;
+}
+.survey .survey-box {
+ width: 531rpx;
+ background-color: #f2f2f2;
+ border-radius: 12rpx;
+ padding: 19.5rpx 30rpx;
+ margin-bottom: 15rpx;
+ margin-top: -6rpx;
+ position: relative;
+}
+.survey .survey-box .title {
+ text-align: center;
+ color: #333333;
+ font-size: 21rpx;
+ margin: 0 auto 21rpx;
+ height: 34.5rpx;
+}
+.survey .survey-box .title .season {
+ font-family: 'Arial', 'Arial Black', sans-serif;
+ font-weight: 900;
+ font-size: 24rpx;
+ color: #F25D11;
+}
+.survey .survey-box .across {
+ justify-content: space-between;
+}
+.survey .survey-box .across:not(:last-of-type) {
+ margin-bottom: 21rpx;
+}
+.survey .survey-box .across .item {
+ height: 90rpx;
+ background-color: #fddf6d;
+ border-radius: 7.5rpx;
+ flex-direction: column;
+ line-height: 39rpx;
+}
+.survey .survey-box .across .item:not(:last-of-type) {
+ margin-right: 21rpx;
+}
+.survey .survey-box .across .item .date {
+ font-family: 'Arial', 'Arial-Black', 'Arial Black', sans-serif;
+ font-weight: 900;
+ font-style: normal;
+ font-size: 22.5rpx;
+ text-align: center;
+}
+.survey .survey-box .across .item .text {
+ font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
+ font-weight: 400;
+ font-style: normal;
+ font-size: 21rpx;
+ color: #333333;
+ text-align: center;
+}
+.survey .remark {
+ font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
+ font-weight: 400;
+ font-size: 19.5rpx;
+ color: #555555;
+ line-height: 28.5rpx;
+}
+.survey .remark .remark-ps {
+ font-family: 'Arial-Black', 'Arial Black', sans-serif;
+ font-weight: 900;
+ color: #000000;
+ font-size: 21rpx;
+}
diff --git a/pages/projectDetails/projectDetails.js b/pages/projectDetails/projectDetails.js
index 859a15c..f622f5f 100644
--- a/pages/projectDetails/projectDetails.js
+++ b/pages/projectDetails/projectDetails.js
@@ -127,6 +127,7 @@ Page({
applyListState: false, // 申请信息选择列表状态
newest: "",
+ duckProphet: {}, // 鸭先知
},
/**
@@ -286,10 +287,29 @@ Page({
this.handleAmissionsData(admissionsId)
this.handleRequirementData(admissionsId)
this.getRecommendData()
+
+ this.getDuckProphet()
})
}).finally(() => wx.hideLoading())
},
+ // 获取 鸭先知 数据
+ getDuckProphet() {
+ util.wxpost("https://api.gter.net/v1/program/duckProphet", {
+ uniqid: this.data.uniqid,
+ }).then(res => {
+ if (res.code != 200) {
+ common.toast(res.message)
+ return
+ }
+
+ const data = res.data
+ this.setData({
+ duckProphet: data,
+ })
+ })
+ },
+
// 处理 能力要求信息
handleRequirementData(id) {
const admission_requirements = this.data.admission_requirements || []
@@ -781,7 +801,7 @@ Page({
this.requestOfferData(limit).then(data => {
const list = data.list || []
let side = this.data.side
- if (list.length == 0) delete side.consult
+ // if (list.length == 0) delete side.consult
let sideNum = this.data.sideNum
sideNum['consult'] = data.count
diff --git a/pages/projectDetails/projectDetails.json b/pages/projectDetails/projectDetails.json
index 3bca713..8bc56f3 100644
--- a/pages/projectDetails/projectDetails.json
+++ b/pages/projectDetails/projectDetails.json
@@ -5,6 +5,7 @@
"go-login": "/component/goLogin/goLogin",
"perfect-information": "/component/perfectInformation/perfectInformation",
"index-sidebar": "/component/indexSidebar/indexSidebar",
- "document-box": "/component/document-box/document-box"
+ "document-box": "/component/document-box/document-box",
+ "survey-box": "/component/survey-box/survey-box"
}
}
\ No newline at end of file
diff --git a/pages/projectDetails/projectDetails.wxml b/pages/projectDetails/projectDetails.wxml
index 53cca1d..49650b6 100644
--- a/pages/projectDetails/projectDetails.wxml
+++ b/pages/projectDetails/projectDetails.wxml
@@ -496,65 +496,70 @@
-
+
录取参考
-
-
-
-
-
- {{ item.schoolname }}
-
-
- 专业
- {{ item.professional }}
-
-
- 项目
- {{ item.project }}
-
-
- {{ item.semester }}
-
- {{ item.degree }}
-
- {{ item.apply_results }}
-
-
- {{ item.message }}
-
-
-
-
- {{ item.timestamp }}
-
+
+
-
-
-
-
- {{ item.view || 0 }}
+
+
+
+
+
+
+ {{ item.schoolname }}
+
+
+ 专业
+ {{ item.professional }}
+
+
+ 项目
+ {{ item.project }}
+
+
+ {{ item.semester }}
+
+ {{ item.degree }}
+
+ {{ item.apply_results }}
+
+
+ {{ item.message }}
+
+
+
+
+ {{ item.timestamp }}
-
-
- {{ item.likenum || 0 }}
-
-
-
- {{ item.comments || 0 }}
-
-
-
- {{ item.reward || 0 }}
+
+
+
+
+
+ {{ item.view || 0 }}
+
+
+
+ {{ item.likenum || 0 }}
+
+
+
+ {{ item.comments || 0 }}
+
+
+
+ {{ item.reward || 0 }}
+
-
-
-
-
- 加载更多
-
-
+
+
+
+ 加载更多
+
+
+