chengjie před 3 měsíci
rodič
revize
c8614b0ca3
58 změnil soubory, kde provedl 1175 přidání a 138 odebrání
  1. 7 6
      app.js
  2. 18 0
      app.json
  3. 2 1
      app.wxss
  4. binární
      packageProduct/images/icon_add_01.png
  5. binární
      packageProduct/images/icon_check_01.png
  6. binární
      packageProduct/images/pdt_a01.png
  7. binární
      packageProduct/images/pdt_a02.png
  8. binární
      packageProduct/images/pdt_a03.png
  9. binární
      packageProduct/images/pdt_a04.png
  10. binární
      packageProduct/images/pdt_a05.png
  11. binární
      packageProduct/images/pdt_a07.png
  12. binární
      packageProduct/images/pdt_b01.png
  13. binární
      packageProduct/images/pdt_b02.png
  14. binární
      packageProduct/images/pdt_b03.gif
  15. binární
      packageProduct/images/pdt_b04.png
  16. binární
      packageProduct/images/pdt_b05.png
  17. binární
      packageProduct/images/pdt_b06.png
  18. binární
      packageProduct/images/pdt_b07.gif
  19. binární
      packageProduct/images/pdt_b08.png
  20. binární
      packageProduct/images/pdt_b09.png
  21. 266 0
      packageProduct/main/feedbackinfo.js
  22. 6 0
      packageProduct/main/feedbackinfo.json
  23. 46 0
      packageProduct/main/feedbackinfo.wxml
  24. 162 0
      packageProduct/main/feedbackinfo.wxss
  25. 72 0
      packageProduct/main/product.js
  26. 4 0
      packageProduct/main/product.json
  27. 112 0
      packageProduct/main/product.wxml
  28. 181 0
      packageProduct/main/product.wxss
  29. binární
      pages/images/ad_09.png
  30. binární
      pages/images/pic_01.png
  31. binární
      pages/images/yjbdc1.gif
  32. binární
      pages/images/yjbdc2.gif
  33. 3 4
      pages/index/index.js
  34. 4 12
      pages/main/default.js
  35. 3 3
      pages/main/default.json
  36. 36 10
      pages/main/default.wxml
  37. 61 5
      pages/main/default.wxss
  38. 17 9
      pages/main/district.js
  39. 3 5
      pages/main/district.wxml
  40. 18 0
      pages/main/district.wxss
  41. 1 0
      pages/main/feedbackinfo.js
  42. 29 0
      pages/main/feedbackresult.js
  43. 3 0
      pages/main/feedbackresult.json
  44. 11 0
      pages/main/feedbackresult.wxml
  45. 43 0
      pages/main/feedbackresult.wxss
  46. 1 1
      pages/main/recruitment.js
  47. 2 2
      pages/main/school.js
  48. 13 19
      pages/main/school.wxml
  49. 23 17
      pages/main/school.wxss
  50. 13 1
      pages/main/scoreline.js
  51. 2 2
      pages/main/scoreline.wxml
  52. 0 1
      pages/main/userinfo.js
  53. 2 2
      pages/main/userinfo.json
  54. 1 1
      pages/main/userinfo.wxml
  55. 4 4
      pages/main/userinfo.wxss
  56. 6 6
      pages/template/componentList.wxml
  57. 0 11
      utils/constant.js
  58. 0 16
      utils/main.js

+ 7 - 6
app.js

@@ -1,16 +1,16 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "1.0.39",
4
-    IsProduction: true,
3
+    Version: "1.1.8",
4
+    //IsProduction: true,
5 5
     ShareTitle: "上海中考招生信息查询工具",
6 6
     SharePath: "pages/index/index",
7 7
     ShareImage: '../images/fs_a01.png',
8 8
     ProgramID: 173,
9 9
     ProgramName: "秒过分数线",
10 10
     AppID: "wx39bc498e7fdacb6b",
11
-    serverUrl: "https://www.kylx365.com/apiData/",
12
-    serverUrlServer: "https://www.kylx365.com/apiData/",
13
-    serverUrlLocalhost: "http://localhost:3020/apiData/",
11
+    serverUrl: "https:/scoreline.kylx365.com/apiData/",
12
+    serverUrlServer: "https://scoreline.kylx365.com/apiData/",
13
+    serverUrlLocalhost: "http://localhost:3000/apiData/",
14 14
     uploadImageUrl: "https://miaguo-1253256735.file.myqcloud.com/",
15 15
     IsIOS: true,
16 16
     IsAndroid: false,
@@ -28,7 +28,8 @@ App({
28 28
     TempParam: "", //临时参数
29 29
     MyWish: {}, //我的福帖
30 30
     FeedbackUrl:"",
31
-    ArticleList:[]  //文章列表 
31
+    ArticleList:[],  //文章列表 
32
+    ArrYear:[],//年份列表
32 33
   },
33 34
   onLaunch: function (options) {
34 35
     this.getSystemInfo();

+ 18 - 0
app.json

@@ -17,6 +17,7 @@
17 17
     "pages/main/subscribe",
18 18
     "pages/main/feedbackinfo",
19 19
     "pages/main/imagelist",
20
+    "pages/main/feedbackresult",
20 21
     "pages/main/district"
21 22
   ],
22 23
   "permission": {
@@ -46,6 +47,23 @@
46 47
     "backgroundColor": "#F0F0F0",
47 48
     "enablePullDownRefresh": false
48 49
   },
50
+  "subPackages": [
51
+    {
52
+      "root": "packageProduct",
53
+      "pages": [
54
+        "main/product",
55
+        "main/feedbackinfo"
56
+      ]
57
+    }
58
+  ],
59
+  "preloadRule": {
60
+    "packageProduct/main/product": {
61
+      "network": "all",
62
+      "packages": [
63
+        "packageProduct"
64
+      ]
65
+    }
66
+  },
49 67
   "style": "v2",
50 68
   "sitemapLocation": "sitemap.json"
51 69
 }

+ 2 - 1
app.wxss

@@ -407,6 +407,7 @@
407 407
   font-family: 'Roboto-Black';
408 408
   margin-left: 20rpx;
409 409
 }
410
+
410 411
 .panelScoreNumber01Null{
411 412
   font-size: 24rpx;
412 413
   font-weight: 400;
@@ -618,7 +619,7 @@
618 619
   right:0;
619 620
   border-top-left-radius: 40rpx;
620 621
   background-color: #1e1e1e;
621
-  z-index: 10;
622
+  z-index: 30;
622 623
   color:#fff;
623 624
   font-size: 24rpx;
624 625
   flex-wrap: wrap;

binární
packageProduct/images/icon_add_01.png


binární
packageProduct/images/icon_check_01.png


binární
packageProduct/images/pdt_a01.png


binární
packageProduct/images/pdt_a02.png


binární
packageProduct/images/pdt_a03.png


binární
packageProduct/images/pdt_a04.png


binární
packageProduct/images/pdt_a05.png


binární
packageProduct/images/pdt_a07.png


binární
packageProduct/images/pdt_b01.png


binární
packageProduct/images/pdt_b02.png


binární
packageProduct/images/pdt_b03.gif


binární
packageProduct/images/pdt_b04.png


binární
packageProduct/images/pdt_b05.png


binární
packageProduct/images/pdt_b06.png


binární
packageProduct/images/pdt_b07.gif


binární
packageProduct/images/pdt_b08.png


binární
packageProduct/images/pdt_b09.png


+ 266 - 0
packageProduct/main/feedbackinfo.js

@@ -0,0 +1,266 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+import constant from '../../utils/constant';
4
+
5
+const app = getApp();
6
+
7
+Page({
8
+  data: {
9
+    Feedback:[
10
+      {
11
+        Name: "纠错",
12
+        CSS: "Selected"
13
+      },
14
+      {
15
+        Name: "提供内容",
16
+        CSS: ""
17
+      },
18
+      {
19
+        Name: "产品建议",
20
+        CSS: ""
21
+      },
22
+    ],
23
+    ImageArr:[],
24
+    ImagePath: app.globalData.uploadImageUrl,
25
+  },
26
+  onLoad: function (options) {
27
+    var that = this;
28
+    var feedbackType=0;
29
+    if (options.type){
30
+      that.data.Feedback[0].CSS="";
31
+      that.data.Feedback[options.type].CSS="Selected";
32
+    }
33
+
34
+    that.setData({
35
+      Containnerheight: main.getWindowHeight(),
36
+      IsShow:app.globalData.userInfo.IsShow,
37
+      Feedback:that.data.Feedback,
38
+    });
39
+    main.checkGenerating();
40
+  },
41
+  bindKeyInput:function(e){
42
+    var that=this;
43
+    that.setData({
44
+      InputValue:e.detail.value,
45
+    });
46
+  },
47
+  bindKeyInput2:function(e){
48
+    var that=this;
49
+    that.setData({
50
+      InputValue2:e.detail.value,
51
+    });
52
+  },
53
+  saveFeedback:function(){
54
+    var that=this;
55
+    if (!that.data.InputValue){
56
+      wx.showToast({
57
+        title: '请填写内容',
58
+      });
59
+    }
60
+    else if (that.data.InputValue.length<5){
61
+      wx.showToast({
62
+        title: '请多写点内容',
63
+      });
64
+    }
65
+    else{
66
+
67
+      wx.showLoading({
68
+        title: '保存中',
69
+        mask: true,
70
+      });
71
+      
72
+
73
+      that.uploadImageAll(that.data.ImageArr,function (success,arrResult) {
74
+        if (success) {
75
+          wx.hideLoading();         
76
+          var param={};
77
+          param.ProgramID=186;
78
+          param.UserID=app.globalData.userInfo.UserID;
79
+          param.Content=that.data.InputValue;
80
+          param.ContactTa=that.data.InputValue2;
81
+          param.FeedbackType=[];
82
+          for(var i=0;i<that.data.Feedback.length;i++){
83
+            if (that.data.Feedback[i].CSS=="Selected")
84
+              param.FeedbackType.push(that.data.Feedback[i].Name);
85
+          }
86
+          param.FeedbackType=param.FeedbackType.join(",");
87
+          
88
+          if (arrResult.length>0)
89
+            param.ImageUrl1=arrResult[0].Target;
90
+          if (arrResult.length>1)
91
+            param.ImageUrl2=arrResult[1].Target;
92
+          if (arrResult.length>2)
93
+            param.ImageUrl3=arrResult[2].Target;
94
+          if (arrResult.length>3)
95
+            param.ImageUrl4=arrResult[3].Target;
96
+
97
+          param.FeedbackUrl=app.globalData.FeedbackUrl;
98
+            
99
+          main.postData('MPSFeedback', param, function (data) {
100
+            wx.showModal({
101
+              title: '提醒',
102
+              content: '您的反馈已经收到,我们会尽快处理。感谢您的支持!',
103
+              showCancel: false,
104
+              complete: (res) => {
105
+                if (res.confirm) {
106
+                  wx.navigateBack({
107
+                    delta: 1
108
+                  });
109
+                }
110
+              }
111
+            });
112
+          });
113
+
114
+        } else {
115
+          wx.showToast({
116
+            title: '图片上传失败',
117
+            image: "../images/universalpic_exclamation_white_120x120.png",
118
+            mask: true,
119
+          });
120
+        }
121
+      });
122
+    }
123
+  },
124
+  //选择图片上传
125
+  uploadImageField: function () {
126
+    //console.log("uploadImageStart");
127
+    var that = this;
128
+
129
+    //若是安卓机
130
+    if (app.globalData.IsAndroid) {
131
+      selectImage(that);
132
+    } else {
133
+      wx.showActionSheet({
134
+        itemList: ['拍照', '从手机相册选择'],
135
+        success(res) {
136
+          if (res.tapIndex == 0) {
137
+            wx.chooseImage({
138
+              count: 1,
139
+              sizeType: ['compressed'],
140
+              sourceType: ['camera'],
141
+              success(res2) {
142
+                wx.showLoading({
143
+                  title: '请稍候',
144
+                  mask: true,
145
+                });
146
+                setTimeout(function () {
147
+                  wx.hideLoading();
148
+                  selectImage(that);
149
+                }, 2000);
150
+              },
151
+            });
152
+          } else if (res.tapIndex == 1) {
153
+            selectImage(that);
154
+          }
155
+        },
156
+        fail(res) {
157
+          console.log(res.errMsg)
158
+        }
159
+      });
160
+    }
161
+
162
+    function selectImage(that) {
163
+      var sizeType = ['album'];
164
+      //若是安卓机
165
+      if (app.globalData.IsAndroid)
166
+        sizeType = ['album', 'camera'];
167
+
168
+      wx.chooseImage({
169
+        count: 1,
170
+        sizeType: ['compressed'],
171
+        sourceType: sizeType,
172
+        success(res) {
173
+          // tempFilePath可以作为img标签的src属性显示图片
174
+          var tempFilePaths = res.tempFilePaths;
175
+          //console.log(tempFilePaths[0]);
176
+          //that.data.FieldContent = that.data.FieldContent + "[图 url='" + tempFilePaths[0] + "']" + tempFilePaths[0] + "[/图]";
177
+          that.data.ImageArr.push(tempFilePaths[0]);
178
+          that.setData({
179
+            ImageArr:that.data.ImageArr,
180
+          });
181
+        },
182
+        fail: function () {
183
+
184
+        }
185
+      });
186
+    }
187
+  },
188
+  uploadFileToServer: function (file, callback) {
189
+    var url = common.Encrypt("MiaoguoUploadFile2");
190
+    wx.showLoading({
191
+      title: '上传中',
192
+      mask: true,
193
+    });
194
+    url=app.globalData.serverUrl + url;
195
+    wx.uploadFile({
196
+      url: url,
197
+      filePath: file,
198
+      name: 'file',
199
+      success(res) {
200
+        var err = JSON.parse(res.data);
201
+        if (err.errcode == 10000) {
202
+          wx.hideLoading();
203
+          callback(err.result);
204
+        } else {
205
+          wx.hideLoading();
206
+          wx.showModal({
207
+            title: '上传文件失败1',
208
+            showCancel: false,
209
+            content: JSON.stringify(err.errMsg),
210
+          });
211
+        }
212
+      },
213
+      fail: function (err) {
214
+        wx.hideLoading();
215
+        wx.showModal({
216
+          title: '上传文件失败2',
217
+          showCancel: false,
218
+          content: JSON.stringify(err)+" url:"+url,
219
+        });
220
+      }
221
+    });
222
+  },
223
+
224
+  uploadImageAll: function (arr, callback) {
225
+    var that = this;
226
+    var b = false;
227
+    var arrResult = [];
228
+    for (var i = 0; i < arr.length; i++) {
229
+      var source = arr[i];
230
+      that.uploadFileToServer(source, function (data) {
231
+        if (data) {
232
+          var result = data;
233
+          result.Target = app.globalData.uploadImageUrl + result.Target;
234
+          arrResult.push(result);
235
+        }
236
+      });
237
+    }
238
+
239
+    //检查是否上传成功
240
+    setTimeout(function () {
241
+      if (arrResult.length==arr.length)
242
+        callback(true, arrResult);
243
+    }, 2000);
244
+  },
245
+  goto: function (e) {
246
+    main.goto(e);
247
+  },
248
+  onSelect:function(event){
249
+    var that=this;
250
+    main.onSelect(that,event,function(obj,e,result){
251
+      if (e.currentTarget.dataset.object=="Feedback"){
252
+        
253
+      }
254
+    });   
255
+  },
256
+  onShareTimeline: function () {
257
+    return this.onShareAppMessage();
258
+  },
259
+  onShareAppMessage: function () {
260
+    return {
261
+      title: app.globalData.ShareTitle,
262
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
263
+      imageUrl: app.globalData.ShareImage,
264
+    }
265
+  },
266
+})

+ 6 - 0
packageProduct/main/feedbackinfo.json

@@ -0,0 +1,6 @@
1
+{
2
+  "navigationBarTitleText": "用户反馈",
3
+  "navigationBarBackgroundColor": "#F0F0F0",
4
+  "navigationBarTextStyle": "black",
5
+  "backgroundColor": "#F0F0F0"
6
+}

+ 46 - 0
packageProduct/main/feedbackinfo.wxml

@@ -0,0 +1,46 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panelBasicCss panel1 FlexColumn">
3
+    <view class="text01">本次反馈属于以下哪一种</view>
4
+    <view class="panel11 FlexRow">
5
+      <view class="panelCheckbox panelCheckbox{{item.CSS}} FlexRow" wx:for="{{Feedback}}" wx:key="index"
6
+        bindtap="onSelect" data-object="Feedback" data-index="{{index}}" data-clicktype="checkbox">
7
+        <view class="panelCheckboxCircle panelCheckboxCircle{{item.CSS}} FlexRow">
8
+          <image wx:if="{{item.CSS}}" class="panelCheckbox_icon_check_01" src="../images/icon_check_01.png"></image>
9
+        </view>
10
+        <view>{{item.Name}}</view>
11
+      </view>
12
+    </view> 
13
+  </view>
14
+  <view class="panelBasicCss panel2 FlexColumn">
15
+    <view class="text01">留言</view>
16
+    <view class="panelLine3"></view>
17
+    <textarea class="text02" bindinput="bindKeyInput" value="{{InputValue}}" maxlength="800" placeholder="请填写至少5个汉字以上内容,以便我们准确理解您的意思。" placeholder-style="color:#9b9b9b;font-size:28rpx;font-weight:400;" />
18
+  </view>
19
+  <view class="panelBasicCss panel3 FlexColumn">
20
+    <view class="panel31 FlexRow">
21
+      <view class="text04">相关截图(选填)</view>
22
+      <view class="text03 FlexRow">
23
+        {{ImageArr.length}} / 4
24
+      </view>
25
+    </view>
26
+    <view class="text05">劳烦提供截图,并将错处做个记号。万分感谢。</view>
27
+    <view class="panel32 FlexRow">
28
+      <view class="panel311 FlexColumn" wx:for="{{ImageArr}}" wx:key="index">
29
+        <image class="ImageUpload" mode="aspectFill" src="{{item}}"></image>
30
+      </view>
31
+      <view class="panel311 FlexColumn" wx:key="index" wx:if="{{ImageArr.length<4}}" bindtap="uploadImageField">
32
+        <image class="icon_add_01" src="../images/icon_add_01.png"></image>
33
+      </view>
34
+    </view>
35
+  </view>
36
+
37
+  <view class="panelBasicCss panel4 FlexColumn" wx:if="{{IsShow}}">
38
+    <view class="text01">联系方式</view>
39
+    <view class="panelLine3"></view>
40
+    <textarea class="text06" bindinput="bindKeyInput2" value="{{InputValue2}}" maxlength="100" placeholder="您的联系方式" placeholder-style="color:#9b9b9b;font-size:28rpx;font-weight:400;" />
41
+  </view>
42
+  
43
+  <view class="btn" bindtap="saveFeedback">提交</view>
44
+
45
+  <view style="height:200rpx"></view>
46
+</view>

+ 162 - 0
packageProduct/main/feedbackinfo.wxss

@@ -0,0 +1,162 @@
1
+
2
+.container {
3
+  width:100%;
4
+  color: #4D4D4D;
5
+  justify-content: flex-start;
6
+  font-weight: 700;
7
+  background-color: #F2F2F2;
8
+} 
9
+
10
+.panelBasicCss{
11
+  border-radius: 20rpx;
12
+  background-color: #fff;
13
+  width:710rpx;
14
+  min-height:10rpx;
15
+  position: relative;
16
+  margin-top: 30rpx;
17
+}
18
+
19
+
20
+.panel1{
21
+  height:223rpx;
22
+  align-items: flex-start;
23
+}
24
+
25
+.text01{
26
+  font-size:32rpx;
27
+  margin:0 0 0 40rpx;
28
+  align-self: start;
29
+}
30
+.panel11{
31
+  margin:30rpx 0 0 40rpx;
32
+}
33
+
34
+
35
+.panelCheckbox{
36
+  height:48rpx;
37
+  background-color: #fff;
38
+  border:2rpx solid #E8E6E4;
39
+  border-radius: 10rpx;
40
+  margin-right: 10rpx;
41
+  font-size: 20rpx;
42
+  padding: 0 20rpx;
43
+}
44
+.panelCheckboxSelected{
45
+  background-color: #FCE9E3;
46
+  color:#EB5C28;
47
+  border:2rpx solid #FCE9E3;
48
+}
49
+.panelCheckboxCircle{
50
+  border-radius: 50%;
51
+  width: 30rpx;
52
+  height: 30rpx;
53
+  border: 2rpx solid #E8E6E4;
54
+  margin-right: 10rpx;
55
+}
56
+.panelCheckboxCircleSelected{
57
+  background-color: #EB5C28;
58
+  border: 2rpx solid #EB5C28;
59
+}
60
+
61
+.panelCheckbox_icon_check_01{
62
+  width: 16rpx;
63
+  height: 12rpx;
64
+}
65
+
66
+
67
+.panel2{
68
+  height:526rpx;
69
+}
70
+
71
+.panelLine3{
72
+  width:630rpx;
73
+  background-color: #d2d2d2;
74
+  height:1rpx;
75
+  margin-top: 30rpx;
76
+}
77
+
78
+.text02{
79
+  width:630rpx;
80
+  height:320rpx;
81
+  font-size: 28rpx;
82
+  font-weight: 400;
83
+  color:#2e2e2e;
84
+  margin-top: 30rpx;
85
+}
86
+
87
+.text03{
88
+  font-size: 32rpx;
89
+}
90
+
91
+.panel3{
92
+  justify-content: flex-start;
93
+}
94
+
95
+.panel31{
96
+  width:630rpx;
97
+  justify-content: space-between;
98
+  margin-top: 50rpx;
99
+}
100
+
101
+.text04{
102
+  font-size:32rpx;
103
+  align-self: start;
104
+}
105
+.text05{
106
+  font-size:24rpx;
107
+  font-weight: 400;
108
+  align-self: start;
109
+  margin:4rpx 0 0 40rpx;
110
+}
111
+
112
+.panel32{
113
+  justify-content: flex-start;
114
+  margin-top: 30rpx;
115
+  min-width: 630rpx;
116
+}
117
+
118
+.panel311{
119
+  width:140rpx;
120
+  height:140rpx;
121
+  border-radius: 10rpx;
122
+  background-color: #f0f0f0;
123
+  border:1rpx solid #d2d2d2;
124
+  margin: 0 20rpx 50rpx 0;
125
+}
126
+
127
+.ImageUpload{
128
+  width:140rpx;
129
+  height:140rpx;
130
+  border-radius: 10rpx;
131
+}
132
+
133
+.icon_add_01{
134
+  width:30rpx;
135
+  height:30rpx;
136
+}
137
+
138
+.panel4{
139
+  min-height:283rpx;
140
+}
141
+
142
+.text06{
143
+  width:630rpx;
144
+  height:50rpx;
145
+  font-size: 28rpx;
146
+  font-weight: 400;
147
+  color:#2e2e2e;
148
+  margin-top: 30rpx;
149
+}
150
+
151
+.btn{
152
+  width:710rpx;
153
+  height:110rpx;
154
+  line-height: 110rpx;
155
+  text-align: center;
156
+  border: 3rpx solid #EB5C28;
157
+  margin-top: 40rpx;
158
+  border-radius: 20rpx;
159
+  background-color: #FCE9E3;
160
+  color:#EB5C28;
161
+  font-size: 36rpx;
162
+}

+ 72 - 0
packageProduct/main/product.js

@@ -0,0 +1,72 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    IsIPhoneX:app.globalData.IsIPhoneX,
9
+    ProgramName:app.globalData.ProgramName,
10
+    Version:app.globalData.Version,
11
+  },
12
+  onLoad: function (options) {
13
+    let that = this;
14
+    that.setData({
15
+      Containnerheight: main.getWindowHeight(),
16
+    });
17
+
18
+    let bgcolor="",fcolor="";
19
+    main.getData('GetProgramList', function (data) {
20
+      if (data) {
21
+        for(let i=0;i<data.length;i++){
22
+          if (data[i].ID==app.globalData.ProgramID){
23
+            wx.setNavigationBarColor({
24
+              frontColor: data[i].FColor,
25
+              backgroundColor: data[i].BGColor,
26
+            });
27
+            that.setData({
28
+              BGColor:data[i].BGColor,
29
+              FColor:data[i].FColor,
30
+              ProgramList:data,
31
+            });
32
+            break;
33
+          }
34
+        }
35
+      }
36
+    });
37
+    
38
+  },
39
+  goto: function (e) {
40
+    let that=this;
41
+    var url=e.currentTarget.dataset.url;
42
+    wx.navigateTo({
43
+      url: url,
44
+    });
45
+  },
46
+  gotoRedirectTo: function (e) {
47
+    let that=this;
48
+    var url=e.currentTarget.dataset.url;
49
+    wx.redirectTo({
50
+      url: url,
51
+    });
52
+  },
53
+  switchProgram:function(e) {
54
+    var list = this.data.ProgramList;
55
+    for(let i=0;i<list.length;i++){
56
+      if (list[i].ID==e.currentTarget.dataset.id){
57
+        wx.navigateToMiniProgram({
58
+          appId: list[i].AppID,
59
+          path: list[i].PathUrl+"?SourceID="+app.globalData.ProgramID,
60
+        });
61
+        break;
62
+      }
63
+    }
64
+  },
65
+  onShareAppMessage: function () {
66
+    return {
67
+      title: app.globalData.ShareTitle,
68
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
69
+      imageUrl: app.globalData.ShareImage,
70
+    }
71
+  },
72
+})

+ 4 - 0
packageProduct/main/product.json

@@ -0,0 +1,4 @@
1
+{
2
+  "navigationBarTitleText": "秒过系列产品",
3
+  "usingComponents": {}
4
+}

+ 112 - 0
packageProduct/main/product.wxml

@@ -0,0 +1,112 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panel1 FlexColumn" style="background-color: {{BGColor}};color:{{FColor}}">
3
+    <text class="panel1Text" style="color:{{FColor}};">除了{{ProgramName}},「秒过」团队还为您准备了以下学习工具。点开就能用。</text>
4
+    <view class="pdt_a06a_triangle" style="border-top-color:{{BGColor}};"></view>
5
+  </view>
6
+
7
+  <view class="panel2 FlexColumn">
8
+    <view class="panel21 FlexRow">
9
+      <image src="../images/pdt_a01.png" class="pdt_a01"></image>
10
+    </view>
11
+    <view class="panel22 FlexRow">
12
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="105">
13
+        <image src="../images/pdt_b01.png" class="pdt_b01"></image>
14
+        <view class="panel2Text1">数学计算题</view>
15
+        <view class="panel2Text2">计算题(竖式)出题工具。包含小学阶段全部题型,适合打印卷子做笔算、批改。</view>
16
+      </view>
17
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="164">
18
+        <image src="../images/pdt_b02.png" class="pdt_b01"></image>
19
+        <view class="panel2Text1">口算星球</view>
20
+        <view class="panel2Text2">口算心算训练,包含小学全部口算题型,系统性提升效率、准确性和解题思维。</view>
21
+      </view>
22
+    </view>
23
+
24
+    <view class="panel21 FlexRow">
25
+      <image src="../images/pdt_a02.png" class="pdt_a01"></image>
26
+    </view>
27
+    <view class="panel22 FlexRow">
28
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="186">
29
+        <image src="../images/pdt_b03.gif" class="pdt_b01"></image>
30
+        <view class="panel2Text1">语境背单词</view>
31
+        <view class="panel2Text3">单词三剑客之一</view>
32
+        <view class="panel2Text2">在真实语境中理解单词含义和用法,用答题巩固记忆,破解记不牢、不会用难题。</view>
33
+      </view>
34
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="99">
35
+        <image src="../images/pdt_b02.png" class="pdt_b01"></image>
36
+        <view class="panel2Text1">自然拼读</view>
37
+        <view class="panel2Text3">单词三剑客之二</view>
38
+        <view class="panel2Text2">帮助孩子掌握英语单词发音规则,实现看词能读、听音能写的目标。</view>
39
+      </view>
40
+    </view>
41
+    
42
+    <view class="panel21 FlexRow">
43
+      <image src="../images/pdt_a03.png" class="pdt_a01"></image>
44
+    </view>
45
+    <view class="panel22 FlexRow">
46
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="98">
47
+        <image src="../images/pdt_b04.png" class="pdt_b01"></image>
48
+        <view class="panel2Text1">秒过拼音</view>
49
+        <view class="panel2Text2">拼音音节认读、声母韵母组合练习、前后鼻音平翘舌音对比练习、诗歌朗读示范。</view>
50
+      </view>
51
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="106">
52
+        <image src="../images/pdt_b05.png" class="pdt_b01"></image>
53
+        <view class="panel2Text1">秒过识字</view>
54
+        <view class="panel2Text2">一类字认读和默写工具(小学一到六年级课本同步),含笔顺、解释、发音点读。</view>
55
+      </view>
56
+    </view>
57
+
58
+    <view class="panel21 FlexRow">
59
+      <image src="../images/pdt_a04.png" class="pdt_a01 pdt_a04"></image>
60
+    </view>
61
+    <view class="panel22 FlexRow">
62
+      <view class="panel221 panel222 FlexColumn" bind:tap="switchProgram" data-id="166">
63
+        <image src="../images/pdt_b07.gif" class="pdt_b07"></image>
64
+        <view class="panel2Text1">秒过-错题记忆卡</view>
65
+        <view class="panel2Text3">单词三剑客之三</view>
66
+        <view class="panel2Text2 panel2Text5">基于艾宾浩斯记忆法,管理、练习孩子的所有背记问题。可直接解决语文字词、成语、古诗;英语词汇;数物化公式、定理;史地政等必考要点。</view>
67
+      </view>
68
+    </view>
69
+
70
+    <view class="panel21 FlexRow">
71
+      <image src="../images/pdt_a05.png" class="pdt_a01"></image>
72
+    </view>
73
+    <view class="panel22 FlexRow">
74
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="173">
75
+        <image src="../images/pdt_b08.png" class="pdt_b01"></image>
76
+        <view class="panel2Text1">秒过分数线</view>
77
+        <view class="panel2Text2">上海中考招生信息查询,填写志愿的好帮手。包括招生计划、分数线,学校信息。</view>
78
+      </view>
79
+      <view class="panel221 FlexColumn" bind:tap="switchProgram" data-id="90">
80
+        <image src="../images/pdt_b09.png" class="pdt_b01"></image>
81
+        <view class="panel2Text1">秒过专注力</view>
82
+        <view class="panel2Text2">心理学常用的注意力训练工具,锻炼集中注意力,提升手眼协调控制水平。</view>
83
+      </view>
84
+    </view>
85
+  </view>
86
+
87
+  <view class="panel3 FlexColumn">
88
+    <view class="panel31 FlexRow" bind:tap="goto" data-url="feedbackinfo">
89
+      <view class="panel3Text1">纠错与建议</view>
90
+      <image src="../images/pdt_a07.png" class="pdt_a07"></image>
91
+    </view>
92
+    <view class="panel3Line"></view>
93
+    <text class="panel3Text2"><text class="panel3Text3">诚恳声明:</text>如您发现产品提供的信息存在错误,欢迎您告诉我们,我们会力所能及的范围内持续完善,感谢您的帮助和支持!</text>
94
+    <text class="panel3Text4">©2025 {{ProgramName}}\n唱意教育微信小程序 版本 {{Version}}</text>
95
+  </view>
96
+
97
+  <view style="height: 200rpx;"></view>
98
+
99
+  <view class="panelFooterNav FlexColumn">
100
+    <view class="panelFooterNav2 FlexRow">
101
+      <view class="panelFooterNavBtn FlexColumn" bind:tap="goto" data-url="../../pages/main/default">
102
+        <view>分数线</view>
103
+        <view class="panelFooterNavLine"></view>
104
+      </view>
105
+      <view class="panelFooterNavBtn FlexColumn" >
106
+        <view>秒过</view>
107
+        <view class="panelFooterNavLine1"></view>
108
+      </view>
109
+    </view>
110
+    <view class="iphone10plus" wx:if="{{IsIPhoneX}}"></view>
111
+  </view>
112
+</view>

+ 181 - 0
packageProduct/main/product.wxss

@@ -0,0 +1,181 @@
1
+.container{
2
+  background-color: #E1D2B4;
3
+}
4
+.panel1{
5
+  width:100%;
6
+  background-color: #004433;
7
+}
8
+.panel1Text{
9
+  width:630rpx;
10
+  font-size: 28rpx;
11
+  color: #E9FFDF;
12
+  margin: 30rpx 0;
13
+}
14
+
15
+.pdt_a06a{
16
+  width: 54rpx;
17
+  height:20rpx;
18
+  position: absolute;
19
+  top:135rpx;
20
+  left:62rpx;
21
+  z-index: 10;
22
+}
23
+
24
+.pdt_a06a_triangle{
25
+  width: 0;
26
+  height: 0;
27
+  border-left: 18rpx solid transparent;
28
+  border-right: 35rpx solid transparent;
29
+  border-top: 20rpx solid #004433;
30
+  position: absolute;
31
+  top:135rpx;
32
+  left:62rpx;
33
+  z-index: 10;
34
+}
35
+
36
+
37
+.panel2{
38
+  width: 100%;
39
+  justify-content: flex-start;
40
+  margin-top: 20rpx;
41
+}
42
+.panel21{
43
+  width: 100%;
44
+  justify-content: flex-start;
45
+}
46
+.pdt_a01{
47
+  width:82rpx;
48
+  height:51rpx;
49
+  margin: 60rpx 0 40rpx 50rpx;
50
+}
51
+
52
+.panel22{
53
+  width:100%;
54
+}
55
+.panel221{
56
+  width:340rpx;
57
+  margin: 0 10rpx;
58
+  justify-content: flex-start;
59
+  align-items: flex-start;
60
+  color: #464044;
61
+  position: relative;
62
+}
63
+.pdt_b01{
64
+  width:340rpx;
65
+  height:280rpx;
66
+}
67
+.panel2Text1{
68
+  font-size: 36rpx;
69
+  margin: 30rpx 0 10rpx 20rpx;
70
+}
71
+.panel2Text2{
72
+  font-weight: 400;
73
+  font-size: 24rpx;
74
+  width: 300rpx;
75
+  margin: 0 0 0 20rpx;
76
+}
77
+.panel2Text3{
78
+  width: 100rpx;
79
+  text-align: right;
80
+  font-size: 20rpx;
81
+  font-weight: 400;
82
+  position: absolute;
83
+  top: 310rpx;
84
+  right:20rpx;
85
+}
86
+.pdt_a04{
87
+  width: 156rpx;
88
+}
89
+.panel222{
90
+  width: 700rpx;
91
+}
92
+.pdt_b07{
93
+  width: 700rpx;
94
+  height:280rpx;
95
+}
96
+.panel2Text5{
97
+  width:660rpx;
98
+}
99
+
100
+.panel3{
101
+  width:100%;
102
+  margin: 100rpx 0 0 0;
103
+}
104
+
105
+.panel31{
106
+  width:100%;
107
+  justify-content: space-between;
108
+  height:100rpx
109
+}
110
+.panel3Text1{
111
+  font-size: 28rpx;
112
+  color: #4D4D4D;
113
+  margin-left: 45rpx;
114
+}
115
+.pdt_a07{
116
+  width:16rpx;
117
+  height:26rpx;
118
+  margin-right: 75rpx;
119
+}
120
+.panel3Line{
121
+  width: 660rpx;
122
+  height:1rpx;
123
+  background-color: #574E55;
124
+}
125
+
126
+.panel3Text2{
127
+  width: 660rpx;
128
+  font-size: 20rpx;
129
+  color: #4D4D4D;
130
+  margin-top: 30rpx;
131
+  font-weight: 400;
132
+}
133
+.panel3Text3{
134
+  font-weight: 700;
135
+}
136
+.panel3Text4{
137
+  width: 660rpx;
138
+  margin: 50rpx 0 0 0;
139
+  font-size: 20rpx;
140
+  color: #464044;
141
+}
142
+
143
+
144
+.panelFooterNav{
145
+  width: 100%;
146
+  background-color: #fff;
147
+  color: #4D4D4D;
148
+  position: fixed;
149
+  bottom: 0;
150
+  z-index: 100;
151
+}
152
+.panelFooterNav2{
153
+  width:100%;
154
+  position: relative;
155
+  z-index: 100;
156
+}
157
+
158
+.panelFooterNavBtn{
159
+  width: 50%;
160
+  font-size: 36rpx;
161
+  height: 100rpx;
162
+  justify-content: flex-end;
163
+}
164
+.panelFooterNavLine{
165
+  width: 72rpx;
166
+  height:16rpx;
167
+  margin-top: 9rpx;
168
+  background-color: #fff;
169
+}
170
+.panelFooterNavLine1{
171
+  width: 72rpx;
172
+  height:16rpx;
173
+  margin-top: 9rpx;
174
+  background-color: #FFC868;
175
+}
176
+
177
+.iphone10plus{
178
+  width:100%;
179
+  height:30rpx;
180
+  background-color: #fff;
181
+}

binární
pages/images/ad_09.png


binární
pages/images/pic_01.png


binární
pages/images/yjbdc1.gif


binární
pages/images/yjbdc2.gif


+ 3 - 4
pages/index/index.js

@@ -179,6 +179,9 @@ Page({
179 179
           //debugger;
180 180
           app.globalData.userInfo.IsShow = isShow;
181 181
 
182
+          app.globalData.userInfo.ArrYear[0].ShortName=app.globalData.userInfo.ArrYear[0].Name.substr(2);
183
+          app.globalData.userInfo.ArrYear[1].ShortName=app.globalData.userInfo.ArrYear[1].Name.substr(2);
184
+
182 185
           wx.removeStorageSync("UserID");
183 186
           wx.removeStorageSync("UserName");
184 187
           wx.removeStorageSync("CollectList");
@@ -202,14 +205,10 @@ Page({
202 205
             }, 200);
203 206
           }
204 207
                     
205
-          that.getBaiduToken();
206 208
         }
207 209
       });
208 210
     });
209 211
   },
210
-  getBaiduToken: function () {
211
-    main.getBaiduToken();
212
-  },
213 212
   
214 213
   updateProgram: function () {
215 214
     const updateManager = wx.getUpdateManager();

+ 4 - 12
pages/main/default.js

@@ -6,28 +6,20 @@ const app = getApp();
6 6
 
7 7
 Page({
8 8
   data: {
9
+    IsIPhoneX:app.globalData.IsIPhoneX,
9 10
     ImagePath: app.globalData.uploadImageUrl,
10 11
     ArticleList:[],
11 12
     District:constant.arrDistrict,  
12 13
     Version:app.globalData.Version,
13
-    Years:constant.arrYear,
14 14
     YearIndex:0,
15 15
     HideAddProgram:1,
16 16
   },
17
-  adLoad() {
18
-    console.log('原生模板广告加载成功')
19
-  },
20
-  adError(err) {
21
-    console.error('原生模板广告加载失败', err)
22
-  },
23
-  adClose() {
24
-    console.log('原生模板广告关闭')
25
-  },
26 17
   onLoad: function (options) {
27 18
     var that = this;
28 19
     that.setData({
29 20
       Containnerheight: main.getWindowHeight(),
30 21
       IsShow:app.globalData.userInfo.IsShow,
22
+      Years:app.globalData.userInfo.ArrYear,
31 23
     });
32 24
 
33 25
     if (app.globalData.GotoUrl) {
@@ -149,8 +141,8 @@ Page({
149 141
     return this.onShareAppMessage();
150 142
   },
151 143
   gotoMiniprogram:function(e){
152
-    var appid=e.currentTarget.dataset.appid;
153
-    var path=e.currentTarget.dataset.path;
144
+    var appid=e.currentTarget.dataset.appid || "wx80059777521b897c";
145
+    var path=e.currentTarget.dataset.path || "pages/index/index?SourceID="+app.globalData.ProgramID;
154 146
     
155 147
     main.gotoMiniprogram(appid,path);
156 148
   },

+ 3 - 3
pages/main/default.json

@@ -1,7 +1,7 @@
1 1
 {
2
-  "navigationBarBackgroundColor": "#F8C324",
2
+  "navigationBarBackgroundColor": "#FFC868",
3 3
   "navigationBarTextStyle": "black",
4 4
   "navigationBarTitleText": "",
5
-  "backgroundColorTop":"#F8C324",
6
-  "backgroundColorBottom":"#F8C324"
5
+  "backgroundColorTop":"#FFC868",
6
+  "backgroundColorBottom":"#FFC868"
7 7
 }

+ 36 - 10
pages/main/default.wxml

@@ -4,10 +4,10 @@
4 4
   
5 5
   <view class="panel0 FlexRow" wx:if="{{Notice.IsShow}}">
6 6
     <view class="panel01 FlexColumn">
7
-      <view class="panel011">{{Notice.Content}}</view>
7
+      <text class="panel011">{{Notice.Content}}</text>
8 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>
9
+      <view class="panel013 FlexRow" bindtap="{{Notice.BottonClick}}" data-url="{{Notice.ButtonUrl}}" wx:if="{{Notice.ButtonTitle}}">
10
+        <image class="{{Notice.ButtonIcon}}" src="../images/{{Notice.ButtonIcon}}.png"></image>
11 11
         <view>{{Notice.ButtonTitle}}</view>
12 12
       </view>
13 13
     </view>
@@ -45,8 +45,13 @@
45 45
 
46 46
       
47 47
     </view>
48
-    <ad-custom class="ad_02" unit-id="adunit-5f05097bf0921da7" bindload="adLoad" binderror="adError" bindclose="adClose"></ad-custom>
49
-
48
+    <!-- <ad-custom class="ad_02" unit-id="adunit-5f05097bf0921da7" ></ad-custom> -->
49
+    <block wx:if="{{IsShow}}">
50
+      <view class="panelYJBDC FlexColumn">
51
+        <image class="yjbdc1" src="../images/yjbdc1.gif" bindtap="gotoMiniprogram" data-appid="wx80059777521b897c" data-path="pages/index/index?SourceID=173"></image>
52
+      </view>
53
+    </block>
54
+    
50 55
     <view class="panel114 FlexColumn" wx:if="{{IsShow}}">
51 56
       <view class="panel1141 FlexColumn">
52 57
         <view class="text12">中考祝福</view>
@@ -114,10 +119,11 @@
114 119
 
115 120
       <view class="panel4line03"></view>
116 121
     </view>
122
+
117 123
     
118 124
     <block wx:if="{{IsShow}}">
119 125
       <view class="panelRadio2 panelMarginTop FlexRow" style="margin: 80rpx 0 30rpx 40rpx;">
120
-      <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>
126
+      <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<3}}">{{item.Name}}年</view>
121 127
     </view>
122 128
     <view class="panel21 FlexColumn" >
123 129
       <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}}">
@@ -156,14 +162,15 @@
156 162
     </view>
157 163
     </block>
158 164
     
159
-    <block wx:if="{{IsShow}}">
165
+    <!-- <block wx:if="{{IsShow}}">
160 166
       <view class="panelScroll FlexRow" >
161 167
         <scroll-view class="scroll-view_H" scroll-x>
162 168
           <image class="adProgram" src="{{item.ImageUrl}}" bindtap="gotoMiniprogram" data-appid="{{item.AppID}}" data-path="{{item.Path}}" wx:for="{{ProgramList}}" wx:key="*this"/>
163 169
           <view style="width: 30rpx;height:100rpx;display: inline-block;"></view>
164 170
         </scroll-view>
165 171
       </view>
166
-    </block>
172
+    </block> -->
173
+
167 174
     <image class="line_05" src="../images/line_03.png"></image>
168 175
     <block wx:if="{{IsShow}}">
169 176
       <view style="height:50rpx;"></view>
@@ -176,15 +183,34 @@
176 183
         <view class="text03 text031">纠错与建议</view>
177 184
         <image class="arrowRight" src="../images/icon_nextpage_1.png"></image>
178 185
       </view>
186
+      <view class="line07" style="margin-top: 0;"></view>
187
+      <view class="panel1133 FlexRow" bindtap="goto" data-url="feedbackresult">
188
+        <view class="text03 text031">用户感谢与处理结果</view>
189
+        <image class="arrowRight" src="../images/icon_nextpage_1.png"></image>
190
+      </view>
179 191
     </block>
180 192
     
181 193
     <view class="line07" style="margin-top: 0;"></view>
182 194
     <view class="panel2 FlexRow">
183 195
       <text class="text09">
184
-        <text class="text10">诚恳声明:</text>本产品所有图文内容来自网络,仅供家长对上海地区招生计划有大致了解。由于有可能存在错谬,故不能作为填报志愿的决策依据,请务必以当时当地教育局和学校提供的信息为准。我们将认真对待用户提供的纠错和建议,尽可能刊载正确信息。
196
+        <text class="text10">诚恳声明:</text>本产品核心数据来自「上海市教育考试院-上海招考热线」官方文件,其他信息参考学校官网、校友提供或其它公开渠道,仅供上海中考生及家长参考。因信息可能存在疏漏,请务必以教育局及学校最新发布为准。我们持续完善数据,欢迎指正!
185 197
       </text>
186 198
     </view>
187
-    <text class="text11" bindtap="goto" data-url="webview?url=https://mp.weixin.qq.com/s/nBQA9X-PwkdlxKaIjLOf5w">©2023-2024 秒过分数线 版本 {{Version}}</text>
199
+    <text class="text11" bindtap="goto" data-url="webview?url=https://mp.weixin.qq.com/s/nBQA9X-PwkdlxKaIjLOf5w">©2023-2025 秒过分数线 版本 {{Version}}</text>
188 200
     <view style="height:100rpx;"></view>
189 201
   </view>
202
+
203
+  <view class="panelFooterNav FlexColumn">
204
+    <view class="panelFooterNav2 FlexRow">
205
+      <view class="panelFooterNavBtn FlexColumn" >
206
+        <view>分数线</view>
207
+        <view class="panelFooterNavLine1"></view>
208
+      </view>
209
+      <view class="panelFooterNavBtn FlexColumn" bind:tap="goto" data-url="../../packageProduct/main/product">
210
+        <view>秒过</view>
211
+        <view class="panelFooterNavLine"></view>
212
+      </view>
213
+    </view>
214
+    <view class="iphone10plus" wx:if="{{IsIPhoneX}}"></view>
215
+  </view>
190 216
 </view>

+ 61 - 5
pages/main/default.wxss

@@ -1,6 +1,6 @@
1 1
 .container{
2 2
   width:100%;
3
-  background-color: #F8C324;
3
+  background-color: #FFC868;
4 4
 }
5 5
 .pic_01{
6 6
   width: 100%;
@@ -9,14 +9,14 @@
9 9
 .info_01{
10 10
   width: 300rpx;
11 11
   height:126rpx;
12
-  position: absolute;
12
+  position: fixed;
13 13
   right:10rpx;
14 14
   z-index: 10;
15 15
 }
16 16
 
17 17
 .panel0{
18 18
   width:100%;
19
-  background-color: #F8C324;
19
+  background-color: #FFC868;
20 20
 }
21 21
 
22 22
 .panel01{
@@ -51,7 +51,7 @@
51 51
 .panel1{
52 52
   width:100%;
53 53
   position: relative;
54
-  background-color: #F8C324;
54
+  background-color: #FFC868;
55 55
 }
56 56
 
57 57
 .pic_04{
@@ -370,7 +370,7 @@
370 370
 }
371 371
 
372 372
 .text09{
373
-  font-size: 20rpx;
373
+  font-size: 24rpx;
374 374
   font-weight: 400;
375 375
   width: 670rpx;
376 376
   margin-top: 30rpx;
@@ -570,4 +570,60 @@
570 570
   height:370rpx;
571 571
   margin: 0 0 0 30rpx;
572 572
   display: inline-block;
573
+}
574
+
575
+.panelYJBDC{
576
+  width:100%;
577
+  margin-top: 40rpx;
578
+  z-index: 20;
579
+}
580
+.panelYJBDC1{
581
+  font-size: 24rpx;
582
+  color: #2E2E2E;
583
+  text-align: center;
584
+  margin-bottom: 20rpx;
585
+}
586
+.yjbdc1{
587
+  width: 670rpx;
588
+  height:360rpx;
589
+}
590
+
591
+
592
+.panelFooterNav{
593
+  width: 100%;
594
+  background-color: #fff;
595
+  color: #4D4D4D;
596
+  position: fixed;
597
+  bottom: 0;
598
+  z-index: 100;
599
+}
600
+.panelFooterNav2{
601
+  width:100%;
602
+  position: relative;
603
+  z-index: 100;
604
+}
605
+
606
+.panelFooterNavBtn{
607
+  width: 50%;
608
+  font-size: 36rpx;
609
+  height: 100rpx;
610
+  justify-content: flex-end;
611
+}
612
+.panelFooterNavLine{
613
+  width: 72rpx;
614
+  height:16rpx;
615
+  margin-top: 9rpx;
616
+  background-color: #fff;
617
+}
618
+.panelFooterNavLine1{
619
+  width: 108rpx;
620
+  height:16rpx;
621
+  margin-top: 9rpx;
622
+  background-color: #FFC868;
623
+}
624
+
625
+.iphone10plus{
626
+  width:100%;
627
+  height:30rpx;
628
+  background-color: #fff;
573 629
 }

+ 17 - 9
pages/main/district.js

@@ -21,6 +21,7 @@ Page({
21 21
       Containnerheight: main.getWindowHeight(),
22 22
       DistrictID:options.ID,
23 23
       DistrictName:options.Name,
24
+      IsShow:app.globalData.userInfo.IsShow,
24 25
     });
25 26
     
26 27
     wx.setNavigationBarTitle({
@@ -30,6 +31,9 @@ Page({
30 31
     that.init();
31 32
   },
32 33
   init:function(){
34
+    wx.showLoading({
35
+      title: '请稍等',
36
+    })
33 37
     var that = this;
34 38
     var id=Number(that.data.DistrictID);
35 39
     main.getData("GetMPSDistrictPersonNum?DistrictID="+id, function (data) {
@@ -43,10 +47,17 @@ Page({
43 47
               SchoolAll: data,
44 48
               SchoolCurrent:data[0].List
45 49
             });
50
+            setTimeout(function(){
51
+              wx.hideLoading();
52
+            },200);
53
+          }
54
+          else{
55
+            wx.hideLoading();
46 56
           }
47 57
         });
48
-        
49 58
       }
59
+      else
60
+        wx.hideLoading();
50 61
     });
51 62
   },
52 63
   onSelect:function(event){
@@ -68,14 +79,11 @@ Page({
68 79
   onShareTimeline: function () {
69 80
     return this.onShareAppMessage();
70 81
   },
71
-  adLoad() {
72
-    console.log('原生模板广告加载成功')
73
-  },
74
-  adError(err) {
75
-    console.error('原生模板广告加载失败', err)
76
-  },
77
-  adClose() {
78
-    console.log('原生模板广告关闭')
82
+  gotoMiniprogram:function(e){
83
+    var appid=e.currentTarget.dataset.appid || "wx80059777521b897c";
84
+    var path=e.currentTarget.dataset.path || "pages/index/index?SourceID="+app.globalData.ProgramID;
85
+    
86
+    main.gotoMiniprogram(appid,path);
79 87
   },
80 88
   onShareAppMessage: function () {
81 89
     var that=this;

+ 3 - 5
pages/main/district.wxml

@@ -39,10 +39,6 @@
39 39
       </view>
40 40
     </view>
41 41
   </view>
42
-  <ad-custom class="ad_02" unit-id="adunit-91d2fe8025ce6c2b" bindload="adLoad" binderror="adError" bindclose="adClose"></ad-custom>
43
-
44
-
45
-  
46 42
   <view class="panelBasicCss panel2 FlexColumn">
47 43
     <view class="text02">招生查询</view>
48 44
     <view class="panel21 FlexRow">
@@ -75,7 +71,9 @@
75 71
     </view>
76 72
     <view style="height: 20rpx;"></view>
77 73
   </view>
78
-
74
+  
75
+  <ad-custom class="ad_02" unit-id="adunit-91d2fe8025ce6c2b" ></ad-custom>
76
+  
79 77
   <view class="panelBasicCss panel3 FlexRow" bindtap="goto" data-url="map?PageType=2&DistrictID={{DistrictID}}&DistrictName={{DistrictName}}">
80 78
     <view class="text06">校址地图</view>
81 79
     <view class="panel31 FlexRow">

+ 18 - 0
pages/main/district.wxss

@@ -232,3 +232,21 @@
232 232
   border-radius: 10rpx;
233 233
 }
234 234
 /* ***************** */
235
+
236
+.panelYJBDC{
237
+  width:100%;
238
+  margin-top: 30rpx;
239
+  margin-bottom: 10rpx;
240
+  z-index: 20;
241
+}
242
+.panelYJBDC1{
243
+  font-size: 24rpx;
244
+  color: #2E2E2E;
245
+  text-align: center;
246
+  margin-bottom: 20rpx;
247
+
248
+}
249
+.yjbdc2{
250
+  width: 710rpx;
251
+  height:360rpx;
252
+}

+ 1 - 0
pages/main/feedbackinfo.js

@@ -60,6 +60,7 @@ Page({
60 60
         if (success) {
61 61
           wx.hideLoading();         
62 62
           var param={};
63
+          param.ProgramID=173;
63 64
           param.UserID=app.globalData.userInfo.UserID;
64 65
           param.Content=that.data.InputValue;
65 66
           param.ContactTa=that.data.InputValue2;

+ 29 - 0
pages/main/feedbackresult.js

@@ -0,0 +1,29 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+  },
9
+  onLoad: function (options) {
10
+    var that = this;
11
+    that.setData({
12
+      Containnerheight: main.getWindowHeight(),
13
+    });
14
+    main.getData("GetMPSFeedbackList?UserID="+app.globalData.userInfo.UserID, function (data) {
15
+      if (data) {
16
+        that.setData({
17
+          List:data,
18
+        });
19
+      }
20
+    });
21
+  },
22
+  onShareAppMessage: function () {
23
+    return {
24
+      title: app.globalData.ShareTitle,
25
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
26
+      imageUrl: app.globalData.ShareImage,
27
+    }
28
+  },
29
+})

+ 3 - 0
pages/main/feedbackresult.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "处理结果"
3
+}

+ 11 - 0
pages/main/feedbackresult.wxml

@@ -0,0 +1,11 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="text01">感谢用户的大力帮助</view>
3
+  <view class="text02">以下是部分用户的帮助和处理结果,团队在此表示感谢。</view>
4
+
5
+  <view class="panel1 FlexColumn" wx:for="{{List}}" wx:key="index">
6
+    <view class="text03">感谢 {{item.CreateTime}} 提供帮助的用户</view>
7
+    <view class="text04">{{item.Content}}</view>
8
+    <view class="panel11 FlexRow">已处理</view>
9
+  </view>
10
+  <view style="height:100rpx;"></view>
11
+</view>

+ 43 - 0
pages/main/feedbackresult.wxss

@@ -0,0 +1,43 @@
1
+.text01{
2
+  align-self: start;
3
+  font-size: 36rpx;
4
+  margin: 50rpx 0 0 40rpx;
5
+}
6
+.text02{
7
+  align-self: start;
8
+  font-size: 24rpx;
9
+  font-weight: 400;
10
+  margin: 10rpx 0 40rpx 40rpx;
11
+}
12
+
13
+.panel1{
14
+  width:710rpx;
15
+  background: #FFFFFF;
16
+  border-radius: 20rpx;
17
+  margin-bottom: 20rpx;
18
+  align-items: flex-start;
19
+  justify-content: flex-start;
20
+  position: relative;
21
+}
22
+.text03{
23
+  font-size: 28rpx;
24
+  margin: 42rpx 0 0 40rpx;
25
+}
26
+.text04{
27
+  margin: 10rpx 0 40rpx 40rpx;
28
+  font-weight: 400;
29
+  font-size: 24rpx;
30
+  overflow-x: hidden;
31
+  width:630rpx;
32
+  white-space: nowrap;
33
+}
34
+.panel11{
35
+  width: 120rpx;
36
+  height: 70rpx;
37
+  background: #D2D2D2;
38
+  border-radius: 0 20rpx 0 30rpx;
39
+  position: absolute;
40
+  top:0;
41
+  right:0;
42
+  font-size:24rpx;
43
+}

+ 1 - 1
pages/main/recruitment.js

@@ -6,7 +6,6 @@ const app = getApp();
6 6
 var DistrictName="";
7 7
 Page({
8 8
   data: {
9
-    Years:constant.arrYear,
10 9
     YearIndex:0,
11 10
     District:[],
12 11
     ListNullData:false,
@@ -39,6 +38,7 @@ Page({
39 38
 
40 39
     that.setData({
41 40
       Containnerheight: main.getWindowHeight(),
41
+      Years:app.globalData.userInfo.ArrYear,
42 42
       IsShow:app.globalData.userInfo.IsShow,
43 43
       District:arr,
44 44
       PanelType:options.PanelType,

+ 2 - 2
pages/main/school.js

@@ -9,7 +9,6 @@ Page({
9 9
     PageType:"school",
10 10
     ScoreTypeID:1,//四种得分类型
11 11
     IsFold:false,
12
-    Years:constant.arrYear,
13 12
     YearIndex:0,
14 13
     ImagePath: app.globalData.uploadImageUrl,
15 14
     ScoreType:constant.arrScoreType,
@@ -22,6 +21,7 @@ Page({
22 21
     that.setData({
23 22
       Containnerheight: main.getWindowHeight(),
24 23
       IsShow:app.globalData.userInfo.IsShow,
24
+      Years:app.globalData.userInfo.ArrYear,
25 25
       SchoolID:options.ID,
26 26
       IsCollect:false,
27 27
       HasWish:false,
@@ -247,7 +247,7 @@ Page({
247 247
     });
248 248
   },
249 249
   gotoMiniprogram:function(){
250
-    var appid="wx84b3feac6069eec3";
250
+    var appid="wx80059777521b897c";
251 251
     var path='pages/index/index?SourceID=' + app.globalData.ProgramID;
252 252
     main.gotoMiniprogram(appid,path);
253 253
   },

+ 13 - 19
pages/main/school.wxml

@@ -101,9 +101,6 @@
101 101
     </view>
102 102
     <view style="height:10rpx;"></view>
103 103
   </view>
104
-  
105
-  <ad-custom class="ad_02" unit-id="adunit-02744b3b3498643c" bindload="adLoad" binderror="adError" bindclose="adClose"></ad-custom>
106
-
107 104
   <view class="panelBasicCss panelMain FlexColumn" wx:if="{{Info.HasData}}">
108 105
     <block wx:if="{{Info['自主招生']}}">
109 106
       <view class="panelSchoolText20 FlexRow">
@@ -205,12 +202,12 @@
205 202
         </block>
206 203
 
207 204
         <!-- 国际 -->
208
-        <block wx:if="{{Info['自主招生'][0].List[3].PlanNum || Info['自主招生'][0].List[4].PlanNum}}">
205
+        <block wx:if="{{Info['自主招生'][0].List[3].PlanNum || Info['自主招生'][0].List[4].PlanNum || Info['自主招生'][1].List[3].PlanNum || Info['自主招生'][1].List[4].PlanNum}}">
209 206
           <view class="panelSchoolText13 panelSchoolIndependent4">国际课程班和中外合作办学高中</view>
210 207
           <view class="panelSchoolIndependent3 FlexRow">
211 208
             <view class="panelSchoolIndependentText2 panelSchoolText13">本市生源</view>
212
-            <view class="panelSchoolText11 panelSchoolText112">{{Info['自主招生'][0].List[3].PlanNum}}</view>
213
-            <view class="panelSchoolText11 ">{{Info['自主招生'][1].List[3].PlanNum}}</view>
209
+            <view class="panelSchoolText11 panelSchoolText112"><block wx:if="{{!Info['自主招生'][0].List[3].PlanNum}}">0</block>{{Info['自主招生'][0].List[3].PlanNum}}</view>
210
+            <view class="panelSchoolText11 "><block wx:if="{{!Info['自主招生'][1].List[3].PlanNum}}">0</block>{{Info['自主招生'][1].List[3].PlanNum}}</view>
214 211
           </view>
215 212
           <view class="panelSchoolIndependent3 FlexRow">
216 213
             <view class="panelSchoolIndependentText2 panelSchoolText13">非本市生源</view>
@@ -256,9 +253,9 @@
256 253
       <view class="panelMarginTop panelLine"></view>
257 254
       
258 255
       <!-- 有计划但没有出分数时使用 -->
259
-      <view class="panelTemp" wx:if="{{false}}">注意:以下是2025年招生计划数量+2024年最低分信息。教育局一般在7月公布2025年最低分信息,故此处配以2024年最低分以供参考。</view>
256
+      <view class="panelTemp" wx:if="{{Years[0].IsNullScoreLine && YearIndex==0}}">注意:以下是{{Years[0].Name}}年招生计划数量+{{Years[1].Name}}年最低分信息。教育局一般在7月公布{{Years[0].Name}}年最低分信息,故此处配以{{Years[1].Name}}年最低分以供参考。</view>
260 257
     
261
-      <template is="componentList" data="{{IsListAll:IsListAll,ScoreTypeID:ScoreTypeID,List:List,PageType:PageType,SchoolType1:Info.SchoolType1,IsSearch:IsSearch,SearchNull:SearchNull,YearIndex:YearIndex}}" />
258
+      <template is="componentList" data="{{IsListAll:IsListAll,ScoreTypeID:ScoreTypeID,List:List,PageType:PageType,SchoolType1:Info.SchoolType1,IsSearch:IsSearch,SearchNull:SearchNull,YearIndex:YearIndex,Years:Years}}" />
262 259
 
263 260
     </block>
264 261
 
@@ -274,12 +271,9 @@
274 271
 
275 272
     <view style="height:50rpx;"></view>
276 273
   </view>
277
-
278
-  <view class="panelAD FlexColumn" bindtap="gotoMiniprogram">
279
-    <view class="panelAD01">秒过其它产品介绍</view>
280
-    <image src="../images/ad_01.png" class="ad_01"></image>
281
-  </view>
282
-
274
+  
275
+  <ad-custom class="ad_02" unit-id="adunit-02744b3b3498643c"></ad-custom>
276
+  
283 277
   <view class="panelBasicCss FlexColumn" wx:if="{{Info.ImageOther}}">
284 278
     <view class="panelSchoolText08">校园风光</view>
285 279
     <view class="panelScrollView" bindtap="goto" data-url="imagelist?ID={{Info.ID}}&SchoolFullName={{Info.SchoolFullName}}&SchoolShortName={{Info.SchoolShortName}}&ImageOtherStr={{Info.ImageOtherStr}}">
@@ -317,12 +311,12 @@
317 311
       <text class="panelContent">{{Info.Fees}}</text>
318 312
     </block>
319 313
     
320
-    <block wx:if="{{Info.SchoolType2Short=='区重点(特色)'}}">
314
+    <block wx:if="{{Info.SchoolType2Short=='区重点(特色)' || Info.SchoolType2Short=='一般高中(特色)'}}">
321 315
       <view class="panelSchoolText082">特色高中办校重点</view>
322 316
       <view class="panelSchoolText08 panelSchoolText084">美育特色</view>
323 317
       <text class="panelContent">{{Info.Introduction2}}</text>
324
-      <view class="panelSchool22 FlexRow" bindtap="goto" data-url="docs?ID=2">
325
-        <view>上海市19所特色高中情況汇总</view>
318
+      <view class="panelSchool22 FlexRow" bindtap="goto" data-url="docs?ID=25">
319
+        <view>上海市20所特色高中情況汇总</view>
326 320
         <image class="icon_nextpage_4" src="../images/icon_nextpage_4.png"></image>
327 321
       </view>
328 322
     </block>
@@ -387,7 +381,7 @@
387 381
   <view class="panelBasicCss FlexColumn" wx:if="{{Info.SchoolType1=='初中'}}">
388 382
     <view style="height: 20rpx;"></view>
389 383
     <view class="panelSchool13 FlexRow" bindtap="goto" data-url="scoreline?PageType=scoreline&ScoreTypeID=4&DistrictID={{Info.District2}}&YearIndex=0">
390
-      <view class="panelSchool41 FlexRow">
384
+      <view class="panelSchool41_1 FlexRow">
391 385
         <image class="icon_sys_09" src="../images/icon_sys_09.png"></image>
392 386
         <view>查询所在区1-15志愿</view>
393 387
       </view>
@@ -395,7 +389,7 @@
395 389
     </view>
396 390
     <view class="panelLine"></view>
397 391
     <view class="panelSchool13 FlexRow" bindtap="goto" data-url="scoreline?PageType=scoreline&ScoreTypeID=2&DistrictID={{Info.District2}}&YearIndex=0">
398
-      <view class="panelSchool41 FlexRow">
392
+      <view class="panelSchool41_1 FlexRow">
399 393
         <image class="icon_sys_09" src="../images/icon_sys_05.png"></image>
400 394
         <view>查询所在区名额分配到区</view>
401 395
       </view>

+ 23 - 17
pages/main/school.wxss

@@ -335,6 +335,10 @@
335 335
   margin-top: 50rpx;
336 336
   font-weight: 700;
337 337
 }
338
+.panelSchool41_1{
339
+  margin-left: 40rpx;
340
+  font-weight: 700;
341
+}
338 342
 
339 343
 .panelSchool410{
340 344
   margin-left: 40rpx;
@@ -737,23 +741,6 @@
737 741
   line-height: 110rpx;
738 742
 }
739 743
 
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
-  margin-top: 20rpx;
755
-}
756
-
757 744
 .panelTemp{
758 745
   width:650rpx;
759 746
   margin: 30rpx 0 0 0;
@@ -788,4 +775,23 @@
788 775
   width:710rpx;
789 776
   margin: 30rpx 0 0 0;
790 777
   border-radius: 10rpx;
778
+}
779
+
780
+
781
+.panelYJBDC{
782
+  width:100%;
783
+  margin-top: 30rpx;
784
+  margin-bottom: 10rpx;
785
+  z-index: 20;
786
+}
787
+.panelYJBDC1{
788
+  font-size: 24rpx;
789
+  color: #2E2E2E;
790
+  text-align: center;
791
+  margin-bottom: 20rpx;
792
+
793
+}
794
+.yjbdc2{
795
+  width: 710rpx;
796
+  height:360rpx;
791 797
 }

+ 13 - 1
pages/main/scoreline.js

@@ -10,7 +10,6 @@ Page({
10 10
     PageType:"scoreline",
11 11
     DistrictID:1,
12 12
     ScoreTypeID:1,
13
-    Years:constant.arrYear,
14 13
     YearIndex:0,
15 14
     IsSearch:false,
16 15
     Accommodation:constant.arrAccommodation,
@@ -23,6 +22,7 @@ Page({
23 22
     that.setData({
24 23
       Containnerheight: main.getWindowHeight(),
25 24
       IsShow:app.globalData.userInfo.IsShow,
25
+      Years:app.globalData.userInfo.ArrYear,
26 26
       ScoreTypeID:options.ScoreTypeID,
27 27
       DistrictID:options.DistrictID,
28 28
       YearIndex:options.YearIndex,
@@ -136,6 +136,18 @@ Page({
136 136
       main.getData(url, function (data) {
137 137
         if (data) {
138 138
           
139
+          if (data.length==0){
140
+            wx.showModal({
141
+              title: '提醒',
142
+              content: '当前年份没有数据,请选择其他年份。',
143
+              showCancel: false,
144
+              complete: (res) => {
145
+                wx.hideLoading();
146
+              }
147
+            });
148
+            return;
149
+          }
150
+
139 151
           for(var i=0;i<data.length;i++){
140 152
             var item=data[i];
141 153
             item.IsAccommodation=true;

+ 2 - 2
pages/main/scoreline.wxml

@@ -64,7 +64,7 @@
64 64
     </view>
65 65
     
66 66
     <!-- 有计划但没有出分数时使用 -->
67
-    <view class="panelTemp" wx:if="{{false}}">注意:以下是2025年招生计划数量+2024年最低分信息。教育局一般在7月公布2025年最低分信息,故此处配以2024年最低分以供参考。</view>
67
+    <view class="panelTemp" wx:if="{{Years[0].IsNullScoreLine && YearIndex==0}}">注意:以下是{{Years[0].Name}}年招生计划数量+{{Years[1].Name}}年最低分信息。教育局一般在7月公布{{Years[0].Name}}年最低分信息,故此处配以{{Years[1].Name}}年最低分以供参考。</view>
68 68
     
69 69
     <view class="panelBasicCss panelScore FlexColumn" >
70 70
       <view style="height:20rpx"></view>
@@ -99,7 +99,7 @@
99 99
         bindtap="onSelect" data-object="LocalOrNolocal" data-index="{{index}}" data-clicktype="radio">{{item.Name}}</view>
100 100
       </view>
101 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}}" />
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,Years:Years}}" />
103 103
       
104 104
       <view style="height: 50rpx;"></view>
105 105
     </view>

+ 0 - 1
pages/main/userinfo.js

@@ -54,7 +54,6 @@ Page({
54 54
       var param = {};
55 55
       param.NickName = app.globalData.userInfo.NickName;
56 56
       param.AvatarUrl = app.globalData.userInfo.AvatarUrl;
57
-      //debugger;
58 57
       main.postData('UpdateMPSUserNickNameAndAvatar?UserID=' + app.globalData.userInfo.UserID, param, function (data) {
59 58
         that.setData({
60 59
           ReturnCount:1,

+ 2 - 2
pages/main/userinfo.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "navigationBarTitleText": "用户登录",
3
-  "navigationBarBackgroundColor": "#F8C324",
3
+  "navigationBarBackgroundColor": "#FFC868",
4 4
   "navigationBarTextStyle": "black",
5
-  "backgroundColor": "#F8C324"
5
+  "backgroundColor": "#FFC868"
6 6
 }

+ 1 - 1
pages/main/userinfo.wxml

@@ -8,7 +8,7 @@
8 8
   <view class="line1"></view>
9 9
   <view class="panel2 panel1 FlexRow">
10 10
     <view class="text3">用户昵称</view>
11
-    <input type="nickname" onBlur="" bindinput="onKeyInput" class="weui-input" placeholder-class="placeholder" placeholder="填写昵称" value="{{NickName}}" />
11
+    <input type="nickname" onBlur="" bindinput="onKeyInput" bindfocus="onKeyInput" class="weui-input" placeholder-class="placeholder" placeholder="填写昵称" value="{{NickName}}" />
12 12
   </view>
13 13
   <view class="line2 line1"></view>
14 14
 

+ 4 - 4
pages/main/userinfo.wxss

@@ -1,5 +1,5 @@
1 1
 .container {
2
-  background-color: #F8C324;
2
+  background-color: #FFC868;
3 3
 }
4 4
 
5 5
 .panel1{
@@ -23,7 +23,7 @@
23 23
   width: 500rpx;
24 24
   margin: 0rpx;
25 25
   padding: 0rpx;
26
-  background-color: #F8C324;
26
+  background-color: #FFC868;
27 27
   justify-content: flex-end;
28 28
 }
29 29
 
@@ -75,7 +75,7 @@ button:not([size=mini]) {
75 75
   width:630rpx;
76 76
   height:110rpx;
77 77
   background: #8E6011;
78
-  color:#F8C324;
78
+  color:#FFC868;
79 79
   border-radius: 14rpx;
80 80
   font-size: 36rpx;
81 81
   text-align: center;
@@ -86,7 +86,7 @@ button:not([size=mini]) {
86 86
 .btn2{
87 87
   width:630rpx;
88 88
   height:80rpx;
89
-  background: #F8C324;
89
+  background: #FFC868;
90 90
   color:#8E6011;
91 91
   font-size: 28rpx;
92 92
   text-align: center;

+ 6 - 6
pages/template/componentList.wxml

@@ -1,11 +1,11 @@
1 1
 <template name="componentList">
2 2
   <!-- 有计划但没有出分数时使用 -->
3
-  <block wx:if="{{false}}">
3
+  <block wx:if="{{YearIndex==0 && Years[0].IsNullScoreLine}}">
4 4
     <!-- 显示全部表头 -->
5 5
     <view class="panelScoreHeader0 panelScoreHeader FlexRow" wx:if="{{IsListAll}}">
6 6
       <view class="panelScoreHeaderTd1"></view>
7
-      <view class="panelScoreHeaderTd2">24年计划</view>
8
-      <view class="panelScoreHeaderTd3" style="text-align: right;">23年最低分</view>
7
+      <view class="panelScoreHeaderTd2">{{Years[0].ShortName}}年计划</view>
8
+      <view class="panelScoreHeaderTd3" style="text-align: right;">{{Years[1].ShortName}}年最低分</view>
9 9
       <view class="panelScoreHeaderTd4"><view class="MarginLeft30">语数外</view></view>
10 10
       <view class="panelScoreHeaderTd5">数学</view>
11 11
       <view class="panelScoreHeaderTd5">语文</view>
@@ -15,12 +15,12 @@
15 15
     <!-- 显示大字表头 -->
16 16
     <view class="panelScoreHeader FlexRow" wx:if="{{!IsListAll}}">
17 17
       <view class="panelScoreHeaderTd6"></view>
18
-      <view class="panelScoreHeaderTd7">24年计划</view>
19
-      <view class="panelScoreHeaderTd8">23年最低分</view>
18
+      <view class="panelScoreHeaderTd7">{{Years[0].Name}}年计划</view>
19
+      <view class="panelScoreHeaderTd8">{{Years[1].Name}}年最低分</view>
20 20
     </view>
21 21
   </block>
22 22
   <!-- 有计划有出分数时使用 -->
23
-  <block wx:if="{{true}}">
23
+  <block wx:if="{{YearIndex>0 || (YearIndex==0 && !Years[0].IsNullScoreLine)}}">
24 24
     <!-- 显示全部表头 -->
25 25
     <view class="panelScoreHeader FlexRow" wx:if="{{IsListAll}}">
26 26
       <view class="panelScoreHeaderTd1"></view>

+ 0 - 11
utils/constant.js

@@ -1,15 +1,4 @@
1 1
 module.exports = {
2
-  arrYear: [{
3
-    Name: "2024",
4
-    CSS: "Selected"
5
-  },{
6
-    Name: "2023",
7
-    CSS: ""
8
-  },{
9
-    Name: "2022",
10
-    CSS: ""
11
-  },
12
-  ],
13 2
   arrPublicOrPrivate: [{
14 3
       Name: "公办",
15 4
       CSS: "Selected"

+ 0 - 16
utils/main.js

@@ -139,21 +139,6 @@ function returnTop() {
139 139
   }
140 140
 }
141 141
 
142
-function getBaiduToken() {
143
-  var that = this
144
-  //调用登录接口
145
-  wx.login({
146
-    success: function (res0) {
147
-      getData('GetBaiduToken20220922?ProgramID='+app.globalData.ProgramID+'&Code='+res0.code, function (data) {
148
-        if (data) {
149
-          app.globalData.BaiduToken = data;
150
-          //console.log(app.globalData.BaiduToken);
151
-        }
152
-      });
153
-    }
154
-  });
155
-}
156
-
157 142
 function getCollect(callback) {
158 143
   var that = this;
159 144
   var list=wx.getStorageSync("CollectList");
@@ -263,7 +248,6 @@ module.exports = {
263 248
   getWindowHeight: getWindowHeight,
264 249
   onSelect: onSelect,
265 250
   returnTop:returnTop,
266
-  getBaiduToken: getBaiduToken,
267 251
   getCollect: getCollect,
268 252
   gotoMiniprogram:gotoMiniprogram,
269 253
   getProgramList:getProgramList,