chengjie 3 years ago
parent
commit
54669a6248

+ 3 - 3
app.js

@@ -1,8 +1,8 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "2.3.0",
4
-    //IsProduction: true,
5
-    IsProduction: false,
3
+    Version: "2.3.2",
4
+    IsProduction: true,
5
+    //IsProduction: false,
6 6
     ShareTitle: "高效学习从秒过开始",
7 7
     SharePath: "pages/index/index",
8 8
     ShareImage: '../images/program_screenshot_main.png',

BIN
pages/images/icon_flag_2.png


BIN
pages/images/icon_flag_3.png


+ 7 - 9
pages/index/index.js

@@ -259,11 +259,11 @@ Page({
259 259
           wx.removeStorageSync("UserName");
260 260
 
261 261
           // //测试****************
262
-          var url = '../share/shareindex';
263
-          wx.redirectTo({
264
-            url: url,
265
-          });
266
-          return;
262
+          // var url = '../share/shareindex';
263
+          // wx.redirectTo({
264
+          //   url: url,
265
+          // });
266
+          // return;
267 267
           // //测试****************
268 268
 
269 269
           if (that.data.gotoType == "share") {
@@ -298,14 +298,12 @@ Page({
298 298
             }
299 299
             main.getUserConfig();
300 300
           }
301
-          that.getBaiduToken();
301
+          main.getServerSoundErrorArr();
302
+          main.getBaiduToken();
302 303
         }
303 304
       });
304 305
     });
305 306
   },
306
-  getBaiduToken: function () {
307
-    main.getBaiduToken();
308
-  },
309 307
   
310 308
   updateProgram: function () {
311 309
     const updateManager = wx.getUpdateManager();

+ 2 - 1
pages/main/cardmain.js

@@ -45,12 +45,13 @@ Page({
45 45
   },
46 46
   init:function(){
47 47
     var that=this;
48
-    main.getData("GetUserCardCount?UserID="+app.globalData.userInfo.UserID, function (data) {
48
+    main.getData("GetUserCardCount?HasHardworking=1&UserID="+app.globalData.userInfo.UserID, function (data) {
49 49
       if (data) {
50 50
         that.setData({
51 51
           CardNumber: data.CardNumber,
52 52
           NormalNumber:data.NormalNumber,
53 53
           UrgentNumber:data.UrgentNumber,
54
+          Hardworking:data.Hardworking,
54 55
         });
55 56
 
56 57
         if (data.UrgentNumber){

+ 19 - 1
pages/main/cardmain.wxml

@@ -72,13 +72,31 @@
72 72
   <block wx:if="{{IsYearReport}}">
73 73
     <image class="report_2021-banner" src='{{ImagePath}}web/report_2021-banner.png' bindtap="goto" data-url="../other/annualreport" />
74 74
   </block>
75
-  <view class="panelShare FlexRow">
75
+  <!-- 没有勤勉接力 -->
76
+  <view class="panelShare FlexRow" wx:if="{{!Hardworking}}">
76 77
     <view class="panelShare1 FlexColumn">
77 78
       <view class="text1">勤勉接力</view>
78 79
       <view class="text2">激励自己见证成长</view>
79 80
     </view>
80 81
     <image class="directory_main_pic_9" src='../images/directory_main_pic_9.png' bindtap="goto" data-url="../../pages/share/shareindex" />
81 82
   </view>
83
+  <!-- 有勤勉接力 -->
84
+  <view class="panelShare FlexRow" wx:if="{{Hardworking}}" bindtap="goto" data-url="../../pages/share/shareindex"
85
+  style="{{Hardworking.BgColor}}">
86
+    <image class="hardworkingImg" mode="center" wx:if="{{Hardworking.Image}}" src='{{Hardworking.Image}}'  />
87
+    <view class="hardworkingImg2 hardworkingImg"></view>
88
+    <view class="panelShare1 FlexColumn">
89
+      <view class="text3 text1">勤勉接力</view>
90
+      <view class="text4 text2">激励自己见证成长</view>
91
+    </view>
92
+    <view class="panelShare2 FlexColumn">
93
+      <view class="text8">{{Hardworking.HardworkingNumber}}{{Hardworking.OrdinalPostfix}}</view>
94
+      <view class="text7">{{Hardworking.Name}}</view>
95
+    </view>
96
+    
97
+  </view>
98
+
99
+
82 100
   <view class="panelItem6 FlexRow" wx:if="{{FolderArr}}">
83 101
     <view class="panelItem61 FlexColumn">
84 102
       <view>题卡卡单</view>

+ 48 - 5
pages/main/cardmain.wxss

@@ -476,11 +476,38 @@
476 476
   background: #FFDE5A;
477 477
   border-radius: 20rpx;
478 478
   justify-content: space-between;
479
+  position: relative;
480
+}
481
+
482
+.directory_main_pic_9 {
483
+  width: 410rpx;
484
+  height: 180rpx;
485
+  border-radius: 0 20rpx 20rpx 0;
486
+}
487
+
488
+.hardworkingImg{
489
+  width:710rpx;
490
+  height:180rpx;
491
+  border-radius: 20rpx;
492
+  position: absolute;
493
+  left:0;
494
+  top:0;
495
+}
496
+.hardworkingImg2{
497
+  position: absolute;
498
+  background: rgba(0,0,0,0.20);
499
+  z-index: 10;
479 500
 }
480 501
 
481 502
 .panelShare1 {
482 503
   align-items: flex-start;
483 504
   margin-left: 40rpx;
505
+  z-index: 20;
506
+}
507
+.panelShare2 {
508
+  align-items: flex-end;
509
+  margin-right: 40rpx;
510
+  z-index: 20;
484 511
 }
485 512
 
486 513
 .text1 {
@@ -490,11 +517,27 @@
490 517
 
491 518
 .text2 {
492 519
   font-size: 20rpx;
520
+  margin-top: 4rpx;
493 521
   color: #1E1E1E;
494 522
 }
495
-
496
-.directory_main_pic_9 {
497
-  width: 410rpx;
498
-  height: 180rpx;
499
-  border-radius: 0 20rpx 20rpx 0;
523
+.text3 {
524
+  color: #fff;
525
+}
526
+.text4 {
527
+  color: #f2f2f2;
528
+}
529
+.text8{
530
+  font-family: Roboto-Black;
531
+  font-size: 64rpx;
532
+  color: #FFFFFF;
533
+  text-align: right;
534
+}
535
+.text7 {
536
+  font-family: Roboto-Black;
537
+  font-size: 24rpx;
538
+  color: #FFFFFF;
539
+  text-align: right;
540
+  text-shadow: 0 2rpx 0 rgba(0,0,0,0.30);
541
+  position: absolute;
542
+  bottom:35rpx;
500 543
 }

+ 7 - 24
pages/main/detail.wxml

@@ -209,14 +209,15 @@
209 209
         </view>
210 210
       </view>
211 211
       <view class="panelLastTime3">点击左上角返回首页</view>
212
-      <view class="panelLastTime4 FlexRow">
212
+      
213
+      <!-- <view class="panelLastTime4 FlexRow">
213 214
         <view class="panelLastTime41">对本次练习用时的说明</view>
214 215
         <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
215
-      </view>
216
+      </view> -->
216 217
 
217 218
       <view class="panelLastFooter FlexColumn">
218 219
         <view class="panelLastFooter1 FlexRow">
219
-          <view class="panelLastFooter11 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1&Day={{DayNumber}}">
220
+          <view class="panelLastFooter11 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1">
220 221
             <view class="icon_reload_1"></view>
221 222
             <view>勤勉接力</view>
222 223
           </view>
@@ -226,32 +227,14 @@
226 227
           </view>
227 228
           <view class="panelLastFooter11 FlexColumn" catchtap="resetTodayTask">
228 229
             <image src="../images/icon_reload_1.png" class='icon_reload_1' />
229
-            <view>重任务量</view>
230
+            <view>重任务量</view>
230 231
           </view>
231 232
         </view>
232
-        <view class="panelLastFooter2 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1&Day={{DayNumber}}">
233
-          <view class="panelLastFooter21">{{DayNumber}}</view>
234
-          <view>DAYS</view>
233
+        <view class="panelLastFooter2 FlexColumn" bindtap="goto" data-url="../share/shareitem?TaskID=-1">
234
+          <image src="../images/icon_flag_3.png" class='icon_flag_3' />
235 235
         </view>
236 236
       </view>
237 237
       
238
-      <!-- <view class="panelLastTime FlexColumn">
239
-        <view style='color:{{Color.FrontColor1}};'>单张题卡平均用时</view>
240
-        <view class="time2" style='color:{{Color.LineColor}}'>{{Speed2}}</view>
241
-      </view>
242
-      <view class="panelLastTime FlexColumn">
243
-        <view style='color:{{Color.FrontColor1}};'>每分钟可练习</view>
244
-        <view class="time2" style='color:{{Color.LineColor}}'>{{Speed1}}</view>
245
-      </view> -->
246
-      <!-- <view class='panelLastFooter'>
247
-        <view class="panelLastFooter1 FlexRow" bindtap='buildShareImage'>
248
-          <image src="../images/universalpic_screenshot_gray_30x30.png" class='universalpic_screenshot_gray_30x30' />
249
-          <view>群接力</view>
250
-        </view>
251
-        <view class="panelLastFooter2 FlexRow" bindtap='onClose'>
252
-          <view>关闭</view>
253
-        </view>
254
-      </view> -->
255 238
     </view>
256 239
   </block>
257 240
   <!-- 今日任务量 -->

+ 5 - 7
pages/main/detail.wxss

@@ -639,20 +639,18 @@ page{
639 639
 .panelLastFooter2{
640 640
   background-image: linear-gradient(141deg, #746D6B 0%, #504846 100%);
641 641
   border-radius: 10rpx;
642
-  font-family: Roboto-Black;
643
-  font-size: 16rpx;
644
-  color: rgba(255,255,255,0.50);
645 642
   width:80rpx;
646 643
   height:100rpx;
647 644
   position: absolute;
648 645
   bottom:90rpx;
649 646
   left:92rpx;
647
+  justify-content: flex-end;
650 648
 }
651 649
 
652
-.panelLastFooter2 .panelLastFooter21{
653
-  font-family: Roboto-Black;
654
-  font-size: 24rpx;
655
-  color: rgba(255,255,255,0.50);
650
+.icon_flag_3{
651
+  width:80rpx;
652
+  height:75rpx;
653
+  border-radius: 0 0 10rpx 10rpx;
656 654
 }
657 655
 
658 656
 

+ 1 - 1
pages/other/webview.js

@@ -17,7 +17,7 @@ Page({
17 17
     else{
18 18
       that.setData({
19 19
         PageID:options.PageID,
20
-        Url:"https://www.kylx365.com/webpage?PageID="+options.PageID,
20
+        Url:"https://www.kylx365.com/webpage?PageID="+options.PageID+"&UserID="+app.globalData.userInfo.UserID,
21 21
       });
22 22
     }
23 23
   },

+ 1 - 1
pages/share/milestone.js

@@ -33,7 +33,7 @@ Page({
33 33
       that.setData({
34 34
         Info: data,
35 35
       });
36
-      fanObj.init(that, data.RemainRate, 80, 4.0, "#11CC33", "#D2D2D2", data.RemainRateStr);
36
+      fanObj.init(that, data.RemainRate, 80, 3.0, "#11CC33", "#D2D2D2", data.RemainRateStr);
37 37
 
38 38
     });
39 39
   },

+ 12 - 10
pages/share/milestone.wxml

@@ -4,12 +4,9 @@
4 4
   <view class="panel1 FlexColumn">
5 5
     <view class="panelNull"></view>
6 6
 
7
-    <view class="panel12 FlexRow" wx:for="{{Info.MilestoneFinished}}" wx:key="*this" 
8
-      wx:if="{{index<Info.MilestoneFinished.length-1}}">
9
-      <view class="panel121 FlexColumn" style="{{item.Position}}"
10
-        bindtap="gotoDetail" data-id="{{item.ID}}">
7
+    <view class="panel12 FlexRow" wx:for="{{Info.MilestoneFinished}}" wx:key="*this" wx:if="{{index<Info.MilestoneFinished.length-1}}">
8
+      <view class="panel121 FlexColumn" style="{{item.Position}}" bindtap="gotoDetail" data-id="{{item.ID}}">
11 9
         <view class="text3 FlexRow" wx:if="{{item.Date}}" style="background-color: {{item.Color}};">
12
-          <view class="arrow"></view>
13 10
           <view class="text31">{{item.Name}}</view>
14 11
           <image class="arrow" src="../images/icon_nextpage_5.png"></image>
15 12
         </view>
@@ -25,16 +22,21 @@
25 22
     <view class="panel11 FlexColumn" bindtap="gotoDetail" data-id="{{Info.MilestoneFinished[Info.MilestoneFinished.length-1].ID}}">
26 23
       <view class="line"></view>
27 24
       <view class="circle"></view>
28
-      <view class="text1">{{Info.MilestoneFinished[Info.MilestoneFinished.length-1].Name}}</view>
25
+      <view class="text1 FlexRow">
26
+        <view>{{Info.MilestoneFinished[Info.MilestoneFinished.length-1].Name}}</view>
27
+        <image class="arrow2" src="../images/icon_nextpage_2.png"></image>
28
+      </view>
29 29
       <view class="text2">{{Info.MilestoneFinished[Info.MilestoneFinished.length-1].Date}}</view>
30 30
     </view>
31 31
 
32
+    <view class="line2"></view>
33
+
34
+    <text class="text5">点击以上里程碑可生成群接力图片。</text>
35
+    <text class="text6">里程碑是勤勉接力的特别版。为了帮您记录这个特殊的日子,即使该天没有接力,也会帮您自动生成。</text>
36
+
32 37
     <template class="fan" is="fanTemplate" data="{{Angle1,Angle2,BGColor,FanSize,FanScale,Color1,Color2,ShowNumber}}">
33
-		</template>
38
+    </template>
34 39
   </view>
35
-  <text class="text5">点击以上里程碑可生成群接力图片。</text>
36
-  <text class="text6">里程碑是勤勉接力的特别版。为了帮您记录这个特殊的日子,即使该天没有接力,也会帮您自动生成。</text>
37
-  <view class="line2"></view>
38 40
   <view class="panel2 FlexColumn">
39 41
     <view class="panel21 FlexRow">
40 42
       <view class="text7">尚未达到的里程碑</view>

+ 13 - 8
pages/share/milestone.wxss

@@ -16,7 +16,7 @@
16 16
 }
17 17
 
18 18
 .line{
19
-  width:4rpx;
19
+  width:6rpx;
20 20
   height:130rpx;
21 21
   background-color: #d2d2d2;
22 22
 }
@@ -57,13 +57,18 @@
57 57
   color: #FFFFFF;
58 58
   text-align: center;
59 59
   line-height:53rpx;
60
-  width: 218rpx;
60
+  padding: 0 20rpx 0 30rpx;
61 61
 }
62 62
 .arrow{
63 63
   width:12rpx;
64 64
   height:18rpx;
65 65
   margin: 0 10rpx;
66 66
 }
67
+.arrow2{
68
+  width:16rpx;
69
+  height:26rpx;
70
+  margin: 0 10rpx;
71
+}
67 72
 
68 73
 .panel121{
69 74
   position: absolute;
@@ -91,25 +96,25 @@
91 96
 }
92 97
 
93 98
 .text5{
94
-  width:690rpx;
99
+  width:650rpx;
95 100
   font-size:22rpx;
96
-  margin-top: 30rpx;
97 101
 }
98 102
 .text6{
99
-  width:690rpx;
103
+  width:650rpx;
100 104
   font-size:22rpx;
101
-  margin: 10rpx 0 30rpx 0;
105
+  margin: 10rpx 0 60rpx 0;
102 106
 }
103 107
 
104 108
 .line2{
105
-  width:690rpx;
109
+  width:650rpx;
106 110
   height:1rpx;
111
+  margin:40rpx 0 30rpx 0;
107 112
   background: #BCBCBC;
108 113
 }
109 114
 
110 115
 
111 116
 .panel2{
112
-  margin:60rpx 0 92rpx 0;
117
+  margin:80rpx 0 92rpx 0;
113 118
   width: 100%;
114 119
 }
115 120
 .panel21{

+ 41 - 13
pages/share/shareindex.js

@@ -7,10 +7,21 @@ Page({
7 7
   data: {
8 8
     Weeks:["周一","周二","周三","周四","周五","周六","周日"],
9 9
     List:[],
10
+    ShowActivity:1,
11
+    Info:{
12
+      DayNumber:-1,
13
+    },
10 14
   },
11 15
   onLoad: function (options) {
12 16
     var that = this;
13 17
     
18
+    var date=common.formatTime(new Date(app.globalData.userInfo.CreateTime),"-",true);
19
+    //console.log(date);
20
+    if (app.globalData.userInfo.CreateTime>="2022-09-21"){
21
+      that.setData({
22
+        ShowActivity:0,
23
+      });
24
+    }
14 25
     that.setData({
15 26
       Containnerheight: main.getWindowHeight(),
16 27
     });
@@ -19,8 +30,12 @@ Page({
19 30
   }, 
20 31
   init:function(){
21 32
     var that = this;
33
+    wx.showLoading({
34
+      title: '读取中',
35
+    });
22 36
     var url = 'GetHardworkingList?UserID=' + app.globalData.userInfo.UserID;
23 37
     main.getData(url, function (data) {
38
+      wx.hideLoading();
24 39
       data.Today=common.formatDateCHS(common.formatTime(new Date()));
25 40
       data.Days=[];
26 41
       var days=that.getDays();
@@ -33,38 +48,37 @@ Page({
33 48
           if (data.CurrentMonth[i].Day==days[j]){
34 49
               obj.BgColor="#d2d2d2";
35 50
               obj.Color="#4D4D4D";
36
-              if (data.CurrentMonth[i].IsShare || data.CurrentMonth[i].Image){
51
+              if (data.CurrentMonth[i].IsShare || data.CurrentMonth[i].Image || data.CurrentMonth[i].IsMilestone){
37 52
                 obj.ID=data.CurrentMonth[i].ID;
38
-                obj.DayNumber=data.DayNumber;
53
+                obj.HardworkingNumber=data.CurrentMonth[i].HardworkingNumber;
39 54
                   
40 55
                 if (data.CurrentMonth[i].Image){
41 56
                   obj.Image=data.CurrentMonth[i].Image;
42 57
                   obj.AphorismID=data.CurrentMonth[i].AphorismID;
43
-                  obj.Color="#FFFFFF";
58
+                }
59
+                else if (data.CurrentMonth[i].IsMilestone){
60
+                  obj.BgColor=data.CurrentMonth[i].Color1;
61
+                  obj.IsMilestone=data.CurrentMonth[i].IsMilestone;
44 62
                 }
45 63
                 else{
46 64
                   obj.BgColor="#3D3D3D";
47
-                  obj.Color="#FFFFFF";
48 65
                 }
66
+
67
+                obj.Color="#FFFFFF";
49 68
                 obj.IsShare=data.CurrentMonth[i].IsShare;
50 69
                 obj.Name=data.CurrentMonth[i].Day;
51 70
               }
52
-              if (data.CurrentMonth[i].IsMilestone){
53
-                obj.BgColor=data.CurrentMonth[i].Color1;
54
-                obj.Name=data.CurrentMonth[i].Name;
55
-                obj.IsMilestone=data.CurrentMonth[i].IsMilestone;
56
-              }
71
+              
57 72
               break;
58 73
           }
59 74
         }
60 75
         data.Days.push(obj);
61 76
       }
62
-      
63 77
 
64 78
       that.setData({
65 79
         Info:data,
66 80
       });
67
-
81
+      
68 82
       if (data.SevenDays.length==0){
69 83
         wx.setNavigationBarColor({
70 84
           backgroundColor: '#ffffff',
@@ -92,19 +106,33 @@ Page({
92 106
   },
93 107
   gotoDetail:function(e){
94 108
     var id=e.currentTarget.dataset.id;
109
+    var name=e.currentTarget.dataset.name;
95 110
     var ismilestone=e.currentTarget.dataset.ismilestone;
96 111
     var aphorismid=e.currentTarget.dataset.aphorismid;
97 112
     var isshare=e.currentTarget.dataset.isshare;
98 113
     if (ismilestone || aphorismid){
99 114
       wx.navigateTo({
100
-        url: "./shareitem?TaskID="+id+"&Day="+e.currentTarget.dataset.day,
115
+        url: "./shareitem?TaskID="+id,
101 116
       });
102 117
     }
103 118
     else if (isshare){
104 119
       wx.navigateTo({
105
-        url: "./shareitem?TaskID="+id+"&IsHistory=1&Day="+e.currentTarget.dataset.day,
120
+        url: "./shareitem?TaskID="+id+"&IsHistory=1",
106 121
       });
107 122
     }
123
+    else if (name){
124
+      if (Number(name)<=(new Date().getDate())){
125
+        wx.showToast({
126
+          title: '没有接力',
127
+          image: "../images/icon_flag_2.png",
128
+        });
129
+      }
130
+      else{
131
+        wx.showToast({
132
+          title: '未到时间',
133
+        });
134
+      }
135
+    }
108 136
   },
109 137
   showHelpImage: function (e) {
110 138
     main.ShowHelpImage();

+ 42 - 14
pages/share/shareindex.wxml

@@ -10,29 +10,56 @@
10 10
       <scroll-view scroll-x class="panelCard FlexRow">
11 11
         <view class="Card0"></view>
12 12
 
13
-        <view class="Card" style="{{item.Color2}}" 
14
-        wx:for="{{Info.SevenDays}}" wx:key="index" 
15
-        bindtap="gotoDetail" data-id="{{item.ID}}" data-aphorismid="{{item.AphorismID}}" data-day="{{item.DayNumber}}" 
16
-        data-ismilestone="{{item.IsMilestone}}">
13
+        <view class="Card" style="{{item.Color2}}" wx:for="{{Info.SevenDays}}" wx:key="index" bindtap="gotoDetail" data-id="{{item.ID}}" data-aphorismid="{{item.AphorismID}}"  data-ismilestone="{{item.IsMilestone}}">
17 14
           <image wx:if="{{item.Image}}" lazy-load="true" class="CardImg" src="{{item.Image}}"></image>
18
-          <view class="img2 CardImg"></view>
15
+          <view class="CardImg2 CardImg"></view>
19 16
           <view class="CardText FlexColumn">
20 17
             <view class="Card1">{{item.CreateTime}}</view>
21
-            <view class="Card2 FlexRow" wx:if="{{!item.Name}}">{{item.DayNumber}}<text class="Card3">th</text></view>
22
-            <view class="Card6 FlexRow" wx:if="{{item.Name}}">{{item.Name}}</view>
23
-            <view class="Card4 FlexColumn"><text class="">{{item.Content}}</text></view>
18
+            <view class="Card2 FlexRow" >{{item.HardworkingNumber}}<text class="Card3">{{item.OrdinalPostfix}}</text></view>
19
+            <view class="Card4 FlexColumn" wx:if="{{item.Content}}"><text class="">{{item.Content}}</text></view>
20
+            <view class="Card6 FlexRow" wx:if="{{item.Name}}">里程碑</view>
21
+            <view class="Card7 FlexRow" wx:if="{{item.Name}}">{{item.Name}}</view>
22
+            
24 23
           </view>
25 24
         </view>
26 25
 
27 26
         <view class="CardEnd" bindtap="goto" data-url="./sharewall">
28 27
           <view class="CardEnd1 FlexColumn">
29 28
             <image class="icon_flag_1" src="../images/icon_flag_1.png"></image>
30
-            <view class="Card5" >查看全部</view>
29
+            <view class="Card5">查看全部</view>
31 30
           </view>
32 31
         </view>
33 32
       </scroll-view>
34 33
     </view>
35 34
 
35
+    <view class="panel2 FlexColumn" wx:if="{{ShowActivity}}">
36
+      <view class="panel21 FlexRow">
37
+        <view class="text2">秒过学习小组活动</view>
38
+      </view>
39
+      <view class="panel2200 panel22 FlexColumn">
40
+        <image src="../images/qmjl_main_pic_2.png" class="qmjl_main_pic_2"></image>
41
+        <image src="../images/qmjl_main_pic_3.png" class="qmjl_main_pic_3"></image>
42
+        <image src="../images/qmjl_main_pic_4.png" class="qmjl_main_pic_4"></image>
43
+        <view class="panel22001 FlexRow">
44
+          <view class="panel220011 FlexRow" style="width:{{Info.ShareNumberYearRate}}%;">
45
+            <view class="panel2200111"></view>
46
+            <view class="panel2200112 panel2200111"></view>
47
+          </view>
48
+          <view wx:if="{{Info.ShareNumberYearRate<50}}" class="panel220013 panel220012 FlexRow"></view>
49
+          <view wx:if="{{Info.ShareNumberYearRate>=50 && Info.ShareNumberYearRate<100}}" class="panel220013 panel220014 FlexRow"></view>
50
+        
51
+          <view wx:if="{{Info.ShareNumberYearRate<100}}" class="panel220012 FlexRow"></view>
52
+          <view wx:if="{{Info.ShareNumberYearRate==100}}" class="panel220014 FlexRow"></view>
53
+        </view>
54
+        <view class="panel22002 FlexRow">
55
+          <view class="text15">今年已接力</view>
56
+          <view class="text16 FlexRow">{{Info.ShareNumberYear}}<text class="text17">次</text></view>
57
+        </view>
58
+        <view class="panel22003" bindtap="goto" data-url="../other/webview?PageID=10">规则详情</view>
59
+        <text class="text18" bindtap="goto" data-url="../other/userbook">活动截止:2022年12月31日,发奖:2023年1月8日,\n有效期大于发奖日才能领奖。<text class="text19">查看有效期</text></text>
60
+      </view>
61
+    </view>
62
+
36 63
     <view class="panel2 FlexColumn">
37 64
       <view class="panel21 FlexRow">
38 65
         <view class="text2">接力墙</view>
@@ -43,15 +70,14 @@
43 70
         </view>
44 71
         <view class="panelDays FlexRow">
45 72
           <block wx:for="{{Info.Days}}" wx:key="*this">
46
-            <view class="day FlexColumn" wx:if="{{!item.IsMilestone}}" style="background-color: {{item.BgColor}};" 
47
-            bindtap="gotoDetail" data-id="{{item.ID}}" data-aphorismid="{{item.AphorismID}}"  data-day="{{item.DayNumber}}" data-isshare="{{item.IsShare}}">
73
+            <view class="day FlexColumn" wx:if="{{!item.IsMilestone}}" style="background-color: {{item.BgColor}};" bindtap="gotoDetail" data-name="{{item.Name}}" data-id="{{item.ID}}" data-aphorismid="{{item.AphorismID}}" data-isshare="{{item.IsShare}}">
48 74
               <image wx:if="{{item.Image}}" lazy-load="true" class="img" src="{{item.Image}}"></image>
49 75
               <view wx:if="{{item.Image}}" class="img2 img"></view>
50 76
               <text class="text12" style="color:{{item.Color}};">{{item.Name}}</text>
51 77
             </view>
52 78
 
53
-            <view class="day0 day FlexColumn" wx:if="{{item.IsMilestone}}" style="border-color:{{item.BgColor}};" bindtap="gotoDetail" data-id="{{item.ID}}" data-ismilestone="{{item.IsMilestone}}">
54
-              <text class="text12" style="color:{{item.BgColor}}">{{item.Name}}</text>
79
+            <view class="day FlexColumn" wx:if="{{item.IsMilestone}}" style="background-color:{{item.BgColor}};" bindtap="gotoDetail" data-id="{{item.ID}}" data-ismilestone="{{item.IsMilestone}}">
80
+              <text class="text12" style="color:{{item.Color}};">{{item.Name}}</text>
55 81
             </view>
56 82
           </block>
57 83
 
@@ -97,13 +123,15 @@
97 123
         </view>
98 124
       </view>
99 125
     </view>
126
+    <view class="panelHeight2"></view>
100 127
   </block>
128
+  
101 129
   <block wx:if="{{Info.DayNumber==0}}">
102 130
     <text class="text10">暂无内容</text>
103 131
     <text class="text11">请先完成第一次练习,并在做完后进行一次\n勤勉接力,然后回到这里看看</text>
104 132
   </block>
105 133
 
106
-  <view class="panelHelpCommon_{{Info.DayNumber}} panelHelpCommon FlexRow" bindtap="showHelpImage">
134
+  <view wx:if="{{Info.DayNumber>=0}}" class="panelHelpCommon_{{Info.DayNumber}} panelHelpCommon FlexRow" bindtap="showHelpImage">
107 135
     <view class="panelHelpCommon1 FlexRow">
108 136
       <view class="panelHelpCommon11 FlexRow">
109 137
         <image class="panelHelpCommonIcon" src="../images/icon_light_1.png"></image>

+ 286 - 123
pages/share/shareindex.wxss

@@ -1,19 +1,22 @@
1
-.container{
1
+.container {
2 2
   background-color: #FFFFFF;
3 3
 }
4
-.panel1{
5
-  width:100%;
4
+
5
+.panel1 {
6
+  width: 100%;
6 7
   position: relative;
7 8
   align-items: flex-start;
8 9
 }
9
-.panelBg{
10
+
11
+.panelBg {
10 12
   position: absolute;
11
-  top:0;
13
+  top: 0;
12 14
   width: 100%;
13
-  height:720rpx;
15
+  height: 720rpx;
14 16
   background-image: linear-gradient(180deg, #FFD66E 0%, #FFFFFF 100%);
15 17
 }
16
-.text1{
18
+
19
+.text1 {
17 20
   font-family: Roboto-Black;
18 21
   font-size: 64rpx;
19 22
   color: #2E2E2E;
@@ -21,187 +24,212 @@
21 24
   margin-left: 30rpx;
22 25
 }
23 26
 
24
-.panel11{
27
+.panel11 {
25 28
   margin-top: 30rpx;
26 29
   width: 100%;
27 30
   justify-content: space-between;
28 31
   z-index: 10;
29 32
 }
30
-.text2{
33
+
34
+.text2 {
31 35
   font-size: 36rpx;
32 36
   color: #4D4D4D;
33 37
   margin-left: 30rpx;
34 38
 }
35 39
 
36
-.panelCard{
37
-  width:100%;
38
-  height:435rpx;
40
+.panelCard {
41
+  width: 100%;
42
+  height: 435rpx;
39 43
   white-space: nowrap;
40 44
   margin-top: 30rpx;
41 45
   z-index: 10;
42 46
 }
43 47
 
44
-.Card0{
45
-  width:20rpx;
46
-  height:435rpx;
48
+.Card0 {
49
+  width: 20rpx;
50
+  height: 435rpx;
47 51
   display: inline-block;
48 52
 }
49 53
 
50
-.Card{
51
-  width:580rpx;
52
-  height:435rpx;
54
+.Card {
55
+  width: 580rpx;
56
+  height: 435rpx;
53 57
   display: inline-block;
54 58
   margin: 0 20rpx 0 0;
55 59
   position: relative;
56 60
   border-radius: 20rpx;
57 61
 }
58 62
 
59
-.CardImg{
63
+.CardImg {
60 64
   border-radius: 20rpx;
61
-  width:580rpx;
62
-  height:435rpx;
65
+  width: 580rpx;
66
+  height: 435rpx;
63 67
 }
64 68
 
65
-.CardText{
69
+.CardImg2 {
70
+  background-image: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.40) 100%);
66 71
   position: absolute;
67
-  top:0;
68 72
   left:0;
69
-  width:580rpx;
70
-  height:435rpx;
71
-  color:#fff;
73
+  top:0;
74
+}
75
+
76
+.CardText {
77
+  position: absolute;
78
+  top: 0;
79
+  left: 0;
80
+  width: 580rpx;
81
+  height: 435rpx;
82
+  color: #fff;
72 83
   justify-content: flex-start;
73 84
   align-items: flex-start;
74 85
 
75 86
   display: flex;
76 87
 }
77
-.Card1{
88
+
89
+.Card1 {
78 90
   font-family: Roboto-Black;
79 91
   font-size: 28rpx;
80
-  text-shadow: 0 3rpx 0 rgba(0,0,0,0.20);
92
+  text-shadow: 0 3rpx 0 rgba(0, 0, 0, 0.20);
81 93
   margin: 40rpx 0 0 40rpx;
82 94
 }
83
-.Card2{
95
+
96
+.Card2 {
84 97
   font-family: Roboto-Black;
85 98
   font-size: 72rpx;
86
-  text-shadow: 0 3rpx 0 rgba(0,0,0,0.20);
99
+  text-shadow: 0 3rpx 0 rgba(0, 0, 0, 0.20);
87 100
   margin: 0 0 0 40rpx;
88 101
 }
89
-.Card3{
102
+
103
+.Card3 {
90 104
   font-size: 24rpx;
91
-  text-shadow: 0 3rpx 0 rgba(0,0,0,0.20);
105
+  text-shadow: 0 3rpx 0 rgba(0, 0, 0, 0.20);
92 106
   margin: 30rpx 0 0 10rpx;
93 107
 }
94
-.Card4{
108
+
109
+.Card4 {
95 110
   margin: 72rpx 0 0 40rpx;
96 111
   font-family: Roboto-Black;
97 112
   font-size: 24rpx;
98
-  text-shadow: 0 3rpx 0 rgba(0,0,0,0.50);
99
-  width:500rpx;
100
-  height:165rpx;
113
+  text-shadow: 0 3rpx 0 rgba(0, 0, 0, 0.50);
114
+  width: 500rpx;
115
+  height: 165rpx;
101 116
   text-align: left;
102
-  white-space:pre-wrap;
117
+  white-space: pre-wrap;
103 118
   justify-content: flex-end;
104 119
   align-items: flex-start;
105 120
 }
106
-.Card6{
121
+
122
+.Card6 {
123
+  margin: 147rpx 0 0 40rpx;
124
+  font-size: 24rpx;
125
+  color: #FFFFFF;
126
+  text-shadow: 0 3rpx 0 rgba(0,0,0,0.50);
127
+}
128
+
129
+.Card7 {
107 130
   font-family: Roboto-Black;
108
-  font-size: 72rpx;
109
-  text-shadow: 0 3rpx 0 rgba(0,0,0,0.20);
131
+  font-size: 48rpx;
132
+  text-shadow: 0 3rpx 0 rgba(0, 0, 0, 0.20);
110 133
   margin: 0 0 0 40rpx;
111 134
 }
112 135
 
113
-.CardEnd{
136
+.CardEnd {
114 137
   background-image: linear-gradient(135deg, #88817B 0%, #202529 100%);
115 138
   display: inline-block;
116 139
   margin: 0 20rpx 0 0;
117
-  border-radius: 20rpx;  
118
-  width:240rpx;
119
-  height:435rpx;
140
+  border-radius: 20rpx;
141
+  width: 240rpx;
142
+  height: 435rpx;
120 143
   position: relative;
121 144
 }
122 145
 
123
-.CardEnd1{
124
-  width:240rpx;
125
-  height:435rpx;
146
+.CardEnd1 {
147
+  width: 240rpx;
148
+  height: 435rpx;
126 149
   position: absolute;
127 150
 }
128 151
 
129
-.icon_flag_1{
130
-  width:30rpx;
131
-  height:30rpx;
152
+.icon_flag_1 {
153
+  width: 30rpx;
154
+  height: 30rpx;
132 155
   margin-bottom: 20rpx;
133 156
 }
134 157
 
135
-.Card5{
158
+.Card5 {
136 159
   color: #FFFFFF;
137
-  text-shadow: 0 3rpx 0 rgba(0,0,0,0.50);
160
+  text-shadow: 0 3rpx 0 rgba(0, 0, 0, 0.50);
138 161
   font-size: 28rpx;
139 162
 }
140 163
 
141
-.panel2{
142
-  margin:45rpx 0 60rpx 0;
164
+.panel2 {
165
+  margin: 80rpx 0 0rpx 0;
143 166
   width: 100%;
144 167
 }
145
-.panel21{
168
+
169
+.panel21 {
146 170
   justify-content: flex-start;
147 171
   width: 100%;
148 172
 }
149
-.panel22{
173
+
174
+.panel22 {
150 175
   border-radius: 20rpx;
151 176
   background-color: #F2F2F2;
152 177
   margin-top: 30rpx;
153
-  width:710rpx;
178
+  width: 710rpx;
154 179
 }
155
-.panelWeeks{
180
+
181
+.panelWeeks {
156 182
   font-size: 20rpx;
157 183
   color: #787878;
158 184
   margin: 40rpx 0 30rpx 0;
159 185
 }
160
-.week{
186
+
187
+.week {
161 188
   font-size: 20rpx;
162 189
   color: #787878;
163 190
   margin: 0 28rpx 0 28rpx;
164 191
 }
165 192
 
166
-.panelDays{
193
+.panelDays {
167 194
   width: 690rpx;
168 195
   margin-left: 20rpx;
169 196
   flex-wrap: wrap;
170 197
   justify-content: flex-start;
171 198
   align-items: flex-start;
172 199
 }
173
-.day{
200
+
201
+.day {
174 202
   margin: 0 28rpx 0 28rpx;
175 203
   font-family: Roboto-Black;
176
-  color:#4D4D4D;
177
-  border-radius: 4rpx;
204
+  color: #4D4D4D;
205
+  border-radius: 8rpx;
178 206
   margin: 3rpx;
179
-  width:90rpx;
180
-  height:90rpx;
207
+  width: 90rpx;
208
+  height: 90rpx;
181 209
   position: relative;
182 210
 }
183 211
 
184
-.day0{
212
+.day0 {
185 213
   background: #FFFFFF;
186 214
   border: 6rpx solid #fff;
187
-  border-radius: 4rpx;
188
-  width:78rpx;
189
-  height:78rpx;
215
+  border-radius: 8rpx;
216
+  width: 78rpx;
217
+  height: 78rpx;
190 218
 }
191 219
 
192
-.img{
193
-  width:90rpx;
194
-  height:90rpx;
220
+.img {
221
+  width: 90rpx;
222
+  height: 90rpx;
195 223
   position: absolute;
196
-  border-radius: 4rpx;
224
+  border-radius: 8rpx;
197 225
 }
198 226
 
199
-.img2{
200
-  background-color: rgba(0,0,0,0.20);
201
-  border-radius: 4rpx;
227
+.img2 {
228
+  background-color: rgba(0, 0, 0, 0.20);
229
+  border-radius: 8rpx;
202 230
 }
203 231
 
204
-.text12{
232
+.text12 {
205 233
   font-size: 24rpx;
206 234
   color: #9B9B9B;
207 235
   text-align: center;
@@ -209,21 +237,21 @@
209 237
 }
210 238
 
211 239
 
212
-.panel2Line{
240
+.panel2Line {
213 241
   background: #BCBCBC;
214 242
   width: 650rpx;
215
-  height:1rpx;
243
+  height: 1rpx;
216 244
   margin: 40rpx 0 30rpx 0;
217 245
 }
218 246
 
219
-.panel2Line2{
247
+.panel2Line2 {
220 248
   background: #BCBCBC;
221 249
   width: 650rpx;
222
-  height:1rpx;
250
+  height: 1rpx;
223 251
   margin: 20rpx 0 30rpx 0;
224 252
 }
225 253
 
226
-.panel23{
254
+.panel23 {
227 255
   font-size: 24rpx;
228 256
   color: #4D4D4D;
229 257
   margin-bottom: 10rpx;
@@ -231,42 +259,43 @@
231 259
   align-self: flex-start;
232 260
 }
233 261
 
234
-.panel25{
235
-  width:100%;
262
+.panel25 {
263
+  width: 100%;
236 264
   align-items: flex-start;
237 265
   align-self: flex-start;
238 266
   justify-content: space-between;
239 267
 }
240 268
 
241
-.text13{
269
+.text13 {
242 270
   margin-left: 30rpx;
243 271
   font-size: 24rpx;
244 272
   color: #4D4D4D;
245
-  
273
+
246 274
 }
247 275
 
248
-.panel251{
276
+.panel251 {
249 277
   margin: 0 50rpx 0 0;
250 278
   justify-content: flex-start;
251 279
   align-items: flex-end;
252 280
 }
253 281
 
254
-.text3{
282
+.text3 {
255 283
   font-family: Roboto-Black;
256 284
   font-size: 64rpx;
257 285
   color: #4D4D4D;
258 286
   margin-top: -20rpx;
259 287
 
260 288
 }
261
-.text14{
289
+
290
+.text14 {
262 291
   font-size: 20rpx;
263 292
   color: #4D4D4D;
264 293
   margin: 0 0 15rpx 4rpx;
265 294
 }
266 295
 
267
-.panel26{
268
-  width:500rpx;
269
-  line-height:90rpx;
296
+.panel26 {
297
+  width: 500rpx;
298
+  line-height: 90rpx;
270 299
   background-color: #fff;
271 300
   border-radius: 20rpx;
272 301
   font-size: 36rpx;
@@ -275,34 +304,36 @@
275 304
   margin: 30rpx 0 60rpx 0;
276 305
 }
277 306
 
278
-.panel220{
307
+.panel220 {
279 308
   background-image: linear-gradient(180deg, #FBE8B0 0%, #FDE1AB 14%, #FED9A7 29%, #FFD2A3 43%, #FFCAA1 57%, #FFC3A0 71%, #FEBC9F 86%, #FCB59F 100%);
280 309
   border-radius: 20rpx;
281 310
   position: relative;
282 311
 }
283
-.panel221{
284
-  background: rgba(255,255,255,0.60);
312
+
313
+.panel221 {
314
+  background: rgba(255, 255, 255, 0.60);
285 315
   border-radius: 50%;
286 316
   width: 100rpx;
287
-  height:100rpx;
317
+  height: 100rpx;
288 318
   margin-top: 72rpx;
289 319
 }
290
-.qmjl_main_pic_1{
291
-  width:85rpx;
292
-  height:92rpx;
320
+
321
+.qmjl_main_pic_1 {
322
+  width: 85rpx;
323
+  height: 92rpx;
293 324
   position: absolute;
294
-  top:49rpx;
325
+  top: 49rpx;
295 326
 }
296 327
 
297
-.text4{
328
+.text4 {
298 329
   font-size: 32rpx;
299
-  color:#4D4D4D;
330
+  color: #4D4D4D;
300 331
   margin-top: 21rpx;
301 332
   text-align: center;
302 333
 }
303 334
 
304 335
 
305
-.text5{
336
+.text5 {
306 337
   font-family: Roboto-Black;
307 338
   font-size: 72rpx;
308 339
   color: #4D4D4D;
@@ -310,73 +341,205 @@
310 341
   margin: 0 10rpx;
311 342
 }
312 343
 
313
-.text6{
344
+.text6 {
314 345
   font-size: 20rpx;
315 346
   color: #4D4D4D;
316 347
   margin-top: 30rpx;
317
-  width:20rpx;
348
+  width: 20rpx;
318 349
 }
319 350
 
320
-.panel223{
351
+.panel223 {
321 352
   margin-top: 50rpx;
322
-  width:500rpx;
353
+  width: 500rpx;
323 354
   justify-content: space-between;
324 355
 }
325 356
 
326
-.text7{
357
+.text7 {
327 358
   font-family: Roboto-Black;
328 359
   font-size: 28rpx;
329 360
   color: #4D4D4D;
330 361
 }
331 362
 
332
-.panel224{
363
+.panel224 {
333 364
   background: #F0F0F0;
334 365
   border-radius: 8rpx;
335
-  width:500rpx;
366
+  width: 500rpx;
336 367
   justify-content: flex-start;
337 368
   margin-top: 10rpx;
338
-  height:16rpx;
369
+  height: 16rpx;
339 370
 }
340 371
 
341
-.panel2241{
372
+.panel2241 {
342 373
   background: #F38121;
343 374
   border-radius: 8rpx 0 0 8rpx;
344
-  height:16rpx;  
375
+  height: 16rpx;
345 376
 }
346 377
 
347
-.panel225{
378
+.panel225 {
348 379
   background: #FFFFFF;
349 380
   border-radius: 20rpx;
350 381
   font-size: 36rpx;
351 382
   color: #4D4D4D;
352 383
   text-align: center;
353
-  width:500rpx;
384
+  width: 500rpx;
354 385
   line-height: 90rpx;
355 386
   margin: 60rpx 0;
356 387
 }
357 388
 
358 389
 
359
-.text10{
390
+.text10 {
360 391
   font-size: 36rpx;
361 392
   color: #4D4D4D;
362 393
   margin: 100rpx 0 0 30rpx;
363 394
   align-self: flex-start;
364 395
 }
365
-.text11{
396
+
397
+.text11 {
366 398
   font-size: 24rpx;
367 399
   color: #4D4D4D;
368 400
   margin: 30rpx 0 0 30rpx;
369 401
   align-self: flex-start;
370 402
 }
371 403
 
372
-.panelHelpCommon_0{
404
+.panelHelpCommon_0 {
373 405
   position: fixed;
374
-  left:20rpx;
375
-  bottom:60rpx;
406
+  left: 20rpx;
407
+  bottom: 60rpx;
376 408
   margin: 0 0 0 0;
377 409
 }
378 410
 
379
-.panelHeight{
380
-  width:100%;
381
-  height:90rpx;
411
+.panelHeight {
412
+  width: 100%;
413
+  height: 90rpx;
414
+}
415
+
416
+.panelHeight2 {
417
+  width: 100%;
418
+  height: 60rpx;
419
+}
420
+
421
+.panel2200 {
422
+  position: relative;
423
+  justify-content: flex-start;
424
+  background-image: linear-gradient(180deg, #CFF4C8 0%, #DAF0C2 14%, #E4ECBE 29%, #ECE8BD 43%, #F3E4BD 57%, #F8E0BF 71%, #FBDDC3 86%, #FCDAC7 100%);
425
+}
426
+
427
+.qmjl_main_pic_2 {
428
+  width: 670rpx;
429
+  height: 360rpx;
430
+  margin-top: 30rpx;
431
+}
432
+
433
+.qmjl_main_pic_3 {
434
+  width: 116rpx;
435
+  height: 116rpx;
436
+  position: absolute;
437
+  left: 348rpx;
438
+  top: 385rpx;
439
+  z-index: 10;
440
+}
441
+
442
+.qmjl_main_pic_4 {
443
+  width: 147rpx;
444
+  height: 159rpx;
445
+  position: absolute;
446
+  right: 0rpx;
447
+  top: 342rpx;
448
+  z-index: 10;
449
+}
450
+
451
+
452
+.panel22001 {
453
+  width: 456rpx;
454
+  height: 16rpx;
455
+  margin-top: 120rpx;
456
+  background: #FFFFFF;
457
+  border-radius: 8rpx;
458
+  position: relative;
459
+}
460
+
461
+.panel220011 {
462
+  position: absolute;
463
+  left: 0;
464
+  height: 16rpx;
465
+  border-radius: 8rpx 0 0 8rpx;
466
+  background: #F38121;
467
+}
468
+
469
+.panel2200111 {
470
+  
471
+}
472
+
473
+.panel220012 {
474
+  width: 18rpx;
475
+  height: 18rpx;
476
+  background: #9B9B9B;
477
+  border: 6rpx solid #FFFFFF;
478
+  border-radius: 50%;
479
+  position: absolute;
480
+  top: -8rpx;
481
+  right: 0;
482
+}
483
+.panel220014 {
484
+  width: 30rpx;
485
+  height: 30rpx;
486
+  background: #F38121;
487
+  border-radius: 50%;
488
+  position: absolute;
489
+  top: -8rpx;
490
+  right: 0rpx;
491
+}
492
+
493
+.panel220013 {
494
+  right: 222rpx;
495
+}
496
+
497
+.panel22002 {
498
+  margin-top: 10rpx;
499
+  width: 456rpx;
500
+  justify-content: space-between;
501
+  align-items: flex-start;
502
+}
503
+
504
+.text15 {
505
+  font-size: 24rpx;
506
+  color: #4D4D4D;
507
+  margin-top: 10rpx;
508
+}
509
+
510
+.text16 {
511
+  font-family: Roboto-Black;
512
+  font-size: 64rpx;
513
+  color: #4D4D4D;
514
+  text-align: right;
515
+}
516
+
517
+.text17 {
518
+  font-size: 20rpx;
519
+  color: #4D4D4D;
520
+  text-align: right;
521
+  margin: 20rpx 0 0 4rpx;
522
+}
523
+
524
+.panel22003 {
525
+  background: #FFFFFF;
526
+  border-radius: 20rpx;
527
+  font-size: 36rpx;
528
+  color: #4D4D4D;
529
+  text-align: center;
530
+  width: 500rpx;
531
+  line-height: 90rpx;
532
+  margin-top: 30rpx;
533
+}
534
+
535
+.text18 {
536
+  font-weight: 400;
537
+  font-size: 20rpx;
538
+  color: #4D4D4D;
539
+  text-align: center;
540
+  margin: 30rpx 0 60rpx 0;
541
+}
542
+
543
+.text19 {
544
+  color: #5282FA;
382 545
 }

+ 48 - 16
pages/share/shareitem.js

@@ -42,7 +42,7 @@ Page({
42 42
       IsBuildReportHistory: false,
43 43
     });
44 44
 
45
-    that.init(options.TaskID, options.Day, ishistory);
45
+    that.init(options.TaskID, ishistory);
46 46
 
47 47
   },
48 48
 
@@ -51,12 +51,16 @@ Page({
51 51
       innerAudioContext1.stop();
52 52
     }
53 53
   },
54
-  init: function (taskid, day, isHistory) {
54
+  init: function (taskid, isHistory) {
55 55
     var that = this;
56
-
56
+    wx.showLoading({
57
+      title: '读取中',
58
+    });
57 59
     var url = 'GetShareItemInfo?IsHistory=' + isHistory + '&UserID=' + app.globalData.userInfo.UserID + "&TaskID=" + taskid;
58 60
     main.getData(url, function (data) {
59
-      data.Day = day;
61
+      wx.hideLoading();
62
+      if (!data.MilestoneDayNumber && !that.data.IsHistory && data.Remark)
63
+        data.Remark=data.Remark.split("\n");
60 64
       that.setData({
61 65
         Info: data,
62 66
       });
@@ -155,9 +159,16 @@ Page({
155 159
       _uid = common.ReplaceAllString(_uid, "/", "___");
156 160
     var url4 = app.globalData.uploadImageUrl + "MiaoguoUser" + _uid + ".png";
157 161
 
158
-    main.DownloadFile(url1, function (tempFilePath1) {
159
-      main.DownloadFile(url3, function (tempFilePath3) {
160
-        main.DownloadFile(url4, function (tempFilePath4) {
162
+    wx.showLoading({
163
+      title: '生成中',
164
+    });
165
+    setTimeout(function () {
166
+      wx.hideLoading();
167
+    }, 20000);
168
+
169
+    main.DownloadFile(url1,0,function (tempFilePath1) {
170
+      main.DownloadFile(url3,0,function (tempFilePath3) {
171
+        main.DownloadFile(url4,0,function (tempFilePath4) {
161 172
           const query = wx.createSelectorQuery();
162 173
           query.select('#shareCanvas')
163 174
             .fields({
@@ -215,6 +226,9 @@ Page({
215 226
                   ctx.fillText(that.data.Info.Content[i], 50, 917+i*30);
216 227
                 
217 228
                 main.BuildImage(700, 1050, canvas, function () {
229
+                  
230
+                  wx.hideLoading();
231
+
218 232
                   main.getData("ShareMiaoguoTask?UserID=" + app.globalData.userInfo.UserID, function (data) {
219 233
                     that.setData({
220 234
                       IsBuildReport: false,
@@ -244,10 +258,17 @@ Page({
244 258
       _uid = common.ReplaceAllString(_uid, "/", "___");
245 259
     var url4 = app.globalData.uploadImageUrl + "MiaoguoUser" + _uid + ".png";
246 260
 
247
-    main.DownloadFile(url1, function (tempFilePath1) {
248
-      main.DownloadFile(url2, function (tempFilePath2) {
249
-        main.DownloadFile(url3, function (tempFilePath3) {
250
-          main.DownloadFile(url4, function (tempFilePath4) {
261
+    wx.showLoading({
262
+      title: '生成中',
263
+    });
264
+    setTimeout(function () {
265
+      wx.hideLoading();
266
+    }, 20000);
267
+
268
+    main.DownloadFile(url1,0,function (tempFilePath1) {
269
+      main.DownloadFile(url2,0,function (tempFilePath2) {
270
+        main.DownloadFile(url3,0,function (tempFilePath3) {
271
+          main.DownloadFile(url4,0,function (tempFilePath4) {
251 272
             const query = wx.createSelectorQuery();
252 273
             query.select('#shareCanvas')
253 274
               .fields({
@@ -323,7 +344,7 @@ Page({
323 344
                 ctx.fillText(that.data.Info.CreateTimeStr1, 30, 823);
324 345
 
325 346
                 ctx.font = "normal 500 96px Roboto-Black";
326
-                ctx.fillText(that.data.Info.Day, 30, 994);
347
+                ctx.fillText(that.data.Info.DayNumber, 30, 994);
327 348
 
328 349
                 ctx.font = "normal 500 36px Roboto-Black";
329 350
                 ctx.fillText(that.data.Info.CardTaskTotal, 266, 974);
@@ -332,6 +353,9 @@ Page({
332 353
                 ctx.fillText(that.data.Info.DurationTotal, 370, 974);
333 354
 
334 355
                 main.BuildImage(700, 1050, canvas, function () {
356
+                  
357
+                  wx.hideLoading();
358
+
335 359
                   main.getData("ShareMiaoguoTask?UserID=" + app.globalData.userInfo.UserID, function (data) {
336 360
                     that.setData({
337 361
                       IsBuildReport: false,
@@ -356,13 +380,20 @@ Page({
356 380
 
357 381
     var date = that.data.Info.CreateTimeStr1
358 382
     var todayTime = that.data.Info.DurationMinute;
359
-    var dayNumber = that.data.Info.Day;
383
+    var dayNumber = that.data.Info.HardworkingNumber;
360 384
 
361 385
     var avatarUrl = app.globalData.userInfo.AvatarUrl;
362 386
     avatarUrl = avatarUrl.substring(0, avatarUrl.lastIndexOf("/") + 1);
363 387
     avatarUrl = avatarUrl + "0";
364 388
 
365
-    main.DownloadFile(avatarUrl, function (tempFilePath) {
389
+    wx.showLoading({
390
+      title: '生成中',
391
+    });
392
+    setTimeout(function () {
393
+      wx.hideLoading();
394
+    }, 20000);
395
+
396
+    main.DownloadFile(avatarUrl,0,function (tempFilePath) {
366 397
       const query = wx.createSelectorQuery();
367 398
       query.select('#shareCanvasHistory')
368 399
         .fields({
@@ -426,12 +457,13 @@ Page({
426 457
 
427 458
 
428 459
               ctx.font = "normal 500 20px caption";
429
-              ctx.fillText("迄今已练习", 390, 295);
460
+              ctx.fillText("迄今已接力", 390, 295);
430 461
 
431 462
               ctx.font = "normal 500 32px caption";
432
-              ctx.fillText(dayNumber + "", 390, 333);
463
+              ctx.fillText(dayNumber + "", 390, 333);
433 464
 
434 465
               main.BuildImage(600, 360, canvas, function () {
466
+                wx.hideLoading();
435 467
                 that.setData({
436 468
                   IsBuildReportHistory: false,
437 469
                 });

+ 13 - 9
pages/share/shareitem.wxml

@@ -3,14 +3,15 @@
3 3
     <view class="panel1 FlexRow">
4 4
       <view class="panel11 FlexColumn">
5 5
         <view class="panel111 FlexRow">
6
-          <view class="text1">{{Info.Day}}</view>
7
-          <view class="text2">th</view>
6
+          <view class="text1">{{Info.HardworkingNumber}}</view>
7
+          <view class="text2">{{Info.OrdinalPostfix}}</view>
8 8
         </view>
9 9
         <view class="text3">RELAY</view>
10 10
       </view>
11 11
       <view class="line1"></view>
12 12
       <view class="panel12 FlexColumn">
13 13
         <text class="text4">{{Info.CreateTimeStr2}}</text>
14
+        <text class="text41">第{{Info.HardworkingNumber}}次接力 第{{Info.DayNumber}}天练习</text>
14 15
         <text class="text5">复习之后小歇片刻,名言美景沁人心脾</text>
15 16
       </view>
16 17
     </view>
@@ -26,7 +27,9 @@
26 27
     <view class="text11">{{Info.Title}}</view>
27 28
     <view class="text12">{{Info.BirthAndDeath}}</view>
28 29
     <image class="panelImage1" lazy-load="true" mode="widthFix" src="{{Info.AuthorImage}}"></image>
29
-    <text class="text13">{{Info.Remark}}</text>
30
+    <view class="text13 FlexColumn">
31
+      <text class="text131" wx:key="*this" wx:for="{{Info.Remark}}">{{item}}</text>
32
+    </view>
30 33
 
31 34
     <view class="panelFooter{{IPhoneX}} panelFooter FlexRow">
32 35
       <view class="panelFooter1 FlexRow" bindtap="playSound">
@@ -44,7 +47,7 @@
44 47
 
45 48
   <block wx:if="{{!IsHistory && Info.MilestoneDayNumber}}">
46 49
     
47
-    <view class="panelMilestone FlexColumn" style="{{Info.Color}}">
50
+    <view class="panelMilestone FlexColumn" style="height:{{Containnerheight-120}}rpx;{{Info.Color}}">
48 51
       <view class="panelMilestoneText1">祝贺您</view>
49 52
       <view class="panelMilestoneText2 panelMilestoneText1">获得里程碑</view>
50 53
       <view class="panelMilestoneText3">{{Info.Name[0]}}</view>
@@ -74,14 +77,15 @@
74 77
         <view class="text21">勤勉接力</view>
75 78
         <view class="text22">见证成长</view>
76 79
         <view class="text23 FlexRow">{{Info.DurationMinute}}<text class="text24">分钟</text></view>
77
-        <view class="text25">迄今已练习</view>
78
-        <view class="text26">{{Info.Day}}天</view>
80
+        <view class="text25">迄今已接力</view>
81
+        <view class="text26">{{Info.HardworkingNumber}}次</view>
79 82
       </view>
80 83
     </view>
81 84
 
82
-    <text class="text19">这是勤勉接力老版本的图片格式,给您留作纪念。如果左侧头像不能正常显示,请前往手册栏目,点击顶部用户头像,然后重新授权用户信息,刷新后即可解决。
83
-      感谢您在秒过最初的三年里坚持接力。欢迎继续使用新版勤勉接力。内容更丰富,画面更精美。</text>
84
-
85
+    <view class="text19 FlexColumn">
86
+      <text class="text131">这是勤勉接力老版本的图片格式,给您留作纪念。如果左侧头像不能正常显示,请前往手册栏目,点击顶部用户头像,然后重新授权用户信息,刷新后即可解决。</text>
87
+      <text class="text131"> 感谢您在秒过最初的三年里坚持接力。欢迎继续使用新版勤勉接力。内容更丰富,画面更精美。</text>
88
+      </view>
85 89
     <view class="panelHelpCommon FlexRow" bindtap="showHelpImage">
86 90
       <view class="panelHelpCommon1 FlexRow">
87 91
         <view class="panelHelpCommon11 FlexRow">

+ 15 - 9
pages/share/shareitem.wxss

@@ -6,13 +6,12 @@
6 6
 .panel1 {
7 7
   width: 100%;
8 8
   justify-content: flex-start;
9
-  margin: 30rpx 0;
9
+  margin: 30rpx 0 60rpx 0;
10 10
   align-items: flex-start;
11 11
 }
12 12
 
13 13
 .panel11 {
14 14
   align-items: flex-start;
15
-  width: 201rpx;
16 15
   margin-left: 50rpx;
17 16
   justify-content: flex-start;
18 17
 }
@@ -29,7 +28,7 @@
29 28
 .text2 {
30 29
   font-family: Roboto-Black;
31 30
   font-size: 24rpx;
32
-  margin-top: 30rpx;
31
+  margin: 30rpx 30rpx 0 0;
33 32
 }
34 33
 
35 34
 .text3 {
@@ -40,7 +39,7 @@
40 39
 .line1 {
41 40
   background: #4D4D4D;
42 41
   width: 8rpx;
43
-  height: 130rpx;
42
+  height: 150rpx;
44 43
   margin: 0 30rpx 0 0;
45 44
 }
46 45
 
@@ -52,7 +51,11 @@
52 51
 
53 52
 .text4 {
54 53
   font-size: 24rpx;
55
-  margin-bottom: 10rpx;
54
+}
55
+
56
+.text41 {
57
+  font-size: 24rpx;
58
+  margin-bottom: 20rpx;
56 59
 }
57 60
 
58 61
 .text5 {
@@ -84,7 +87,6 @@
84 87
 
85 88
 .text8 {
86 89
   width: 590rpx;
87
-  height: 200rpx;
88 90
   font-size: 48rpx;
89 91
 }
90 92
 
@@ -120,13 +122,18 @@
120 122
 }
121 123
 
122 124
 .text13 {
125
+  align-items: flex-start;
126
+  width: 650rpx;
127
+  margin: 60rpx 0 190rpx 0;
128
+}
129
+
130
+.text131 {
123 131
   font-size: 24rpx;
124 132
   color: #1E1E1E;
125 133
   letter-spacing: 1.6rpx;
126 134
   line-height: 48rpx;
127 135
   font-weight: 400;
128
-  width: 650rpx;
129
-  margin: 60rpx 0 190rpx 0;
136
+  margin-bottom: 24rpx;
130 137
 }
131 138
 
132 139
 .panelFooter {
@@ -264,7 +271,6 @@
264 271
 
265 272
 .panelMilestone {
266 273
   width: 100%;
267
-  height: 1075rpx;
268 274
   justify-content: flex-start;
269 275
   align-items: flex-start;
270 276
   position: fixed;

+ 1 - 0
pages/share/sharewall.json

@@ -2,5 +2,6 @@
2 2
   "navigationBarBackgroundColor": "#2E2E2E",
3 3
   "navigationBarTextStyle": "white",
4 4
   "backgroundColorTop":"#2E2E2E",
5
+  "backgroundColorBottom":"#2E2E2E",
5 6
   "navigationBarTitleText": "接力墙"
6 7
 }

+ 11 - 6
pages/share/sharewall.wxml

@@ -15,14 +15,19 @@
15 15
   </view>
16 16
 
17 17
   <view class="panel2 FlexRow">
18
-    <view class="panelImage{{item.IsMilestone}} panelImage FlexColumn" 
19
-    style="border-color:{{item.Color1}};background-color: {{item.Color2}};" 
18
+    <view class="panelImage FlexColumn" 
19
+    style="background-color: {{item.Color2}};" 
20 20
     wx:for="{{Info.List}}" wx:key="*this" bindtap="gotoDetail" data-id="{{item.ID}}" data-image="{{item.Image}}" data-day="{{item.DayNumber}}" data-ismilestone="{{item.IsMilestone}}">
21 21
       <image wx:if="{{!item.IsMilestone && item.Image}}" class="img" lazy-load="true" src="{{item.Image}}"></image>
22
-      <view class="img2 img" wx:if="{{!item.IsMilestone}}" ></view>
23
-      <view class="text5" wx:if="{{!item.IsMilestone}}">{{item.DayNumber}}th</view>
24
-      <image wx:if="{{item.IsMilestone}}" class="icon_relay_1" src="../images/icon_relay_1.png"></image>
25
-      <text class="text4" wx:if="{{item.IsMilestone}}">{{item.Name}}</text>
22
+      <view class="img2 img"></view>
23
+      <view class="text5">{{item.HardworkingNumber}}{{item.OrdinalPostfix}}</view>
24
+      
25
+      <view class="panel21 FlexColumn" wx:if="{{item.IsMilestone}}" >
26
+        <image class="icon_relay_1" src="../images/icon_relay_1.png"></image>
27
+        <view class="text6">里程碑</view>
28
+        <view class="text4">{{item.Name}}</view>
29
+      </view>
30
+    
26 31
     </view>
27 32
   </view>
28 33
 </view>

+ 26 - 20
pages/share/sharewall.wxss

@@ -1,3 +1,4 @@
1
+
1 2
 .container {
2 3
   background-color: #2E2E2E;
3 4
   color: #fff;
@@ -92,15 +93,9 @@
92 93
   margin: 0 1rpx 1rpx 0;
93 94
 }
94 95
 
95
-.panelImage1 {
96
-  width:209rpx;
97
-  height:145rpx;
98
-  border: 20rpx solid #2E2E2E;
99
-}
100
-
101 96
 .panelImage .img{
102
-  width:250rpx;
103
-  height:186rpx;
97
+  width:249rpx;
98
+  height:185rpx;
104 99
   position: absolute;
105 100
   top:0;
106 101
   left:0;
@@ -110,25 +105,36 @@
110 105
 .panelImage .img2{
111 106
   background-color: rgba(0,0,0,0.20);
112 107
 }
108
+.text5{
109
+  font-family: Roboto-Black;
110
+  font-size: 24rpx;
111
+  color: #D2D2D2;
112
+  position: absolute;
113
+  left:20rpx;
114
+  bottom:20rpx;
115
+}
116
+
117
+.panel21{
118
+  position: absolute;
119
+  right:20rpx;
120
+  bottom:20rpx;
121
+  align-items: flex-end;
122
+}
113 123
 
114 124
 .icon_relay_1{
115 125
   width:30rpx;
116 126
   height:30rpx;
117
-  margin-bottom: 20rpx;
127
+}
128
+
129
+.text6{
130
+  font-size: 20rpx;
131
+  color: #D2D2D2;
132
+  text-align: right;
118 133
 }
119 134
 
120 135
 .text4{
121 136
   font-family: Roboto-Black;
122 137
   font-size: 24rpx;
123
-  text-align: center;
124
-  z-index: 10;
138
+  text-align: right;
125 139
   color:#D2D2D2;
126
-}
127
-.text5{
128
-  font-family: Roboto-Black;
129
-  font-size: 24rpx;
130
-  color: #D2D2D2;
131
-  position: absolute;
132
-  left:20rpx;
133
-  bottom:20rpx;
134
-}
140
+}

+ 0 - 27
utils/constant.js

@@ -1,31 +1,4 @@
1 1
 module.exports = {
2
-  arrSoundError:[
3
-    {
4
-      Word: "藤蔓",
5
-      Sound: "藤蔓(wan4)",
6
-    }, {
7
-      Word: "呲牙",
8
-      Sound: "呲(ci1)牙",
9
-    }, {
10
-      Word: "呢(ne)",
11
-      Sound: "呢",
12
-    }, {
13
-      Word: "卑劣",
14
-      Sound: "卑(liè)",
15
-    }, {
16
-      Word: "刚才",
17
-      Sound: "(gāng)(cái)",
18
-    },{
19
-      Word: "吐蕃",
20
-      Sound: "(tǔ)(bō)",
21
-    },{
22
-      Word: "游说",
23
-      Sound: "(yóu)(shuì)",
24
-    },{
25
-      Word: "lan=en&text=Mr&",
26
-      Sound: "lan=en&text=Mister&",
27
-    },
28
-  ],
29 2
   arrMenuText: [{
30 3
       Text1: "更换练习模式吗?",
31 4
       Text2: "恭喜您,制作了第一张紧急练习题卡。\n要练习这张题卡必须更改当前练习模式,现在就更换吗?",

+ 34 - 18
utils/main.js

@@ -1239,6 +1239,16 @@ function getHanzi(callback) {
1239 1239
   });
1240 1240
 }
1241 1241
 
1242
+function getServerSoundErrorArr(){
1243
+  var time = wx.getStorageSync("SoundErrorUpdateTime");
1244
+  getData('GetSoundErrorArr?UpdateTime=' + time, function (data) {
1245
+    if (data && data.List) {
1246
+      wx.setStorageSync("SoundErrorArr", data.List);
1247
+      wx.setStorageSync("SoundErrorUpdateTime", data.UpdateTime);
1248
+    } 
1249
+  });
1250
+}
1251
+
1242 1252
 function getEnglish(callback) {
1243 1253
   var that = this;
1244 1254
   wx.showLoading({
@@ -1568,14 +1578,16 @@ function downloadBishunKaitiImage(url, serverUrl, dataType, Fields, callback) {
1568 1578
 }
1569 1579
 
1570 1580
 function GetSoundError(str) {
1571
-  var arr = constant.arrSoundError;
1572 1581
   var result = str;
1573
-  for (var i = 0; i < arr.length; i++) {
1574
-    if (str.indexOf(arr[i].Word) > 0) {
1575
-      result = common.ReplaceAllString(str, arr[i].Word, arr[i].Sound);
1576
-      break;
1577
-    } else if (str == arr[i].Word) {
1578
-      result = arr[i].Sound;
1582
+  var arr = wx.getStorageSync('SoundErrorArr');
1583
+  if (arr && arr.length>0){
1584
+    for (var i = 0; i < arr.length; i++) {
1585
+      if (str.indexOf(arr[i].Word) > 0) {
1586
+        result = common.ReplaceAllString(str, arr[i].Word, arr[i].Sound);
1587
+        break;
1588
+      } else if (str == arr[i].Word) {
1589
+        result = arr[i].Sound;
1590
+      }
1579 1591
     }
1580 1592
   }
1581 1593
   return result;
@@ -1787,14 +1799,15 @@ function resetTodayTask(){
1787 1799
 }
1788 1800
 
1789 1801
 //下载图片
1790
-function downloadFile(url,callback){
1791
-  wx.showLoading({
1792
-    title: '下载中',
1793
-  });
1794
-  setTimeout(function () {
1795
-    wx.hideLoading();
1796
-  }, 5000);
1797
-  
1802
+function downloadFile(url,isShowLoading,callback){
1803
+  if (isShowLoading){
1804
+    wx.showLoading({
1805
+      title: '下载中',
1806
+    });
1807
+    setTimeout(function () {
1808
+      wx.hideLoading();
1809
+    }, 5000);
1810
+  }
1798 1811
   wx.downloadFile({
1799 1812
     url: url,
1800 1813
     success(resDownload) {
@@ -1807,10 +1820,12 @@ function downloadFile(url,callback){
1807 1820
           title: '图片不存在',
1808 1821
         });
1809 1822
       }
1810
-      wx.hideLoading();
1823
+      if (isShowLoading)
1824
+        wx.hideLoading();
1811 1825
     },
1812 1826
     fail: function (e) {
1813
-      wx.hideLoading();
1827
+      if (isShowLoading)
1828
+        wx.hideLoading();
1814 1829
       wx.showToast({
1815 1830
         title: '下载失败',
1816 1831
       });
@@ -1908,5 +1923,6 @@ module.exports = {
1908 1923
   ResetTodayTask:resetTodayTask,
1909 1924
   DownloadFile:downloadFile,
1910 1925
   BuildImage:buildImage,
1911
-  ShowHelpImage:showHelpImage
1926
+  ShowHelpImage:showHelpImage,
1927
+  getServerSoundErrorArr:getServerSoundErrorArr,
1912 1928
 }