chengjie hai 1 ano
pai
achega
07c59ce868

+ 4 - 4
app.js

@@ -1,8 +1,7 @@
1
-// app.js
2 1
 App({
3 2
   globalData: {
4
-    Version: "1.0.20",
5
-    IsProduction: true,
3
+    Version: "1.0.34",
4
+    //IsProduction: true,
6 5
     ShareTitle: "上海中考招生信息查询工具",
7 6
     SharePath: "pages/index/index",
8 7
     ShareImage: '../images/fs_a01.png',
@@ -28,7 +27,8 @@ App({
28 27
     PageCount: 100, //每一页翻页数
29 28
     TempParam: "", //临时参数
30 29
     MyWish: {}, //我的福帖
31
-
30
+    FeedbackUrl:"",
31
+    ArticleList:[]  //文章列表 
32 32
   },
33 33
   onLaunch: function (options) {
34 34
     this.getSystemInfo();

+ 12 - 0
app.json

@@ -27,6 +27,18 @@
27 27
   "requiredPrivateInfos": [
28 28
     "getLocation"
29 29
   ],
30
+  "navigateToMiniProgramAppIdList": [
31
+    "wxa5441bbf344692ba",
32
+    "wx46a7b4c420e6d38f",
33
+    "wx1fef080f74481cbd",
34
+    "wx331e8dd070f01d0e",
35
+    "wx313a8f2c0741efe1",
36
+    "wx80059777521b897c",
37
+    "wxb54a6d5aff836ee3",
38
+    "wxa5e33c61fe37dd01",
39
+    "wxaa1a8b48d9853872",
40
+    "wx84b3feac6069eec3"
41
+  ],
30 42
   "window": {
31 43
     "navigationBarBackgroundColor": "#F0F0F0",
32 44
     "navigationBarTitleText": "秒过分数线",

+ 11 - 0
app.wxss

@@ -258,6 +258,12 @@
258 258
   font-size: 24rpx;
259 259
   font-weight: 400;
260 260
   color:#787878;
261
+}
262
+
263
+.panelSchoolList1Text03{
264
+  font-size: 24rpx;
265
+  font-weight: 400;
266
+  color:#9B9B9B;
261 267
   font-family: 'Roboto-Black';
262 268
 }
263 269
 
@@ -281,6 +287,11 @@
281 287
   font-weight: 400;
282 288
 }
283 289
 
290
+
291
+.panelScoreHeader0{
292
+  font-size: 20rpx;
293
+}
294
+
284 295
 .panelScoreHeaderTd1{
285 296
   width:140rpx;
286 297
   margin-left: 30rpx;

BIN=BIN
pages/images/ad_01.png


BIN=BIN
pages/images/ad_02.png


BIN=BIN
pages/images/icon_fold_05.png


BIN=BIN
pages/images/icon_sys_01.png


BIN=BIN
pages/images/icon_sys_02.png


BIN=BIN
pages/images/icon_sys_15.png


BIN=BIN
pages/images/icon_sys_16.png


BIN=BIN
pages/images/icon_sys_17.png


BIN=BIN
pages/images/icon_web_01.png


BIN=BIN
pages/images/icon_web_03.png


BIN=BIN
pages/images/info_01.png


BIN=BIN
pages/images/line_03.png


+ 98 - 3
pages/main/default.js

@@ -7,9 +7,12 @@ const app = getApp();
7 7
 Page({
8 8
   data: {
9 9
     ImagePath: app.globalData.uploadImageUrl,
10
-    ArticleList:constant.arrArticleList,
10
+    ArticleList:[],
11 11
     District:constant.arrDistrict,  
12 12
     Version:app.globalData.Version,
13
+    Years:constant.arrYear,
14
+    YearIndex:0,
15
+    HideAddProgram:1,
13 16
   },
14 17
   onLoad: function (options) {
15 18
     var that = this;
@@ -30,18 +33,97 @@ Page({
30 33
       main.getCollect();
31 34
     }
32 35
 
33
-    that.getWish();
36
+    that.getNotice(function(){
37
+      that.getPersonNum(function(){
38
+        that.getArticle(function(){
39
+          that.getWish();
40
+        });
41
+      });
42
+    });
43
+
44
+    var hideAddProgram=wx.getStorageSync('HideAddProgram');
45
+    if (!hideAddProgram){
46
+      wx.checkIsAddedToMyMiniProgram({
47
+        success:function(e){
48
+          console.log(e.added);
49
+          that.setData({
50
+            HideAddProgram:e.added,
51
+          });
52
+        }
53
+      })
54
+    }
34 55
   },
35 56
   onShow:function(){
36 57
     this.getWish();
37 58
   },
38
-  getWish:function(){
59
+  onHideAddProgram:function(){
60
+    wx.setStorageSync('HideAddProgram', 1);
61
+    this.setData({
62
+      HideAddProgram:1,
63
+    });
64
+  },
65
+  showMore:function(e){
66
+    var that = this;
67
+    var id=e.currentTarget.dataset.id;
68
+    if (id==1){
69
+      that.setData({
70
+        Page1:0,
71
+      });
72
+    }
73
+    else if (id==2){
74
+      that.setData({
75
+        Page2:0,
76
+      });
77
+    }
78
+  },
79
+  getPersonNum:function(callback){
80
+    var that = this;
81
+    main.getData("GetMPSCityPersonNum", function (data) {
82
+      if (data) {
83
+        that.setData({
84
+          PersonNum: data,
85
+        });
86
+        if (callback)
87
+          callback();
88
+      }
89
+    });
90
+  },
91
+  getWish:function(callback){
39 92
     var that = this;
40 93
     main.getData("GetMPSWish?WishType=all", function (data) {
41 94
       if (data) {
42 95
         that.setData({
43 96
           WishList: data,
97
+          Page1:1,
98
+          Page2:1,
44 99
         });
100
+        if (callback)
101
+          callback();
102
+      }
103
+    });
104
+  },
105
+  getNotice:function(callback){
106
+    var that = this;
107
+    main.getData("GetMPSNotice", function (data) {
108
+      if (data) {
109
+        that.setData({
110
+          Notice: data,
111
+        });
112
+        if (callback)
113
+          callback();
114
+      }
115
+    });
116
+  },
117
+  getArticle:function(callback){
118
+    var that = this;
119
+    main.getData("GetMPSArticle", function (data) {
120
+      if (data) {
121
+        that.setData({
122
+          ArticleList: data,
123
+        });
124
+        app.globalData.ArticleList=data;
125
+        if (callback)
126
+          callback();
45 127
       }
46 128
     });
47 129
   },
@@ -51,6 +133,19 @@ Page({
51 133
   onShareTimeline: function () {
52 134
     return this.onShareAppMessage();
53 135
   },
136
+  gotoMiniprogram:function(){
137
+    main.gotoMiniprogram(184);
138
+  },
139
+  onSelect:function(event){
140
+    var that=this;
141
+    main.onSelect(that,event,function(obj,e,result){
142
+      if (e.currentTarget.dataset.object=="Years"){
143
+        that.setData({
144
+          YearIndex:e.currentTarget.dataset.index
145
+        });
146
+      }
147
+    });   
148
+  },
54 149
   onShareAppMessage: function () {
55 150
     return {
56 151
       title: "上海中考招生信息查询工具",

+ 106 - 14
pages/main/default.wxml

@@ -1,5 +1,17 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <image class="pic_01" src="../images/pic_01.png"></image>
3
+  <image class="info_01" src="../images/info_01.png" bindtap="onHideAddProgram" wx:if="{{!HideAddProgram}}"></image>
4
+  
5
+  <view class="panel0 FlexRow" wx:if="{{Notice.IsShow}}">
6
+    <view class="panel01 FlexColumn">
7
+      <view class="panel011">{{Notice.Content}}</view>
8
+      <view class="panel012">{{Notice.Title}}</view>
9
+      <view class="panel013 FlexRow" bindtap="goto" data-url="{{Notice.ButtonUrl}}" wx:if="{{Notice.ButtonTitle}}">
10
+        <image class="{{Notice.ButtonIcon}}" src="../images/{{Notice.ButtonIcon}}"></image>
11
+        <view>{{Notice.ButtonTitle}}</view>
12
+      </view>
13
+    </view>
14
+  </view>
3 15
   <view class="panel1 FlexColumn">
4 16
     <image class="pic_04" src="../images/pic_04.png"></image>
5 17
     <view class="panel11 FlexColumn">
@@ -60,37 +72,117 @@
60 72
   </view>
61 73
 
62 74
   <view class="panel2 FlexColumn">
63
-    <view class="text06">参考文章</view>
75
+
76
+    <block wx:if="{{false}}">
77
+      <view class="panel20 FlexRow" bindtap="gotoMiniprogram">
78
+        <view class="panel201 FlexColumn">
79
+          <view class="panel2011">秒过其它产品介绍</view>
80
+          <view class="panel2012">秒过学习·艾宾浩斯背记小程序轻松记牢「高考考纲3500词」</view>
81
+          <view class="panel2013">报名新手班,手把手教会使用,助您中考后更进一步!</view>
82
+        </view>
83
+        <image src="../images/ad_02.png" class="ad_02"></image>
84
+      </view>
85
+      <image src="../images/line_03.png" class="line_03"></image>
86
+    </block>
87
+    
88
+    <view class="panelBasicCss panel4 FlexColumn">
89
+      <view class="panel41 FlexRow">
90
+        <view class="panel411">中招快报</view>
91
+        <view class="panel412">{{PersonNum.Year}}年</view>
92
+        <view class="panel412 panel413">相较上年</view>
93
+      </view>
94
+      <view class="panel4line03"></view>
95
+      <view class="panel42 FlexRow" wx:for="{{PersonNum.List}}" wx:key="*this" wx:if="{{index<3}}">
96
+        <view class="panel421"></view>
97
+        <view class="panel422">{{item.Name}}</view>
98
+        <view class="panel423 FlexRow">
99
+          <view>{{item.Year1}}</view>
100
+          <view class="panel4231">({{item.Rate}}%)</view>
101
+        </view>
102
+        <view class="panel424 FlexRow">
103
+          <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{item.Year2>0}}"></image>
104
+          <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.Year2<0}}"></image>
105
+          <view class="panel4241" wx:if="{{item.Year2>0}}">{{item.Year2}}</view>
106
+          <view class="panel4242" wx:if="{{item.Year2<0}}">{{-item.Year2}}</view>
107
+          <view class="panel4243" wx:if="{{item.Year2==0}}"></view>
108
+        </view>
109
+        <view class="panel4244 FlexRow" wx:if="{{item.Other}}">
110
+          <view class="panel42441">{{item.Other}}</view>
111
+        </view>
112
+      </view>
113
+      <view class="panel4line04"></view>
114
+      <view class="panel42 FlexRow" wx:for="{{PersonNum.List}}" wx:key="*this" wx:if="{{index==3}}">
115
+        <view class="panel421 panel4211"></view>
116
+        <view class="panel422">{{item.Name}}</view>
117
+        <view class="panel423">{{item.Year1}}</view>
118
+        <view class="panel424 FlexRow">
119
+          <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{item.Year2>0}}"></image>
120
+          <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.Year2<0}}"></image>
121
+          <view class="panel4241" wx:if="{{item.Year2>0}}">{{item.Year2}}</view>
122
+          <view class="panel4241" wx:if="{{item.Year2<0}}">{{-item.Year2}}</view>
123
+          <view class="panel4241" wx:if="{{item.Year2==0}}">持平</view>
124
+        </view>
125
+      </view>
126
+
127
+      <view class="panel4line03"></view>
128
+    </view>
129
+    
130
+    <block wx:if="{{IsShow}}">
131
+      <view class="panelRadio2 panelMarginTop FlexRow" style="margin: 80rpx 0 30rpx 40rpx;">
132
+      <view class="text14">详细文章</view><view class="panelRadio21 panelRadio21{{item.CSS}}" wx:for="{{Years}}" wx:key="index" bindtap="onSelect" data-object="Years" data-index="{{index}}" data-clicktype="radio" wx:if="{{index<2}}">{{item.Name}}年</view>
133
+    </view>
64 134
     <view class="panel21 FlexColumn" >
65
-      <view class="panel211 FlexColumn" wx:for="{{ArticleList}}" wx:key="index" bindtap="goto" data-url="docs?ID={{item.ID}}">
135
+      <view class="panel211 FlexRow" wx:for="{{ArticleList}}" wx:key="index" bindtap="goto" data-url="docs?ID={{item.ID}}" wx:if="{{item.Category==Years[YearIndex].Name && item.IsPageShow>=Page1}}">
66 136
         <view class="panel2111 FlexRow">
137
+          <image wx:if="{{item.Logo}}" class="imgLogo2" src="../images/{{item.Logo}}"></image>
138
+          <view class="text07">{{item.Title}}</view>
139
+          <image wx:if="{{item.TitleImage}}" class="TitleImage" src="{{ImagePath}}web/_ScoreLine/{{item.TitleImage}}"></image>
140
+        </view>
141
+      </view>
142
+      <view class="panel213 FlexRow" bindtap="showMore" data-id="1" wx:if="{{Page1==1}}">
143
+        <view>查看更多</view>
144
+        <view class="panel2131 FlexRow">
145
+          <image class="icon_fold_03" src="../images/icon_fold_03.png"></image>
146
+        </view>
147
+      </view>
148
+    </view>
149
+
150
+    <view class="text06" style="margin-bottom: 30rpx;font-size:28rpx;">志愿填报小知识</view>
151
+    <view class="panel21 FlexColumn" >
152
+      <view class="panel211 panel212 FlexColumn" wx:for="{{ArticleList}}" wx:key="index" bindtap="goto" data-url="docs?ID={{item.ID}}" 
153
+      wx:if="{{ item.Category=='小知识' && item.IsPageShow>=Page2}}">
154
+        <view class="panel2111 FlexRow" style="margin-top: 30rpx;">
155
+          <image wx:if="{{item.Logo}}" class="imgLogo2" src="../images/{{item.Logo}}"></image>
67 156
           <view class="panel21111 FlexColumn">
68
-            <view class="panel211111 FlexRow">
69
-              <image wx:if="{{item.Logo}}" class="imgLogo2" src="../images/{{item.Logo}}"></image>
70
-              <view class="text08">{{item.Category}}</view>
71
-            </view>
72
-            <view class="text07">{{item.Title}}</view>
157
+            <view class="text071">{{item.Title}}</view>
158
+            <view class="line04" wx:if="{{item.ID!=9}}"></view>
73 159
           </view>
74
-          <image wx:if="{{item.TitleImage}}" class="TitleImage" src="{{ImagePath}}web/_ScoreLine/{{item.TitleImage}}"></image>
75 160
         </view>
76
-        
77
-        <view class="line04"></view>
161
+      </view>
162
+      <view class="panel213 FlexRow" bindtap="showMore" data-id="2" wx:if="{{Page2==1}}">
163
+        <view>查看更多</view>
164
+        <view class="panel2131 FlexRow">
165
+          <image class="icon_fold_03" src="../images/icon_fold_03.png"></image>
166
+        </view>
78 167
       </view>
79 168
     </view>
169
+    </block>
170
+    
171
+    <image class="line_05" src="../images/line_03.png"></image>
80 172
     <block wx:if="{{IsShow}}">
81
-      <view style="height:30rpx;"></view>
173
+      <view style="height:50rpx;"></view>
82 174
       <view class="panel1133 FlexRow" bindtap="goto" data-url="userinfo?ReturnCount=1">
83
-        <view class="text03 text031">编辑用户信息</view>
175
+        <view class="text03 text031">用户信息</view>
84 176
         <image class="arrowRight" src="../images/icon_nextpage_1.png"></image>
85 177
       </view>
86
-      <view class="line04" style="margin-top: 0;"></view>
178
+      <view class="line07" style="margin-top: 0;"></view>
87 179
       <view class="panel1133 FlexRow" bindtap="goto" data-url="feedbackinfo">
88 180
         <view class="text03 text031">纠错与建议</view>
89 181
         <image class="arrowRight" src="../images/icon_nextpage_1.png"></image>
90 182
       </view>
91 183
     </block>
92 184
     
93
-    <view class="line04" style="margin-top: 0;"></view>
185
+    <view class="line07" style="margin-top: 0;"></view>
94 186
     <view class="panel2 FlexRow">
95 187
       <text class="text09">
96 188
         <text class="text10">诚恳声明:</text>本产品所有图文内容来自网络,仅供家长对上海地区招生计划有大致了解。由于有可能存在错谬,故不能作为填报志愿的决策依据,请务必以当时当地教育局和学校提供的信息为准。我们将认真对待用户提供的纠错和建议,尽可能刊载正确信息。

+ 262 - 13
pages/main/default.wxss

@@ -6,6 +6,47 @@
6 6
   width: 100%;
7 7
   height:234rpx;
8 8
 }
9
+.info_01{
10
+  width: 300rpx;
11
+  height:126rpx;
12
+  position: absolute;
13
+  right:10rpx;
14
+  z-index: 10;
15
+}
16
+
17
+.panel0{
18
+  width:100%;
19
+  background-color: #F8C324;
20
+}
21
+
22
+.panel01{
23
+  width:690rpx;
24
+  background-color: #fff;
25
+  border-radius: 30rpx;
26
+  margin: 40rpx 0 0 0;
27
+  justify-content: flex-start;
28
+  position: relative;
29
+}
30
+
31
+.panel011{
32
+  font-size: 24rpx;
33
+  font-weight: 400;
34
+  width: 610rpx;
35
+  margin-top: 78rpx;
36
+  margin-bottom:40rpx;
37
+}
38
+.panel012{
39
+  padding: 0 40rpx;
40
+  line-height:58rpx;
41
+  border-radius: 30rpx 0 30rpx 0;
42
+  background-color: #4d4d4d;
43
+  color:#fff;
44
+  font-size:20rpx;
45
+  text-align: center;
46
+  position: absolute;
47
+  top:0;
48
+  left:0;
49
+}
9 50
 
10 51
 .panel1{
11 52
   width:100%;
@@ -25,7 +66,7 @@
25 66
   border-radius: 30rpx;
26 67
   background-color: #FFF;
27 68
   min-height: 100rpx;
28
-  margin-top: 40rpx;
69
+  margin-top: 30rpx;
29 70
   position: relative;
30 71
 }
31 72
 
@@ -251,52 +292,79 @@
251 292
 
252 293
 .panel21{
253 294
   width: 670rpx;
295
+  align-items: flex-start;
254 296
 }
255 297
 .panel211{
256 298
   width: 100%;
257
-  margin-top: 30rpx;
299
+  height:140rpx;
300
+}
301
+
302
+.panel212{
303
+  width: 100%;
304
+  align-items: flex-start;
305
+  height:auto;
258 306
 }
307
+
259 308
 .panel2111{
260 309
   width: 100%;
261
-  justify-content: space-between;
310
+  align-items: flex-start;
311
+  margin-top: 30rpx;
312
+  justify-content: flex-start;
262 313
 }
263 314
 .panel21111{
264
-  width: 450rpx;
315
+  height:70rpx;
265 316
   align-items: flex-start;
266 317
 }
267 318
 
268
-.panel211111{  
269
-  margin-top: 16rpx;
270
-}
271
-
272 319
 .text08{
273 320
   font-size: 20rpx;
274 321
   color:#9B9B9B;
275 322
   margin-left: 10rpx;
276 323
   height:22rpx;
277 324
 }
325
+
278 326
 .text07{
279
-  margin-top: 17rpx;
280 327
   font-size:28rpx;
281 328
   font-weight: 400;
282
-  width:450rpx;
329
+  width:410rpx;
330
+  margin: 0 40rpx 0 16rpx;
331
+}
332
+
333
+
334
+.text071{
335
+  font-size:28rpx;
336
+  font-weight: 400;
337
+  width:600rpx;
338
+  height:100rpx;
339
+  margin: 0 0 0 16rpx;
283 340
 }
284 341
 
285 342
 .line04{
343
+  width:630rpx;
344
+  height:1rpx;
345
+  background-color: #E3E3E3;
346
+  margin-left: 16rpx;
347
+}
348
+.line07{
286 349
   width:670rpx;
287 350
   height:1rpx;
288 351
   background-color: #E3E3E3;
289
-  margin-top: 30rpx;
352
+}
353
+
354
+.line_05{
355
+  width: 670rpx;
356
+  height:6rpx;
357
+  margin-top: 60rpx;
290 358
 }
291 359
 
292 360
 .imgLogo2{
293 361
   width:24rpx;
294
-  height:22rpx;
362
+  height:29rpx;
295 363
 }
296 364
 
297 365
 .TitleImage{
298 366
   width:160rpx;
299
-  height:84rpx;
367
+  height:80rpx;
300 368
   border:1rpx solid #E3E3E3;
301 369
   border-radius: 10rpx;
302 370
 }
@@ -324,4 +392,185 @@
324 392
   width:16rpx;
325 393
   height:26rpx;
326 394
   margin-right: 60rpx;
395
+}
396
+
397
+.panel20{
398
+  width:100%;
399
+  height: 344rpx;
400
+}
401
+.panel201{
402
+  width:398rpx;
403
+  align-items: flex-start;
404
+  margin-right: 30rpx;
405
+}
406
+.panel2011{
407
+  font-size:20rpx;
408
+  color:#787878;
409
+  margin-bottom: 20rpx;
410
+}
411
+.panel2012{
412
+  font-size:28rpx;
413
+  margin-bottom: 10rpx;
414
+}
415
+.panel2013{
416
+  font-size:24rpx;
417
+  font-weight: 400;
418
+}
419
+
420
+.ad_02{
421
+  width:241rpx;
422
+  height: 205rpx;
423
+}
424
+
425
+.line_03{
426
+  width:670rpx;
427
+  height:6rpx;
428
+}
429
+
430
+.panel013{
431
+  width: 100%;
432
+  height:80rpx;
433
+  border-bottom-left-radius: 30rpx;
434
+  border-bottom-right-radius: 30rpx;
435
+  background-color: #4d4d4d;
436
+  color:#fff;
437
+  font-size:28rpx;
438
+  margin-top: -10rpx;
439
+}
440
+
441
+.icon_fold_05{
442
+  width:15rpx;
443
+  height:20rpx;
444
+  margin-right: 10rpx;
445
+}
446
+.icon_sys_15{
447
+  width:24rpx;
448
+  height:24rpx;
449
+  margin-right: 10rpx;
450
+}
451
+
452
+.panel4{
453
+  margin-top: 80rpx;
454
+}
455
+
456
+.panel41{
457
+  width:100%;
458
+  justify-content: flex-start;
459
+  align-items: flex-end;
460
+}
461
+.panel411{
462
+  font-size:36rpx;
463
+  margin-left: 20rpx;
464
+}
465
+.panel412{
466
+  font-size:20rpx;
467
+  font-weight: 400;
468
+  margin-left: 246rpx;
469
+}
470
+.panel413{
471
+  margin-left: 102rpx;
472
+}
473
+
474
+.panel4line03{
475
+  width:670rpx;
476
+  height:1rpx;
477
+  background-color: #E3E3E3;
478
+  margin: 30rpx 0 0 0;
479
+}
480
+.panel42{
481
+  width:100%;
482
+  justify-content: flex-start;
483
+  margin-top: 30rpx;
484
+  flex-wrap: wrap;
485
+}
486
+.panel421{
487
+  width: 10rpx;
488
+  height:10rpx;
489
+  background-color: #4d4d4d;
490
+  margin: 11rpx 20rpx 11rpx 30rpx;
491
+}
492
+
493
+.panel422{
494
+  font-size:24rpx;
495
+  font-weight: 400;
496
+  width:240rpx;
497
+}
498
+
499
+.panel423{
500
+  font-family: Roboto-Black;
501
+  font-size: 24rpx;
502
+  color: #4D4D4D;
503
+  margin-left: 110rpx;
504
+  width:170rpx;
505
+  justify-content: flex-start;
506
+}
507
+
508
+.panel4241{
509
+  font-family: Roboto-Black;
510
+  font-size: 24rpx;
511
+  color: #FE6659;
512
+  margin-left: 6rpx;
513
+}
514
+
515
+.panel4242{
516
+  font-family: Roboto-Black;
517
+  font-size: 24rpx;
518
+  color: #03AF69;
519
+  margin-left: 6rpx;
520
+}
521
+
522
+.panel4line04{
523
+  width:670rpx;
524
+  height:5rpx;
525
+  background-color: #E3E3E3;
526
+  margin: 30rpx 0 0 0;
527
+}
528
+.panel4211{
529
+  background-color: #fff;
530
+}
531
+
532
+.panel424{
533
+  margin-left: 0rpx;
534
+}
535
+.panel4244{
536
+  width:670rpx;
537
+  height:68rpx;
538
+  border-radius: 10rpx;
539
+  background-color: #f8f8f8;
540
+  margin: 30rpx 0 0 20rpx;
541
+}
542
+.panel42441{
543
+  font-size:20rpx;
544
+  font-weight: 400;
545
+  width: 610rpx;
546
+}
547
+.panel4231{
548
+  font-family: Roboto-Black;
549
+  font-size: 20rpx;
550
+  color: #9B9B9B;
551
+  margin-left: 10rpx;
552
+}
553
+.text14{
554
+  font-size:28rpx;
555
+  margin-right: 30rpx;
556
+}
557
+
558
+.panel213{
559
+  align-self: flex-end;
560
+  font-size: 24rpx;
561
+  color: #EB5C28;
562
+  margin-top: 30rpx;
563
+  margin-right: 20rpx;
564
+}
565
+
566
+.panel2131{
567
+  width:34rpx;
568
+  height:34rpx;
569
+  background-color: #EB5C28;
570
+  border-radius: 50%;
571
+  margin-left: 20rpx;
572
+}
573
+.icon_fold_03{
574
+  width:18rpx;
575
+  height:10rpx;
327 576
 }

+ 19 - 6
pages/main/district.js

@@ -10,9 +10,9 @@ Page({
10 10
     DistrictID: "01",
11 11
     SchoolType:constant.arrSchoolType,
12 12
     Article:[
13
-      {ID:1,Title:"市实验性示范性高中、市特色普通高中、\n市级优秀体育学生、艺术骨干学生",Url:"recruitment?PanelType=1&DistrictID="},
14
-      {ID:2,Title:"国际课程班和中外合作办学高中",Url:"recruitment?PanelType=2&DistrictID="},
15
-      {ID:3,Title:"中本贯通、五年一贯制、中高职费通",Url:"subscribe?"},
13
+      {ID:1,Title:"查询市实验性示范性高中、市特色普通高中、\n市级优秀体育学生、艺术骨干学生",Url:"recruitment?PanelType=1&DistrictID="},
14
+      {ID:2,Title:"查询国际课程班和中外合作办学高中",Url:"recruitment?PanelType=2&DistrictID="},
15
+      {ID:3,Title:"查询中本贯通、五年一贯制、中高职费通",Url:"subscribe?"},
16 16
     ],
17 17
   },
18 18
   onLoad: function (options) {
@@ -22,17 +22,30 @@ Page({
22 22
       DistrictID:options.ID,
23 23
       DistrictName:options.Name,
24 24
     });
25
+    
26
+    wx.setNavigationBarTitle({
27
+      title: "招生计划·"+that.data.DistrictName,
28
+    });
29
+
25 30
     that.init();
26 31
   },
27 32
   init:function(){
28 33
     var that = this;
29 34
     var id=Number(that.data.DistrictID);
30
-    main.getData("GetMPSSchool?SelectType=structure&DistrictID="+id, function (data) {
35
+    main.getData("GetMPSDistrictPersonNum?DistrictID="+id, function (data) {
31 36
       if (data) {
32 37
         that.setData({
33
-          SchoolAll: data,
34
-          SchoolCurrent:data[0].List
38
+          DistrictPersonNum: data,
39
+        });
40
+        main.getData("GetMPSSchool?SelectType=structure&DistrictID="+id, function (data) {
41
+          if (data) {
42
+            that.setData({
43
+              SchoolAll: data,
44
+              SchoolCurrent:data[0].List
45
+            });
46
+          }
35 47
         });
48
+        
36 49
       }
37 50
     });
38 51
   },

+ 45 - 8
pages/main/district.wxml

@@ -3,8 +3,44 @@
3 3
     <view class="text01">{{DistrictName}}</view>
4 4
     <image class="logo_01b" src="../images/logo_{{DistrictID}}b.png"></image>
5 5
   </view>
6
+  <view class="panelBasicCss panel4 FlexColumn">
7
+    <view class="panel41 FlexRow">
8
+      <view class="panel411">计划统计</view>
9
+      <view class="panel412">{{DistrictPersonNum.Year}}年</view>
10
+      <view class="panel412 panel413">相较上年</view>
11
+    </view>
12
+    <view class="line03"></view>
13
+    <view class="panel42 FlexRow" wx:for="{{DistrictPersonNum.List}}" wx:key="*this" wx:if="{{index<3}}">
14
+      <view class="panel421"></view>
15
+      <view class="panel422">{{item.Name}}</view>
16
+      <view class="panel423 FlexRow">
17
+          <view>{{item.Year1}}</view>
18
+          <view class="panel4231">({{item.Rate}}%)</view>
19
+        </view>
20
+      <view class="panel424 FlexRow">
21
+        <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{item.Year2>0}}"></image>
22
+        <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.Year2<0}}"></image>
23
+        <view class="panel4241" wx:if="{{item.Year2>0}}">{{item.Year2}}</view>
24
+        <view class="panel4242" wx:if="{{item.Year2<0}}">{{-item.Year2}}</view>
25
+        <view class="panel4243" wx:if="{{item.Year2==0}}"></view>
26
+      </view>
27
+    </view>
28
+    <view class="line04"></view>
29
+    <view class="panel42 panel420 FlexRow" wx:for="{{DistrictPersonNum.List}}" wx:key="*this" wx:if="{{index==3}}">
30
+      <view class="panel421 panel4211"></view>
31
+      <view class="panel422">{{item.Name}}</view>
32
+      <view class="panel423">{{item.Year1}}</view>
33
+      <view class="panel424 FlexRow">
34
+        <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{item.Year2>0}}"></image>
35
+        <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.Year2<0}}"></image>
36
+        <view class="panel4241" wx:if="{{item.Year2>0}}">{{item.Year2}}</view>
37
+        <view class="panel4241" wx:if="{{item.Year2<0}}">{{-item.Year2}}</view>
38
+        <view class="panel4241" wx:if="{{item.Year2==0}}">持平</view>
39
+      </view>
40
+    </view>
41
+  </view>
6 42
   <view class="panelBasicCss panel2 FlexColumn">
7
-    <view class="text02">中招速查</view>
43
+    <view class="text02">招生查询</view>
8 44
     <view class="panel21 FlexRow">
9 45
       <view class="panel211 FlexColumn" bindtap="goto" data-url="scoreline?PageType=scoreline&ScoreTypeID=2&DistrictID={{DistrictID}}&YearIndex=0">
10 46
         <image class="icon_sys_05" src="../images/icon_sys_05.png"></image>
@@ -19,11 +55,12 @@
19 55
         <view class="text03">1-15志愿</view>
20 56
       </view>
21 57
     </view>
22
-    <view class="text04">自主招生</view>
23
-    <view class="panel22 FlexRow" wx:for="{{Article}}" wx:key="index" bindtap="goto" data-url="{{item.Url}}{{DistrictID}}">
24
-      <view class="panel221 FlexColumn">
58
+    
59
+    <view class="panel220 FlexRow">
25 60
         <image class="icon_sys_03" src="../images/icon_sys_03.png"></image>
26
-      </view>
61
+        <view class="text04">自主招生</view>
62
+    </view>
63
+    <view class="panel22 FlexRow" wx:for="{{Article}}" wx:key="index" bindtap="goto" data-url="{{item.Url}}{{DistrictID}}">
27 64
       <view class="panel222 FlexColumn" >
28 65
         <view class="panel2221 FlexRow">
29 66
           <text class="text05">{{item.Title}}</text>
@@ -36,7 +73,7 @@
36 73
   </view>
37 74
 
38 75
   <view class="panelBasicCss panel3 FlexRow" bindtap="goto" data-url="map?PageType=2&DistrictID={{DistrictID}}&DistrictName={{DistrictName}}">
39
-    <view class="text06">本区高中地图</view>
76
+    <view class="text06">校址地图</view>
40 77
     <view class="panel31 FlexRow">
41 78
       <image class="pic_03" src="../images/pic_03.png"></image>
42 79
       <image class="arrowRight" src="../images/icon_nextpage_1.png"></image>
@@ -44,7 +81,7 @@
44 81
   </view>
45 82
   
46 83
   <view class="panelBasicCss panel3 FlexColumn">
47
-    <view class="text07">本区学校名录</view>
84
+    <view class="text07">学校名录</view>
48 85
     <view class="panelRadio radio2 FlexRow">
49 86
       <view class="panelRadio1 panelRadio1{{item.CSS}}" wx:for="{{SchoolType}}" wx:key="index"
50 87
       bindtap="onSelect" data-object="SchoolType" data-index="{{index}}" data-clicktype="radio">{{item.Name}}</view>
@@ -72,7 +109,7 @@
72 109
               <view class="panelLine2" wx:if="{{item.Accommodation}}"></view>
73 110
               <view class="panelSchoolList1Text02">{{item.Accommodation}}</view>
74 111
               <view class="panelLine2" wx:if="{{item.SchoolNumber}}"></view>
75
-              <view class="panelSchoolList1Text02">{{item.SchoolNumber}}</view>
112
+              <view class="panelSchoolList1Text03">{{item.SchoolNumber}}</view>
76 113
             </view>
77 114
           </view>
78 115
         </view>       

+ 106 - 13
pages/main/district.wxss

@@ -22,10 +22,106 @@
22 22
   align-self: flex-start;
23 23
 }
24 24
 
25
-.panel2{
25
+.panel4{
26 26
   margin-top: 0;
27
+  border-top-left-radius: 0;
28
+  border-top-right-radius: 0;
29
+  border-top:10rpx solid #4d4d4d;
30
+  justify-content: flex-start;
31
+}
32
+
33
+.panel41{
34
+  width:100%;
35
+  justify-content: flex-start;
36
+  align-items: flex-end;
37
+  margin-top: 60rpx;
38
+}
39
+.panel411{
40
+  font-size:36rpx;
41
+  margin-left: 40rpx;
42
+}
43
+.panel412{
44
+  font-size:20rpx;
45
+  font-weight: 400;
46
+  margin-left: 210rpx;
47
+}
48
+.panel413{
49
+  margin-left: 95rpx;
50
+}
51
+
52
+.line03{
53
+  width:630rpx;
54
+  height:1rpx;
55
+  background-color: #E3E3E3;
56
+  margin: 30rpx 0 0 0;
57
+}
58
+.panel42{
59
+  width:100%;
60
+  justify-content: flex-start;
61
+  margin-top: 30rpx;
62
+}
63
+.panel420{
64
+  margin-bottom: 60rpx;
65
+}
66
+.panel421{
67
+  width: 10rpx;
68
+  height:10rpx;
69
+  background-color: #4d4d4d;
70
+  margin: 11rpx 20rpx 11rpx 50rpx;
71
+}
72
+
73
+.panel422{
74
+  font-size:24rpx;
75
+  font-weight: 400;
76
+  width:240rpx;
77
+}
78
+
79
+.panel423{
80
+  font-family: Roboto-Black;
81
+  font-size: 24rpx;
82
+  color: #4D4D4D;
83
+  margin-left: 70rpx;
84
+  width:162rpx;
85
+  justify-content: flex-start;
86
+}
87
+
88
+.panel4231{
89
+  font-family: Roboto-Black;
90
+  font-size: 20rpx;
91
+  color: #9B9B9B;
92
+  margin-left: 10rpx;
93
+}
94
+.panel424{
95
+  justify-content: flex-start;
96
+}
97
+
98
+.panel4241{
99
+  font-family: Roboto-Black;
100
+  font-size: 24rpx;
101
+  color: #FE6659;
102
+  margin-left: 6rpx;
103
+}
104
+
105
+.panel4242{
106
+  font-family: Roboto-Black;
107
+  font-size: 24rpx;
108
+  color: #03AF69;
109
+  margin-left: 6rpx;
27 110
 }
28 111
 
112
+.line04{
113
+  width:630rpx;
114
+  height:5rpx;
115
+  background-color: #E3E3E3;
116
+  margin: 30rpx 0 0 0;
117
+}
118
+.panel4211{
119
+  background-color: #fff;
120
+}
121
+
122
+.panel2{
123
+  margin-top: 30rpx;
124
+}
29 125
 
30 126
 .panel21{
31 127
   margin-top: 40rpx;
@@ -58,39 +154,36 @@
58 154
 }
59 155
 
60 156
 .text04{
61
-  margin: 50rpx 0 40rpx 40rpx;
62 157
   font-size: 28rpx;
63 158
   align-self: flex-start;
64 159
 }
65 160
 
161
+.panel220{
162
+  margin: 50rpx 0 40rpx 40rpx;
163
+  align-self: start;
164
+}
165
+
66 166
 .panel22{
67 167
   width:100%;
68 168
   justify-content: flex-start;
69 169
   align-items: flex-start;
70 170
 }
71 171
 
72
-.panel221{
73
-  width:60rpx;
74
-  height:60rpx;
75
-  border-radius: 50%;
76
-  background-color: #F0F0F0;
77
-  margin-left: 40rpx;
78
-}
79 172
 .icon_sys_03{
80 173
   width:28rpx;
81 174
   height:26rpx;
175
+  margin-right: 16rpx;
82 176
 }
83 177
 
84 178
 
85 179
 .panel222{
86
-  width:580rpx;
87
-  margin-left: 30rpx;
180
+  width:630rpx;
181
+  margin-left: 85rpx;
88 182
   align-items: flex-start;
89 183
 }
90 184
 
91 185
 .panel2221{
92 186
   width:100%;
93
-  height:66rpx;
94 187
   justify-content: space-between;
95 188
 }
96 189
 
@@ -100,7 +193,7 @@
100 193
 }
101 194
 
102 195
 .line02{
103
-  width:540rpx;
196
+  width:580rpx;
104 197
   height:1rpx;
105 198
   background-color: #E3E3E3;
106 199
   margin: 30rpx 0 30rpx 0;

+ 5 - 1
pages/main/docs.js

@@ -7,10 +7,14 @@ const app = getApp();
7 7
 Page({
8 8
   data: {
9 9
     ImagePath: app.globalData.uploadImageUrl,
10
-    ArticleList:constant.arrArticleList,
10
+    IsShow:-1,
11 11
   },
12 12
   onLoad: function (options) {
13 13
     var that = this;
14
+    that.setData({
15
+      ArticleList:app.globalData.ArticleList,
16
+      IsShow:app.globalData.userInfo.IsShow,
17
+    });
14 18
     var id=options.ID;
15 19
     var arr=[];
16 20
     var title="";

+ 5 - 13
pages/main/docs.wxml

@@ -1,23 +1,15 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' wx:if="{{IsShow}}">
2 2
   <image bindtap="{{item.Fun}}" lazy-load="true"  data-url="{{item.Url}}" class="img" mode="widthFix" wx:for="{{ImageArr}}" wx:key="index" src="{{ImagePath}}web/_ScoreLine/{{item.Name}}"></image>
3 3
   <view class="panel2 FlexColumn">
4
-    <view class="text06">参考文章</view>
4
+    <view class="text06">最新快报</view>
5 5
     <view class="panel21 FlexColumn" >
6
-      <view class="panel211 FlexColumn" wx:for="{{ArticleList}}" wx:key="index" bindtap="redirectTo" data-url="docs?ID={{item.ID}}">
6
+      <view class="panel211 FlexRow" wx:for="{{ArticleList}}" wx:key="index" bindtap="goto" data-url="docs?ID={{item.ID}}" wx:if="{{item.Category!='小知识' && index<5}}">
7 7
         <view class="panel2111 FlexRow">
8
-          <view class="panel21111 FlexColumn">
9
-            <view class="panel211111 FlexRow">
10
-              <image wx:if="{{item.Logo}}" class="imgLogo2" src="../images/{{item.Logo}}"></image>
11
-              <view class="text08">{{item.Category}}</view>
12
-            </view>
13
-            <view class="text07">{{item.Title}}</view>
14
-          </view>
8
+          <image wx:if="{{item.Logo}}" class="imgLogo2" src="../images/{{item.Logo}}"></image>
9
+          <view class="text07">{{item.Title}}</view>
15 10
           <image wx:if="{{item.TitleImage}}" class="TitleImage" src="{{ImagePath}}web/_ScoreLine/{{item.TitleImage}}"></image>
16 11
         </view>
17
-        
18
-        <view class="line04"></view>
19 12
       </view>
20
-      
21 13
     </view>
22 14
     <view style="height:210rpx;"></view>
23 15
   </view>

+ 15 - 29
pages/main/docs.wxss

@@ -2,15 +2,15 @@
2 2
   width:100%;
3 3
 }
4 4
 
5
-
6 5
 .panel2{
7 6
   width: 100%;
8
-  background-color: #f2f2f2;
7
+  margin-top: 30rpx;
8
+  background-color: #fff;
9 9
 }
10 10
 
11 11
 .text06{
12 12
   font-size: 36rpx;
13
-  margin: 60rpx 0 0 0;
13
+  margin: 80rpx 0 0 0;
14 14
   align-self: flex-start;
15 15
   margin-left:40rpx;
16 16
 }
@@ -20,49 +20,35 @@
20 20
 }
21 21
 .panel211{
22 22
   width: 100%;
23
-  margin-top: 30rpx;
23
+  height:140rpx;
24 24
 }
25
+
26
+
25 27
 .panel2111{
26 28
   width: 100%;
27
-  justify-content: space-between;
29
+  align-items: flex-start;
30
+  margin-top: 30rpx;
28 31
 }
29 32
 .panel21111{
30
-  width: 450rpx;
33
+  height:70rpx;
31 34
   align-items: flex-start;
32 35
 }
33 36
 
34
-.panel211111{  
35
-  margin-top: 16rpx;
37
+.imgLogo2{
38
+  width:24rpx;
39
+  height:29rpx;
36 40
 }
37 41
 
38
-.text08{
39
-  font-size: 20rpx;
40
-  color:#9B9B9B;
41
-  margin-left: 10rpx;
42
-  height:22rpx;
43
-}
44 42
 .text07{
45
-  margin-top: 17rpx;
46 43
   font-size:28rpx;
47 44
   font-weight: 400;
48
-  width:450rpx;
49
-}
50
-
51
-.line04{
52
-  width:670rpx;
53
-  height:1rpx;
54
-  background-color: #E3E3E3;
55
-  margin-top: 30rpx;
56
-}
57
-
58
-.imgLogo2{
59
-  width:24rpx;
60
-  height:22rpx;
45
+  width:410rpx;
46
+  margin: 0 40rpx 0 16rpx;
61 47
 }
62 48
 
63 49
 .TitleImage{
64 50
   width:160rpx;
65
-  height:84rpx;
51
+  height:80rpx;
66 52
   border:1rpx solid #E3E3E3;
67 53
   border-radius: 10rpx;
68 54
 }

+ 2 - 0
pages/main/feedbackinfo.js

@@ -78,6 +78,8 @@ Page({
78 78
             param.ImageUrl3=arrResult[2].Target;
79 79
           if (arrResult.length>3)
80 80
             param.ImageUrl4=arrResult[3].Target;
81
+
82
+          param.FeedbackUrl=app.globalData.FeedbackUrl;
81 83
             
82 84
           main.postData('MPSFeedback', param, function (data) {
83 85
             wx.showModal({

+ 1 - 0
pages/main/map.js

@@ -265,6 +265,7 @@ Page({
265 265
     });
266 266
   },
267 267
   goto: function (e) {
268
+    app.globalData.FeedbackUrl="map?id="+this.data.Info.ID+"&DistrictID="+this.data.DistrictID;
268 269
     main.goto(e);
269 270
   },
270 271
   copyUrl:function(e){

+ 68 - 6
pages/main/school.js

@@ -18,6 +18,7 @@ Page({
18 18
   },
19 19
   onLoad: function (options) {
20 20
     var that = this;
21
+    
21 22
     that.setData({
22 23
       Containnerheight: main.getWindowHeight(),
23 24
       IsShow:app.globalData.userInfo.IsShow,
@@ -25,6 +26,7 @@ Page({
25 26
       IsCollect:false,
26 27
       HasWish:false,
27 28
     });
29
+    
28 30
     if (!options.ID){
29 31
       wx.navigateBack({
30 32
         delta: 1,
@@ -96,10 +98,10 @@ Page({
96 98
         data.PersonCount1=0;
97 99
         data.PersonCount2=0;
98 100
         for(var i=0;i<that.data.ScoreType.length;i++){
99
-          if (data[that.data.ScoreType[i].Name] && data[that.data.ScoreType[i].Name][data[that.data.ScoreType[i].Name].length-2].Total)
100
-            data.PersonCount1+=data[that.data.ScoreType[i].Name][data[that.data.ScoreType[i].Name].length-2].Total;
101
-          if (data[that.data.ScoreType[i].Name] && data[that.data.ScoreType[i].Name][data[that.data.ScoreType[i].Name].length-1].Total)
102
-            data.PersonCount2+=data[that.data.ScoreType[i].Name][data[that.data.ScoreType[i].Name].length-1].Total;
101
+          if (data[that.data.ScoreType[i].Name] && data[that.data.ScoreType[i].Name][0] && data[that.data.ScoreType[i].Name][0].Total)
102
+            data.PersonCount1+=data[that.data.ScoreType[i].Name][0].Total;
103
+          if (data[that.data.ScoreType[i].Name] && data[that.data.ScoreType[i].Name][1] && data[that.data.ScoreType[i].Name][1].Total)
104
+            data.PersonCount2+=data[that.data.ScoreType[i].Name][1].Total;
103 105
         }
104 106
         
105 107
         
@@ -112,6 +114,8 @@ Page({
112 114
           TailScore:that.data.TailScore,
113 115
           Title:data.SchoolType1,
114 116
         });
117
+
118
+        that.checkListNull(that,list);
115 119
       }
116 120
       setTimeout(function(){
117 121
         wx.hideLoading();
@@ -138,7 +142,13 @@ Page({
138 142
     });
139 143
   },
140 144
   goto: function (e) {
141
-    main.goto(e);
145
+    if (e.currentTarget.dataset.url=="school?PageType=school&ID="
146
+     || e.currentTarget.dataset.url=="school?PageType=school&ID=0")
147
+      return null;
148
+    else{
149
+      app.globalData.FeedbackUrl="school?id="+this.data.Info.ID;
150
+      main.goto(e);
151
+    }
142 152
   },
143 153
   onSelect:function(event){
144 154
     var that=this;
@@ -154,22 +164,71 @@ Page({
154 164
         var list=[];
155 165
         if (that.data.Info[name])
156 166
           list=that.data.Info[name][that.data.YearIndex].List;
167
+        
157 168
         that.setData({
158 169
           ScoreTypeID: e.currentTarget.dataset.index+1,
159 170
           List:list,
160 171
         });
172
+        
173
+        that.checkListNull(that,list);
174
+        
161 175
       }
162 176
       else if (e.currentTarget.dataset.object=="Years"){
163 177
 
164 178
         var name=that.data.ScoreType[that.data.ScoreTypeID-1].Name;
165
-        var list=that.data.Info[name][e.currentTarget.dataset.index].List;
179
+        var list=[];
180
+        
181
+        if (e.currentTarget.dataset.index>0 && that.data.Info[name].length>e.currentTarget.dataset.index)
182
+          list = that.data.Info[name][e.currentTarget.dataset.index].List;
183
+        else if (e.currentTarget.dataset.index==0)
184
+          list = that.data.Info[name][e.currentTarget.dataset.index].List;
185
+
166 186
         that.setData({
167 187
           List:list,
168 188
           YearIndex:e.currentTarget.dataset.index
169 189
         });
190
+
191
+        that.checkListNull(that,list);
170 192
       }
171 193
     });   
172 194
   },
195
+
196
+  checkListNull:function(obj,list){
197
+    var that=obj;
198
+    if (list.length==0 
199
+      && that.data.YearIndex==0 
200
+      && that.data.ScoreTypeID==4){
201
+    
202
+      // wx.showModal({
203
+      //   title: '暂无公布',
204
+      //   showCancel:false,
205
+      //   content: '教育局暂未公布2024年1-15志愿信息,正式数据一般在7月公布,敬请期待。',
206
+      //   confirmText: '知道了',
207
+      //   complete: (res) => {
208
+      //     if (res.confirm) {
209
+      //       list=that.data.Info["1-15志愿"][1].List;
210
+      //       that.setData({
211
+      //         ScoreTypeID: 4,
212
+      //         YearIndex:1,
213
+      //         List:list,
214
+      //       });
215
+      //       var eventTemp={
216
+      //         currentTarget:{
217
+      //           dataset:{
218
+      //             object:"Years",
219
+      //             clicktype:"radio",
220
+      //             index:1,
221
+      //           }
222
+      //         }
223
+      //       }
224
+      //       main.onSelect(that,eventTemp,function(){});
225
+      //     }
226
+      //   }
227
+      // });
228
+      
229
+    }
230
+  },
231
+  
173 232
   onFold:function(e){
174 233
     var that=this;
175 234
     that.setData({
@@ -187,6 +246,9 @@ Page({
187 246
       }
188 247
     });
189 248
   },
249
+  gotoMiniprogram:function(){
250
+    main.gotoMiniprogram(185);
251
+  },
190 252
   returnTop:function(){
191 253
     main.returnTop();
192 254
   },

+ 96 - 43
pages/main/school.wxml

@@ -105,7 +105,7 @@
105 105
   <view class="panelBasicCss panelMain FlexColumn" wx:if="{{Info.HasData}}">
106 106
     <block wx:if="{{Info['自主招生']}}">
107 107
       <view class="panelSchoolText20 FlexRow">
108
-        <view>招生计划{{Info['自主招生'][Info['自主招生'].length-2].ScoreYear}}</view>
108
+        <view>招生计划{{Info['自主招生'][0].ScoreYear}}</view>
109 109
         <view class="panelSchoolText201 FlexRow">
110 110
           <view>总数</view>
111 111
           <view class="panelSchoolText2011">{{Info.PersonCount1}}</view>
@@ -115,24 +115,24 @@
115 115
         <view class="panelSchool311 FlexColumn" wx:for="{{ScoreType}}" wx:key="index">
116 116
           <view class="panelSchoolText04">{{item.Name}}</view>
117 117
           <image class="icon_sys_04" src="../images/{{item.Icon}}.png"></image>
118
-          <view class="panelSchoolText06" wx:if="{{Info[item.Name][Info[item.Name].length-2].Total}}">
119
-            {{Info[item.Name][Info[item.Name].length-2].Total}}
118
+          <view class="panelSchoolText06" wx:if="{{Info[item.Name][0].Total}}">
119
+            {{Info[item.Name][0].Total}}
120 120
           </view>
121
-          <view class="panelSchoolText061" wx:if="{{!Info[item.Name][Info[item.Name].length-2].Total}}">
121
+          <view class="panelSchoolText061" wx:if="{{!Info[item.Name][0].Total}}">
122 122
123 123
           </view>
124 124
           <view class="panelSchool3111 FlexRow">
125
-            <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{Info[item.Name][Info[item.Name].length-1].TotalDifferenceValue>0}}"></image>
126
-            <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{Info[item.Name][Info[item.Name].length-1].TotalDifferenceValue<0}}"></image>
127
-            <view class="panelSchoolText090" wx:if="{{Info[item.Name][Info[item.Name].length-1].TotalDifferenceValue>0}}">{{Info[item.Name][Info[item.Name].length-1].TotalDifferenceValue}}</view>
128
-            <view class="panelSchoolText091" wx:if="{{Info[item.Name][Info[item.Name].length-1].TotalDifferenceValue<0}}">{{-Info[item.Name][Info[item.Name].length-1].TotalDifferenceValue}}</view>
129
-            <view class="panelSchoolText092" wx:if="{{Info[item.Name][Info[item.Name].length-1].TotalDifferenceValue==0}}">持平</view>
125
+            <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{Info[item.Name][1].TotalDifferenceValue>0}}"></image>
126
+            <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{Info[item.Name][1].TotalDifferenceValue<0}}"></image>
127
+            <view class="panelSchoolText090" wx:if="{{Info[item.Name][1].TotalDifferenceValue>0}}">{{Info[item.Name][1].TotalDifferenceValue}}</view>
128
+            <view class="panelSchoolText091" wx:if="{{Info[item.Name][1].TotalDifferenceValue<0}}">{{-Info[item.Name][1].TotalDifferenceValue}}</view>
129
+            <view class="panelSchoolText092" wx:if="{{Info[item.Name][1].TotalDifferenceValue==0}}">持平</view>
130 130
           </view>
131 131
         </view>
132 132
       </view>
133 133
       <view class="panelSchoolLine02"></view>
134 134
       <view class="panelSchoolText04 panelSchoolText10 FlexRow">
135
-        <view>{{Info['自主招生'][Info['自主招生'].length-1].ScoreYear}}年计划</view>
135
+        <view>{{Info['自主招生'][1].ScoreYear}}年计划</view>
136 136
         <view class="panelSchoolText201 FlexRow">
137 137
           <view>总数</view>
138 138
           <view class="panelSchoolText2011">{{Info.PersonCount2}}</view>
@@ -140,10 +140,10 @@
140 140
       </view>
141 141
       <view class="panelSchool31 FlexRow">
142 142
         <block wx:for="{{ScoreType}}" wx:key="index">
143
-          <view class="panelSchoolText11 panelSchoolText111" wx:if="{{Info[item.Name][Info[item.Name].length-1].Total}}">
144
-            {{Info[item.Name][Info[item.Name].length-1].Total}}
143
+          <view class="panelSchoolText11 panelSchoolText111" wx:if="{{Info[item.Name][1].Total}}">
144
+            {{Info[item.Name][1].Total}}
145 145
           </view>
146
-          <view class="panelSchoolText11 panelSchoolText111 panelSchoolText1111" wx:if="{{!Info[item.Name][Info[item.Name].length-1].Total}}">
146
+          <view class="panelSchoolText11 panelSchoolText111 panelSchoolText1111" wx:if="{{!Info[item.Name][1].Total}}">
147 147
148 148
           </view>
149 149
         </block>
@@ -158,65 +158,65 @@
158 158
       <view wx:if="{{ScoreTypeID==1}}" class="panelSchoolIndependent FlexColumn">
159 159
         <view class="panelSchoolIndependent1 FlexRow">
160 160
           <view class="panelSchoolIndependentText1"></view>
161
-          <view class="panelSchoolText13 panelSchoolText112">{{Info['自主招生'][Info['自主招生'].length-2].ScoreYear}}年</view>
162
-          <view class="panelSchoolText13 ">{{Info['自主招生'][Info['自主招生'].length-1].ScoreYear}}年</view>
161
+          <view class="panelSchoolText13 panelSchoolText112">{{Info['自主招生'][0].ScoreYear}}年</view>
162
+          <view class="panelSchoolText13 ">{{Info['自主招生'][1].ScoreYear}}年</view>
163 163
         </view>
164 164
         <view class="panelLine"></view>
165 165
 
166 166
         <!-- 学科 -->
167
-        <block wx:if="{{Info['自主招生'][Info['自主招生'].length-2].List[0].PlanNum}}">
167
+        <block wx:if="{{Info['自主招生'][0].List[0].PlanNum}}">
168 168
           <view class="panelSchoolIndependent1 FlexRow">
169 169
             <view class="panelSchoolIndependentText1 panelSchoolText13 panelSchoolText131 FlexColumn">
170 170
               <view>市实验示范性高中</view>
171 171
               <view>(学科优秀学生)</view>
172 172
             </view>
173
-            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][Info['自主招生'].length-2].List[0].PlanNum}}</view>
174
-            <view class="panelSchoolText11 ">{{Info['自主招生'][Info['自主招生'].length-1].List[0].PlanNum}}</view>
173
+            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][0].List[0].PlanNum}}</view>
174
+            <view class="panelSchoolText11 ">{{Info['自主招生'][1].List[0].PlanNum}}</view>
175 175
           </view>
176 176
           <view class="panelLine"></view>
177 177
         </block>
178 178
 
179 179
         <!-- 体育 -->
180
-        <block wx:if="{{Info['自主招生'][Info['自主招生'].length-2].List[1].PlanNum}}">
180
+        <block wx:if="{{Info['自主招生'][0].List[1].PlanNum}}">
181 181
           <view class="panelSchoolIndependent1 FlexRow">
182 182
             <view class="panelSchoolIndependentText1 panelSchoolText13">市级优秀体育学生</view>
183
-            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][Info['自主招生'].length-2].List[1].PlanNum}}</view>
184
-            <view class="panelSchoolText11 ">{{Info['自主招生'][Info['自主招生'].length-1].List[1].PlanNum}}</view>
183
+            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][0].List[1].PlanNum}}</view>
184
+            <view class="panelSchoolText11 ">{{Info['自主招生'][1].List[1].PlanNum}}</view>
185 185
           </view>
186 186
           <view class="panelSchoolIndependent2 FlexColumn">
187
-            <text class="panelSchoolText16">{{Info['自主招生'][Info['自主招生'].length-2].ScoreYear}}年项目\n{{Info['自主招生'][Info['自主招生'].length-2].List[1].SchoolTargetRemark2}}</text>
187
+            <text class="panelSchoolText16">{{Info['自主招生'][0].ScoreYear}}年项目\n{{Info['自主招生'][0].List[1].SchoolTargetRemark2}}</text>
188 188
           </view>
189 189
           <view class="panelLine"></view>
190 190
         </block>
191 191
 
192 192
         <!-- 艺术 -->
193
-        <block wx:if="{{Info['自主招生'][Info['自主招生'].length-2].List[2].PlanNum}}">
193
+        <block wx:if="{{Info['自主招生'][0].List[2].PlanNum}}">
194 194
           <view class="panelSchoolIndependent1 FlexRow">
195 195
             <view class="panelSchoolIndependentText1 panelSchoolText13">市级艺术骨干学生</view>
196
-            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][Info['自主招生'].length-2].List[2].PlanNum}}</view>
197
-            <view class="panelSchoolText11 ">{{Info['自主招生'][Info['自主招生'].length-1].List[2].PlanNum}}</view>
196
+            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][0].List[2].PlanNum}}</view>
197
+            <view class="panelSchoolText11 ">{{Info['自主招生'][1].List[2].PlanNum}}</view>
198 198
           </view>
199 199
           <view class="panelSchoolIndependent2 FlexColumn">
200
-            <text class="panelSchoolText16">{{Info['自主招生'][Info['自主招生'].length-2].ScoreYear}}年项目\n{{Info['自主招生'][Info['自主招生'].length-2].List[2].SchoolTargetRemark2}}</text>
200
+            <text class="panelSchoolText16">{{Info['自主招生'][0].ScoreYear}}年项目\n{{Info['自主招生'][0].List[2].SchoolTargetRemark2}}</text>
201 201
           </view>
202 202
           <view class="panelLine"></view>
203 203
         </block>
204 204
 
205 205
         <!-- 国际 -->
206
-        <block wx:if="{{Info['自主招生'][Info['自主招生'].length-2].List[3].PlanNum || Info['自主招生'][Info['自主招生'].length-2].List[4].PlanNum}}">
206
+        <block wx:if="{{Info['自主招生'][0].List[3].PlanNum || Info['自主招生'][0].List[4].PlanNum}}">
207 207
           <view class="panelSchoolText13 panelSchoolIndependent4">国际课程班和中外合作办学高中</view>
208 208
           <view class="panelSchoolIndependent3 FlexRow">
209 209
             <view class="panelSchoolIndependentText2 panelSchoolText13">本市生源</view>
210
-            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][Info['自主招生'].length-2].List[3].PlanNum}}</view>
211
-            <view class="panelSchoolText11 ">{{Info['自主招生'][Info['自主招生'].length-1].List[3].PlanNum}}</view>
210
+            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][0].List[3].PlanNum}}</view>
211
+            <view class="panelSchoolText11 ">{{Info['自主招生'][1].List[3].PlanNum}}</view>
212 212
           </view>
213 213
           <view class="panelSchoolIndependent3 FlexRow">
214 214
             <view class="panelSchoolIndependentText2 panelSchoolText13">非本市生源</view>
215 215
             <view class="panelSchoolText11 panelSchoolText112">
216
-              <block wx:if="{{!Info['自主招生'][Info['自主招生'].length-2].List[4].PlanNum}}">0</block>{{Info['自主招生'][Info['自主招生'].length-2].List[4].PlanNum}}
216
+              <block wx:if="{{!Info['自主招生'][0].List[4].PlanNum}}">0</block>{{Info['自主招生'][0].List[4].PlanNum}}
217 217
             </view>
218 218
             <view class="panelSchoolText11 ">
219
-              <block wx:if="{{!Info['自主招生'][Info['自主招生'].length-1].List[4].PlanNum}}">0</block>{{Info['自主招生'][Info['自主招生'].length-1].List[4].PlanNum}}
219
+              <block wx:if="{{!Info['自主招生'][1].List[4].PlanNum}}">0</block>{{Info['自主招生'][1].List[4].PlanNum}}
220 220
             </view>
221 221
           </view>
222 222
           <view class="panelLine"></view>
@@ -233,7 +233,8 @@
233 233
       <view class="panelSchoolText17">名额分配综合评价录取志愿</view>
234 234
       <view class="panelSchoolText18">名额分配到本校</view>
235 235
     </block>
236
-
236
+    
237
+    
237 238
     <!-- 名额到区、名额到校、1-15志愿 -->
238 239
     <block wx:if="{{ScoreTypeID!=1 && Info[ScoreType[ScoreTypeID-1].Name]}}">
239 240
       <view class="panelTool1 panelTool1_1 FlexRow">
@@ -251,8 +252,11 @@
251 252
       </view>
252 253
 
253 254
       <view class="panelMarginTop panelLine"></view>
254
-
255
-      <template is="componentList" data="{{IsListAll:IsListAll,ScoreTypeID:ScoreTypeID,List:List,PageType:PageType,SchoolType1:Info.SchoolType1,IsSearch:IsSearch,SearchNull:SearchNull}}" />
255
+      
256
+      <!-- 有计划但没有出分数时使用 -->
257
+      <view class="panelTemp" wx:if="{{false}}">注意:以下是2025年招生计划数量+2024年最低分信息。教育局一般在7月公布2025年最低分信息,故此处配以2024年最低分以供参考。</view>
258
+    
259
+      <template is="componentList" data="{{IsListAll:IsListAll,ScoreTypeID:ScoreTypeID,List:List,PageType:PageType,SchoolType1:Info.SchoolType1,IsSearch:IsSearch,SearchNull:SearchNull,YearIndex:YearIndex}}" />
256 260
 
257 261
     </block>
258 262
 
@@ -269,6 +273,11 @@
269 273
     <view style="height:50rpx;"></view>
270 274
   </view>
271 275
 
276
+  <view class="panelAD FlexColumn" bindtap="gotoMiniprogram">
277
+    <view class="panelAD01">秒过其它产品介绍</view>
278
+    <image src="../images/ad_01.png" class="ad_01"></image>
279
+  </view>
280
+
272 281
   <view class="panelBasicCss FlexColumn" wx:if="{{Info.ImageOther}}">
273 282
     <view class="panelSchoolText08">校园风光</view>
274 283
     <view class="panelScrollView" bindtap="goto" data-url="imagelist?ID={{Info.ID}}&SchoolFullName={{Info.SchoolFullName}}&SchoolShortName={{Info.SchoolShortName}}&ImageOtherStr={{Info.ImageOtherStr}}">
@@ -295,18 +304,31 @@
295 304
   </view>
296 305
 
297 306
   <view class="panelBasicCss FlexColumn" wx:if="{{Info.SchoolType1=='高中'}}">
307
+    <view style="height:50rpx"></view>
308
+    <block wx:if="{{Info.AccommodationRemark}}">
309
+      <view class="panelSchoolText08 panelSchoolText084">住宿情况</view>
310
+      <text class="panelContent">{{Info.AccommodationRemark}}</text>
311
+    </block>
312
+    
313
+    <block wx:if="{{Info.Fees}}">
314
+      <view class="panelSchoolText08 panelSchoolText084">收费标准</view>
315
+      <text class="panelContent">{{Info.Fees}}</text>
316
+    </block>
317
+    
298 318
     <block wx:if="{{Info.SchoolType2Short=='区重点(特色)'}}">
299 319
       <view class="panelSchoolText082">特色高中办校重点</view>
300
-      <view class="panelSchoolText08 panelSchoolText083">美育特色</view>
320
+      <view class="panelSchoolText08 panelSchoolText084">美育特色</view>
301 321
       <text class="panelContent">{{Info.Introduction2}}</text>
302 322
       <view class="panelSchool22 FlexRow" bindtap="goto" data-url="docs?ID=2">
303 323
         <view>上海市19所特色高中情況汇总</view>
304 324
         <image class="icon_nextpage_4" src="../images/icon_nextpage_4.png"></image>
305 325
       </view>
306
-      <view class="panelLine"></view>
307 326
     </block>
327
+
328
+    <view class="panelLine panelLine02" wx:if="{{Info.SchoolType2Short=='区重点(特色)' || Info.AccommodationRemark || Info.Fees}}"></view>
308 329
     <view class="panelSchoolText081">
309
-      <block wx:if="{{Info.SchoolType2Short=='区重点(特色)'}}">更多</block>简介
330
+      <view class="panelSchoolText0811" wx:if="{{Info.SchoolType2Short=='区重点(特色)' || Info.AccommodationRemark || Info.Fees}}">更多</view>
331
+      <view class="panelSchoolText0811" wx:if="{{!(Info.SchoolType2Short=='区重点(特色)' || Info.AccommodationRemark || Info.Fees)}}">简介</view>
310 332
       <view class="panelFold FlexColumn" bindtap="onFold">
311 333
         <view class="panelFold1 FlexColumn">
312 334
           <image wx:if="{{!IsFold}}" class="icon_fold_04" src="../images/icon_fold_03.png"></image>
@@ -320,22 +342,44 @@
320 342
     </text>
321 343
   </view>
322 344
 
323
-  <view class="panelBasicCss panelSchool4 FlexColumn" wx:if="{{Info.Website || Info.ImageQRCode}}">
345
+  <view class="panelBasicCss panelSchool7 FlexColumn" wx:if="{{Info.Website || Info.ImageQRCode}}">
324 346
     <view class="panelSchool40 FlexRow">
325 347
       <view class="panelSchool41 FlexColumn">
326
-        <view class="panelSchool411" wx:if="{{Info.ImageQRCode}}">学校官媒</view>
327
-        <view class="panelSchool4110" wx:if="{{!Info.ImageQRCode}}">学校官媒</view>
348
+        <view class="panelSchool411" wx:if="{{Info.ImageQRCode}}">联系</view>
349
+        <view class="panelSchool4110" wx:if="{{!Info.ImageQRCode}}">联系</view>
328 350
         <view class="panelSchool412 FlexRow" wx:if="{{Info.Website}}" bindtap="copyUrl" data-url="{{Info.Website}}">
329 351
           <image class="icon_web_01" src="../images/icon_web_01.png"></image>
330 352
           <text user-select="true" class="panelSchoolText12">{{Info.WebsiteStr}}</text>
331 353
         </view>
332
-        <view class="panelSchool413 FlexRow" wx:if="{{Info.ImageQRCode}}">
333
-          <image class="icon_web_01" src="../images/icon_web_02.png"></image>
334
-          <text class="panelSchoolText13">长按二维码\n关注学校官方公众号</text>
354
+        <view class="FlexRow" wx:if="{{Info.ImageQRCode}}">
355
+          <image class="icon_web_02" src="../images/icon_web_02.png"></image>
356
+          <text class="panelSchoolText13">长按二维码关注学校公众号</text>
357
+        </view>
358
+        <view class="panelSchool413 FlexRow" wx:if="{{Info.Phone1 || Info.Phone2}}">
359
+          <image class="icon_web_02" src="../images/icon_web_03.png"></image>
360
+          <text class="panelSchoolText21">招生电话</text>
361
+        </view>
362
+        <view class="panelSchool413 FlexRow" style="margin-top: 10rpx;" wx:if="{{Info.Phone1 || Info.Phone2}}">
363
+          <view class="icon_web_02"></view>
364
+          <text class="panelSchoolText13">{{Info.Phone1}}</text>
365
+        </view>
366
+        <view class="panelSchool414 FlexRow" wx:if="{{Info.Phone2}}">
367
+          <view class="icon_web_02"></view>
368
+          <text class="panelSchoolText13">国际课程班</text>
335 369
         </view>
370
+        <view class="panelSchool413 FlexRow" style="margin-top: 10rpx;" wx:if="{{Info.Phone2}}">
371
+          <view class="icon_web_02"></view>
372
+          <text class="panelSchoolText13">{{Info.Phone2}}</text>
373
+        </view>
374
+        <view class="panelSchool413 FlexRow" wx:if="{{Info.ContactTime}}">
375
+          <view class="icon_web_02"></view>
376
+          <text class="panelSchoolText13" style="width:586rpx;">{{Info.ContactTime}}</text>
377
+        </view>
378
+        
336 379
       </view>
337 380
       <image wx:if="{{Info.ImageQRCode}}" show-menu-by-longpress="true" data-image="{{Info.ImageQRCode}}" class="panelSchoolQRCode" src="{{ImagePath}}web/_School/{{Info.ImageQRCode}}"></image>
338 381
     </view>
382
+    <view style="height:50rpx;"></view>
339 383
   </view>
340 384
 
341 385
   <view class="panelBasicCss FlexColumn" wx:if="{{Info.SchoolType1=='初中'}}">
@@ -358,6 +402,15 @@
358 402
     <view style="height: 20rpx;"></view>
359 403
   </view>
360 404
 
405
+  <!-- <view class="panelSchool8 FlexColumn" wx:if="{{false}}">
406
+    <view class="panelSchoolText14">2025年上海中招信息即将公布(5月底6月初左右),如欲即时了解,请点下面链接订阅更新,届时会在「服务通知」中提醒您。感谢支持!</view>
407
+    <view class="panelSchool81 FlexRow">
408
+      <image class="icon_sys_16.png" src="../images/icon_sys_16.png"></image>
409
+      <view>订阅2025年更新</view>
410
+    </view>
411
+    <view class="panelSchoolLine04"></view>
412
+  </view> -->
413
+
361 414
   <view  wx:if="{{IsShow}}" class="panelSchoolText14" catchtap="goto" data-url="feedbackinfo">
362 415
     本页内容来自学校官网、官方公众号、微博等网络资料的整理,整理过程中可能会有偏差,如您发现错误,欢迎协助<text class="panelSchoolText15">纠正</text>。
363 416
   </view>

+ 94 - 14
pages/main/school.wxss

@@ -143,18 +143,31 @@
143 143
 .panelSchoolText081{
144 144
   width: 670rpx;
145 145
   align-self: start;
146
-  margin: 50rpx 0 40rpx 40rpx;
146
+  margin: 0 0 40rpx 40rpx;
147 147
   position: relative;
148 148
 }
149
+
150
+.panelLine02{
151
+  margin-bottom: 50rpx;
152
+}
153
+
154
+.panelSchoolText0811{
155
+  font-size:36rpx;
156
+}
157
+
149 158
 .panelSchoolText082{
150 159
   align-self: start;
151
-  margin: 50rpx 0 0 40rpx;
160
+  margin: 0 0 0 40rpx;
152 161
   color:#9B9B9B;
153 162
   font-size:20rpx;
154 163
 }
155 164
 .panelSchoolText083{
156 165
   margin: 4rpx 0 30rpx 40rpx;
157 166
 }
167
+.panelSchoolText084{
168
+  margin: 4rpx 0 30rpx 40rpx;
169
+  font-size:28rpx;
170
+}
158 171
 .panelSchool31{
159 172
   width: 100%;
160 173
 }
@@ -306,13 +319,20 @@
306 319
   justify-content: flex-start;
307 320
 }
308 321
 
322
+.panelSchool7{
323
+  justify-content: flex-start;
324
+  min-height: 350rpx;
325
+}
326
+
309 327
 .panelSchool40{
310 328
   width: 100%;
311 329
   justify-content: space-between;
330
+  align-items: flex-start;
312 331
 }
313 332
 .panelSchool41{
314 333
   align-items: flex-start;
315 334
   margin-left: 40rpx;
335
+  margin-top: 50rpx;
316 336
   font-weight: 700;
317 337
 }
318 338
 
@@ -331,25 +351,40 @@
331 351
 }
332 352
 
333 353
 .panelSchool412{
334
-  margin: 30rpx 0 20rpx 0;
354
+  margin: 40rpx 0 20rpx 0;
335 355
   align-items: flex-start;
336 356
 }
337 357
 
338 358
 .panelSchool413{
339
-  align-items: flex-start;
359
+  margin-top: 20rpx;
360
+}
361
+
362
+.panelSchool414{
363
+  margin-top: 20rpx;
364
+  font-size: 20rpx;
365
+  color: #9B9B9B;
366
+  font-weight: 700;
367
+}
368
+
369
+.panelSchoolText21{
370
+  font-size: 24rpx;
340 371
 }
341 372
 
342 373
 .icon_web_01{
343
-  margin-top: 6rpx;
374
+  width:24rpx;
375
+  height:30rpx;
376
+  margin-right: 20rpx;
377
+}
378
+.icon_web_02{
344 379
   width:24rpx;
345 380
   height:24rpx;
346 381
   margin-right: 20rpx;
347 382
 }
348 383
 
349 384
 .panelSchoolText12{
350
-  font-size: 28rpx;
351
-  font-family: 'Roboto-Black';
385
+  font-size: 24rpx;
352 386
   width:360rpx;
387
+  font-weight: 400;
353 388
 }
354 389
 .panelSchoolText13{
355 390
   font-size: 24rpx;
@@ -376,7 +411,9 @@
376 411
 .panelSchoolQRCode{
377 412
   width:200rpx;
378 413
   height:200rpx;
379
-  margin: 50rpx 40rpx 50rpx 0;
414
+  position: absolute;
415
+  top:100rpx;
416
+  right:30rpx;
380 417
 }
381 418
 
382 419
 .panelScrollView{
@@ -562,11 +599,6 @@
562 599
   font-weight: 400;
563 600
 }
564 601
 
565
-.icon_fold_05{
566
-  width:16rpx;
567
-  height:14rpx;
568
-  margin-right: 10rpx;
569
-}
570 602
 .panel11420{
571 603
   margin-bottom: 30rpx;
572 604
 }
@@ -703,4 +735,52 @@
703 735
   width:670rpx;
704 736
   text-align: center;
705 737
   line-height: 110rpx;
706
-}
738
+}
739
+
740
+
741
+.panelAd{
742
+  width:100%;
743
+}
744
+
745
+.panelAD01{
746
+  font-size:20rpx;
747
+  color:#787878;
748
+  width:690rpx;
749
+  margin-top: 30rpx;
750
+}
751
+
752
+.ad_01{
753
+  width:710rpx;
754
+  height:400rpx;
755
+  margin-top: 20rpx;
756
+}
757
+
758
+.panelTemp{
759
+  width:650rpx;
760
+  margin: 30rpx 0 0 0;
761
+  font-size: 24rpx;
762
+}
763
+
764
+.panelSchool81{
765
+  width:500rpx;
766
+  height: 70rpx;
767
+  border-radius: 10rpx;
768
+  border:3rpx solid #EB5C28;
769
+  background-color: #FCE9E3;
770
+  color:#EB5C28;
771
+  font-size:28rpx;
772
+  margin-top: 30rpx;
773
+}
774
+
775
+.icon_sys_16{
776
+  width:24rpx;
777
+  height:24rpx;
778
+  margin-right: 10rpx;
779
+}
780
+
781
+.panelSchoolLine04{
782
+  width:630rpx;
783
+  height: 1rpx;
784
+  margin: 100rpx 0 -30rpx 0;
785
+  background-color: #d2d2d2;  
786
+}

+ 43 - 12
pages/main/scoreline.js

@@ -169,16 +169,35 @@ Page({
169 169
           if (data.length==0 && that.data.SchoolCount>0)
170 170
             isContrastNull=true;
171 171
   
172
-          that.setData({
173
-            Accommodation:constant.arrAccommodation,
174
-            List:data,
175
-            IsSearch:false,
176
-            IsListAll:isListAll,
177
-            TailScore:that.data.TailScore,
178
-            PageCount:pageCount,
179
-            PageFilterCount:data.length,
180
-            ContrastNull:isContrastNull,
181
-          });
172
+          if (data.length>0){
173
+          
174
+            that.setData({
175
+              Accommodation:constant.arrAccommodation,
176
+              List:data,
177
+              IsSearch:false,
178
+              IsListAll:isListAll,
179
+              TailScore:that.data.TailScore,
180
+              PageCount:pageCount,
181
+              PageFilterCount:data.length,
182
+              ContrastNull:isContrastNull,
183
+            });
184
+          }
185
+          else{
186
+            // wx.showModal({
187
+            //   title: '暂无公布',
188
+            //   showCancel:false,
189
+            //   content: '教育局暂未公布2024年1-15志愿信息,正式数据一般在7月公布,敬请期待。',
190
+            //   confirmText: '知道了',
191
+            //   complete: (res) => {
192
+            //     if (res.confirm) {
193
+            //       wx.redirectTo({
194
+            //         url: 'scoreline?PageType='+that.data.PageType+'&SchoolType1='+that.data.SchoolType1+'&ScoreTypeID='+that.data.ScoreTypeID+'&DistrictID='+that.data.DistrictID+"&YearIndex=1",
195
+            //       });
196
+            //     }
197
+            //   }
198
+            // })
199
+            
200
+          }
182 201
   
183 202
         }
184 203
 
@@ -370,6 +389,7 @@ Page({
370 389
   },
371 390
   showSearch:function(){
372 391
     var that=this;
392
+    app.globalData.TempParam=that.data.PageCount;
373 393
     that.setData({
374 394
       IsSearch:true,
375 395
       IsFocus:true,
@@ -383,6 +403,7 @@ Page({
383 403
       IsFocus:false,
384 404
       SearchNull:false,
385 405
       ContrastNull:false,
406
+      PageCount:app.globalData.TempParam,
386 407
     });
387 408
   },
388 409
   clearInput2:function(){
@@ -391,6 +412,7 @@ Page({
391 412
     that.setData({
392 413
       IsSearch:true,
393 414
       IsFocus:true,
415
+      PageCount:app.globalData.TempParam,
394 416
     });
395 417
   },
396 418
   bindKeyInput:function(e){
@@ -398,6 +420,7 @@ Page({
398 420
     var that=this;
399 421
     var isNull=true;
400 422
     var count=0;
423
+    //debugger;
401 424
     for(var i=0;i<that.data.List.length;i++){
402 425
       var item=that.data.List[i];
403 426
       if (inputValue){
@@ -414,16 +437,24 @@ Page({
414 437
         count++;
415 438
       }
416 439
     }
417
-    
440
+    console.log("pagecount:"+that.data.PageCount);
418 441
     that.setData({
419 442
       List:that.data.List,
420 443
       SearchNull:isNull,
421 444
       InputValue:inputValue,
422 445
       PageFilterCount:count,
446
+      PageCount:10000,
423 447
     });
424 448
   },
425 449
   goto: function (e) {
426
-    main.goto(e);
450
+    if (e.currentTarget.dataset.url=="school?PageType=scoreline&ID="
451
+     || e.currentTarget.dataset.url=="school?PageType=scoreline&ID=0")
452
+      return null;
453
+    else{
454
+      app.globalData.FeedbackUrl="scoreline?PageType="+this.data.PageType+"&ScoreTypeID="+this.data.ScoreTypeID+"&DistrictID="+this.data.DistrictID;
455
+      
456
+      main.goto(e);
457
+    }
427 458
   },
428 459
   returnTop:function(){
429 460
     main.returnTop();

+ 7 - 4
pages/main/scoreline.wxml

@@ -62,7 +62,10 @@
62 62
         </view>
63 63
       </view>
64 64
     </view>
65
-
65
+    
66
+    <!-- 有计划但没有出分数时使用 -->
67
+    <view class="panelTemp" wx:if="{{false}}">注意:以下是2025年招生计划数量+2024年最低分信息。教育局一般在7月公布2025年最低分信息,故此处配以2024年最低分以供参考。</view>
68
+    
66 69
     <view class="panelBasicCss panelScore FlexColumn" >
67 70
       <view style="height:20rpx"></view>
68 71
       <!-- 名额到校 -->
@@ -95,8 +98,8 @@
95 98
         <view class="panelRadio1 radio2 panelRadio1{{item.CSS}}" wx:for="{{LocalOrNolocal}}" wx:key="index"
96 99
         bindtap="onSelect" data-object="LocalOrNolocal" data-index="{{index}}" data-clicktype="radio">{{item.Name}}</view>
97 100
       </view>
98
-      
99
-      <template is="componentList" wx:if="{{!(IsSearch && !InputValue)}}" data="{{IsListAll:IsListAll,ScoreTypeID:ScoreTypeID,List:List,PageType:PageType,SchoolType1:SchoolType1,IsSearch:IsSearch,SearchNull:SearchNull,PageCount:PageCount,PageFilterCount:PageFilterCount,ContrastNull:ContrastNull}}" />
101
+
102
+      <template is="componentList" wx:if="{{!(IsSearch && !InputValue)}}" data="{{IsListAll:IsListAll,ScoreTypeID:ScoreTypeID,List:List,PageType:PageType,SchoolType1:SchoolType1,IsSearch:IsSearch,SearchNull:SearchNull,PageCount:PageCount,PageFilterCount:PageFilterCount,ContrastNull:ContrastNull,YearIndex:YearIndex}}" />
100 103
       
101 104
       <view style="height: 50rpx;"></view>
102 105
     </view>
@@ -133,7 +136,7 @@
133 136
         <view class="panelFooterBottom">转发</view>
134 137
       </button>
135 138
     </view>
136
-    <view  wx:if="{{IsShow}}" class="panelFooter2 FlexRow"  catchtap="goto" data-url="feedbackinfo">
139
+    <view  wx:if="{{IsShow}}" class="panelFooter2 FlexRow"  catchtap="goto" data-url="feedbackinfo?type=scoreline&id={{Info.ID}}">
137 140
       <view class="panelFooterLine panelFooterBottom" wx:if="{{PageType=='scoreline'}}"></view>
138 141
       <view class="panelFooterBottom panelFooter21">纠错</view>
139 142
     </view>

+ 7 - 0
pages/main/scoreline.wxss

@@ -222,4 +222,11 @@
222 222
 .panelRecruitmentTest03{
223 223
   font-size:32rpx; 
224 224
   font-family: 'Roboto-Black';
225
+}
226
+
227
+.panelTemp{
228
+  width:650rpx;
229
+  margin: 30rpx 0 0 0;
230
+  font-size: 24rpx;
231
+  color: #787878;
225 232
 }

+ 169 - 147
pages/template/componentList.wxml

@@ -1,4 +1,26 @@
1 1
 <template name="componentList">
2
+  <!-- 有计划但没有出分数时使用 -->
3
+  <block wx:if="{{false}}">
4
+    <!-- 显示全部表头 -->
5
+    <view class="panelScoreHeader0 panelScoreHeader FlexRow" wx:if="{{IsListAll}}">
6
+      <view class="panelScoreHeaderTd1"></view>
7
+      <view class="panelScoreHeaderTd2">24年计划</view>
8
+      <view class="panelScoreHeaderTd3" style="text-align: right;">23年最低分</view>
9
+      <view class="panelScoreHeaderTd4"><view class="MarginLeft30">语数外</view></view>
10
+      <view class="panelScoreHeaderTd5">数学</view>
11
+      <view class="panelScoreHeaderTd5">语文</view>
12
+      <view class="panelScoreHeaderTd5">综合</view>
13
+    </view>
14
+    
15
+    <!-- 显示大字表头 -->
16
+    <view class="panelScoreHeader FlexRow" wx:if="{{!IsListAll}}">
17
+      <view class="panelScoreHeaderTd6"></view>
18
+      <view class="panelScoreHeaderTd7">24年计划</view>
19
+      <view class="panelScoreHeaderTd8">23年最低分</view>
20
+    </view>
21
+  </block>
22
+  <!-- 有计划有出分数时使用 -->
23
+  <block wx:if="{{true}}">
2 24
     <!-- 显示全部表头 -->
3 25
     <view class="panelScoreHeader FlexRow" wx:if="{{IsListAll}}">
4 26
       <view class="panelScoreHeaderTd1"></view>
@@ -16,178 +38,178 @@
16 38
       <view class="panelScoreHeaderTd7">计划</view>
17 39
       <view class="panelScoreHeaderTd8">最低分</view>
18 40
     </view>
41
+  </block>
42
+    
43
+  <block wx:if="{{!ContrastNull}}">
19 44
 
45
+    <block wx:for="{{List}}" wx:key="index">
20 46
     
21
-    <block wx:if="{{!ContrastNull}}">
47
+      <!-- 名额到校校名,收藏学校 -->
48
+      <block wx:if="{{PageType=='scoreline' && ScoreTypeID==3  && item.IsCollect && item.SchoolOfGraduationTemp!=item.SchoolOfGraduation && ((IsSearch && item.IsSearchResult) || !IsSearch)}}" >
49
+        
50
+        <view class="panelLine"></view>
51
+        
52
+        <view class="panelScoreJuniorCollect FlexRow" bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.SchoolOfGraduation}}">
53
+          <view class="panelScoreJuniorCollectText">{{item.SchoolFullNameJunior}}</view>
54
+        </view>
55
+      </block>
56
+      <!-- 名额到校校名,普通学校 -->
57
+      <block wx:if="{{PageType=='scoreline' && ScoreTypeID==3 && !item.IsCollect && item.SchoolOfGraduationTemp!=item.SchoolOfGraduation && ((IsSearch && item.IsSearchResult) || !IsSearch)}}" >
58
+        
59
+        <view hidden="{{index>PageCount}}" wx:if="{{index==0}}" class="panelLine"></view>
60
+        
61
+        <view hidden="{{index>PageCount}}" class="panelScoreJunior FlexRow" bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.SchoolOfGraduation}}">
62
+          <view class="panelScoreJunior1"></view>
63
+          <view class="panelScoreJuniorText">{{item.SchoolFullNameJunior}}</view>
64
+        </view>
65
+      </block>
22 66
 
23
-      <block wx:for="{{List}}" wx:key="index">
67
+      <!-- 名额到校校名,学校主页 -->
68
+      <block wx:if="{{PageType=='school' && ScoreTypeID==3 && SchoolType1=='高中' && item.DistrictNameTemp!=item.DistrictName}}">
69
+        <view class="panelLine" wx:if="{{index==0}}"></view>
70
+        <view class="panelScoreJuniorCollect panelScoreSchoolType FlexRow">
71
+          <view class="panelScoreJuniorCollectText">{{item.DistrictName}}</view>
72
+        </view>
73
+      </block>
24 74
       
25
-        <!-- 名额到校校名,收藏学校 -->
26
-        <block wx:if="{{PageType=='scoreline' && ScoreTypeID==3  && item.IsCollect && item.SchoolOfGraduationTemp!=item.SchoolOfGraduation && ((IsSearch && item.IsSearchResult) || !IsSearch)}}" >
27
-          
28
-          <view class="panelLine"></view>
29
-          
30
-          <view class="panelScoreJuniorCollect FlexRow" bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.SchoolOfGraduation}}">
31
-            <view class="panelScoreJuniorCollectText">{{item.SchoolFullNameJunior}}</view>
32
-          </view>
33
-        </block>
34
-        <!-- 名额到校校名,普通学校 -->
35
-        <block wx:if="{{PageType=='scoreline' && ScoreTypeID==3 && !item.IsCollect && item.SchoolOfGraduationTemp!=item.SchoolOfGraduation && ((IsSearch && item.IsSearchResult) || !IsSearch)}}" >
36
-          
37
-          <view hidden="{{index>PageCount}}" wx:if="{{index==0}}" class="panelLine"></view>
38
-          
39
-          <view hidden="{{index>PageCount}}" class="panelScoreJunior FlexRow" bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.SchoolOfGraduation}}">
75
+      <!-- 1-15志愿,学校性质 -->
76
+      <block wx:if="{{PageType=='scoreline' && ScoreTypeID==4 && item.SchoolType2ShortIDTemp!=item.SchoolType2ShortID && !SearchNull}}">
77
+        <view class="panelLine" wx:if="{{index==0}}"></view>
78
+        <view class="panelScoreJuniorCollect panelScoreSchoolType FlexRow" >
79
+          <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==1}}">市实验性示范性高中</view>
80
+          <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==2}}">市特色普通高中</view>
81
+          <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==3}}">区实验性示范性高中</view>
82
+          <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==4}}">一般高中</view>
83
+        </view>
84
+      </block>
85
+      
86
+      <!-- 收藏高中 -->
87
+      <block wx:if="{{PageType=='collect' && item.TempID!=item.ID}}" >
88
+        <view class="panelLine" wx:if="{{index==0}}"></view>
89
+      
90
+        <view class="panelScoreJunior panelScoreJunior00 FlexRow" bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.ID}}">
91
+          <view class="panelScoreJunior0 FlexRow">
40 92
             <view class="panelScoreJunior1"></view>
41
-            <view class="panelScoreJuniorText">{{item.SchoolFullNameJunior}}</view>
93
+            <view class="panelScoreJuniorText panelScoreJuniorText0">{{item.SchoolFullName}}</view>
42 94
           </view>
43
-        </block>
44
-
45
-        <!-- 名额到校校名,学校主页 -->
46
-        <block wx:if="{{PageType=='school' && ScoreTypeID==3 && SchoolType1=='高中' && item.DistrictNameTemp!=item.DistrictName}}">
47
-          <view class="panelLine" wx:if="{{index==0}}"></view>
48
-          <view class="panelScoreJuniorCollect panelScoreSchoolType FlexRow">
49
-            <view class="panelScoreJuniorCollectText">{{item.DistrictName}}</view>
95
+          <view class="panelScoreJunior2 FlexRow">
96
+            {{item.District}} <block wx:if="{{SchoolType1=='高中'}}">{{item.SchoolType2Short}} <view class="panelLine2" wx:if="{{item.PublicOrPrivate}}"></view> {{item.PublicOrPrivate}}</block>
50 97
           </view>
51
-        </block>
52
-        
53
-        <!-- 1-15志愿,学校性质 -->
54
-        <block wx:if="{{PageType=='scoreline' && ScoreTypeID==4 && item.SchoolType2ShortIDTemp!=item.SchoolType2ShortID && !SearchNull}}">
55
-          <view class="panelLine" wx:if="{{index==0}}"></view>
56
-          <view class="panelScoreJuniorCollect panelScoreSchoolType FlexRow" >
57
-            <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==1}}">市实验性示范性高中</view>
58
-            <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==2}}">市特色普通高中</view>
59
-            <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==3}}">区实验性示范性高中</view>
60
-            <view class="panelScoreJuniorCollectText" wx:if="{{item.SchoolType2ShortID==4}}">一般高中</view>
61
-          </view>
62
-        </block>
63
-        
64
-        <!-- 收藏高中 -->
65
-        <block wx:if="{{PageType=='collect' && item.TempID!=item.ID}}" >
66
-          <view class="panelLine" wx:if="{{index==0}}"></view>
67
-        
68
-          <view class="panelScoreJunior panelScoreJunior00 FlexRow" bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.ID}}">
69
-            <view class="panelScoreJunior0 FlexRow">
70
-              <view class="panelScoreJunior1"></view>
71
-              <view class="panelScoreJuniorText panelScoreJuniorText0">{{item.SchoolFullName}}</view>
72
-            </view>
73
-            <view class="panelScoreJunior2 FlexRow">
74
-              {{item.District}} <block wx:if="{{SchoolType1=='高中'}}">{{item.SchoolType2Short}} <view class="panelLine2" wx:if="{{item.PublicOrPrivate}}"></view> {{item.PublicOrPrivate}}</block>
75
-            </view>
76
-          </view>
77
-        </block>
98
+        </view>
99
+      </block>
78 100
 
79
-        <!-- 自主招生 -->
80
-        <block wx:if="{{item.Name=='自主招生'}}" >
81
-          <view style="height:30rpx;" wx:if="{{item.ID==item.TempID}}"></view>
82
-          <view class="panelRecruitment FlexRow">
83
-            <text class="panelRecruitmentTest01">本校有自主招生计划\n<text class="panelRecruitmentTest02">面向全市招收,本区学生可报</text></text>
84
-            <view class="panelRecruitment1 FlexRow">
85
-              <view class="panelRecruitmentTest03">{{item.PlanNum}}</view>
86
-              <view>(全市总数,不含艺体)</view>
87
-            </view>
101
+      <!-- 自主招生 -->
102
+      <block wx:if="{{item.Name=='自主招生'}}" >
103
+        <view style="height:30rpx;" wx:if="{{item.ID==item.TempID}}"></view>
104
+        <view class="panelRecruitment FlexRow">
105
+          <text class="panelRecruitmentTest01">本校有自主招生计划\n<text class="panelRecruitmentTest02">面向全市招收,本区学生可报</text></text>
106
+          <view class="panelRecruitment1 FlexRow">
107
+            <view class="panelRecruitmentTest03">{{item.PlanNum}}</view>
108
+            <view>(全市总数,不含艺体)</view>
88 109
           </view>
89
-          <view style="height: 30rpx;"></view>
90
-          <view class="panelLine"></view>
91
-        </block>
110
+        </view>
111
+        <view style="height: 30rpx;"></view>
112
+        <view class="panelLine"></view>
113
+      </block>
92 114
 
93
-        <!-- 显示全部列表 -->
94
-        <view class="panelScoreItem FlexColumn" hidden="{{index>PageCount}}" 
95
-        wx:if="{{IsListAll && item.IsAccommodation && item.IsPublicOrPrivate && item.IsLocalOrNolocal && item.IsSearchResult && item.Name!='自主招生'}}" 
96
-        bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.ID}}">
97
-          
98
-          <view class="panelLine" wx:if="{{ScoreTypeID==2 && index==0}}"></view>
99
-          <view class="panelLine" wx:if="{{PageType=='school' && (ScoreTypeID==2 || ScoreTypeID==4) && index==0}}"></view>
115
+      <!-- 显示全部列表 -->
116
+      <view class="panelScoreItem FlexColumn" hidden="{{index>PageCount}}" 
117
+      wx:if="{{IsListAll && item.IsAccommodation && item.IsPublicOrPrivate && item.IsLocalOrNolocal && item.IsSearchResult && item.Name!='自主招生'}}" 
118
+      bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.ID}}">
119
+        
120
+        <view class="panelLine" wx:if="{{ScoreTypeID==2 && index==0}}"></view>
121
+        <view class="panelLine" wx:if="{{PageType=='school' && (ScoreTypeID==2 || ScoreTypeID==4) && index==0}}"></view>
100 122
 
101
-          <view class="panelScoreItem1 FlexRow">
102
-            <view class="panelScoreItem11 FlexColumn">
103
-              <text class="panelScoreText01">{{item.Name}}</text>
104
-              <view class="panelScoreText02" wx:if="{{(ScoreTypeID==2 || ScoreTypeID==4) && item.DistrictName}}">{{item.DistrictName}}</view>
105
-              <view class="panelScoreText02" wx:if="{{ScoreTypeID==4 && item.SchoolTargetRemark}}">{{item.SchoolTargetRemark}}</view>
123
+        <view class="panelScoreItem1 FlexRow">
124
+          <view class="panelScoreItem11 FlexColumn">
125
+            <text class="panelScoreText01">{{item.Name}}</text>
126
+            <view class="panelScoreText02" wx:if="{{(ScoreTypeID==2 || ScoreTypeID==4) && item.DistrictName}}">{{item.DistrictName}}</view>
127
+            <view class="panelScoreText02" wx:if="{{ScoreTypeID==4 && item.SchoolTargetRemark}}">{{item.SchoolTargetRemark}}</view>
128
+          </view>
129
+          <view class="panelScoreItem12 FlexRow" style="height:{{item.Height}}rpx;">
130
+            <view class="panelScoreItem120 FlexRow">
131
+              <view class="panelScoreNumber01" wx:if="{{item.PlanNum>=0}}">{{item.PlanNum}}</view>
132
+              <view class="panelScoreNumber01Null" wx:if="{{item.PlanNum==-999}}">未知</view>
106 133
             </view>
107
-            <view class="panelScoreItem12 FlexRow" style="height:{{item.Height}}rpx;">
108
-              <view class="panelScoreItem120 FlexRow">
109
-                <view class="panelScoreNumber01" wx:if="{{item.PlanNum>=0}}">{{item.PlanNum}}</view>
110
-                <view class="panelScoreNumber01Null" wx:if="{{item.PlanNum==-999}}">未知</view>
111
-              </view>
112
-              <view class="panelScoreItem1200 FlexRow">
113
-                <view class="panelScoreNumber01" wx:if="{{item.ScoreTotal}}">{{item.ScoreTotal}}</view>
114
-              </view>
134
+            <view class="panelScoreItem1200 FlexRow">
135
+              <view class="panelScoreNumber01" wx:if="{{item.ScoreTotal}}">{{item.ScoreTotal}}</view>
115 136
             </view>
116
-            <view class="panelScoreNumber04" wx:if="{{item.Score1}}"><view class="MarginLeft30">{{item.Score1}}</view></view>
117
-            <view class="panelScoreNumber04 panelScoreNumber04Null" wx:if="{{!item.Score1 && item.ScoreTotal}}"><view class="MarginLeft30">未知</view></view>
118
-            <view class="panelScoreNumber05" wx:if="{{item.Score2 && item.ScoreTotal}}">{{item.Score2}}</view>
119
-            <view class="panelScoreNumber05 panelScoreNumber04Null" wx:if="{{!item.Score2 && item.ScoreTotal}}">未知</view>
120
-            <view class="panelScoreNumber05" wx:if="{{item.Score3 && item.ScoreTotal}}">{{item.Score3}}</view>
121
-            <view class="panelScoreNumber05 panelScoreNumber04Null" wx:if="{{!item.Score3 && item.ScoreTotal}}">未知</view>
122
-            <view class="panelScoreNumber05" wx:if="{{item.Score4 && item.ScoreTotal}}">{{item.Score4}}</view>
123
-            <view class="panelScoreNumber05 panelScoreNumber04Null" wx:if="{{!item.Score4 && item.ScoreTotal}}">未知</view>
124
-            
125 137
           </view>
138
+          <view class="panelScoreNumber04" wx:if="{{item.Score1}}"><view class="MarginLeft30">{{item.Score1}}</view></view>
139
+          <view class="panelScoreNumber04 panelScoreNumber04Null" wx:if="{{!item.Score1 && item.ScoreTotal}}"><view class="MarginLeft30">未知</view></view>
140
+          <view class="panelScoreNumber05" wx:if="{{item.Score2 && item.ScoreTotal}}">{{item.Score2}}</view>
141
+          <view class="panelScoreNumber05 panelScoreNumber04Null" wx:if="{{!item.Score2 && item.ScoreTotal}}">未知</view>
142
+          <view class="panelScoreNumber05" wx:if="{{item.Score3 && item.ScoreTotal}}">{{item.Score3}}</view>
143
+          <view class="panelScoreNumber05 panelScoreNumber04Null" wx:if="{{!item.Score3 && item.ScoreTotal}}">未知</view>
144
+          <view class="panelScoreNumber05" wx:if="{{item.Score4 && item.ScoreTotal}}">{{item.Score4}}</view>
145
+          <view class="panelScoreNumber05 panelScoreNumber04Null" wx:if="{{!item.Score4 && item.ScoreTotal}}">未知</view>
146
+          
126 147
         </view>
148
+      </view>
127 149
 
128
-        <!-- 显示大字列表 -->
129
-        <view class="panelScoreItem FlexColumn" hidden="{{index>PageCount}}"  wx:if="{{!IsListAll && item.IsAccommodation && item.IsPublicOrPrivate && item.IsLocalOrNolocal && item.IsSearchResult && item.Name!='自主招生'}}"
130
-        bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.ID}}">
131
-          
132
-          <view class="panelLine" wx:if="{{PageType=='scoreline' && ScoreTypeID==2 && index==0}}"></view>
133
-          <view class="panelLine" wx:if="{{PageType=='school' && (ScoreTypeID==2 || ScoreTypeID==4) && index==0}}"></view>
150
+      <!-- 显示大字列表 -->
151
+      <view class="panelScoreItem FlexColumn" hidden="{{index>PageCount}}"  wx:if="{{!IsListAll && item.IsAccommodation && item.IsPublicOrPrivate && item.IsLocalOrNolocal && item.IsSearchResult && item.Name!='自主招生'}}"
152
+      bindtap="goto" data-url="school?PageType={{PageType}}&ID={{item.ID}}">
153
+        
154
+        <view class="panelLine" wx:if="{{PageType=='scoreline' && ScoreTypeID==2 && index==0}}"></view>
155
+        <view class="panelLine" wx:if="{{PageType=='school' && (ScoreTypeID==2 || ScoreTypeID==4) && index==0}}"></view>
156
+        
157
+        <view class="panelScoreItem1 FlexRow">
158
+          <view class="panelScoreItem13 FlexColumn">
159
+            <text class="panelScoreText01">{{item.Name}}</text>
160
+            <view class="panelScoreText02" wx:if="{{(ScoreTypeID==2 || ScoreTypeID==4) && item.DistrictName}}">{{item.DistrictName}}</view>
161
+            <view class="panelScoreText02" wx:if="{{ScoreTypeID==4 && item.SchoolTargetRemark}}">{{item.SchoolTargetRemark}}</view>
162
+          </view>
163
+          <view class="panelScoreItem14 FlexRow" style="height:{{item.Height}}rpx;">
164
+            <view class="panelScoreNumber06" wx:if="{{item.PlanNum>=0}}">{{item.PlanNum}}</view>
165
+            <view class="panelScoreNumber06Null" wx:if="{{item.PlanNum==-999}}">未知</view>
134 166
           
135
-          <view class="panelScoreItem1 FlexRow">
136
-            <view class="panelScoreItem13 FlexColumn">
137
-              <text class="panelScoreText01">{{item.Name}}</text>
138
-              <view class="panelScoreText02" wx:if="{{(ScoreTypeID==2 || ScoreTypeID==4) && item.DistrictName}}">{{item.DistrictName}}</view>
139
-              <view class="panelScoreText02" wx:if="{{ScoreTypeID==4 && item.SchoolTargetRemark}}">{{item.SchoolTargetRemark}}</view>
140
-            </view>
141
-            <view class="panelScoreItem14 FlexRow" style="height:{{item.Height}}rpx;">
142
-              <view class="panelScoreNumber06" wx:if="{{item.PlanNum>=0}}">{{item.PlanNum}}</view>
143
-              <view class="panelScoreNumber06Null" wx:if="{{item.PlanNum==-999}}">未知</view>
144
-            
145
-              <view class="panelScoreItem121 FlexRow" wx:if="{{item.PlanNumDifferenceValue!==null}}">
146
-                <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{item.PlanNumDifferenceValue>0}}"></image>
147
-                <view class="panelScoreNumber02" wx:if="{{item.PlanNumDifferenceValue>0}}">{{item.PlanNumDifferenceValue}}</view>
148
-                <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.PlanNumDifferenceValue<0}}"></image>
149
-                <view class="panelScoreNumber03" wx:if="{{item.PlanNumDifferenceValue<0}}">{{-item.PlanNumDifferenceValue}}</view>
150
-                <view class="panelScoreText04" wx:if="{{item.PlanNumDifferenceValue==0}}">平</view>
151
-              </view>
152
-            </view>
153
-            <view class="panelScoreItem15 FlexRow">
154
-              <view class="panelScoreNumber06">{{item.ScoreTotal}}</view>
155
-              <view class="panelScoreItem121 FlexRow" wx:if="{{item.ScoreTotalDifferenceValue!==null}}">
156
-                <image class="icon_up_01" src="../images/icon_up_01.png"  wx:if="{{item.ScoreTotalDifferenceValue>0}}"></image>
157
-                <view class="panelScoreNumber02" wx:if="{{item.ScoreTotalDifferenceValue>0}}">{{item.ScoreTotalDifferenceValue}}</view>
158
-                <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.ScoreTotalDifferenceValue<0}}"></image>
159
-                <view class="panelScoreNumber03" wx:if="{{item.ScoreTotalDifferenceValue<0}}">{{-item.ScoreTotalDifferenceValue}}</view>
160
-                <view class="panelScoreText04" wx:if="{{item.ScoreTotalDifferenceValue==0}}">平</view>
161
-            </view>
167
+            <view class="panelScoreItem121 FlexRow" wx:if="{{item.PlanNumDifferenceValue!==null}}">
168
+              <image class="icon_up_01" src="../images/icon_up_01.png" wx:if="{{item.PlanNumDifferenceValue>0}}"></image>
169
+              <view class="panelScoreNumber02" wx:if="{{item.PlanNumDifferenceValue>0}}">{{item.PlanNumDifferenceValue}}</view>
170
+              <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.PlanNumDifferenceValue<0}}"></image>
171
+              <view class="panelScoreNumber03" wx:if="{{item.PlanNumDifferenceValue<0}}">{{-item.PlanNumDifferenceValue}}</view>
172
+              <view class="panelScoreText04" wx:if="{{item.PlanNumDifferenceValue==0}}">平</view>
162 173
             </view>
163 174
           </view>
175
+          <view class="panelScoreItem15 FlexRow">
176
+            <view class="panelScoreNumber06">{{item.ScoreTotal}}</view>
177
+            <view class="panelScoreItem121 FlexRow" wx:if="{{item.ScoreTotalDifferenceValue!==null}}">
178
+              <image class="icon_up_01" src="../images/icon_up_01.png"  wx:if="{{item.ScoreTotalDifferenceValue>0}}"></image>
179
+              <view class="panelScoreNumber02" wx:if="{{item.ScoreTotalDifferenceValue>0}}">{{item.ScoreTotalDifferenceValue}}</view>
180
+              <image class="icon_up_01" src="../images/icon_down_01.png" wx:if="{{item.ScoreTotalDifferenceValue<0}}"></image>
181
+              <view class="panelScoreNumber03" wx:if="{{item.ScoreTotalDifferenceValue<0}}">{{-item.ScoreTotalDifferenceValue}}</view>
182
+              <view class="panelScoreText04" wx:if="{{item.ScoreTotalDifferenceValue==0}}">平</view>
183
+          </view>
184
+          </view>
164 185
         </view>
165
-      </block>
166
-
167
-      <view bindtap="onPage" class="panelPage FlexRow" wx:if="{{(List.length>PageCount && PageFilterCount>PageCount) && !SearchNull}}">
168
-        <view class="panelPage1">查看更多</view>
169
-        <view class="panelFold1 FlexColumn">
170
-          <image class="icon_fold_04" src="../images/icon_fold_03.png"></image>
171
-        </view>
172
-      </view>
173
-      
174
-      <view class="panelDataRemark FlexColumn" wx:if="{{List.length>0 && !SearchNull}}">
175
-        <view class="panelDataRemark1">数据表中的特殊情况的说明:</view>
176
-        <text class="panelDataRemark2">未知,表示官网未公布或没能采集到。\n没有最低分(含分科分数),表示该学校在最低投档控制线上无考生录取,故没有分数。</text>
177 186
       </view>
178
-
179
-      <block wx:if="{{SearchNull}}">
180
-        <view class="panelLine"></view>
181
-        <image class="icon_sys_121" src="../images/icon_sys_12.png"></image>
182
-        <view class="text02">没有内容</view>
183
-        <view class="text03"></view>
184
-      </block>
185 187
     </block>
186 188
 
187
-    <block wx:if="{{ContrastNull}}">
189
+    <view bindtap="onPage" class="panelPage FlexRow" wx:if="{{(List.length>PageCount && PageFilterCount>PageCount) && !SearchNull}}">
190
+      <view class="panelPage1">查看更多</view>
191
+      <view class="panelFold1 FlexColumn">
192
+        <image class="icon_fold_04" src="../images/icon_fold_03.png"></image>
193
+      </view>
194
+    </view>
195
+    
196
+    <view class="panelDataRemark FlexColumn" wx:if="{{List.length>0 && !SearchNull}}">
197
+      <view class="panelDataRemark1">数据表中的特殊情况的说明:</view>
198
+      <text class="panelDataRemark2">未知,表示官网未公布或没能采集到。\n没有最低分(含分科分数),表示该学校在最低投档控制线上无考生录取,故没有分数。</text>
199
+    </view>
200
+
201
+    <block wx:if="{{SearchNull}}">
188 202
       <view class="panelLine"></view>
189 203
       <image class="icon_sys_121" src="../images/icon_sys_12.png"></image>
190
-      <view class="text02">在本区无计划</view>
204
+      <view class="text02">没有内容</view>
191 205
       <view class="text03"></view>
192 206
     </block>
207
+  </block>
208
+
209
+  <block wx:if="{{ContrastNull}}">
210
+    <view class="panelLine"></view>
211
+    <image class="icon_sys_121" src="../images/icon_sys_12.png"></image>
212
+    <view class="text02">在本区无计划</view>
213
+    <view class="text03"></view>
214
+  </block>
193 215
 </template>

+ 6 - 444
utils/constant.js

@@ -1,8 +1,11 @@
1 1
 module.exports = {
2 2
   arrYear: [{
3
-      Name: "2023",
4
-      CSS: "Selected"
5
-    },
3
+    Name: "2024",
4
+    CSS: "Selected"
5
+  },{
6
+    Name: "2023",
7
+    CSS: ""
8
+  },
6 9
     {
7 10
       Name: "2022",
8 11
       CSS: ""
@@ -226,447 +229,6 @@ module.exports = {
226 229
       Count: "8"
227 230
     },
228 231
   ],
229
-  arrArticleList: [
230
-    {
231
-      ID: 10,
232
-      Category: "信息整理",
233
-      Logo: "icon_sys_01.png",
234
-      Title: "2024年上海闵行、宝山、浦东、松江、青浦5区共新增15所高中介绍",
235
-      TitleShort: "上海中招分数线等信息查询",
236
-      TitleImage: "doc_1000.png",
237
-      Content: [{
238
-          Name: "doc_1001.png"
239
-        },
240
-        {
241
-          Name: "doc_1002.png",
242
-          Fun: "goto",
243
-          Url: "school?ID=849"
244
-        },
245
-        {
246
-          Name: "doc_1003.png",
247
-          Fun: "goto",
248
-          Url: "school?ID=850"
249
-        },
250
-        {
251
-          Name: "doc_1004.png",
252
-          Fun: "goto",
253
-          Url: "school?ID=851"
254
-        },
255
-        {
256
-          Name: "doc_1005.png",
257
-          Fun: "goto",
258
-          Url: "school?ID=852"
259
-        },
260
-        {
261
-          Name: "doc_1006.png",
262
-          Fun: "goto",
263
-          Url: "school?ID=853"
264
-        },
265
-        {
266
-          Name: "doc_1007.png",
267
-          Fun: "goto",
268
-          Url: "school?ID=854"
269
-        },
270
-        {
271
-          Name: "doc_1008.png",
272
-          Fun: "goto",
273
-          Url: "school?ID=855"
274
-        },
275
-        {
276
-          Name: "doc_1009.png",
277
-          Fun: "goto",
278
-          Url: "school?ID=856"
279
-        },
280
-        {
281
-          Name: "doc_1010.png",
282
-          Fun: "goto",
283
-          Url: "school?ID=857"
284
-        },
285
-        {
286
-          Name: "doc_1011.png",
287
-          Fun: "goto",
288
-          Url: "school?ID=858"
289
-        },
290
-        {
291
-          Name: "doc_1012.png",
292
-          Fun: "goto",
293
-          Url: "school?ID=859"
294
-        },
295
-        {
296
-          Name: "doc_1013.png",
297
-          Fun: "goto",
298
-          Url: "school?ID=860"
299
-        },
300
-        {
301
-          Name: "doc_1014.png",
302
-          Fun: "goto",
303
-          Url: "school?ID=861"
304
-        },
305
-        {
306
-          Name: "doc_1015.png",
307
-          Fun: "goto",
308
-          Url: "school?ID=862"
309
-        },
310
-        {
311
-          Name: "doc_1016.png",
312
-          Fun: "goto",
313
-          Url: "school?ID=863"
314
-        },
315
-        {
316
-          Name: "doc_1017.png",
317
-          Fun: "goto",
318
-          Url: "search"
319
-        },
320
-      ]
321
-    },
322
-    {
323
-      ID: 1,
324
-      Category: "信息整理",
325
-      Logo: "icon_sys_01.png",
326
-      Title: "填报志愿6组常见名词解释",
327
-      TitleShort: "上海中招常见名词解释",
328
-      Content: [{
329
-          Name: "doc_0101.png"
330
-        },
331
-        {
332
-          Name: "doc_0102.png"
333
-        },
334
-        {
335
-          Name: "doc_0103.png",
336
-        },
337
-        {
338
-          Name: "doc_0104.png",
339
-          Fun: "reLaunch",
340
-          Url: "default"
341
-        },
342
-        {
343
-          Name: "doc_0105.png"
344
-        },
345
-        {
346
-          Name: "doc_0106.png",
347
-          Fun: "reLaunch",
348
-          Url: "default"
349
-        },
350
-        {
351
-          Name: "doc_0107.png"
352
-        },
353
-        {
354
-          Name: "doc_0108.png"
355
-        },
356
-        {
357
-          Name: "doc_0109.png"
358
-        },
359
-        {
360
-          Name: "doc_0110.png"
361
-        },
362
-        {
363
-          Name: "doc_0111.png"
364
-        },
365
-        {
366
-          Name: "doc_0112.png"
367
-        },
368
-        {
369
-          Name: "doc_0113.png"
370
-        },
371
-        {
372
-          Name: "doc_0114.png"
373
-        },
374
-        {
375
-          Name: "doc_0115.png"
376
-        }
377
-      ]
378
-    },
379
-    {
380
-      ID: 2,
381
-      Category: "数据图表",
382
-      Logo: "icon_sys_02.png",
383
-      Title: "2023年19所市特色普通高中自主招生情况",
384
-      TitleShort: "上海特色高中自主招生信息",
385
-      TitleImage: "doc_0200.png",
386
-      Content: [{
387
-          Name: "doc_0201.png"
388
-        },
389
-        {
390
-          Name: "doc_0202.png",
391
-          Fun: "showImage",
392
-          Url: "post_0201.png"
393
-        },
394
-        {
395
-          Name: "doc_0203.png",
396
-          Fun: "goto",
397
-          Url: "school?ID=82"
398
-        },
399
-        {
400
-          Name: "doc_0204.png",
401
-          Fun: "goto",
402
-          Url: "school?ID=94"
403
-        },
404
-        {
405
-          Name: "doc_0205.png",
406
-          Fun: "goto",
407
-          Url: "school?ID=100"
408
-        },
409
-        {
410
-          Name: "doc_0206.png",
411
-          Fun: "goto",
412
-          Url: "school?ID=114"
413
-        },
414
-        {
415
-          Name: "doc_0207.png",
416
-          Fun: "goto",
417
-          Url: "school?ID=115"
418
-        },
419
-        {
420
-          Name: "doc_0208.png",
421
-          Fun: "goto",
422
-          Url: "school?ID=116"
423
-        },
424
-        {
425
-          Name: "doc_0209.png",
426
-          Fun: "goto",
427
-          Url: "school?ID=117"
428
-        },
429
-        {
430
-          Name: "doc_0210.png",
431
-          Fun: "goto",
432
-          Url: "school?ID=132"
433
-        },
434
-        {
435
-          Name: "doc_0211.png",
436
-          Fun: "goto",
437
-          Url: "school?ID=143"
438
-        },
439
-        {
440
-          Name: "doc_0212.png",
441
-          Fun: "goto",
442
-          Url: "school?ID=167"
443
-        },
444
-        {
445
-          Name: "doc_0213.png",
446
-          Fun: "goto",
447
-          Url: "school?ID=181"
448
-        },
449
-        {
450
-          Name: "doc_0214.png",
451
-          Fun: "goto",
452
-          Url: "school?ID=192"
453
-        },
454
-        {
455
-          Name: "doc_0215.png",
456
-          Fun: "goto",
457
-          Url: "school?ID=193"
458
-        },
459
-        {
460
-          Name: "doc_0216.png",
461
-          Fun: "goto",
462
-          Url: "school?ID=194"
463
-        },
464
-        {
465
-          Name: "doc_0217.png",
466
-          Fun: "goto",
467
-          Url: "school?ID=239"
468
-        },
469
-        {
470
-          Name: "doc_0218.png",
471
-          Fun: "goto",
472
-          Url: "school?ID=241"
473
-        },
474
-        {
475
-          Name: "doc_0219.png",
476
-          Fun: "goto",
477
-          Url: "school?ID=268"
478
-        },
479
-        {
480
-          Name: "doc_0220.png",
481
-          Fun: "goto",
482
-          Url: "school?ID=91"
483
-        },
484
-        {
485
-          Name: "doc_0221.png",
486
-          Fun: "goto",
487
-          Url: "school?ID=256"
488
-        },
489
-        {
490
-          Name: "doc_0222.png",
491
-          Fun: "goto",
492
-          Url: "search"
493
-        },
494
-        {
495
-          Name: "doc_0223.png"
496
-        },
497
-        {
498
-          Name: "doc_0224.png"
499
-        },
500
-      ]
501
-    },
502
-    {
503
-      ID: 3,
504
-      Category: "数据图表",
505
-      Logo: "icon_sys_02.png",
506
-      Title: "2023年体育“一条龙”市级优秀体育学生招收学校和项目",
507
-      TitleShort: "上海优秀体育生中招信息",
508
-      TitleImage: "doc_0300.png",
509
-      Content: [{
510
-          Name: "doc_0301.png"
511
-        },
512
-        {
513
-          Name: "doc_0302.png"
514
-        },
515
-        {
516
-          Name: "doc_0303.png",
517
-          Fun: "showImage",
518
-          Url: "post_0301.png"
519
-        },
520
-        {
521
-          Name: "doc_0304.png"
522
-        },
523
-        {
524
-          Name: "doc_0305.png"
525
-        }
526
-      ]
527
-    },
528
-    {
529
-      ID: 4,
530
-      Category: "数据图表",
531
-      Logo: "icon_sys_02.png",
532
-      Title: "2023年艺术“一条龙”市级艺术骨干学生招收学校、项目和艺术团汇总",
533
-      TitleShort: "上海艺术骨干生中招信息",
534
-      TitleImage: "doc_0400.png",
535
-      Content: [{
536
-          Name: "doc_0401.png"
537
-        },
538
-        {
539
-          Name: "doc_0402.png"
540
-        },
541
-        {
542
-          Name: "doc_0403.png",
543
-          Fun: "showImage",
544
-          Url: "post_0401.png"
545
-        },
546
-        {
547
-          Name: "doc_0404.png"
548
-        },
549
-        {
550
-          Name: "doc_0405.png",
551
-          Fun: "showImage",
552
-          Url: "post_0402.png"
553
-        }
554
-      ]
555
-    },
556
-    {
557
-      ID: 5,
558
-      Category: "数据图表",
559
-      Logo: "icon_sys_02.png",
560
-      Title: "2023年国际课程班和中外合作办学自主招生计划情况",
561
-      TitleShort: "上海国际班中考招生信息",
562
-      TitleImage: "doc_0500.png",
563
-      Content: [{
564
-          Name: "doc_0501.png"
565
-        },
566
-        {
567
-          Name: "doc_0502.png"
568
-        },
569
-        {
570
-          Name: "doc_0503.png",
571
-          Fun: "showImage",
572
-          Url: "post_0501.png"
573
-        },
574
-        {
575
-          Name: "doc_0504.png"
576
-        },
577
-        {
578
-          Name: "doc_0505.png"
579
-        },
580
-        {
581
-          Name: "doc_0506.png"
582
-        }
583
-      ]
584
-    },
585
-    {
586
-      ID: 6,
587
-      Category: "数据图表",
588
-      Logo: "icon_sys_02.png",
589
-      Title: "中考考试科目和分值设置",
590
-      TitleShort: "上海中考科目和分值设置",
591
-      TitleImage: "doc_0600.png",
592
-      Content: [{
593
-          Name: "doc_0601.png"
594
-        },
595
-        {
596
-          Name: "doc_0602.png",
597
-          Fun: "showImage",
598
-          Url: "post_0601.png"
599
-        },
600
-        {
601
-          Name: "doc_0603.png"
602
-        },
603
-        {
604
-          Name: "doc_0604.png"
605
-        }
606
-      ]
607
-    },
608
-    {
609
-      ID: 7,
610
-      Category: "数据图表",
611
-      Logo: "icon_sys_02.png",
612
-      Title: "2023年政策性照顾加分和同分优待情况",
613
-      TitleShort: "上海中考加分有待信息",
614
-      TitleImage: "doc_0700.png",
615
-      Content: [{
616
-          Name: "doc_0701.png"
617
-        },
618
-        {
619
-          Name: "doc_0702.png"
620
-        },
621
-        {
622
-          Name: "doc_0703.png",
623
-          Fun: "showImage",
624
-          Url: "post_0701.png"
625
-        },
626
-        {
627
-          Name: "doc_0704.png"
628
-        }
629
-      ]
630
-    },
631
-    {
632
-      ID: 8,
633
-      Category: "数据图表",
634
-      Logo: "icon_sys_02.png",
635
-      Title: "查询录取去向官方网站公众号汇总",
636
-      TitleShort: "上海中招信息官方渠道汇总",
637
-      TitleImage: "doc_0800.png",
638
-      Content: [{
639
-          Name: "doc_0801.png"
640
-        },
641
-        {
642
-          Name: "doc_0802.png",
643
-          Fun: "showImage",
644
-          Url: "post_0801.png"
645
-        },
646
-        {
647
-          Name: "doc_0803.png",
648
-          Fun: "showImage",
649
-          Url: "post_0801.png"
650
-        }
651
-      ]
652
-    },
653
-    {
654
-      ID: 9,
655
-      Category: "信息整理",
656
-      Logo: "icon_sys_01.png",
657
-      Title: "招生志愿信息样表",
658
-      TitleShort: "上海中招录取志愿样表",
659
-      Content: [{
660
-          Name: "doc_0901.png"
661
-        },
662
-        {
663
-          Name: "doc_0902.png",
664
-          Fun: "showImage",
665
-          Url: "post_0901.png"
666
-        },
667
-      ]
668
-    },
669
-  ],
670 232
   arrSchoolSearch: [{
671 233
       Name: "上海市上海中学",
672 234
       ImageUrl: "0001_01.jpeg",

+ 13 - 0
utils/main.js

@@ -176,6 +176,18 @@ function getCollect(callback) {
176 176
   }
177 177
 }
178 178
 
179
+function gotoMiniprogram(SourceID){
180
+  wx.navigateToMiniProgram({
181
+    appId: "wx84b3feac6069eec3",
182
+    path: "pages/index/index?SourceID="+SourceID,
183
+    extraData: {
184
+    },
185
+    success(res) {
186
+      // 打开成功
187
+    }
188
+  });
189
+}
190
+
179 191
 function goto(e) {
180 192
   if (app.globalData.IsGoto){
181 193
     app.globalData.IsGoto=false;
@@ -199,5 +211,6 @@ module.exports = {
199 211
   returnTop:returnTop,
200 212
   getBaiduToken: getBaiduToken,
201 213
   getCollect: getCollect,
214
+  gotoMiniprogram:gotoMiniprogram,
202 215
   goto:goto,
203 216
 }