chengjie пре 10 месеци
родитељ
комит
3058c338fc
100 измењених фајлова са 1098 додато и 148 уклоњено
  1. 6 3
      app.js
  2. 24 15
      app.json
  3. 10 0
      app.miniapp.json
  4. 1 1
      components/navigation-bar/navigation-bar.wxss
  5. 11 0
      i18n/base.json
  6. 1 0
      miniapp/android/i18nInfo.json
  7. 1 0
      miniapp/ios/i18nInfo.json
  8. BIN
      pages/images/checklist_nameline_illus.png
  9. BIN
      pages/images/practise_index_board_avater01.png
  10. BIN
      pages/images/practise_index_board_blackboard.png
  11. BIN
      pages/images/practise_index_board_close.png
  12. BIN
      pages/images/practise_index_footer.png
  13. BIN
      pages/images/practise_index_goon.png
  14. BIN
      pages/images/practise_index_report.png
  15. BIN
      pages/images/practise_index_start.png
  16. BIN
      pages/images/study_learning_bgimage_tc01.png
  17. BIN
      pages/images/study_learning_bgimage_tc02.png
  18. BIN
      pages/images/study_learning_bgimage_tc03.png
  19. BIN
      pages/images/study_learning_bgimage_tc04.png
  20. BIN
      pages/images/study_learning_maskimage_tc01.png
  21. BIN
      pages/images/study_learning_maskimage_tc02.png
  22. BIN
      pages/images/study_learning_maskimage_tc03.png
  23. BIN
      pages/images/study_learning_maskimage_tc04.png
  24. BIN
      pages/images/universalpic_dictionary_formula_black_54x26.png
  25. BIN
      pages/images/universalpic_dictionary_formula_black_80x80.jpg
  26. BIN
      pages/images/universalpic_formula_default_16x20.png
  27. 1 2
      pages/index/test.js
  28. 1 3
      pages/index/test.json
  29. 19 13
      pages/main/add.js
  30. 2 1
      pages/main/add.json
  31. 21 10
      pages/main/add.wxml
  32. 26 1
      pages/main/add.wxss
  33. 4 7
      pages/main/addInfomation.js
  34. 4 2
      pages/main/addInfomation.wxml
  35. 12 3
      pages/main/addInfomation.wxss
  36. 24 6
      pages/main/addInfomationDetail.js
  37. 4 1
      pages/main/addInfomationDetail.json
  38. 76 0
      pages/main/addInfomationDetail.wxml
  39. 35 0
      pages/main/addInfomationDetail.wxss
  40. 1 1
      pages/main/cardmain.wxml
  41. 2 2
      pages/main/default.js
  42. 9 9
      pages/main/default.wxml
  43. 2 1
      pages/main/detail.json
  44. 3 3
      pages/main/detail.wxml
  45. 25 0
      pages/main/detail.wxss
  46. 3 3
      pages/main/health.wxml
  47. 218 0
      pages/main/latex.js
  48. 8 0
      pages/main/latex.json
  49. 33 0
      pages/main/latex.wxml
  50. 150 0
      pages/main/latex.wxss
  51. 105 0
      pages/main/latex_common.js
  52. 7 0
      pages/main/latex_common.json
  53. 44 0
      pages/main/latex_common.wxml
  54. 112 0
      pages/main/latex_common.wxss
  55. 10 11
      pages/main/mainlist.js
  56. 0 1
      pages/main/preview.js
  57. 3 0
      pages/main/preview.json
  58. 1 1
      pages/main/preview.wxml
  59. 24 0
      pages/main/preview.wxss
  60. 3 3
      pages/main/systemsetting.wxml
  61. 1 1
      pages/other/annualreport.wxml
  62. 1 1
      pages/other/lessonlist.js
  63. 1 1
      pages/share/milestone.js
  64. 1 1
      pages/share/milestone.wxml
  65. 1 1
      pages/share/milestone.wxss
  66. 13 4
      pages/template/cardShow.wxml
  67. 0 0
      pages_plan/plan/clicktype.js
  68. 0 0
      pages_plan/plan/clicktype.json
  69. 1 1
      pages/plan/clicktype.wxml
  70. 0 0
      pages_plan/plan/clicktype.wxss
  71. 0 0
      pages_plan/plan/colorplan.js
  72. 0 0
      pages_plan/plan/colorplan.json
  73. 0 0
      pages_plan/plan/colorplan.wxml
  74. 0 0
      pages_plan/plan/colorplan.wxss
  75. 0 0
      pages_plan/plan/pattern.js
  76. 0 0
      pages_plan/plan/pattern.json
  77. 5 5
      pages/plan/pattern.wxml
  78. 0 0
      pages_plan/plan/pattern.wxss
  79. 0 0
      pages_plan/plan/setting.js
  80. 0 0
      pages_plan/plan/setting.json
  81. 5 5
      pages/plan/setting.wxml
  82. 0 0
      pages_plan/plan/setting.wxss
  83. 0 0
      pages_plan/plan/sortRule.js
  84. 0 0
      pages_plan/plan/sortRule.json
  85. 2 2
      pages/plan/sortRule.wxml
  86. 0 0
      pages_plan/plan/sortRule.wxss
  87. 1 1
      pages/plan/studyplan.js
  88. 0 0
      pages_plan/plan/studyplan.json
  89. 5 5
      pages/plan/studyplan.wxml
  90. 1 1
      pages/plan/studyplan.wxss
  91. 1 1
      pages/plan/studyplandetail.js
  92. 0 0
      pages_plan/plan/studyplandetail.json
  93. 5 5
      pages/plan/studyplandetail.wxml
  94. 1 1
      pages/plan/studyplandetail.wxss
  95. 1 3
      pages/plan/taskBasic.js
  96. 0 0
      pages_plan/plan/taskBasic.json
  97. 4 4
      pages/plan/taskBasic.wxml
  98. 1 1
      pages/plan/taskBasic.wxss
  99. 1 1
      pages/plan/taskFull.js
  100. 0 0
      pages/plan/taskFull.json

Разлика између датотеке није приказан због своје велике величине
+ 6 - 3
app.js


+ 24 - 15
app.json

@@ -1,14 +1,11 @@
1 1
 {
2 2
   "pages": [
3 3
     "pages/index/index",
4
-    
5
-    "pages/plan/taskBasic",
6
-    "pages/plan/taskHelp",
7
-    "pages/plan/taskFull",
8
-
4
+    "pages/main/latex",
5
+    "pages/main/latex_common",
6
+    "pages/index/test",
9 7
     "pages/main/remind",
10 8
     "pages/share/cardlist",
11
-    
12 9
     "pages/share/shareitem",
13 10
     "pages/share/shareindex",
14 11
     "pages/share/sharewall",
@@ -17,7 +14,6 @@
17 14
     "pages/main/folderEdit",
18 15
     "pages/main/folderIcon",
19 16
     "pages/main/orderform",
20
-
21 17
     "pages/main/cardmain",
22 18
     "pages/main/mainlist",
23 19
     "pages/main/addInfomation",
@@ -26,7 +22,6 @@
26 22
     "pages/main/searchCard",
27 23
     
28 24
     "pages/main/preview",
29
-    "pages/plan/pattern",
30 25
     "pages/index/accredit",
31 26
     "pages/other/openSetting",
32 27
 
@@ -38,8 +33,7 @@
38 33
     "pages/main/systemsetting",
39 34
     "pages/main/symbolsetting",
40 35
 
41
-    "pages/plan/clicktype",
42
-    "pages/plan/colorplan",
36
+    
43 37
     "pages/other/family",
44 38
     "pages/other/recover",
45 39
     "pages/other/grade",
@@ -97,11 +91,6 @@
97 91
     {
98 92
       "root": "pages_test",
99 93
       "pages": [
100
-        "test/index",
101
-        "test/list",
102
-        "test/item",
103
-        "test/wordlist",
104
-        "test/report",
105 94
         "knowledge/library",
106 95
         "knowledge/package",
107 96
         "knowledge/unit",
@@ -110,6 +99,17 @@
110 99
         "knowledge/examine",
111 100
         "knowledge/index"
112 101
       ]
102
+    },
103
+    {
104
+      "root": "pages_plan",
105
+      "pages": [
106
+        "plan/taskFull",
107
+        "plan/pattern",
108
+        "plan/clicktype",
109
+        "plan/colorplan",
110
+        "plan/taskBasic",
111
+        "plan/taskHelp"
112
+      ]
113 113
     }
114 114
   ],
115 115
   "preloadRule": {
@@ -124,11 +124,20 @@
124 124
       "packages": [
125 125
         "pages_test"
126 126
       ]
127
+    },
128
+    "pages_plan/plan/taskFull": {
129
+      "network": "all",
130
+      "packages": [
131
+        "pages_plan"
132
+      ]
127 133
     }
128 134
   },
129 135
   "requiredBackgroundModes": [
130 136
     "audio"
131 137
   ],
138
+  "miniApp": {
139
+    "useAuthorizePage": true
140
+  },
132 141
   "lazyCodeLoading": "requiredComponents",
133 142
   "sitemapLocation": "sitemap.json"
134 143
 }

+ 10 - 0
app.miniapp.json

@@ -0,0 +1,10 @@
1
+{
2
+	"adapteByMiniprogram": {
3
+		"userName": "gh_7bf6b7fb6cc1"
4
+  },
5
+  "identityServiceConfig": {
6
+    "authorizeMiniprogramType": 1,
7
+    "miniprogramLoginPath": "pages/index/index",
8
+    "adaptWxLogin": true
9
+  }
10
+}

+ 1 - 1
components/navigation-bar/navigation-bar.wxss

@@ -27,7 +27,7 @@ page{--height:44px;--right:190rpx;}
27 27
   font-size:17px;text-align:center;position:relative;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;
28 28
   align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;overflow: hidden;
29 29
 }
30
-.weui-navigation-bar__center text{ overflow: hidden;text-overflow:ellipsis;white-space: nowrap;margin-top:-2px; font-weight: 700;}
30
+.weui-navigation-bar__center text{ overflow: hidden;text-overflow:ellipsis;white-space: nowrap;margin-top:-2px; font-weight: 400;}
31 31
 
32 32
 
33 33
 .weui-navigation-bar__inner .weui-navigation-bar__loading {

+ 11 - 0
i18n/base.json

@@ -0,0 +1,11 @@
1
+{
2
+	"ios": {
3
+		"name": "秒过 - 错题记忆卡"
4
+	},
5
+	"android": {
6
+		"name": "秒过 - 错题记忆卡"
7
+	},
8
+	"common": {
9
+		"name": "秒过 - 错题记忆卡"
10
+	}
11
+}

+ 1 - 0
miniapp/android/i18nInfo.json

@@ -0,0 +1 @@
1
+{"base":{"ios":{"name":"秒过 - 错题记忆卡"},"android":{"name":"秒过 - 错题记忆卡"}}}

+ 1 - 0
miniapp/ios/i18nInfo.json

@@ -0,0 +1 @@
1
+{"base":{"ios":{"name":"秒过 - 错题记忆卡"},"android":{"name":"秒过 - 错题记忆卡"}}}

BIN
pages/images/checklist_nameline_illus.png


BIN
pages/images/practise_index_board_avater01.png


BIN
pages/images/practise_index_board_blackboard.png


BIN
pages/images/practise_index_board_close.png


BIN
pages/images/practise_index_footer.png


BIN
pages/images/practise_index_goon.png


BIN
pages/images/practise_index_report.png


BIN
pages/images/practise_index_start.png


BIN
pages/images/study_learning_bgimage_tc01.png


BIN
pages/images/study_learning_bgimage_tc02.png


BIN
pages/images/study_learning_bgimage_tc03.png


BIN
pages/images/study_learning_bgimage_tc04.png


BIN
pages/images/study_learning_maskimage_tc01.png


BIN
pages/images/study_learning_maskimage_tc02.png


BIN
pages/images/study_learning_maskimage_tc03.png


BIN
pages/images/study_learning_maskimage_tc04.png


BIN
pages/images/universalpic_dictionary_formula_black_54x26.png


BIN
pages/images/universalpic_dictionary_formula_black_80x80.jpg


BIN
pages/images/universalpic_formula_default_16x20.png


+ 1 - 2
pages/index/test.js

@@ -1,4 +1,4 @@
1
-var wxCharts = require('../template/wxcharts-min.js');
1
+var wxCharts = require('../../pages/template/wxcharts-min.js');
2 2
 
3 3
 var ringChart = null;
4 4
 
@@ -6,7 +6,6 @@ Page({
6 6
   data: {
7 7
     navbarInitTop: 0, //导航栏初始化距顶部的距离
8 8
     isFixedTop: false, //是否固定顶部
9
-    LaTeX: '$$x=\\frac{-b±\\sqrt{b^{2}-4ac}}{2a}$$'
10 9
   },
11 10
 
12 11
   /**

+ 1 - 3
pages/index/test.json

@@ -1,5 +1,3 @@
1 1
 {
2
-  "usingComponents": {
3
-    "mp-html": "../../components/mp-weixin"
4
-  }
2
+  "usingComponents": {}
5 3
 }

+ 19 - 13
pages/main/add.js

@@ -126,7 +126,7 @@ Page({
126 126
 
127 127
     if (app.globalData.IsIPhoneX) {
128 128
       that.setData({
129
-        InputHeight: 480,
129
+        InputHeight: 450,
130 130
       });
131 131
     }
132 132
 
@@ -140,7 +140,13 @@ Page({
140 140
   },
141 141
   onShow: function () {
142 142
     var that = this;
143
-    if (that.data.UpdateType == "add" || that.data.UpdateType == "add3") {
143
+    if (app.globalData.Latex){
144
+      that.setData({
145
+        FieldContent: that.data.FieldContent+app.globalData.Latex,
146
+      });
147
+      app.globalData.Latex="";
148
+    }
149
+    else if (that.data.UpdateType == "add" || that.data.UpdateType == "add3") {
144 150
       that.initAddCard();
145 151
     } else {
146 152
       var card = {},
@@ -424,7 +430,6 @@ Page({
424 430
               var param1 = {};
425 431
               param1 = that.formatField(that.data.Field);
426 432
               param1.Tags = tags;
427
-
428 433
               param1.IsCollect = that.data.IsCollect;
429 434
 
430 435
               param1.LimitTime = that.data.LimitTime;
@@ -453,7 +458,6 @@ Page({
453 458
               timeoutUploadImage = setTimeout(function () {
454 459
                 wx.hideLoading();
455 460
               }, 15000);
456
-
457 461
               main.postData('AddMiaoguoCard?Type=' + that.data.UpdateType + '&UserID=' + userid, param1, function (data) {
458 462
                 wx.removeStorageSync("TempCardNoSaved");
459 463
 
@@ -590,7 +594,16 @@ Page({
590 594
             else
591 595
               str = "[读]" + item.Content + "[/读]";
592 596
           } else if (item.Type == "bigword") {
593
-              str = "[特]"+item.Content+"[/特]";
597
+            str = "[特 FS=\""+item.FontSize+"\"]"+item.Content+"[/特]";
598
+          } else if (item.Type == "latex") {
599
+            str = "[公式";
600
+            if (item.LatexName)
601
+              str+=" N=\""+item.LatexName+"\" ";
602
+            if (item.FontSize)
603
+              str+=" FS=\""+item.FontSize+"\" ";
604
+            str += "]"+item.Content+"[/公式]";
605
+            str = str.replace("$$", "");
606
+            str = str.replace("$$", "");
594 607
           } else if (item.Type == "recorder") {
595 608
                 if (item.SoundMark)
596 609
                   str = "[音 url='" + item.SoundMark + "'][/音]";
@@ -1090,27 +1103,19 @@ Page({
1090 1103
       });
1091 1104
       next(that);
1092 1105
     }
1093
-
1094
-
1095
-
1096 1106
     function next(obj) {
1097 1107
       isViolate = false;
1098
-
1099 1108
       obj.updateField();
1100
-
1101 1109
       obj.setData({
1102 1110
         HiddenFieldEdit: true,
1103 1111
       });
1104
-
1105 1112
       var title = "编辑题卡";
1106 1113
       if (obj.data.UpdateType == "add2") {
1107 1114
         title = "新建题卡";
1108 1115
       }
1109
-
1110 1116
       that.setData({
1111 1117
         PageTitle: title,
1112 1118
       });
1113
-
1114 1119
       that.setBtnSaveCss();
1115 1120
     }
1116 1121
   },
@@ -1136,6 +1141,7 @@ Page({
1136 1141
       if (this.data.MiaoguoCardID == list[i].MiaoguoCardID) {
1137 1142
         list[i].Content[this.data.FieldNumber].Content = str;
1138 1143
         card = main.changeStringToView(list[i].Content);
1144
+        //debugger;
1139 1145
         break;
1140 1146
       }
1141 1147
     }

+ 2 - 1
pages/main/add.json

@@ -1,7 +1,8 @@
1 1
 {
2 2
   "navigationBarTitleText": "新建题卡",
3 3
   "usingComponents": {
4
-    "navigation-bar": "/components/navigation-bar/navigation-bar"
4
+    "navigation-bar": "/components/navigation-bar/navigation-bar",
5
+    "mp-html": "/components/mp-weixin"
5 6
   },
6 7
   "navigationStyle": "custom"
7 8
 }

+ 21 - 10
pages/main/add.wxml

@@ -1,6 +1,6 @@
1 1
 <navigation-bar title="{{PageTitle}}" bindgetBarInfo="getBarInfo" show="true" left="true">
2 2
 </navigation-bar>
3
-
3
+<view class="containerWhite"></view>
4 4
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' hidden='{{!HiddenFieldEdit}}'>
5 5
 	<view class="panelTop FlexRow" style="top:{{topBarHeight+topBarHeightIPad}}rpx;">
6 6
 		<view class="panelLeft FlexRow">
@@ -42,7 +42,9 @@
42 42
 						<block wx:if="{{itemParent==2}}">写答案</block>
43 43
 						<block wx:if="{{itemParent==3}}">其它</block>
44 44
 					</text>
45
-					<block wx:for="{{Field[itemParent]}}" wx:key="index">
45
+          <block wx:for="{{Field[itemParent]}}" wx:key="index">
46
+            <view class="textLatexName" wx:if="{{item.Type=='latex' && item.LatexName}}">{{item.LatexName}}</view>
47
+            <mp-html class="textLaTeX" content="{{item.Content}}" wx:if="{{item.Type=='latex'}}" style="font-size:{{item.FontSize}}rpx;"/>
46 48
 						<text class="textNormal" wx:if="{{item.Type=='normal'}}">{{item.Content}}</text>
47 49
 						<text class="textNormal FlexRow" wx:if="{{item.Type=='line'}}">
48 50
 							<block wx:for="{{item.Content}}" wx:key="contentIndex" wx:for-item="contentItem">
@@ -51,8 +53,7 @@
51 53
 								<text class="textHighlighter" wx:if="{{contentItem.key=='highlighter'}}">{{contentItem.value}}</text>
52 54
 							</block>
53 55
 						</text>
54
-
55
-						<view class="sound FlexRow" wx:if="{{item.Type=='sound'}}">
56
+            <view class="sound FlexRow" wx:if="{{item.Type=='sound'}}">
56 57
 							<image class="universalpic_read_mark_black_20x20" src='../images/universalpic_read_mark_black_20x20.png' />
57 58
 						</view>
58 59
 						<text class="textBigWord" wx:if="{{item.Type=='bigword'}}">{{item.Content}}</text>
@@ -64,7 +65,6 @@
64 65
 						<view class="textBr" wx:if="{{item.Type=='br'}}"></view>
65 66
 						<text class="textReturn" wx:if="{{item.Type=='return'}}"></text>
66 67
 					</block>
67
-
68 68
 				</view>
69 69
 			</view>
70 70
 		</block>
@@ -216,8 +216,12 @@
216 216
 			<view class="panelSaveTag2 panelSaveTag1 FlexRow" catchtap="addSymbol" data-id="{{HighlighterSign}}" hidden="{{HighlighterSign=='[光]'}}">
217 217
 				<image class="universalpic_backcolor_activate_60x40" src='../images/universalpic_backcolor_activate_60x40.png' />
218 218
 			</view>
219
-
220
-			<view class="panelSaveTag1 FlexRow" catchtap="uploadImageField" wx:if="{{IsShow==1}}">
219
+      
220
+      <view class="panelSaveTag11 panelSaveTag1 FlexRow" catchtap="goto" data-url="latex" wx:if="{{IsShow==1}}">
221
+        <image class="universalpic_formula_default_16x20" src='../images/universalpic_formula_default_16x20.png' />
222
+		  </view>
223
+			
224
+      <view class="panelSaveTag1 FlexRow" catchtap="uploadImageField" wx:if="{{IsShow==1}}">
221 225
 				<image class="universalpic_picture_black_30x30" src='../images/universalpic_picture_black_30x30.png' />
222 226
 			</view>
223 227
 
@@ -231,17 +235,24 @@
231 235
 			<view class="panelSaveTag11 panelSaveTag1 FlexRow" catchtap="recorderAccredit" wx:if="{{IsShow==1}}">
232 236
 				<image class="universalpic_microphone_black_20x30" src='../images/universalpic_microphone_black_20x30.png' />
233 237
 			</view>
238
+      
234 239
 		</view>
235
-
236 240
 		<view class="panelSaveTag3 panelSaveTag0 FlexRow" catchtap="closeAddItem" data-idsave="true">
237 241
 			<view class="panelSaveTag311">确定</view>
238 242
 		</view>
239 243
 	</view>
240 244
 	<view class='lineFooter'></view>
241 245
 	<view class='panelInput'>
242
-		<textarea class="input" style="height:{{InputHeight+topBarHeightIPad2}}rpx;" maxlength='-1' show-confirm-bar="true" value="{{FieldContent}}" focus="{{Focus}}" cursor="{{Cursor}}" bindinput="bindinputField" bindblur="onBindblur" bindfocus="onBindFocus" data-id='{{FieldNumber}}' />
246
+		<textarea class="input" style="height:{{InputHeight+topBarHeightIPad2}}rpx;" 
247
+    maxlength='-1' show-confirm-bar="true" 
248
+    value="{{FieldContent}}" 
249
+    focus="{{Focus}}" 
250
+    cursor="{{Cursor}}" 
251
+    bindinput="bindinputField" 
252
+    bindblur="onBindblur" 
253
+    bindfocus="onBindFocus" 
254
+    data-id='{{FieldNumber}}' />
243 255
 	</view>
244
-	<view class='lineFooter'></view>
245 256
 	<view class='panelBtnItem FlexColumn'>
246 257
 		<scroll-view scroll-x="true" class="panelBtnSmall" bindscroll="bindscrollHandler">
247 258
 			<view class="btn0"></view>

+ 26 - 1
pages/main/add.wxss

@@ -1,6 +1,14 @@
1 1
 page{
2 2
   background-color: #f2f2f2;
3 3
 }
4
+.containerWhite{
5
+  z-index: 0;
6
+  position: fixed;
7
+  top:0;
8
+  width: 100%;
9
+  height:200rpx;
10
+  background-color: #fff;
11
+}
4 12
 
5 13
 /* ******************* */
6 14
 .panelTop {
@@ -289,7 +297,7 @@ page{
289 297
   flex-wrap: wrap;
290 298
   align-items: flex-start;
291 299
   justify-content: flex-start;
292
-  width: 610rpx;
300
+  width: 600rpx;
293 301
   font-size: 36rpx;
294 302
   color:#1e1e1e;
295 303
   margin: 40rpx 0 40rpx 40rpx;
@@ -476,6 +484,12 @@ page{
476 484
   width:60rpx;
477 485
   height:40rpx;
478 486
 }
487
+
488
+.universalpic_formula_default_16x20{
489
+  width:16rpx;
490
+  height:20rpx;
491
+}
492
+
479 493
 .universalpic_picture_black_30x30{
480 494
   width:30rpx;
481 495
   height:30rpx;
@@ -1288,3 +1302,14 @@ page{
1288 1302
   color:#fff;
1289 1303
   font-size:36rpx;
1290 1304
 }
1305
+.textLaTeX{
1306
+  overflow-x: hidden;
1307
+  width:600rpx;
1308
+  margin-top: 20rpx;
1309
+}
1310
+.textLatexName{
1311
+  font-size:28rpx;
1312
+  font-weight: 400;
1313
+  margin: 10rpx 0;
1314
+  width: 100%;
1315
+}

+ 4 - 7
pages/main/addInfomation.js

@@ -33,6 +33,8 @@ Page({
33 33
           item.Remark = item.Author + " " + item.Dynasty;
34 34
         } else if (item.Type == "eng") {
35 35
           item.TypeName = "D";
36
+        } else if (item.Type == "latex") {
37
+          item.TypeName = "G";
36 38
         } else {
37 39
           if (item.Key.length == 1)
38 40
             item.TypeName = "Z";
@@ -42,8 +44,6 @@ Page({
42 44
 
43 45
         if (item.Content && item.Content.length > WORD_LENGTH)
44 46
               item.Content = item.Content.substr(0, WORD_LENGTH) + "...";
45
-
46
-
47 47
       }
48 48
       that.setData({
49 49
         SearchWord3: list,
@@ -95,7 +95,7 @@ Page({
95 95
   searchResult: function (e) {
96 96
     var that = this;
97 97
     var search = that.data.SearchInfo;
98
-    
98
+    app.globalData.TempStr=search;
99 99
     if (wx.getStorageSync("IsHelpAddInfomation")==1){
100 100
       if (search!="厉害"){
101 101
         wx.showToast({
@@ -114,7 +114,6 @@ Page({
114 114
     var searchtype=e.currentTarget.dataset.searchtype;
115 115
     var author=e.currentTarget.dataset.author;
116 116
     var shiciurl=e.currentTarget.dataset.shiciurl;
117
-
118 117
     main.searchInfomation(search,searchtype,author,shiciurl,function(list,obj){
119 118
       
120 119
       if (obj){
@@ -123,20 +122,18 @@ Page({
123 122
           wx.navigateTo({
124 123
             url: './addInfomationDetail',
125 124
           });
126
-          
127 125
         });
128 126
       }
129 127
       else{
130 128
         wx.setNavigationBarTitle({
131 129
           title: "搜索结果"
132 130
         });
133
-
131
+        //debugger;
134 132
         that.setData({
135 133
           SearchList: list,
136 134
           IsStart: true,
137 135
           IsMore:true,
138 136
         });
139
-
140 137
         that.getCardList();
141 138
 
142 139
         updateData(that,search);

+ 4 - 2
pages/main/addInfomation.wxml

@@ -3,7 +3,7 @@
3 3
     <view class="panelLeft FlexRow">
4 4
       <view id="input" class="panelTopSearch FlexRow">
5 5
         <image class="universalpic_magnifier_gray_30x30" src='../images/universalpic_magnifier_gray_30x30.png' />
6
-        <input class='input' always-embed="true" maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}" placeholder="字词、成语、诗词、单词" confirm-type="search" bindconfirm="searchResult" />
6
+        <input class='input' always-embed="true" maxlength='50' focus='{{Focus}}' bindinput="onKeyInput" value="{{SearchInfo}}" placeholder="字词、成语、诗词、单词、公式名称" confirm-type="search" bindconfirm="searchResult" />
7 7
         <view class="clearData FlexRow" catchtap="clearInput" wx:if="{{SearchInfo}}">
8 8
           <view class="clearData0 FlexRow">
9 9
             <image class="universalpic_close_black_16x16" src='../images/universalpic_close_black_16x16.png' />
@@ -63,6 +63,7 @@
63 63
           <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23" src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
64 64
           <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27" src='../images/universalpic_dictionary_shici_black_53x27.png' />
65 65
           <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28" src='../images/universalpic_dictionary_danci_black_53x28.png' />
66
+          <image wx:if="{{item.TypeName=='G'}}" class="universalpic_dictionary_hanzi_black_54x26" src='../images/universalpic_dictionary_formula_black_54x26.png' />
66 67
         </view>
67 68
         <view class="panelSearchData1 FlexColumn" bindtap='onSearchHistory' data-index="{{index}}" data-type="SearchWord3">
68 69
           <view class="panelSearchDataText1">{{item.Key}}</view>
@@ -85,11 +86,12 @@
85 86
     <view class="panelSearchData0 FlexColumn" wx:if="{{SearchList.length>0}}">
86 87
       <view class="panelSearchDataOther FlexColumn">
87 88
         <view class="panelSearchDataOther2 FlexRow" wx:for="{{SearchList}}" wx:key="index" bindtap='searchResult' data-search="{{item.Key}}" data-type="SearchList" data-author="{{item.Author}}" data-searchtype="{{item.Type}}" data-shiciurl="{{item.Url}}" wx:if="{{(IsMore && index<4) || (!IsMore)}}">
88
-          <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage FlexColumn">
89
+          <view class="panelSearchDataImage{{item.TypeName}} panelSearchDataImage2 FlexColumn">
89 90
             <image wx:if="{{item.TypeName=='Z'}}" class="universalpic_dictionary_hanzi_black_54x26" src='../images/universalpic_dictionary_hanzi_black_54x26.png' />
90 91
             <image wx:if="{{item.TypeName=='C'}}" class="universalpic_dictionary_ciyu_black_55x23" src='../images/universalpic_dictionary_ciyu_black_55x23.png' />
91 92
             <image wx:if="{{item.TypeName=='S'}}" class="universalpic_dictionary_shici_black_53x27" src='../images/universalpic_dictionary_shici_black_53x27.png' />
92 93
             <image wx:if="{{item.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28" src='../images/universalpic_dictionary_danci_black_53x28.png' />
94
+            <image wx:if="{{item.TypeName=='G'}}" class="universalpic_dictionary_hanzi_black_54x26" src='../images/universalpic_dictionary_formula_black_54x26.png' />
93 95
           </view>
94 96
           <view class="panelSearchDataOther21 FlexColumn">
95 97
             <view class="panelSearchDataText1">{{item.Key}}</view>

+ 12 - 3
pages/main/addInfomation.wxss

@@ -204,13 +204,12 @@
204 204
   position: relative;
205 205
   background-color: #fff;
206 206
   border-radius: 10rpx;
207
-  padding-top:30rpx;
208 207
 }
209 208
 
210 209
 
211 210
 .panelSearchDataOther21{
212 211
   align-items: flex-start;
213
-  margin-left: 30rpx;
212
+  margin: 30rpx 0 0 30rpx;
214 213
   overflow-x: hidden;
215 214
   width:540rpx;
216 215
 }
@@ -219,7 +218,14 @@
219 218
   width:100rpx;
220 219
   height:116rpx;
221 220
   border-radius: 6rpx;
222
-  margin-left: 30rpx;
221
+  margin: 0 0 30rpx 30rpx;
222
+}
223
+
224
+.panelSearchDataImage2{
225
+  width:100rpx;
226
+  height:116rpx;
227
+  border-radius: 6rpx;
228
+  margin: 30rpx 0 30rpx 30rpx;
223 229
 }
224 230
 
225 231
 .panelSearchDataImageZ{
@@ -236,6 +242,9 @@
236 242
 .panelSearchDataImageD{
237 243
   background-color: #C9EFF9;
238 244
 }
245
+.panelSearchDataImageG{
246
+  background-color: #CEF5D0;
247
+}
239 248
 
240 249
 
241 250
 .universalpic_dictionary_ciyu_black_55x23{

+ 24 - 6
pages/main/addInfomationDetail.js

@@ -55,6 +55,13 @@ Page({
55 55
         data.TypeName = "C";
56 56
     } else if (data.ENG) {
57 57
       data.TypeName = "D";
58
+    } else if (data.LATEX){
59
+      data.TypeName = "G";
60
+      var str=data.LATEX.LatexContent;
61
+      str = str.replace(/##xg##/g, "\\");
62
+      var str2 = "$$"+str+"$$";
63
+      data.LATEX.LatexContent1=str;
64
+      data.LATEX.LatexContent2=str2;
58 65
     }
59 66
 
60 67
     if (data.CHN && data.CHN.KaitiArr) {
@@ -98,8 +105,6 @@ Page({
98 105
         var obj2 = main.changeStringToView(obj);
99 106
         var str = obj2.Field[1][0].Content;
100 107
         item.push(str);
101
-
102
-
103 108
         item[1] = common.ReplaceAllString(item[1], "<b>", "");
104 109
         item[1] = common.ReplaceAllString(item[1], "</b>", "");
105 110
       }
@@ -128,6 +133,12 @@ Page({
128 133
       this.data.CSS[css].Content = content;
129 134
       this.data.CSS[css].Type = type;
130 135
       this.data.CSS[css].Tag = tag;
136
+
137
+      if (e.currentTarget.dataset.latexname)
138
+        this.data.CSS[css].LatexName=e.currentTarget.dataset.latexname;
139
+      if (e.currentTarget.dataset.fontsize)
140
+        this.data.CSS[css].FontSize=e.currentTarget.dataset.fontsize;
141
+
131 142
       if (tag == "发音")
132 143
         this.data.CSS[css].SoundMark = soundmark;
133 144
 
@@ -193,9 +204,9 @@ Page({
193 204
 
194 205
               var tags = item.Tag.split(",");
195 206
               for (var j = 0; j < tags.length; j++) {
196
-                if (tags[i]) {
197
-                  if (strArrTag.indexOf(tags[i] + ",") < 0)
198
-                    list[i].Content[0].Content.push(tags[i]);
207
+                if (tags[j]) {
208
+                  if (strArrTag.indexOf(tags[j] + ",") < 0)
209
+                    list[i].Content[0].Content.push(tags[j]);
199 210
                 }
200 211
               }
201 212
             }
@@ -205,6 +216,14 @@ Page({
205 216
               item.Content = main.encryptUrl(item.Content);
206 217
 
207 218
               str = "[图]" + item.Content + "[/图]";
219
+            } else if (key=="LATEX_LatexName") {
220
+              str = "[特 FS=\"64\"]" + item.Content + "[/特]";
221
+            } else if (key=="LATEX_LatexContent") {
222
+              str = item.Content;
223
+              str = str.replace(/##xg##/g, "\\");
224
+              str = str.replace(/\r/g, "");
225
+              str = "[公式 N=\""+item.LatexName+"\" FS=\""+item.FontSize+"\"]"+ str + "[/公式]";
226
+              //debugger;
208 227
             } else if (item.Type == "sound") {
209 228
               str = "[读]" + item.Content + "[/读]";
210 229
               if (item.Tag == "发音") {
@@ -292,7 +311,6 @@ Page({
292 311
                 list[i].Content[item.Number].Content = "\n\n" + list[i].Content[item.Number].Content;
293 312
               }
294 313
             }
295
-
296 314
           }
297 315
           break;
298 316
         }

+ 4 - 1
pages/main/addInfomationDetail.json

@@ -1,3 +1,6 @@
1 1
 {
2
-  "navigationBarTitleText": "资料"
2
+  "navigationBarTitleText": "资料",
3
+  "usingComponents": {
4
+    "mp-html": "/components/mp-weixin"
5
+  }
3 6
 }

+ 76 - 0
pages/main/addInfomationDetail.wxml

@@ -9,6 +9,8 @@
9 9
       src='../images/universalpic_dictionary_shici_black_53x27.png' />
10 10
     <image wx:if="{{Result.TypeName=='D'}}" class="universalpic_dictionary_danci_black_53x28"
11 11
       src='../images/universalpic_dictionary_danci_black_53x28.png' />
12
+    <image wx:if="{{Result.TypeName=='G'}}" class="universalpic_dictionary_hanzi_black_54x26"
13
+      src='../images/universalpic_dictionary_formula_black_54x26.png' />
12 14
       
13 15
     </view>
14 16
     <view class="panelRight FlexRow">
@@ -626,6 +628,80 @@
626 628
       </block>
627 629
     </view>
628 630
   </block>
631
+
632
+  <!-- 搜索公式内容-->
633
+  <block wx:if="{{Result.LATEX.SearchText}}">
634
+    <view class="panelTitle0 panelTitle FlexColumn">
635
+      <view class="panelTitle1 FlexRow">
636
+        <view class="panelTitle11">搜索内容</view>
637
+      </view>
638
+    </view>
639
+    <view class="{{CSS.LATEX_SearchText.Css1}} panelItem FlexRow" bindtap='getInputData' data-type="normal"
640
+      data-content="{{Result.LATEX.SearchText}}" data-css="LATEX_SearchText">
641
+      <view class="FlexRow">
642
+        <view class="{{CSS.LATEX_SearchText.Css2}} panelSelect0">{{CSS.LATEX_SearchText.Number}}</view>
643
+        <view class="panelItemText">{{Result.LATEX.SearchText}}</view>
644
+      </view>
645
+      <view></view>
646
+    </view>
647
+  </block> 
648
+
649
+  <!-- 公式名称 -->
650
+  <block wx:if="{{Result.LATEX.LatexName}}">
651
+    <view class="panelTitle0 panelTitle FlexColumn">
652
+      <view class="panelTitle1 FlexRow">
653
+        <view class="panelTitle11">公式名称</view>
654
+      </view>
655
+    </view>
656
+    <view class="{{CSS.LATEX_LatexName.Css1}} panelItem FlexRow" bindtap='getInputData' data-type="normal"
657
+      data-content="{{Result.LATEX.LatexName}}" data-css="LATEX_LatexName" data-tag="{{Result.LATEX.Grade}},{{Result.LATEX.Subject}},公式">
658
+      <view class="FlexRow">
659
+        <view class="{{CSS.LATEX_LatexName.Css2}} panelSelect0">{{CSS.LATEX_LatexName.Number}}</view>
660
+        <view class="panelItemText">{{Result.LATEX.LatexName}}</view>
661
+      </view>
662
+      <view></view>
663
+    </view>
664
+  </block>
665
+
666
+  <!-- 公式类别 -->
667
+  <block wx:if="{{Result.LATEX.Category}}">
668
+    <view class="panelTitle0 panelTitle FlexColumn">
669
+      <view class="panelTitle1 FlexRow">
670
+        <view class="panelTitle11">类别</view>
671
+      </view>
672
+    </view>
673
+    <view class="{{CSS.LATEX_Category.Css1}} panelItem FlexRow" bindtap='getInputData' data-type="normal"
674
+      data-content="{{Result.LATEX.Category}}" data-css="LATEX_Category">
675
+      <view class="FlexRow">
676
+        <view class="{{CSS.LATEX_Category.Css2}} panelSelect0">{{CSS.LATEX_Category.Number}}</view>
677
+        <view class="panelItemText">{{Result.LATEX.Category}}</view>
678
+      </view>
679
+      <view></view>
680
+    </view>
681
+    <text class="panelRemark">该内容属于《{{Result.LATEX.Subject}}·{{Result.LATEX.Grade}}·{{Result.LATEX.Category}}》</text>
682
+  
683
+  </block>
684
+
685
+  <!-- 公式 -->
686
+  <block wx:if="{{Result.LATEX.LatexContent}}">
687
+    <view class="panelTitle0 panelTitle FlexColumn">
688
+      <view class="panelTitle1 FlexRow">
689
+        <view class="panelTitle11">公式</view>
690
+      </view>
691
+    </view>
692
+    <view class="{{CSS.LATEX_LatexContent.Css1}} panelItem panelItem0 FlexRow" bindtap='getInputData' data-type="normal"
693
+      data-content="{{Result.LATEX.LatexContent}}" data-css="LATEX_LatexContent" data-latexname="{{Result.LATEX.LatexName}}" data-fontsize="{{Result.LATEX.FontSize}}" data-tag="{{Result.LATEX.Grade}},{{Result.LATEX.Subject}},公式">
694
+      <view class="FlexRow">
695
+        <view class="{{CSS.LATEX_LatexContent.Css2}} panelSelect0">{{CSS.LATEX_LatexContent.Number}}</view>
696
+        <mp-html class="panelItemText panelItemText0" content="{{Result.LATEX.LatexContent2}}" style="font-size:{{Result.LATEX.FontSize-8}}rpx;" />
697
+      </view>
698
+      <view></view>
699
+    </view>
700
+    <text class="panelRemark2 panelRemark3">由于公式的格式特殊,普通输入框无法直接显示。因此,系统会采用以下方式呈现:</text>
701
+    <text class="panelRemark2"><text class="panelRemark21">[公式]</text><text>{{Result.LATEX.LatexContent1}}</text><text class="panelRemark21">[/公式]</text></text>
702
+    <text class="panelRemark2 panelRemark4">以 [公式] 开始,以 [/公式] 结尾,中间内容使用 LaTeX 格式书写。LaTeX 是国际通用的数学公式书写标准,这种格式并非乱码,而是专业表达方式。</text>
703
+  </block>
704
+
629 705
   <view class="panelHeight40"></view>
630 706
 </view>
631 707
 

+ 35 - 0
pages/main/addInfomationDetail.wxss

@@ -129,6 +129,11 @@
129 129
   justify-content: space-between;
130 130
 }
131 131
 
132
+.panelItem0{
133
+  height:auto;
134
+  padding: 10rpx 0;
135
+}
136
+
132 137
 .panelItem1{
133 138
   height:140rpx;
134 139
 }
@@ -176,6 +181,14 @@
176 181
   max-width:490rpx;
177 182
 }
178 183
 
184
+.panelItemTextLatex{
185
+  max-width:580rpx;
186
+  background-color: #fff;
187
+  color: #000000;
188
+  font-size: 48rpx;
189
+  margin: 20rpx 0;
190
+}
191
+
179 192
 .panelWordImage{
180 193
   width:80rpx;
181 194
   height:80rpx;
@@ -189,6 +202,28 @@
189 202
   border-bottom:1rpx solid #d2d2d2;
190 203
 }
191 204
 
205
+.panelRemark2{
206
+  width: 670rpx;
207
+  font-size:24rpx;
208
+  color:#4D4D4D;
209
+  font-weight: 400;
210
+  margin-bottom: 20rpx;
211
+}
212
+.panelRemark21{
213
+  font-weight: 700;
214
+  font-size: 24rpx;
215
+  color: #5282FA;
216
+}
217
+
218
+.panelRemark3{
219
+  margin-top: 10rpx;
220
+  font-weight: 700;
221
+}
222
+.panelRemark4{
223
+  margin-bottom: 60rpx;
224
+  font-weight: 700;
225
+}
226
+
192 227
 .Select1 {
193 228
   border:1rpx solid #5282FA;
194 229
   background-color: #5282FA;

+ 1 - 1
pages/main/cardmain.wxml

@@ -141,7 +141,7 @@
141 141
   <view class='panelBottom FlexColumn' catchtap="">
142 142
     <view class='panelBottom1 FlexRow'>
143 143
       <view class='panelBottom11 FlexColumn' catchtap="goto" data-url="../../pages_test/knowledge/index">
144
-        <view>检验</view>
144
+        <view>知识</view>
145 145
       </view>
146 146
       <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages/main/default">
147 147
         <view>练习</view>

+ 2 - 2
pages/main/default.js

@@ -565,9 +565,9 @@ Page({
565 565
   gotoTaskSetting:function(e){
566 566
     var taskSetting=wx.getStorageSync("TaskSetting");
567 567
     if (taskSetting)
568
-      this.goto({currentTarget:{dataset:{url:"../plan/taskFull"}}});
568
+      this.goto({currentTarget:{dataset:{url:"../../pages_plan/plan/taskFull"}}});
569 569
     else
570
-      this.goto({currentTarget:{dataset:{url:"../plan/taskBasic"}}});
570
+      this.goto({currentTarget:{dataset:{url:"../../pages_plan/plan/taskBasic"}}});
571 571
   },
572 572
   onShareAppMessage: function () {
573 573
     if (wx.getStorageSync("IsHelpAddInfomation") == 1) {

+ 9 - 9
pages/main/default.wxml

@@ -16,9 +16,9 @@
16 16
     <image class="icon_nextpage_2" src="../images/icon_nextpage_2.png" ></image>
17 17
   </view>
18 18
 
19
-  <image wx:if="{{TodayTaskNumber>0 && IsStart==1}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_start.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
20
-  <image wx:if="{{TodayTaskNumber>0 && IsStart==0}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_goon.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
21
-  <image wx:if="{{TodayTaskNumber==0}}" class="study_index_start{{IsIPad}}" src='../images/practise_index_report.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
19
+  <image wx:if="{{TodayTaskNumber>0 && IsStart==1}}" class="study_index_start{{IsIPad}}" src='{{ImagePath}}web/practise_index_start.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
20
+  <image wx:if="{{TodayTaskNumber>0 && IsStart==0}}" class="study_index_start{{IsIPad}}" src='{{ImagePath}}web/practise_index_goon.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
21
+  <image wx:if="{{TodayTaskNumber==0}}" class="study_index_start{{IsIPad}}" src='{{ImagePath}}web/practise_index_report.png' bindtap="goto" data-url="./detail?CardType={{CardType}}" />
22 22
 
23 23
   <view class="setting{{IsIPad}}" catchtap="gotoTaskSetting"></view>
24 24
   
@@ -31,12 +31,12 @@
31 31
         <image class="universalpic_close_black" src='{{ImagePath}}web/universalpic_close_black.png' />
32 32
       </view>
33 33
     </view>
34
-    <image class="study_index_footer" src='../images/practise_index_footer.png' />
34
+    <image class="study_index_footer" src='{{ImagePath}}web/practise_index_footer.png' />
35 35
 
36 36
     <view class='panelBottom1 FlexRow'>
37 37
       <!-- <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../../pages_test/test/index"> -->
38 38
       <view class='panelBottom11 FlexColumn' catchtap="goto" data-url="../../pages_test/knowledge/index">
39
-        <view>检验</view>
39
+        <view>知识</view>
40 40
       </view>
41 41
       <view class='panelBottom11 FlexColumn'>
42 42
         <view class='text5'>练习</view>
@@ -120,9 +120,9 @@
120 120
     <text class="IsRemindText3" wx:if="{{AwardDayNumber>0}}">现在您的奖励还有\n{{AwardDayNumber}}天</text>
121 121
     <view class="IsRemindBtn" catchtap="goto" data-url="../../pages_agent/marketing/index" >详情</view>
122 122
 
123
-    <image class="practise_index_board_blackboard" src='../images/practise_index_board_blackboard.png' />
124
-    <image class="practise_index_board_avater01" src='../images/practise_index_board_avater01.png' />
125
-    <image class="practise_index_board_close" catchtap="closeRemind" src='../images/practise_index_board_close.png' />
123
+    <image class="practise_index_board_blackboard" src='{{ImagePath}}web/practise_index_board_blackboard.png' />
124
+    <image class="practise_index_board_avater01" src='{{ImagePath}}web/practise_index_board_avater01.png' />
125
+    <image class="practise_index_board_close" catchtap="closeRemind" src='{{ImagePath}}web/practise_index_board_close.png' />
126 126
   </view>
127 127
 </view>
128 128
 
@@ -153,7 +153,7 @@
153 153
       </view>
154 154
     </view>
155 155
     <view class="text9" catchtap="goto" data-url="../other/family">设置</view>
156
-    <image class="practise_index_board_close" src="../images/practise_index_board_close.png" catchtap="closeUserFamily"></image>
156
+    <image class="practise_index_board_close" src="{{ImagePath}}web/practise_index_board_close.png" catchtap="closeUserFamily"></image>
157 157
   </view>
158 158
 </view>
159 159
 

+ 2 - 1
pages/main/detail.json

@@ -3,7 +3,8 @@
3 3
   "navigationBarTextStyle": "white",
4 4
   "enablePullDownRefresh": true,
5 5
   "usingComponents": {
6
-    "navigation-bar": "/components/navigation-bar/navigation-bar"
6
+    "navigation-bar": "/components/navigation-bar/navigation-bar",
7
+    "mp-html": "/components/mp-weixin"
7 8
   },
8 9
   "navigationStyle": "custom"
9 10
 }

+ 3 - 3
pages/main/detail.wxml

@@ -1,4 +1,4 @@
1
-<import src="../template/cardShow.wxml" />
1
+<import src="../../pages/template/cardShow.wxml" />
2 2
 <navigation-bar show="true" center="true" bindgetBarInfo="getBarInfo" left="true" background="{{Color.BackColor}}"
3 3
   color="#fff">
4 4
   <view slot="left" wx:if="{{NumberNew+NumberReview+NumberHistory>0}}">
@@ -102,9 +102,9 @@
102 102
     <view class='footer0'></view>
103 103
 
104 104
     <!-- 下方按钮 -->
105
-    <image wx:if="{{!IsIPad}}" class="footerShade" src="../images/study_learning_bgimage_tc0{{Color.ID}}.png" />
105
+    <image wx:if="{{!IsIPad}}" class="footerShade" src="{{ImagePath}}web/study_learning_bgimage_tc0{{Color.ID}}.png" />
106 106
     <view class='footer'>
107
-      <image wx:if="{{!IsIPad}}" class="footerImage" src="../images/study_learning_maskimage_tc0{{Color.ID}}.png" />
107
+      <image wx:if="{{!IsIPad}}" class="footerImage" src="{{ImagePath}}web/study_learning_maskimage_tc0{{Color.ID}}.png" />
108 108
       <view wx:if="{{IsIPad}}" class="footerImage" style="background-color:{{Color.BackColor}}"></view>
109 109
       <view class="panelFooter FlexColumn" wx:if="{{!IsShowAnswer[0] && !IsShowAnswer[1] && ClickType!=1}}"
110 110
         catchtap="onShowAnswer">

+ 25 - 0
pages/main/detail.wxss

@@ -286,6 +286,7 @@ page{
286 286
 .panelItem .textBigword{
287 287
   font-size:108rpx;
288 288
   line-height: 108rpx;
289
+  font-weight: bold;
289 290
 }
290 291
 
291 292
 .panelItem .textNormal2 {
@@ -354,6 +355,30 @@ page{
354 355
   height: 24rpx;
355 356
 }
356 357
 
358
+.panelItem .textLaTeXContainer{
359
+  width: 100%;
360
+  background-color: #fff;
361
+  align-items: flex-start;
362
+  border-radius: 10rpx;
363
+}
364
+.panelItem .textLaTeXName{
365
+  width: 590rpx;
366
+  font-size:28rpx;
367
+  font-weight: 400;
368
+  margin: 40rpx 0 0 30rpx;
369
+  color:#2e2e2e;
370
+}
371
+
372
+.panelItem .textLaTeX {
373
+  width: 590rpx;
374
+  background-color: #fff;
375
+  color: #000000;
376
+  border-radius: 10rpx;
377
+  font-size: 48rpx;
378
+  margin: 20rpx 0 20rpx 30rpx;
379
+  overflow-x:hidden;
380
+}
381
+
357 382
 .panelItem .textReturn {
358 383
   width: 100%;
359 384
 }

+ 3 - 3
pages/main/health.wxml

@@ -46,7 +46,7 @@
46 46
     <view class="lineWidthAll FlexRow">
47 47
       <view class="lineWidth680"></view>
48 48
     </view>
49
-    <view class="help1 FlexRow" bindtap="goto" data-url="../plan/pattern">
49
+    <view class="help1 FlexRow" bindtap="goto" data-url="../../pages_plan/plan/pattern">
50 50
       <view class="help10 FlexRow">
51 51
         <view class="help11 FlexColumn">
52 52
           <view class="help111">调整「记忆评价」模式</view>
@@ -141,7 +141,7 @@
141 141
     <view class="lineWidthAll FlexRow">
142 142
       <view class="lineWidth680"></view>
143 143
     </view>
144
-    <view class="help1 FlexRow" bindtap="goto" data-url="../plan/studyplandetail?CardType=0">
144
+    <view class="help1 FlexRow" bindtap="goto" data-url="../../pages_plan/plan/studyplandetail?CardType=0">
145 145
       <view class="help10 FlexRow">
146 146
         <view class="help11 FlexColumn">
147 147
           <view class="help111">调整「日常练习」任务限量</view>
@@ -152,7 +152,7 @@
152 152
     <view class="lineWidthAll FlexRow">
153 153
       <view class="lineWidth680"></view>
154 154
     </view>
155
-    <view class="help1 FlexRow" bindtap="goto" data-url="../plan/studyplandetail?CardType=-1">
155
+    <view class="help1 FlexRow" bindtap="goto" data-url="../../pages_plan/plan/studyplandetail?CardType=-1">
156 156
       <view class="help10 FlexRow">
157 157
         <view class="help11 FlexColumn">
158 158
           <view class="help111">调整「紧急练习」任务限量</view>

+ 218 - 0
pages/main/latex.js

@@ -0,0 +1,218 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+var keyHeight=0;
6
+var isCloseKeyboard=1;
7
+var tempCursor = undefined;
8
+var btnName="";
9
+var isEdit = true;
10
+
11
+Page({
12
+  data: {
13
+    ImagePath: app.globalData.uploadImageUrl,
14
+    InputHeight1: 157,
15
+    InputHeight2: 157,
16
+    BtnArray:[
17
+      {Name:"换行",Content:"\\\\",FontSize:"24"},
18
+      {Name:"空格",Content:"\\, ",FontSize:"24"},
19
+      {Name:"等距空格",Content:"\\quad ",FontSize:"24"},
20
+      {Name:"分数",Content:"\\frac{a}{b} ",FontSize:"24"},
21
+      {Name:"平方根",Content:"\\sqrt{a} ",FontSize:"24"},
22
+      {Name:"∵",Content:"∵",FontSize:"36"},
23
+      {Name:"∴",Content:"∴",FontSize:"36"},
24
+      {Name:"∠",Content:"∠",FontSize:"36"},
25
+      {Name:"∥",Content:"∥",FontSize:"36"},
26
+      {Name:"⟂",Content:"⟂",FontSize:"36"},
27
+      {Name:"▵",Content:"▵",FontSize:"36"},
28
+      {Name:"∼",Content:"∼",FontSize:"36"},
29
+      {Name:"≅",Content:"≅",FontSize:"36"},
30
+      {Name:"×",Content:"×",FontSize:"36"},
31
+      {Name:"÷",Content:"÷",FontSize:"36"},
32
+      {Name:"·",Content:"\\cdot",FontSize:"36"},
33
+      {Name:"±",Content:"±",FontSize:"36"},
34
+      {Name:"≠",Content:"≠",FontSize:"36"},
35
+      {Name:"≥",Content:"≥",FontSize:"36"},
36
+      {Name:"≤",Content:"≤",FontSize:"36"},
37
+      {Name:"π",Content:"π",FontSize:"36"},
38
+      {Name:"°",Content:"°",FontSize:"36"},
39
+      {Name:"⇒",Content:"⇒",FontSize:"36"},
40
+      {Name:"⇔",Content:"⇔",FontSize:"36"},
41
+      {Name:"∞",Content:"∞",FontSize:"36"},
42
+      {Name:"²",Content:"²",FontSize:"36"},
43
+      {Name:"³",Content:"³",FontSize:"36"},
44
+      {Name:"N次方",Content:"x^{n} ",FontSize:"24"},
45
+      {Name:"N次方根",Content:"\\sqrt[n]{a} ",FontSize:"24"},
46
+      {Name:"x₁",Content:"x₁",FontSize:"36"},
47
+      {Name:"x₂",Content:"x₂",FontSize:"36"},
48
+      {Name:"下标n",Content:"x_{n} ",FontSize:"24"},
49
+    ],
50
+  },
51
+  onLoad: function (options) {
52
+    var that = this;
53
+    that.setData({
54
+      Containnerheight: main.getWindowHeight(),
55
+      Focus: true,
56
+    });
57
+    that.clear();
58
+  },
59
+  onShow:function(e){
60
+    var that = this;
61
+    var obj=app.globalData.Latex;
62
+    if (obj){
63
+      that.setData({
64
+        KeyContent: obj.Content,
65
+        LatexContent:"$$"+obj.Content+"$$",
66
+        LatexName:obj.Name,
67
+        FontSize:obj.FontSize,
68
+      });
69
+      obj=null;
70
+    }
71
+
72
+    if (app.globalData.IsIPhoneX) {
73
+      that.setData({
74
+        InputHeight1: 240,
75
+        InputHeight2: 240,
76
+      });
77
+    }
78
+  },
79
+  //字段输入
80
+  bindinputField: function (e) {
81
+    var that = this;
82
+    if (app.globalData.IsAndroid && !isEdit) {
83
+      return;
84
+    }
85
+    var value=e.detail.value;
86
+    value=value.replace("}","}");
87
+    value=value.replace("{","{");
88
+    that.setData({
89
+      KeyContent: value,
90
+      LatexContent:"$$"+value+"$$",
91
+    });
92
+  },
93
+  setLatex:function(e){
94
+    console.log("setLatex");
95
+    var that=this;
96
+    isEdit = true;
97
+    var value=e.currentTarget.dataset.value;
98
+    btnName=value;
99
+    
100
+    if (!that.data.Focus) {
101
+      var obj = {
102
+        detail: {
103
+          cursor: tempCursor
104
+        }
105
+      };
106
+      that.onBindblur(obj);
107
+    }
108
+    
109
+    setTimeout(function () {
110
+      that.setData({
111
+        Focus: true,
112
+      });
113
+    }, 300);
114
+  },
115
+  
116
+  //焦点聚焦
117
+  onBindFocus: function () {
118
+    //console.log("onBindFocus");
119
+    btnName = "";
120
+    this.setData({
121
+      Focus: true,
122
+    });
123
+  },
124
+  //失焦
125
+  onBindblur: function (e) {
126
+    //console.log("onBindblur:" + isEdit + " Filed:" + this.data.KeyContent);
127
+    
128
+    var that = this;
129
+    //debugger;
130
+    if (app.globalData.IsAndroid && !isEdit) {
131
+      setTimeout(function () {
132
+        isEdit = true;
133
+        //console.log("onBindblur2:" + isEdit);
134
+      }, 500);
135
+      return;
136
+    }
137
+    isEdit = false;
138
+    if (app.globalData.IsAndroid && !isEdit) {
139
+      setTimeout(function () {
140
+        isEdit = true;
141
+        //console.log("onBindblur2:" + isEdit);
142
+      }, 500);
143
+    }
144
+
145
+    //console.log("onBindblur:"+isEdit);
146
+
147
+    tempCursor = e.detail.cursor;
148
+    if (tempCursor == undefined)
149
+      tempCursor = this.data["KeyContent"].length;
150
+    var str1 = "",
151
+      str2 = "";
152
+    if (this.data.KeyContent.length > 0) {
153
+      str1 = this.data.KeyContent.substr(0, tempCursor);
154
+      str2 = this.data.KeyContent.substring(tempCursor, this.data.KeyContent.length);
155
+    }
156
+    var cur = 0;
157
+    if (btnName) {
158
+      cur = btnName.length;
159
+    }
160
+    
161
+    that.data.KeyContent = str1 + btnName + str2;
162
+    that.setData({
163
+      KeyContent: that.data.KeyContent,
164
+      LatexContent:"$$"+that.data.KeyContent+"$$",
165
+      Focus: false,
166
+      Cursor: tempCursor + cur,
167
+    });
168
+    btnName="";
169
+  },
170
+  bindscrollHandler: function () {
171
+    //console.log("bindscrollHandler");
172
+    btnName = "";
173
+  },
174
+  onLatexError(e){
175
+    var that = this;
176
+    //console.log(e);
177
+  },
178
+  clear:function(){
179
+    var that = this;
180
+    that.setData({
181
+      KeyContent:"",
182
+      LatexContent:"",
183
+      Focus: true,
184
+      Cursor: 0,
185
+    });
186
+    btnName="";
187
+  },
188
+  close: function (e) {
189
+    var that=this;
190
+    var value=e.currentTarget.dataset.value;
191
+    if (value==1){
192
+      app.globalData.Latex="\n[公式";
193
+      if (that.data.LatexName)
194
+        app.globalData.Latex+=" N=\""+that.data.LatexName+"\"";
195
+      if (that.data.FontSize)
196
+        app.globalData.Latex+=" FS=\""+that.data.FontSize+"\"";
197
+      app.globalData.Latex+="]"+that.data.KeyContent+"[/公式]\n";
198
+    }
199
+    else
200
+      app.globalData.Latex="";
201
+    wx.navigateBack({
202
+      delta: 1,
203
+    });
204
+  },
205
+  goto: function (e) {
206
+    var url = e.currentTarget.dataset.url;
207
+    wx.navigateTo({
208
+      url: url,
209
+    });
210
+  },
211
+  onShareAppMessage: function () {
212
+    return {
213
+      title: app.globalData.ShareTitle,
214
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
215
+      imageUrl: app.globalData.ShareImage,
216
+    }
217
+  },
218
+})

+ 8 - 0
pages/main/latex.json

@@ -0,0 +1,8 @@
1
+{
2
+  "navigationBarTitleText": "公式编辑",
3
+  "enablePullDownRefresh": false,
4
+  "backgroundColor": "#f0f0f0",
5
+  "usingComponents": {
6
+    "mp-html": "/components/mp-weixin"
7
+  }
8
+}

+ 33 - 0
pages/main/latex.wxml

@@ -0,0 +1,33 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panelTap FlexColumn">
3
+    <view class="panelTap1 FlexRow">
4
+      <view class="btn2 FlexColumn" bind:tap="close">取消</view>
5
+      <view class="btn2 btn21 FlexRow" bind:tap="goto" data-url="./latex_common"><text>选公式</text></view>
6
+      <view class="btn2 FlexColumn" bind:tap="close" data-value="1">确定</view>
7
+    </view>
8
+  </view>
9
+  <scroll-view scroll-y="true" class="panelScorll" style="height:{{InputHeight1}}rpx;">
10
+    <mp-html class="panel1" content="{{LatexContent}}" style="font-size: {{FontSize}}rpx;height:{{InputHeight1}}rpx;" binderror="onLatexError"></mp-html>
11
+  </scroll-view>
12
+  
13
+  <view class="panel2 FlexColumn" style="top:{{InputHeight2+80}}rpx;">
14
+    <view class="panel21 FlexColumn">
15
+      <textarea class="input" maxlength='-1'
16
+      style="height:{{InputHeight2}}rpx;" 
17
+      value="{{KeyContent}}" 
18
+      focus="{{Focus}}" 
19
+      cursor="{{Cursor}}" 
20
+      bindinput="bindinputField" 
21
+      bindblur="onBindblur" 
22
+      bindfocus="onBindFocus" 
23
+      />
24
+    </view>
25
+    <scroll-view scroll-x="true" class="panel3" bindscroll="bindscrollHandler">
26
+      <view class="panel31 panel310"></view>
27
+      <view class="panel31 FlexRow" wx:for="{{BtnArray}}" wx:key="index"  catchtap="setLatex" data-value="{{item.Content}}">
28
+        <view class="panel311 FlexRow" style="font-size: {{item.FontSize}}rpx;">{{item.Name}}</view>
29
+      </view>
30
+      <view class="panel31 panel310"></view>
31
+    </scroll-view>
32
+  </view>
33
+</view>

+ 150 - 0
pages/main/latex.wxss

@@ -0,0 +1,150 @@
1
+.container {
2
+  width:100%;
3
+  background-color: #f0f0f0;
4
+} 
5
+.panelTap{
6
+  width: 100%;
7
+  position: fixed;
8
+  z-index: 10;
9
+}
10
+
11
+.panelTap1{
12
+  width: 100%;
13
+  justify-content: space-between;
14
+  background-color: #fff;
15
+}
16
+.btn2{
17
+  margin: 0 10rpx;
18
+  min-width:100rpx;
19
+  height:100rpx;
20
+  font-size: 28rpx;
21
+}
22
+.btn21{
23
+  width:300rpx;
24
+  margin-left: 380rpx;
25
+}
26
+
27
+.text1{
28
+  margin: 50rpx 0 30rpx 0;
29
+  justify-content:space-between;
30
+  width: 690rpx;
31
+}
32
+
33
+.panelScorll{
34
+  width:100%;
35
+  overflow-y: hidden;
36
+  background-color: #fff;
37
+  position: fixed;
38
+  top:100rpx;
39
+}
40
+
41
+.panel1{
42
+  width:690rpx;
43
+  min-height:157rpx;
44
+  background-color: #fff;
45
+  color: #000000;
46
+  padding: 30rpx 0;
47
+  font-size: 48rpx;
48
+  text-align: center;
49
+  z-index: 0;
50
+}
51
+.panel2{
52
+  width:100%;
53
+  background-color: #f2f2f2;
54
+  position: fixed;
55
+  top:280rpx;
56
+  z-index: 100;
57
+  border-top: 1rpx solid #D2D2D2;
58
+}
59
+
60
+.btn{
61
+  margin: 5rpx 5rpx;
62
+  font-size: 24rpx;
63
+}
64
+
65
+.panel4{
66
+  width:690rpx;
67
+  margin: 20rpx 0 0 0;
68
+  align-items: flex-start;
69
+}
70
+.panel41{
71
+  width:590rpx;
72
+  height: 160rpx;
73
+}
74
+.panel411{
75
+  width:580rpx;
76
+  flex-wrap: wrap;
77
+  justify-content: flex-start;
78
+  align-items: flex-start;
79
+}
80
+.panel4Line{
81
+  width:5rpx;
82
+  height:160rpx;
83
+  background-color: #d2d2d2;
84
+  margin: 0 20rpx 0 0;
85
+}
86
+.panel42{
87
+  width:70rpx;
88
+  justify-content: space-between;
89
+}
90
+.btn3{
91
+  height:70rpx;
92
+  width:80rpx;
93
+  border:1rpx solid #d2d2d2;
94
+  border-radius: 10rpx;
95
+}
96
+
97
+.panel21{
98
+  width:100%;
99
+  background-color: #fff;
100
+  margin-top: 10rpx;
101
+  font-size: 36rpx;
102
+}
103
+.input{
104
+  width:690rpx;
105
+  font-size: 36rpx;
106
+  height: 157rpx;
107
+  margin-top: 30rpx;
108
+  font-weight: 400;
109
+}
110
+.container2{
111
+  position: fixed;
112
+  background-color: #fff;
113
+  z-index: 200;
114
+}
115
+
116
+.btn4{
117
+  margin: 10rpx 8rpx;
118
+  font-size: 24rpx;
119
+}
120
+.panelFooter{
121
+  width: 650rpx;
122
+  position: fixed;
123
+  bottom: 80rpx;
124
+}
125
+
126
+.panel3{
127
+  z-index: 10;
128
+  width:100%;
129
+  height: 100rpx;
130
+  background-color: #fff;
131
+  display: flex;
132
+  white-space: nowrap;
133
+  border-bottom: 1rpx solid #d2d2d2;
134
+}
135
+.panel31{
136
+  min-width: 80rpx;
137
+  margin: 10rpx 5rpx 0 5rpx;
138
+  display: inline-block;
139
+}
140
+.panel310{
141
+  min-width: 10rpx;
142
+}
143
+.panel311{
144
+  width: 100%;
145
+  height:80rpx;
146
+  padding: 0 16rpx;
147
+  font-size:24rpx;
148
+  font-weight: 700;
149
+  color:#4D4D4D;
150
+}

+ 105 - 0
pages/main/latex_common.js

@@ -0,0 +1,105 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+var latexDataSource;
6
+
7
+Page({
8
+  data: {
9
+    ImagePath: app.globalData.uploadImageUrl,
10
+    Menu1:[{Name:"数学",Selected:1},{Name:"物理",Selected:0},{Name:"化学",Selected:0},],
11
+    Menu2:[{Name:"小学",Pos:"L",Selected:1},{Name:"初中",Pos:"",Selected:0},{Name:"高中",Pos:"R",Selected:0}]
12
+  },
13
+  onLoad: function (options) {
14
+    var that = this;
15
+    that.setData({
16
+      Containnerheight: main.getWindowHeight(),
17
+    });
18
+    that.init();
19
+  },
20
+  init:function(){
21
+    var that = this;
22
+    wx.showLoading({
23
+      title: '请稍等',
24
+    })
25
+    var url = 'GetLatexList';
26
+    main.getData(url, function (data) {
27
+      wx.hideLoading();
28
+      if (data) {
29
+
30
+        latexDataSource=JSON.stringify(data);
31
+        that.setData({
32
+          LatexData:data,
33
+        });
34
+      }
35
+    });
36
+  },
37
+  setMenu:function(e){
38
+    var that=this;
39
+    var level=e.currentTarget.dataset.level;
40
+    var subject=e.currentTarget.dataset.subject;
41
+    var grade=e.currentTarget.dataset.grade;
42
+    var category=e.currentTarget.dataset.category;
43
+    //debugger;
44
+    that.data.LatexData=JSON.parse(latexDataSource);
45
+        
46
+    for(var i=0;i<that.data.LatexData.length;i++){
47
+      if (subject==i)
48
+        that.data.LatexData[i].Selected=1;
49
+      else
50
+        that.data.LatexData[i].Selected=0;
51
+      
52
+      if (level>0){
53
+        
54
+        for(var j=0;j<that.data.LatexData[i].List.length;j++){
55
+          if (grade==j){
56
+            that.data.LatexData[i].List[j].Selected=1;
57
+          }
58
+          else
59
+            that.data.LatexData[i].List[j].Selected=0;
60
+          
61
+          if (level==2){
62
+            that.data.LatexData[i].List[j].List[0].Selected=1;
63
+              
64
+            for(var k=0;k<that.data.LatexData[i].List[j].List.length;k++){
65
+              if (category==k){
66
+                that.data.LatexData[i].List[j].List[0].Selected=0;
67
+                that.data.LatexData[i].List[j].List[k].Selected=1;
68
+              }
69
+              else
70
+                that.data.LatexData[i].List[j].List[k].Selected=0;
71
+            }
72
+          }
73
+          
74
+        }
75
+        
76
+      }
77
+    }
78
+    that.setData({
79
+      LatexData:that.data.LatexData,
80
+    });
81
+    if (level==0 || level==1){
82
+      that.setData({
83
+        ScrollLeft:0,
84
+      });
85
+    }
86
+  },
87
+  selectItem:function(e){
88
+    var obj={};
89
+    obj.Name=e.currentTarget.dataset.name;
90
+    obj.Content=e.currentTarget.dataset.content;
91
+    obj.FontSize=e.currentTarget.dataset.fontsize;
92
+    obj.Content=obj.Content.substr(2,obj.Content.length-4);
93
+    app.globalData.Latex=obj;
94
+    wx.navigateBack({
95
+      delta: 1,
96
+    });
97
+  },
98
+  onShareAppMessage: function () {
99
+    return {
100
+      title: app.globalData.ShareTitle,
101
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
102
+      imageUrl: app.globalData.ShareImage,
103
+    }
104
+  },
105
+})

+ 7 - 0
pages/main/latex_common.json

@@ -0,0 +1,7 @@
1
+{
2
+  "navigationBarTitleText": "常用公式",
3
+  "enablePullDownRefresh": false,
4
+  "usingComponents": {
5
+    "mp-html": "/components/mp-weixin"
6
+  }
7
+}

+ 44 - 0
pages/main/latex_common.wxml

@@ -0,0 +1,44 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panelTap FlexRow">
3
+    <view class="panelTop1 FlexColumn" wx:for="{{LatexData}}" wx:key="index" bind:tap="setMenu" data-level="0" data-subject="{{index}}" >
4
+      <view>{{item.Name}}</view>
5
+      <view class="panelTopLine{{item.Selected}}"></view>
6
+    </view>
7
+  </view>
8
+
9
+  <view class="panelMenu1 FlexRow">
10
+    <block wx:for="{{LatexData}}" wx:key="index">
11
+      <block wx:for="{{item.List}}" wx:key="indexGrade" wx:if="{{item.Selected==1}}" wx:for-item="itemGrade" wx:for-index="indexGrade">
12
+        <view class="panelMenu11 panelMenu11_{{index}} panelMenu11{{itemGrade.Pos}} panelMenu11{{itemGrade.Selected}} FlexRow" bind:tap="setMenu"  data-level="1"   data-subject="{{index}}" data-grade="{{indexGrade}}">{{itemGrade.Name}}</view>
13
+      </block>
14
+    </block>
15
+   </view>
16
+
17
+  <scroll-view scroll-x="true" scroll-left="{{ScrollLeft}}" class="panelMenu2">
18
+    <view style="width: 30rpx;display: inline-block;"></view>
19
+    <block wx:for="{{LatexData}}" wx:key="index">
20
+      <block wx:for="{{item.List}}" wx:key="indexGrade" wx:if="{{item.Selected==1}}" wx:for-item="itemGrade" wx:for-index="indexGrade">
21
+        <block wx:for="{{itemGrade.List}}" wx:key="indexCategory" wx:if="{{itemGrade.Selected==1}}" wx:for-item="itemCategory" wx:for-index="indexCategory">
22
+          <view class="panelMenu21 panelMenu21{{itemCategory.Selected}} FlexRow" bind:tap="setMenu" data-level="2" data-subject="{{index}}" data-grade="{{indexGrade}}" data-category="{{indexCategory}}">
23
+            <view>{{itemCategory.Name}}</view>
24
+          </view>
25
+        </block>
26
+      </block>
27
+    </block>
28
+    <view style="width: 30rpx;display: inline-block;"></view>
29
+  </scroll-view>
30
+  
31
+  <block wx:for="{{LatexData}}" wx:key="index">
32
+    <block wx:for="{{item.List}}" wx:key="indexGrade" wx:if="{{item.Selected==1}}" wx:for-item="itemGrade" wx:for-index="indexGrade">
33
+      <block wx:for="{{itemGrade.List}}" wx:key="indexCategory" wx:if="{{itemGrade.Selected==1}}" wx:for-item="itemCategory" wx:for-index="indexCategory">
34
+        <block wx:for="{{itemCategory.List}}" wx:key="indexLatex" wx:if="{{itemCategory.Selected==1}}" wx:for-item="itemLatex" wx:for-index="indexLatex">
35
+          <view class="panelCard FlexColumn" bind:tap="selectItem" data-name="{{itemLatex.Name}}" data-content="{{itemLatex.LaTeX}}" data-fontsize="{{itemLatex.FontSize}}">
36
+            <view class="panelCard1">{{itemLatex.Name}}</view>
37
+            <mp-html class="panelCardLatex" content="{{itemLatex.LaTeX}}" style="font-size:{{itemLatex.FontSize}}rpx;" />
38
+          </view>
39
+        </block>
40
+      </block>
41
+    </block>
42
+  </block>
43
+  <view style="height: 60rpx;"></view>
44
+</view>

+ 112 - 0
pages/main/latex_common.wxss

@@ -0,0 +1,112 @@
1
+.container {
2
+  width:100%;
3
+  background-color: #e3e3e3;
4
+} 
5
+.panelTap{
6
+  width: 100%;
7
+  position: fixed;
8
+  background-color: #fff;
9
+  z-index: 10;
10
+  height:120rpx;
11
+  top:0;
12
+  align-items: flex-end;
13
+}
14
+
15
+.panelTap1{
16
+  height:120rpx;
17
+  justify-content: flex-end;
18
+}
19
+
20
+.panelTopLine0{
21
+  width:72rpx;
22
+  height:20rpx;
23
+  background-color: #fff;
24
+  margin: 20rpx 50rpx 0 50rpx;
25
+}
26
+.panelTopLine1{
27
+  width:72rpx;
28
+  height:20rpx;
29
+  background-color: #FF8451;
30
+  margin: 20rpx 50rpx 0 50rpx;
31
+}
32
+
33
+.panelMenu1{
34
+  width:690rpx;
35
+  height:80rpx;
36
+  background: #4D4D4D;
37
+  border-radius: 20rpx;
38
+  margin-top: 160rpx;
39
+}
40
+.panelMenu11{
41
+  height:70rpx;
42
+  font-size:28rpx;
43
+  box-shadow: 0 4rpx 0 0 rgba(0,0,0,0.20);
44
+  border-radius: 5rpx 5rpx 5rpx 5rpx;
45
+  color:#e3e3e3;
46
+}
47
+.panelMenu11L{
48
+  box-shadow: 0 4rpx 0 0 rgba(0,0,0,0.20);
49
+  border-radius: 15rpx 5rpx 5rpx 15rpx;
50
+}
51
+.panelMenu11R{
52
+  box-shadow: 0 4rpx 0 0 rgba(0,0,0,0.20);
53
+  border-radius: 5rpx 15rpx 15rpx 5rpx;
54
+}
55
+.panelMenu111{
56
+  background-color: #fff;
57
+  color:#4d4d4d;
58
+}
59
+.panelMenu11_0{
60
+  width:228rpx;
61
+}
62
+.panelMenu11_1{
63
+  width:340rpx;
64
+}
65
+.panelMenu11_2{
66
+  width:340rpx;
67
+}
68
+
69
+.panelMenu2{
70
+  width:100%;
71
+  display: flex;
72
+  white-space: nowrap;
73
+  overflow-x: hidden;
74
+  margin: 40rpx 0 30rpx 0;
75
+}
76
+.panelMenu21{
77
+  display: inline-block;
78
+  padding: 10rpx 20rpx;
79
+  font-size: 28rpx;
80
+  margin-right: 20rpx;
81
+}
82
+.panelMenu211{
83
+  background: #FFFFFF;
84
+  border-radius: 10rpx;
85
+}
86
+
87
+.panelCard{
88
+  width:690rpx;
89
+  background: #FFFFFF;
90
+  box-shadow: 0 6rpx 0 0 rgba(0,0,0,0.20);
91
+  border-radius: 20rpx;
92
+  font-size: 28rpx;
93
+  color: #2E2E2E;
94
+  margin-top: 30rpx;
95
+  justify-content: flex-start;
96
+}
97
+.panelCard1{
98
+  width:630rpx;
99
+  font-size:28rpx;
100
+  font-weight: 400;
101
+  margin-top: 40rpx;
102
+}
103
+.panelCardLatex{
104
+  width:630rpx;
105
+  min-height:80rpx;
106
+  margin: 30rpx 0 50rpx 0;
107
+  text-align: center;
108
+  background-color: #fff;
109
+  color: #000000;
110
+  font-size: 48rpx;
111
+  line-height: 120rpx;
112
+}

+ 10 - 11
pages/main/mainlist.js

@@ -275,20 +275,11 @@ Page({
275 275
       if (item.Content[1].ContentStr.length > len)
276 276
         item.Content[1].ContentStr = main.replaceCardInfoString(item.Content[1].ContentStr.substr(0, len)) + "...";
277 277
 
278
-      if (item.Content[1].ContentStr){
279
-        item.Content[1].ContentStr=item.Content[1].ContentStr.replace("[特]","");
280
-        item.Content[1].ContentStr=item.Content[1].ContentStr.replace("[/特]","");
281
-      }
282 278
 
283 279
       item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].Content);
284 280
       if (item.Content[2].ContentStr.length > len)
285 281
         item.Content[2].ContentStr = main.replaceCardInfoString(item.Content[2].ContentStr.substr(0, len)) + "...";
286 282
 
287
-      if (item.Content[2].ContentStr){
288
-        item.Content[2].ContentStr=item.Content[2].ContentStr.replace("[特]","");
289
-        item.Content[2].ContentStr=item.Content[2].ContentStr.replace("[/特]","");
290
-      }
291
-
292 283
       var imageUrl = getImage(item.Content[1].Content);
293 284
       if (imageUrl.length == 0 && item.Content[2].Content)
294 285
         imageUrl = getImage(item.Content[2].Content);
@@ -301,6 +292,16 @@ Page({
301 292
         item.ImageUrlServer = imageUrl;
302 293
         item.Width="540";
303 294
       }
295
+      else{
296
+        if (item.Content[1].Content.indexOf("[/公式]")>0
297
+        || item.Content[2].Content.indexOf("[/公式]")>0
298
+        || item.Content[3].Content.indexOf("[/公式]")>0){
299
+          item.ImageUrlTemp = "../images/universalpic_dictionary_formula_black_80x80.jpg";
300
+          item.ImageUrlServer = item.ImageUrlTemp;
301
+          item.Width="540";
302
+        }
303
+      }
304
+      //debugger;
304 305
 
305 306
       if (item.FirstTime < "1900-01-02")
306 307
         item.CardCategory = "新题卡";
@@ -700,8 +701,6 @@ Page({
700 701
           arr[0][2]="";
701 702
         }
702 703
         //console.log("CardType:"+that.data.CardType);
703
-        
704
-
705 704
         that.setData({
706 705
           FilterArr:arr,
707 706
         });

+ 0 - 1
pages/main/preview.js

@@ -206,7 +206,6 @@ Page({
206 206
           nextId = list[i + 1].MiaoguoCardID;
207 207
         else
208 208
           nextId = 0;
209
-
210 209
         card = main.changeStringToView(list[i].Content);
211 210
         card.MiaoguoCardID = list[i].MiaoguoCardID;
212 211
         card.LimitTime = list[i].LimitTime;

+ 3 - 0
pages/main/preview.json

@@ -1,4 +1,7 @@
1 1
 {
2 2
   "navigationBarTitleText": "格式预览",
3
+  "usingComponents": {
4
+    "mp-html": "/components/mp-weixin"
5
+  },
3 6
   "enablePullDownRefresh": true
4 7
 }

+ 1 - 1
pages/main/preview.wxml

@@ -1,4 +1,4 @@
1
-<import src="../template/cardShow.wxml" />
1
+<import src="../../pages/template/cardShow.wxml" />
2 2
 
3 3
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;background-color:{{Color.BackColor}}'>
4 4
   <!-- 顶端工具栏 -->

+ 24 - 0
pages/main/preview.wxss

@@ -306,6 +306,7 @@
306 306
 .panelItem .textBigword{
307 307
   font-size:108rpx;
308 308
   line-height: 108rpx;
309
+  font-weight: bold;
309 310
 }
310 311
 
311 312
 .panelItem .textNormal2 {
@@ -363,6 +364,29 @@
363 364
   height: 24rpx;
364 365
 }
365 366
 
367
+.panelItem .textLaTeXContainer{
368
+  width: 100%;
369
+  background-color: #fff;
370
+  align-items: flex-start;
371
+  border-radius: 10rpx;
372
+}
373
+.panelItem .textLaTeXName{
374
+  width: 590rpx;
375
+  font-size:28rpx;
376
+  font-weight: 400;
377
+  margin: 10rpx 0 0 30rpx;
378
+  color:#2e2e2e;
379
+}
380
+.panelItem .textLaTeX {
381
+  width: 590rpx;
382
+  background-color: #fff;
383
+  color: #000000;
384
+  border-radius: 10rpx;
385
+  font-size: 48rpx;
386
+  margin: 20rpx 0 20rpx 30rpx;
387
+  overflow-x:hidden;
388
+}
389
+
366 390
 .panelItem .textReturn {
367 391
   width: 100%;
368 392
 }

+ 3 - 3
pages/main/systemsetting.wxml

@@ -3,19 +3,19 @@
3 3
     <view class="panelTitle1">通用</view>
4 4
     <view class="panelTitle2"></view>
5 5
   </view>
6
-  <view class="panelItem FlexRow" bindtap='goto' data-url="../plan/pattern">
6
+  <view class="panelItem FlexRow" bindtap='goto' data-url="../../pages_plan/plan/pattern">
7 7
     <view class="panelItem1">记忆评价</view>
8 8
     <view class="panelItem2 FlexRow">
9 9
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
10 10
     </view>
11 11
   </view>
12
-  <view class="panelItem FlexRow" bindtap='goto' data-url="../plan/clicktype">
12
+  <view class="panelItem FlexRow" bindtap='goto' data-url="../../pages_plan/plan/clicktype">
13 13
     <view class="panelItem1">显示答案的操作方式</view>
14 14
     <view class="panelItem2 FlexRow">
15 15
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
16 16
     </view>
17 17
   </view>
18
-  <view class="panelItem FlexRow" bindtap='goto' data-url="../plan/colorplan">
18
+  <view class="panelItem FlexRow" bindtap='goto' data-url="../../pages_plan/plan/colorplan">
19 19
     <view class="panelItem1">题卡主题色</view>
20 20
     <view class="panelItem2 FlexRow">
21 21
       <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />

+ 1 - 1
pages/other/annualreport.wxml

@@ -97,7 +97,7 @@
97 97
 			</view>
98 98
 		</view>
99 99
 		<view class="line1"></view>
100
-		<view class="panelItem FlexRow" bindtap='goto' data-url="../plan/pattern">
100
+		<view class="panelItem FlexRow" bindtap='goto' data-url="../../pages_plan/plan/pattern">
101 101
 			<view class="text3">使用记忆评价完整模式让复习更精确</view>
102 102
 			<view class="text4">
103 103
 				<image src="../images/universalpic_indicator_right_gray.png" class="universalpic_indicator_right_gray" />

+ 1 - 1
pages/other/lessonlist.js

@@ -38,7 +38,7 @@ Page({
38 38
           arr[1].List.splice(6, 1);
39 39
 
40 40
 
41
-          arr[1].List[4].Title = "通过【检验】生成字词、古诗词、英语题卡";
41
+          arr[1].List[4].Title = "通过【知识】生成字词、古诗词、英语题卡";
42 42
           arr[1].List[3].Title = "通过【加资料】制作字词、古诗词、英语题卡";
43 43
           arr[1].List[2].Title = "制作任何知识点的普通题卡";
44 44
 

+ 1 - 1
pages/share/milestone.js

@@ -1,6 +1,6 @@
1 1
 import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3
-import fanObj from '../template/FanObject';
3
+import fanObj from '../../pages/template/FanObject';
4 4
 const app = getApp();
5 5
 
6 6
 Page({

+ 1 - 1
pages/share/milestone.wxml

@@ -1,4 +1,4 @@
1
-<import src="../template/Fan.wxml" />
1
+<import src="../../pages/template/Fan.wxml" />
2 2
 
3 3
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
4 4
   <view class="panel1 FlexColumn">

+ 1 - 1
pages/share/milestone.wxss

@@ -1,4 +1,4 @@
1
-@import "../template/Fan.wxss";
1
+@import "../../pages/template/Fan.wxss";
2 2
 
3 3
 .container{
4 4
   background-color: #fff;

+ 13 - 4
pages/template/cardShow.wxml

@@ -6,8 +6,13 @@
6 6
       <text class="textProblem" style='background-color:{{Color.LineColor}};'>题目</text>
7 7
       <view class="textReturn"></view>
8 8
       <block wx:for="{{Field[1]}}" wx:key="index">
9
-
10 9
         <text class="textReturn" wx:if="{{index>0 && item.Type=='return'}}"></text>
10
+        <view class="textLaTeXContainer FlexColumn">
11
+          <view class="textLaTeXName" wx:if="{{item.LatexName}}">{{item.LatexName}}</view>
12
+          <mp-html class="textLaTeX" content="{{item.Content}}" wx:if="{{item.Type=='latex'}}" style="font-size:{{item.FontSize}}rpx;"/>
13
+          <view style="height:20rpx;" wx:if="{{item.LatexName}}"></view>
14
+        </view>
15
+        
11 16
         <view class="textBr" wx:if="{{index>0 && item.Type=='br'}}" style="height:{{FontSize/2}}rpx;"></view>
12 17
         <text class="textNormal" selectable="true" space='{{TextSpace}}' wx:if="{{item.Type=='normal'}}">{{item.Content}}</text>
13 18
         <text class="textNormal" selectable="true" space='{{TextSpace}}' wx:if="{{item.Type=='line'}}">
@@ -18,7 +23,7 @@
18 23
       </block>
19 24
       </text>
20 25
 
21
-      <view class="textBigword" wx:if="{{item.Type=='bigword'}}">{{item.Content}}</view>
26
+      <view class="textBigword" wx:if="{{item.Type=='bigword'}}" style="font-size:{{item.FontSize}}rpx;line-height:{{item.FontSize}}rpx;">{{item.Content}}</view>
22 27
       
23 28
       <view class="panelSound FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" wx:if="{{item.Type=='sound'}}" catchtap="playSound" data-content="{{item.Content}}" data-soundmark="{{item.SoundMark}}" data-fieldid="1">
24 29
         <image class="universalpic_read_mark_black_20x20" src='../../pages/images/universalpic_read_mark_black_20x20.png' />
@@ -57,6 +62,11 @@
57 62
       <view class="panelField21 panelItem FlexRow" style='color:{{Color.FieldColor}};'>
58 63
         <text class='textDot' wx:if="{{Field[itemParent][0].Type!='normal' && Field[itemParent][0].Type!='line'}}" style='color:{{Color.LineColor}};'>●</text>
59 64
         <block wx:for="{{Field[itemParent]}}" wx:key="index">
65
+          <view class="textLaTeXContainer FlexColumn">
66
+            <view class="textLaTeXName" wx:if="{{item.LatexName}}">{{item.LatexName}}</view>
67
+            <mp-html class="textLaTeX" content="{{item.Content}}" wx:if="{{item.Type=='latex'}}" style="font-size:{{item.FontSize}}rpx;"/>
68
+            <view style="height:20rpx;" wx:if="{{item.LatexName}}"></view>
69
+          </view>
60 70
           <text class="textReturn" wx:if="{{item.Type=='return'}}"></text>
61 71
           <view class="textBr" wx:if="{{item.Type=='br'}}"></view>
62 72
 
@@ -81,8 +91,7 @@
81 91
           </view>
82 92
 
83 93
           <view class="textPinyin" hover-class='panelPinyinHover1' hover-stay-time="1000" wx:if="{{item.Type=='sound'}}" catchtap="playSound" data-content="{{item.Content}}" data-soundmark="{{item.SoundMark}}" data-fieldid="{{itemParent}}">{{item.Content}}</view>
84
-          <view class="textBigword" wx:if="{{item.Type=='bigword'}}">{{item.Content}}</view>
85
-      
94
+          <view class="textBigword" wx:if="{{item.Type=='bigword'}}" style="font-size:{{item.FontSize}}rpx;line-height:{{item.FontSize}}rpx;">{{item.Content}}</view>
86 95
           <view class="panelRecorder FlexRow" wx:if="{{item.Type=='recorder'}}">
87 96
             <view class="panelRecorder0 FlexRow" hover-class='panelSoundHover' hover-stay-time="1000" catchtap="playSound" data-content="recorder" data-soundmark="{{item.SoundMark}}" data-fieldid="{{itemParent}}">
88 97
               <image class="universalpic_read_mark_black_20x20" src='../../pages/images/universalpic_read_mark_black_20x20.png' />

pages/plan/clicktype.js → pages_plan/plan/clicktype.js


pages/plan/clicktype.json → pages_plan/plan/clicktype.json


+ 1 - 1
pages/plan/clicktype.wxml

@@ -19,7 +19,7 @@
19 19
     <block wx:for="{{List}}" wx:key="index">
20 20
       <view class="{{item.SelectedCSS}} panelSelected FlexRow" bindtap="selectType" data-index="{{index}}">
21 21
         <view class='panelSelected0 FlexRow' hidden="{{!item.SelectedCSS}}">
22
-          <image src='../images/universalpic_checked_white_22x17.png' class="universalpic_checked_white_22x17" />
22
+          <image src='../../pages/images/universalpic_checked_white_22x17.png' class="universalpic_checked_white_22x17" />
23 23
         </view>
24 24
         <view class='panelSelected00 panelSelected0' hidden="{{item.SelectedCSS}}">
25 25
         </view>

pages/plan/clicktype.wxss → pages_plan/plan/clicktype.wxss


pages/plan/colorplan.js → pages_plan/plan/colorplan.js


pages/plan/colorplan.json → pages_plan/plan/colorplan.json


pages/plan/colorplan.wxml → pages_plan/plan/colorplan.wxml


pages/plan/colorplan.wxss → pages_plan/plan/colorplan.wxss


pages/plan/pattern.js → pages_plan/plan/pattern.js


pages/plan/pattern.json → pages_plan/plan/pattern.json


+ 5 - 5
pages/plan/pattern.wxml

@@ -1,7 +1,7 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class="line"></view>
3 3
   <view class="panelTitle FlexRow">
4
-    <image class="universalpic_plan_2line_black_30x32" src="../images/universalpic_plan_data_black_30x32.png" />
4
+    <image class="universalpic_plan_2line_black_30x32" src="../../pages/images/universalpic_plan_data_black_30x32.png" />
5 5
     <view class="panelTitle1">样式预览</view>
6 6
   </view>
7 7
   <view class="lineWidthAll0 lineWidthAll FlexRow">
@@ -25,7 +25,7 @@
25 25
       <view class="panelItem1 FlexRow" bindtap="selectPattern" data-index="{{index}}">
26 26
         <view class="imgTrue FlexRow">
27 27
           <block wx:if="{{index==MemoryLevel}}">
28
-            <image class="universalpic_checked_blue_40x40" src='../images/universalpic_checked_blue_40x40.png' />
28
+            <image class="universalpic_checked_blue_40x40" src='../../pages/images/universalpic_checked_blue_40x40.png' />
29 29
           </block>
30 30
         </view>
31 31
         <view class="panelItem11 FlexColumn">
@@ -62,7 +62,7 @@
62 62
               <view class="picker">
63 63
                 {{item.Value}}秒内
64 64
               </view>
65
-              <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
65
+              <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
66 66
             </view>
67 67
           </view>
68 68
         </picker>
@@ -74,7 +74,7 @@
74 74
   <view class="panelItem3 panelItem FlexRow" bindtap="goto" data-url="../other/help?id=1&idchild=2">
75 75
     <view class="panelItem31">帮助:记忆评价的作用</view>
76 76
     <view class="panelItem32 FlexRow">
77
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
77
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
78 78
     </view>
79 79
   </view>
80 80
   <view class="lineWidthAll FlexRow">
@@ -83,7 +83,7 @@
83 83
   <view class="panelItem3 panelItem FlexRow" bindtap="goto" data-url="../other/help?id=1&idchild=3">
84 84
     <view class="panelItem31">帮助:时间指标的作用</view>
85 85
     <view class="panelItem32 FlexRow">
86
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
86
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
87 87
     </view>
88 88
   </view>
89 89
   <view class='lineFooter'></view>

pages/plan/pattern.wxss → pages_plan/plan/pattern.wxss


pages/plan/setting.js → pages_plan/plan/setting.js


pages/plan/setting.json → pages_plan/plan/setting.json


+ 5 - 5
pages/plan/setting.wxml

@@ -6,7 +6,7 @@
6 6
       <view class="picker" wx:if="{{CardType==0}}">
7 7
         当前
8 8
       </view>
9
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
9
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
10 10
     </view>
11 11
   </view>
12 12
   <view class="lineWidthAll FlexRow">
@@ -18,7 +18,7 @@
18 18
       <view class="picker" wx:if="{{CardType==1}}">
19 19
         当前
20 20
       </view>
21
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
21
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
22 22
     </view>
23 23
   </view>
24 24
   <view class='lineFooter'></view>
@@ -26,7 +26,7 @@
26 26
   <view class="panelItem FlexRow" bindtap='setPattern'>
27 27
     <view class="panelItem1">记忆评价</view>
28 28
     <view class="panelItem2 FlexRow">
29
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
29
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
30 30
     </view>
31 31
   </view>
32 32
   <view class='lineFooter'></view>
@@ -45,7 +45,7 @@
45 45
       <view class="picker">
46 46
         {{ClickTypeName}}
47 47
       </view>
48
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
48
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
49 49
     </view>
50 50
   </view>
51 51
   <view class="lineWidthAll FlexRow">
@@ -57,7 +57,7 @@
57 57
       <view class="picker">
58 58
         {{ColorName}}
59 59
       </view>
60
-      <image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
60
+      <image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
61 61
     </view>
62 62
   </view>
63 63
   <view class='lineFooter'></view>

pages/plan/setting.wxss → pages_plan/plan/setting.wxss


pages/plan/sortRule.js → pages_plan/plan/sortRule.js


pages/plan/sortRule.json → pages_plan/plan/sortRule.json


+ 2 - 2
pages/plan/sortRule.wxml

@@ -18,13 +18,13 @@
18 18
     <block wx:for="{{List}}" wx:key="index">
19 19
       <view class="{{item.SelectedCSS}} panelSelected FlexRow" bindtap="selectType" data-index="{{index}}">
20 20
         <view class='panelSelected0 FlexRow' hidden="{{!item.SelectedCSS}}">
21
-          <image src='../images/universalpic_checked_white_22x17.png' class="universalpic_checked_white_22x17" />
21
+          <image src='../../pages/images/universalpic_checked_white_22x17.png' class="universalpic_checked_white_22x17" />
22 22
         </view>
23 23
         <view class='panelSelected00 panelSelected0' hidden="{{item.SelectedCSS}}">
24 24
         </view>
25 25
         <view class='panelSelected1 FlexColumn'>
26 26
           <view class='text1'>{{item.Name}}</view>
27
-          <image wx:if="{{item.Image}}" src='../images/{{item.Image}}.png' class="{{item.Image}}" />
27
+          <image wx:if="{{item.Image}}" src='../../pages/images/{{item.Image}}.png' class="{{item.Image}}" />
28 28
           <view style="height:10rpx;" wx:if="{{!item.Image}}"></view>
29 29
         </view>
30 30
       </view>

pages/plan/sortRule.wxss → pages_plan/plan/sortRule.wxss


+ 1 - 1
pages/plan/studyplan.js

@@ -1,6 +1,6 @@
1 1
 import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3
-import fanObj from '../template/FanObject';
3
+import fanObj from '../../template/FanObject';
4 4
 
5 5
 const app = getApp();
6 6
 var cardNumberCommon = 0;

pages/plan/studyplan.json → pages_plan/plan/studyplan.json


+ 5 - 5
pages/plan/studyplan.wxml

@@ -1,23 +1,23 @@
1
-<import src="../template/Fan.wxml" />
1
+<import src="../../pages/template/Fan.wxml" />
2 2
 
3 3
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
4
-	<image class="practise_dashboard_header" src="../images/practise_dashboard_header.png"></image>
4
+	<image class="practise_dashboard_header" src="../../pages/images/practise_dashboard_header.png"></image>
5 5
 	<view class="panel1 FlexColumn">
6 6
 		<view class="panel11 FlexRow">
7 7
 			<view class="panel111">练习模式</view>
8 8
 			<view class="panel112 FlexRow" bindtap="showHelp" data-id="1">
9
-				<image class="universalpic_light_black_22x30" src="../images/universalpic_light_black_22x30.png" />
9
+				<image class="universalpic_light_black_22x30" src="../../pages/images/universalpic_light_black_22x30.png" />
10 10
 			</view>
11 11
 		</view>
12 12
 
13 13
 		<view class="panel12 FlexRow" bindtap="showHelp" data-id="3">
14 14
 			<view class="FlexRow">
15
-				<image class="universalpic_diagram_black_30x28" src="../images/universalpic_diagram_black_30x28.png" />
15
+				<image class="universalpic_diagram_black_30x28" src="../../pages/images/universalpic_diagram_black_30x28.png" />
16 16
 				<view class="panel121">正在使用的练习模式</view>
17 17
 			</view>
18 18
 			<view class="FlexRow">
19 19
 				<view class="panel122">{{CurrentPlan}}</view>
20
-				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
20
+				<image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
21 21
 			</view>
22 22
 		</view>
23 23
 

+ 1 - 1
pages/plan/studyplan.wxss

@@ -1,4 +1,4 @@
1
-@import "../template/Fan.wxss";
1
+@import "../../pages/template/Fan.wxss";
2 2
 
3 3
 .container{
4 4
   font-size:28rpx;

+ 1 - 1
pages/plan/studyplandetail.js

@@ -1,6 +1,6 @@
1 1
 import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3
-import fanObj from '../template/FanObject';
3
+import fanObj from '../../pages/template/FanObject';
4 4
 import constant from '../../utils/constant';
5 5
 
6 6
 const app = getApp();

pages/plan/studyplandetail.json → pages_plan/plan/studyplandetail.json


+ 5 - 5
pages/plan/studyplandetail.wxml

@@ -1,9 +1,9 @@
1
-<import src="../template/Fan.wxml" />
1
+<import src="../../pages/template/Fan.wxml" />
2 2
 
3 3
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
4 4
 	<view class="line"></view>
5 5
 	<view class="panelTitle FlexRow">
6
-		<image class="universalpic_plan_2line_black_30x32" src="../images/universalpic_plan_data_black_30x32.png" />
6
+		<image class="universalpic_plan_2line_black_30x32" src="../../pages/images/universalpic_plan_data_black_30x32.png" />
7 7
 		<view class="panelTitle1">参考数据</view>
8 8
 	</view>
9 9
 	<view class="lineWidthAll1 FlexRow">
@@ -139,7 +139,7 @@
139 139
 					<view class="picker" wx:if="{{CardType=='1'}}">
140 140
 						{{CardMaxNumberNewUrgent}}张
141 141
 					</view>
142
-					<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
142
+					<image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
143 143
 				</view>
144 144
 			</view>
145 145
 		</picker>
@@ -156,7 +156,7 @@
156 156
 					<view class="picker" wx:if="{{CardType=='1'}}">
157 157
 						{{CardMaxNumberHistoryUrgent}}张
158 158
 					</view>
159
-					<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
159
+					<image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
160 160
 				</view>
161 161
 			</view>
162 162
 		</picker>
@@ -173,7 +173,7 @@
173 173
 				<view class="picker">
174 174
 					{{SortType}}
175 175
 				</view>
176
-				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
176
+				<image src='../../pages/images/universalpic_indicator_right_gray.png' class="Arrow" />
177 177
 			</view>
178 178
 		</view>
179 179
 	</block>

+ 1 - 1
pages/plan/studyplandetail.wxss

@@ -1,4 +1,4 @@
1
-@import "../template/Fan.wxss";
1
+@import "../../pages/template/Fan.wxss";
2 2
 
3 3
 .container{
4 4
   font-size:28rpx;

+ 1 - 3
pages/plan/taskBasic.js

@@ -1,6 +1,6 @@
1 1
 import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3
-import fanObj from '../template/FanObject';
3
+import fanObj from '../../pages/template/FanObject';
4 4
 
5 5
 const app = getApp();
6 6
 
@@ -73,8 +73,6 @@ Page({
73 73
         });
74 74
       });
75 75
     });
76
-    
77
-
78 76
   },
79 77
   clickBtnNumber:function(e){
80 78
     var that = this;

pages/plan/taskBasic.json → pages_plan/plan/taskBasic.json


+ 4 - 4
pages/plan/taskBasic.wxml

@@ -1,4 +1,4 @@
1
-<import src="../template/Fan.wxml" />
1
+<import src="../../pages/template/Fan.wxml" />
2 2
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
3 3
   <image class="mg4_practicePic_1" src="{{ImagePath}}web/mg4_practicePic_1.png" />
4 4
   <image class="mg4_textH1_1" src="{{ImagePath}}web/mg4_textH1_1.png" />
@@ -158,17 +158,17 @@
158 158
   <view class="panel3 panel1 FlexColumn" bindtap="goto" data-url="../../pages_test/knowledge/index">
159 159
     <view class="panel21 FlexColumn">
160 160
       <view class="panel31 FlexRow">
161
-        <text class="text1">去「检验」逛逛</text>
161
+        <text class="text1">去「知识」逛逛</text>
162 162
         <view class="panel311 FlexColumn">
163 163
           <image class="mg4_iconNext_1" src="{{ImagePath}}web/mg4_iconNext_1.png" />
164 164
         </view>
165 165
       </view>
166
-      <text class="text6">题卡太少不够练?\n创建新题卡或去「检验」栏目生成课本知识点</text>
166
+      <text class="text6">题卡太少不够练?\n创建新题卡或去「知识」栏目生成课本知识点</text>
167 167
     </view>
168 168
 
169 169
   </view>
170 170
   <image class="mg4_practicePic_2" src="{{ImagePath}}web/mg4_practicePic_2.png" />
171
-  <view class="panel4 panel1 FlexColumn" bindtap="goto" data-url="../../pages/plan/taskHelp?type=1">
171
+  <view class="panel4 panel1 FlexColumn" bindtap="goto" data-url="../../pages_plan/plan/taskHelp?type=1">
172 172
     <view class="panel21 FlexColumn">
173 173
       <view class="panel31 FlexRow">
174 174
         <text class="text1">完整版设置</text>

+ 1 - 1
pages/plan/taskBasic.wxss

@@ -1,4 +1,4 @@
1
-@import "../template/Fan.wxss";
1
+@import "../../pages/template/Fan.wxss";
2 2
 
3 3
 page {
4 4
   background-color: #3157ba;

+ 1 - 1
pages/plan/taskFull.js

@@ -1,6 +1,6 @@
1 1
 import common from '../../utils/util';
2 2
 import main from '../../utils/main';
3
-import fanObj from '../template/FanObject';
3
+import fanObj from '../../pages/template/FanObject';
4 4
 import constant from '../../utils/constant';
5 5
 
6 6
 const app = getApp();

+ 0 - 0
pages/plan/taskFull.json


Неке датотеке нису приказане због велике количине промена