chengjie 5 ヶ月 前
コミット
5c18913d7c
共有64 個のファイルを変更した191 個の追加62 個の削除を含む
  1. 1 1
      app.js
  2. 1 1
      app.json
  3. BIN
      pages/images/pic_hb02.png
  4. BIN
      pages/images/pic_hb03.png
  5. BIN
      pages/images/pic_hb05.png
  6. BIN
      pages/images/pic_hb06.png
  7. BIN
      pages/images/pic_hb07.png
  8. BIN
      pages/images/pic_hb08.png
  9. BIN
      pages/images/pic_hb09.png
  10. BIN
      pages/images/pic_hb10.png
  11. BIN
      pages/images/pic_hb11.png
  12. BIN
      pages/images/pic_hb12.png
  13. BIN
      pages/images/pic_hb13.png
  14. BIN
      pages/images/pic_hb14.png
  15. BIN
      pages/images/pic_hb15.png
  16. BIN
      pages/images/pic_hb16.png
  17. BIN
      pages/images/pic_hb17.png
  18. BIN
      pages/images/pic_hb18.png
  19. BIN
      pages/images/pic_hb19.png
  20. BIN
      pages/images/pic_hb20.png
  21. BIN
      pages/images/pic_hb21.png
  22. BIN
      pages/images/pic_hb22.png
  23. BIN
      pages/images/pic_hb23.png
  24. BIN
      pages/images/pic_hb24.png
  25. BIN
      pages/images/pic_hb25.png
  26. BIN
      pages/images/pic_hb26.png
  27. BIN
      pages/images/pic_hb27.png
  28. BIN
      pages/images/pic_hb28.png
  29. BIN
      pages/images/pic_hb29.png
  30. BIN
      pages/images/pic_hb30.png
  31. BIN
      pages/images/pic_hb31.png
  32. BIN
      pages/images/pic_hb32.png
  33. BIN
      pages/images/pic_hb33.png
  34. BIN
      pages/images/pic_hb34.png
  35. BIN
      pages/images/pic_hb35.png
  36. BIN
      pages/images/pic_hb36.png
  37. BIN
      pages/images/pic_hb37.png
  38. BIN
      pages/images/pic_hb38.png
  39. BIN
      pages/images/pic_hb39.png
  40. BIN
      pages/images/pic_hb40.png
  41. BIN
      pages/images/pic_hb41.png
  42. 66 0
      pages/index/test.js
  43. 3 0
      pages/index/test.json
  44. 26 0
      pages/index/test.wxml
  45. 1 0
      pages/index/test.wxss
  46. 1 1
      pages/main/article.js
  47. 6 6
      pages/main/article.wxml
  48. 2 0
      pages/main/articlecategory.wxml
  49. 4 0
      pages/main/articlecategory.wxss
  50. 1 0
      pages/main/articlefine.js
  51. 3 1
      pages/main/articlefine.wxml
  52. 7 1
      pages/main/articlefine.wxss
  53. 23 11
      pages/main/help.js
  54. 1 2
      pages/main/index.js
  55. 1 2
      pages/main/index.wxml
  56. 0 7
      pages/main/index.wxss
  57. 2 2
      pages/main/myarticles.js
  58. 2 0
      pages/main/myinfo.wxss
  59. 11 12
      pages/main/mywords.js
  60. 2 1
      pages/main/mywords.wxml
  61. 5 5
      pages/main/mywords.wxss
  62. 0 2
      pages/main/wordsinput.js
  63. 16 2
      project.private.config.json
  64. 6 5
      utils/util.js

+ 1 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "1.1.3",
3
+    Version: "1.1.5",
4 4
     //IsProduction: true,
5 5
     ShareTitle: "阅读理解+答题",
6 6
     SharePath: "pages/index/index",

+ 1 - 1
app.json

@@ -1,6 +1,7 @@
1 1
 {
2 2
   "pages": [
3 3
     "pages/index/index",
4
+    "pages/index/test",
4 5
     "pages/main/help",
5 6
     "pages/main/myinfo",
6 7
     "pages/main/mywords",
@@ -22,7 +23,6 @@
22 23
     "navigationBarTitleText": "语境背单词",
23 24
     "navigationBarTextStyle": "white"
24 25
   },
25
-  "style": "v2",
26 26
   "sitemapLocation": "sitemap.json",
27 27
   "permission": {
28 28
     "scope.writePhotosAlbum": {

BIN
pages/images/pic_hb02.png


BIN
pages/images/pic_hb03.png


BIN
pages/images/pic_hb05.png


BIN
pages/images/pic_hb06.png


BIN
pages/images/pic_hb07.png


BIN
pages/images/pic_hb08.png


BIN
pages/images/pic_hb09.png


BIN
pages/images/pic_hb10.png


BIN
pages/images/pic_hb11.png


BIN
pages/images/pic_hb12.png


BIN
pages/images/pic_hb13.png


BIN
pages/images/pic_hb14.png


BIN
pages/images/pic_hb15.png


BIN
pages/images/pic_hb16.png


BIN
pages/images/pic_hb17.png


BIN
pages/images/pic_hb18.png


BIN
pages/images/pic_hb19.png


BIN
pages/images/pic_hb20.png


BIN
pages/images/pic_hb21.png


BIN
pages/images/pic_hb22.png


BIN
pages/images/pic_hb23.png


BIN
pages/images/pic_hb24.png


BIN
pages/images/pic_hb25.png


BIN
pages/images/pic_hb26.png


BIN
pages/images/pic_hb27.png


BIN
pages/images/pic_hb28.png


BIN
pages/images/pic_hb29.png


BIN
pages/images/pic_hb30.png


BIN
pages/images/pic_hb31.png


BIN
pages/images/pic_hb32.png


BIN
pages/images/pic_hb33.png


BIN
pages/images/pic_hb34.png


BIN
pages/images/pic_hb35.png


BIN
pages/images/pic_hb36.png


BIN
pages/images/pic_hb37.png


BIN
pages/images/pic_hb38.png


BIN
pages/images/pic_hb39.png


BIN
pages/images/pic_hb40.png


BIN
pages/images/pic_hb41.png


+ 66 - 0
pages/index/test.js

@@ -0,0 +1,66 @@
1
+// pages/index/test.js
2
+Page({
3
+
4
+  /**
5
+   * 页面的初始数据
6
+   */
7
+  data: {
8
+
9
+  },
10
+
11
+  /**
12
+   * 生命周期函数--监听页面加载
13
+   */
14
+  onLoad(options) {
15
+
16
+  },
17
+
18
+  /**
19
+   * 生命周期函数--监听页面初次渲染完成
20
+   */
21
+  onReady() {
22
+
23
+  },
24
+
25
+  /**
26
+   * 生命周期函数--监听页面显示
27
+   */
28
+  onShow() {
29
+
30
+  },
31
+
32
+  /**
33
+   * 生命周期函数--监听页面隐藏
34
+   */
35
+  onHide() {
36
+
37
+  },
38
+
39
+  /**
40
+   * 生命周期函数--监听页面卸载
41
+   */
42
+  onUnload() {
43
+
44
+  },
45
+
46
+  /**
47
+   * 页面相关事件处理函数--监听用户下拉动作
48
+   */
49
+  onPullDownRefresh() {
50
+
51
+  },
52
+
53
+  /**
54
+   * 页面上拉触底事件的处理函数
55
+   */
56
+  onReachBottom() {
57
+
58
+  },
59
+
60
+  /**
61
+   * 用户点击右上角分享
62
+   */
63
+  onShareAppMessage() {
64
+
65
+  }
66
+})

+ 3 - 0
pages/index/test.json

@@ -0,0 +1,3 @@
1
+{
2
+  "usingComponents": {}
3
+}

+ 26 - 0
pages/index/test.wxml

@@ -0,0 +1,26 @@
1
+<!--pages/index/test.wxml-->
2
+<view style="margin-top: 50rpx;" class="FlexColumn">
3
+  显示1:
4
+  <view style="width: 800rpx;">
5
+    <text style="font-size: 108rpx;">
6
+      <text>ABC </text>
7
+      <text>DEF </text>
8
+      <text>GHI </text>
9
+      <text>JKL </text>
10
+    </text>
11
+  </view>
12
+  显示2:
13
+  <view style="font-size: 108rpx;width: 800rpx; flex-wrap: wrap;" class="FlexRow">
14
+    <text>ABC </text>
15
+    <text>DEF </text>
16
+    <text>GHI </text>
17
+    <text>JKL </text>
18
+  </view>
19
+  显示3:
20
+  <view style="font-size: 108rpx;width: 800rpx; flex-wrap: wrap;" class="FlexRow">
21
+    <view>ABC </view>
22
+    <view>DEF </view>
23
+    <view>GHI </view>
24
+    <view>JKL </view>
25
+  </view>
26
+</view>

+ 1 - 0
pages/index/test.wxss

@@ -0,0 +1 @@
1
+/* pages/index/test.wxss */

+ 1 - 1
pages/main/article.js

@@ -469,7 +469,7 @@ Page({
469 469
   },
470 470
   // 处理导航栏返回按钮点击事件
471 471
   onUnload: function() {
472
-    if (this.data.IsNew || this.data.OpenType=="Guide"){
472
+    if ((this.data.IsNew || this.data.OpenType=="Guide") && !this.data.IsBuildError){
473 473
       wx.removeStorageSync('IsShowGuideContainer');
474 474
       app.globalData.SelectedWords=[];
475 475
       wx.navigateBack({

+ 6 - 6
pages/main/article.wxml

@@ -4,11 +4,11 @@
4 4
   <view id="panelArticle" style="width: 100%;height: 1rpx;"></view>
5 5
   <view class="panel1 FlexColumn">
6 6
     <!-- 完整文章 -->
7
-        <text class="textArticle" wx:if="{{!IsShowTranslate}}" >
8
-          <text bindlongpress="onLongPress" data-strtype="article" data-index="{{index}}" wx:for="{{Content.ArticleEnglishArr}}" wx:key="index" >
9
-            <text class="{{itemChild.CSS}}" wx:for="{{item}}" wx:key="index2" wx:for-item="itemChild" wx:for-index="indexChild" catch:tap="selectWord" data-word="{{itemChild.Sentence}}" data-original-word="{{itemChild.OriginalWord}}" data-css="{{itemChild.CSS}}">{{itemChild.Sentence}} </text>
10
-          </text>
11
-        </text>
7
+    <text class="textArticle" wx:if="{{!IsShowTranslate}}" >
8
+      <text bindlongpress="onLongPress" data-strtype="article" data-index="{{index}}" wx:for="{{Content.ArticleEnglishArr}}" wx:key="index" >
9
+        <text class="{{itemChild.CSS}}" wx:for="{{item}}" wx:key="index2" wx:for-item="itemChild" wx:for-index="indexChild" catch:tap="selectWord" data-word="{{itemChild.Sentence}}" data-original-word="{{itemChild.OriginalWord}}" data-css="{{itemChild.CSS}}">{{itemChild.Sentence}} </text>
10
+      </text>
11
+    </text>
12 12
     <!-- 有翻译文章 -->
13 13
     <view class="textArticle FlexColumn" wx:if="{{IsShowTranslate}}">
14 14
       <view wx:for="{{Content.ArticleEnglishArr}}" wx:key="index" class="textArticle">
@@ -119,7 +119,7 @@
119 119
   <view class="panelHelp1">
120 120
     <image src="../images/sysIcon_b07.png" class="sysIcon_b07"></image>
121 121
     <view class="panelHelp2 FlexColumn">
122
-      <text class="text07">长按句子单独翻译,\n点下面做题目,右下角还有PDF</text>
122
+      <text class="text07">长按翻译句子,点击翻译单词,\n点下面做题目,右下角还有PDF</text>
123 123
       <view class="btn3 FlexColumn" catch:tap="setDataBoolean" data-name="IsShowFirstOpen2" data-savedata="2">知道了</view>
124 124
     </view>
125 125
   </view>

+ 2 - 0
pages/main/articlecategory.wxml

@@ -2,6 +2,8 @@
2 2
   <view class="panel1 FlexRow">
3 3
     <view class="btn btn{{item.CSS}} {{item.CSS2}} FlexRow" wx:for="{{Level}}" bind:tap="filter" data-name="{{item.Name}}">{{item.Name}}</view>
4 4
   </view>
5
+  <view style="height: 98rpx;">
6
+  </view>
5 7
   <view class="panel2 FlexColumn"  wx:key="index" wx:for="{{List}}" wx:if="{{item.IsShow}}" bind:tap="goto" data-url="article?ID={{item.ID}}">
6 8
     <image mode="aspectFill" lazy-load="true" src="{{ImageUrl}}web/_yjbdc/{{item.ArticleImage}}" class="img"></image>
7 9
     <view class="text01">{{item.ArticleTitle}}</view>

+ 4 - 0
pages/main/articlecategory.wxss

@@ -6,6 +6,10 @@
6 6
   width: 100%;
7 7
   height:98rpx;
8 8
   justify-content: flex-start;
9
+  position: fixed;
10
+  top:0;
11
+  background-color: #DAD2C1;
12
+  z-index: 20;
9 13
 }
10 14
 
11 15
 .btn{

+ 1 - 0
pages/main/articlefine.js

@@ -22,6 +22,7 @@ Page({
22 22
     that.setData({
23 23
       Containnerheight: main.getWindowHeight(),
24 24
       ArticleStyleArr:ArticleStyleArr,
25
+      Version:app.globalData.Version,
25 26
     });
26 27
     that.getChoicenessArticle();
27 28
     main.checkGenerating();

+ 3 - 1
pages/main/articlefine.wxml

@@ -54,12 +54,14 @@
54 54
       <view class="text9">{{item.Name}}</view>
55 55
       <view class="text10">{{item.Eng}}</view>
56 56
     </view>
57
+    <view style="width: 100%;height:20rpx"></view>
57 58
   </view>
59
+  <view class="panelVersion">©2025 秒过语境背单词 {{Version}}</view>
58 60
 
59 61
   <view class="panelFooter FlexColumn">
60 62
     <view class="panelFooter1 FlexRow">
61 63
       <view class="panelFooterBtn FlexColumn" bind:tap="goto" data-url="index">
62
-        <view>制作</view>
64
+        <view style="color:#4d4d4d">制作</view>
63 65
         <view class="panelFooterLine"></view>
64 66
       </view>
65 67
       <view class="panelFooterBtn FlexColumn" >

+ 7 - 1
pages/main/articlefine.wxss

@@ -169,7 +169,7 @@
169 169
   min-height: 852rpx;
170 170
   border-radius: 20rpx;
171 171
   background-color: #F0EDE6;
172
-  margin: 40rpx 0 200rpx 0;
172
+  margin: 40rpx 0 60rpx 0;
173 173
   flex-wrap: wrap;
174 174
   justify-content: flex-start;
175 175
   align-items: flex-start;
@@ -201,6 +201,12 @@
201 201
   font-weight: 400;
202 202
 }
203 203
 
204
+.panelVersion{
205
+  margin: 0 0 200rpx 0;
206
+  font-size: 20rpx;
207
+  color: #544641;
208
+}
209
+
204 210
 .panelFooter{
205 211
   width: 100%;
206 212
   background-color: #fff;

+ 23 - 11
pages/main/help.js

@@ -12,7 +12,7 @@ Page({
12 12
     let that = this;
13 13
     //debugger;
14 14
     let arr=[];
15
-    for(let i=0;i<24;i++){
15
+    for(let i=0;i<42;i++){
16 16
       let id=i.toString();
17 17
       if (i<10)
18 18
         id="0"+id;
@@ -39,24 +39,36 @@ Page({
39 39
     let targetId="",offsetY=0;
40 40
     switch(id) {
41 41
       case "02":
42
-        targetId = "img07";
43
-        offsetY=40;
42
+        targetId = "img10";
43
+        offsetY=50;
44 44
         break;
45 45
       case "03":
46
-        targetId = "img09";
47
-        offsetY=210;
46
+        targetId = "img14";
47
+        offsetY=190;
48 48
         break;
49 49
       case "04":
50
-        targetId = "img12";
51
-        offsetY=50;
50
+        targetId = "img21";
51
+        offsetY=-20;
52 52
         break;
53 53
       case "05":
54
-        targetId = "img17";
55
-        offsetY=220;
54
+        targetId = "img26";
55
+        offsetY=130;
56 56
         break;
57 57
       case "06":
58
-        targetId = "img21";
59
-        offsetY=-80;
58
+        targetId = "img29";
59
+        offsetY=210;
60
+        break;
61
+      case "07":
62
+        targetId = "img32";
63
+        offsetY=50;
64
+        break;
65
+      case "08":
66
+        targetId = "img35";
67
+        offsetY=100;
68
+        break;
69
+      case "09":
70
+        targetId = "img38";
71
+        offsetY=200;
60 72
         break;
61 73
       default:
62 74
         targetId = "";

+ 1 - 2
pages/main/index.js

@@ -15,7 +15,6 @@ Page({
15 15
     let that = this;
16 16
     that.setData({
17 17
       Containnerheight: main.getWindowHeight(),
18
-      Version:app.globalData.Version,
19 18
     });
20 19
     that.initMenu();
21 20
 
@@ -45,7 +44,7 @@ Page({
45 44
     
46 45
   },
47 46
   onShow:function(){
48
-    
47
+    app.globalData.SelectedWords=[];
49 48
     this.getData();
50 49
     main.checkGenerating();
51 50
 

+ 1 - 2
pages/main/index.wxml

@@ -36,7 +36,6 @@
36 36
   <view class="panelFooter FlexColumn">
37 37
     <view class="panelFooter1 FlexColumn">
38 38
       <image src="../images/pic_02.png" class="pic_02"></image>
39
-      <view class="text03">©2025 秒过语境背单词 {{Version}}</view>
40 39
     </view>
41 40
     <view class="panelFooter2 FlexRow">
42 41
       <view class="panelFooterBtn FlexColumn" >
@@ -44,7 +43,7 @@
44 43
         <view class="panelFooterLine1"></view>
45 44
       </view>
46 45
       <view class="panelFooterBtn FlexColumn" bind:tap="goto" data-url="articlefine">
47
-        <view>精选</view>
46
+        <view style="color:#4d4d4d">精选</view>
48 47
         <view class="panelFooterLine"></view>
49 48
       </view>
50 49
     </view>

+ 0 - 7
pages/main/index.wxss

@@ -195,13 +195,6 @@
195 195
   height:230rpx;
196 196
 }
197 197
 
198
-.text03{
199
-  position: absolute;
200
-  top:186rpx;
201
-  left:50rpx;
202
-  font-size: 20rpx;
203
-  color: #544641;
204
-}
205 198
 .panelFooterBtn{
206 199
   width: 50%;
207 200
   font-size: 36rpx;

+ 2 - 2
pages/main/myarticles.js

@@ -97,7 +97,7 @@ Page({
97 97
     });
98 98
     animation.toggleRemindWithAnimation(this, {
99 99
       hideColor: 'rgba(0,0,0,0)',
100
-      showColor: 'rgba(277,277,277,0.5)',
100
+      showColor: 'rgba(227,227,227,0.5)',
101 101
       panelAnimationKey: 'panelAnimation', // 控制内容面板的动画
102 102
       animationKey: 'parentAnimation' // 控制父容器的动画(如果需要)
103 103
     });
@@ -107,7 +107,7 @@ Page({
107 107
     const confirm=e.currentTarget.dataset.confirm;
108 108
     animation.toggleRemindWithAnimation(this, {
109 109
       hideColor: 'rgba(0,0,0,0)',
110
-      showColor: 'rgba(277,277,277,0.5)'
110
+      showColor: 'rgba(227,227,227,0.5)'
111 111
     });
112 112
     if (confirm=="1") {
113 113
       main.getData('DeleteYJBDCArticleList?UserID=' + that.data.UserID+"&ID="+that.data.ID, function (data) {

+ 2 - 0
pages/main/myinfo.wxss

@@ -1,6 +1,8 @@
1 1
 .container {
2 2
   background: #E3E3E3;
3 3
   color: #4D4D4D;
4
+  position: fixed;
5
+  top:0;
4 6
 }
5 7
 
6 8
 .panel1 {

+ 11 - 12
pages/main/mywords.js

@@ -100,7 +100,7 @@ Page({
100 100
     });
101 101
 
102 102
     let arr=that.getSelectedWord();
103
-    if (arr){
103
+    if (arr && remindIndex>0){
104 104
       if (arr.length==0){
105 105
         // 使用组件显示提示
106 106
         this.selectComponent('#alertTip').showAlert("请至少选择1个单词");
@@ -117,7 +117,7 @@ Page({
117 117
       that.Word=e.currentTarget.dataset.word;
118 118
     animation.toggleRemindWithAnimation(this, {
119 119
       hideColor: 'rgba(0,0,0,0)',
120
-      showColor: 'rgba(277,277,277,0.5)',
120
+      showColor: 'rgba(227,227,227,0.5)',
121 121
       panelAnimationKey: 'panelAnimation', // 控制内容面板的动画
122 122
       animationKey: 'parentAnimation' // 控制父容器的动画(如果需要)
123 123
     });
@@ -127,7 +127,7 @@ Page({
127 127
     const confirm=e.currentTarget.dataset.confirm;
128 128
     animation.toggleRemindWithAnimation(this, {
129 129
       hideColor: 'rgba(0,0,0,0)',
130
-      showColor: 'rgba(277,277,277,0.5)'
130
+      showColor: 'rgba(227,227,227,0.5)'
131 131
     });
132 132
     if (confirm=="1") {
133 133
       switch(Number(that.data.RemindIndex)){
@@ -154,9 +154,6 @@ Page({
154 154
         that.setData({
155 155
           List:app.globalData.UserCollect,
156 156
         });
157
-        wx.showToast({
158
-          title: '删除完成',
159
-        });
160 157
       }
161 158
     });
162 159
   },
@@ -169,9 +166,6 @@ Page({
169 166
         that.setData({
170 167
           List:app.globalData.UserCollect,
171 168
         });
172
-        wx.showToast({
173
-          title: '批量删除完成',
174
-        });
175 169
       }
176 170
     });
177 171
   },
@@ -179,15 +173,20 @@ Page({
179 173
     let that=this;
180 174
     let arr=that.getSelectedWord(true);
181 175
     app.globalData.SelectedWords=arr;
182
-    wx.redirectTo({
183
-      url: 'wordsinput',
176
+    wx.navigateBack({
177
+      delta: 1,
178
+      complete:(res) => {
179
+        wx.redirectTo({
180
+          url: 'wordsinput',
181
+        });
182
+      }
184 183
     });
185 184
   },
186 185
   gotoMiaoguo:function(e){
187 186
     let that=this;
188 187
     let arr=that.getSelectedWord();
189 188
     var appid="wx84b3feac6069eec3";
190
-    var path="pages/index/index?SourceID="+app.globalData.ProgramID+"&goto=buildcard&Words="+arr.join(",");
189
+    var path="pages/index/index?SourceID="+app.globalData.ProgramID+"&type=buildcard&Words="+arr.join(",");
191 190
     wx.navigateToMiniProgram({
192 191
       appId: appid,
193 192
       path: path,

+ 2 - 1
pages/main/mywords.wxml

@@ -40,11 +40,12 @@
40 40
           </view>
41 41
         </view>
42 42
       </view>
43
+      <view style="height: 40rpx;"></view>
43 44
     </view>
44 45
 
45 46
     <view style="height: 150rpx;" hidden="{{!IsShowSelect}}"></view>
46 47
 
47
-    <view class="panelFooter FlexRow" wx:if="{{IsShowSelect}}">
48
+    <view class="panelFooter FlexColumn" wx:if="{{IsShowSelect}}">
48 49
       <view class="panelFooter1 FlexRow">
49 50
         <view class="panelFooter11 panelFooter10 FlexColumn" >
50 51
           <view class="text03">{{Count}}</view>

+ 5 - 5
pages/main/mywords.wxss

@@ -131,21 +131,21 @@
131 131
 
132 132
 .panelFooter{
133 133
   width: 100%;
134
-  height:180rpx;
135
-  background-image: linear-gradient(180deg, #004433 0%, #002C21 100%);
134
+  height:200rpx;
136 135
   position: fixed;
137 136
   bottom: 0rpx;
138
-  align-items: flex-start;
137
+  justify-content: flex-start;
139 138
   z-index: 10;
139
+  background: #E3E3E3;
140 140
 }
141 141
 
142 142
 .panelFooter1{
143 143
   width:730rpx;
144 144
   height:140rpx;
145 145
   color:#F2F2F2;
146
-  background: #1E1E1E;
147
-  box-shadow: 0 30rpx 0 0 #0C0C0C;
148 146
   border-radius: 10rpx 10rpx 60rpx 60rpx;
147
+  background: #1E1E1E;
148
+  box-shadow: 0 30rpx 0 0 #0C0C0C, 0 50rpx 0 0 rgba(0,0,0,0.60);
149 149
 }
150 150
 .panelFooter10{
151 151
   background-color: #303030;

+ 0 - 2
pages/main/wordsinput.js

@@ -352,8 +352,6 @@ Page({
352 352
         return;
353 353
       }
354 354
     }
355
-
356
-    
357 355
     if (url=="../main/ocr" || url=="../main/selectword"){
358 356
       if ( app.globalData.SelectedWords.length>=10){
359 357
         that.showRemind();

+ 16 - 2
project.private.config.json

@@ -22,12 +22,26 @@
22 22
   "condition": {
23 23
     "miniprogram": {
24 24
       "list": [
25
+        {
26
+          "name": "pages/index/test",
27
+          "pathName": "pages/index/test",
28
+          "query": "",
29
+          "scene": null,
30
+          "launchMode": "default"
31
+        },
32
+        {
33
+          "name": "文章跳转",
34
+          "pathName": "pages/index/index",
35
+          "query": "goto=article&ID=1",
36
+          "launchMode": "default",
37
+          "scene": null
38
+        },
25 39
         {
26 40
           "name": "秒过跳转",
27 41
           "pathName": "pages/index/index",
28 42
           "query": "goto=selectword&Words=notion,pronounce,arbitrary,flourish,rack,sponge,tap,distinct,aggravate,authorize,designate,diffuse,discrete,discrepancy,distil,drastic,elapse,entity,epoch,exempt,exemplify,explicit,exposition,intact,intrigue,irrigation,irritate,jerk,necessitate,negligible,nickel,nominal,norm,notation,notorious,revise,stoop,thrust,adverse,give,off,cavity,ceramic,cereal,crow,cumulative,deviate,embed,engagement,enlighten,installment",
29
-          "scene": null,
30
-          "launchMode": "default"
43
+          "launchMode": "default",
44
+          "scene": null
31 45
         }
32 46
       ]
33 47
     }

+ 6 - 5
utils/util.js

@@ -216,18 +216,19 @@ function sort(array, sort_order, obj, objType, obj2, objType2) {
216 216
         //console.log("array["+j+"]:"+array[j][obj]);
217 217
         if (array[i][obj] && array[j][obj]) {
218 218
           try {
219
+            // 转换为小写进行比较,实现不区分大小写的排序
219 220
             if (sort_order == "ASC")
220
-              check = array[i][obj].toString().localeCompare(array[j][obj].toString()) >= 0;
221
+              check = array[i][obj].toString().toLowerCase().localeCompare(array[j][obj].toString().toLowerCase()) >= 0;
221 222
             else if (sort_order == "DESC")
222
-              check = array[i][obj].toString().localeCompare(array[j][obj].toString()) < 0;
223
+              check = array[i][obj].toString().toLowerCase().localeCompare(array[j][obj].toString().toLowerCase()) < 0;
223 224
           }
224 225
           catch (ex) {
225 226
             console.log("ex:" + ex);
227
+            // 转换为小写进行比较,实现不区分大小写的排序
226 228
             if (sort_order == "ASC")
227
-              check = array[i][obj].toString() >= array[j][obj].toString();
229
+              check = array[i][obj].toString().toLowerCase() >= array[j][obj].toString().toLowerCase();
228 230
             else if (sort_order == "DESC")
229
-              check = array[i][obj].toString() < array[j][obj].toString();
230
-
231
+              check = array[i][obj].toString().toLowerCase() < array[j][obj].toString().toLowerCase();
231 232
           }
232 233
         }
233 234
         else {