chengjie 8 月之前
父節點
當前提交
5c18913d7c
共有 64 個文件被更改,包括 191 次插入62 次删除
  1. 1 1
      app.js
  2. 1 1
      app.json
  3. 二進制
      pages/images/pic_hb02.png
  4. 二進制
      pages/images/pic_hb03.png
  5. 二進制
      pages/images/pic_hb05.png
  6. 二進制
      pages/images/pic_hb06.png
  7. 二進制
      pages/images/pic_hb07.png
  8. 二進制
      pages/images/pic_hb08.png
  9. 二進制
      pages/images/pic_hb09.png
  10. 二進制
      pages/images/pic_hb10.png
  11. 二進制
      pages/images/pic_hb11.png
  12. 二進制
      pages/images/pic_hb12.png
  13. 二進制
      pages/images/pic_hb13.png
  14. 二進制
      pages/images/pic_hb14.png
  15. 二進制
      pages/images/pic_hb15.png
  16. 二進制
      pages/images/pic_hb16.png
  17. 二進制
      pages/images/pic_hb17.png
  18. 二進制
      pages/images/pic_hb18.png
  19. 二進制
      pages/images/pic_hb19.png
  20. 二進制
      pages/images/pic_hb20.png
  21. 二進制
      pages/images/pic_hb21.png
  22. 二進制
      pages/images/pic_hb22.png
  23. 二進制
      pages/images/pic_hb23.png
  24. 二進制
      pages/images/pic_hb24.png
  25. 二進制
      pages/images/pic_hb25.png
  26. 二進制
      pages/images/pic_hb26.png
  27. 二進制
      pages/images/pic_hb27.png
  28. 二進制
      pages/images/pic_hb28.png
  29. 二進制
      pages/images/pic_hb29.png
  30. 二進制
      pages/images/pic_hb30.png
  31. 二進制
      pages/images/pic_hb31.png
  32. 二進制
      pages/images/pic_hb32.png
  33. 二進制
      pages/images/pic_hb33.png
  34. 二進制
      pages/images/pic_hb34.png
  35. 二進制
      pages/images/pic_hb35.png
  36. 二進制
      pages/images/pic_hb36.png
  37. 二進制
      pages/images/pic_hb37.png
  38. 二進制
      pages/images/pic_hb38.png
  39. 二進制
      pages/images/pic_hb39.png
  40. 二進制
      pages/images/pic_hb40.png
  41. 二進制
      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
 App({
1
 App({
2
   globalData: {
2
   globalData: {
3
-    Version: "1.1.3",
3
+    Version: "1.1.5",
4
     //IsProduction: true,
4
     //IsProduction: true,
5
     ShareTitle: "阅读理解+答题",
5
     ShareTitle: "阅读理解+答题",
6
     SharePath: "pages/index/index",
6
     SharePath: "pages/index/index",

+ 1 - 1
app.json

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

二進制
pages/images/pic_hb02.png


二進制
pages/images/pic_hb03.png


二進制
pages/images/pic_hb05.png


二進制
pages/images/pic_hb06.png


二進制
pages/images/pic_hb07.png


二進制
pages/images/pic_hb08.png


二進制
pages/images/pic_hb09.png


二進制
pages/images/pic_hb10.png


二進制
pages/images/pic_hb11.png


二進制
pages/images/pic_hb12.png


二進制
pages/images/pic_hb13.png


二進制
pages/images/pic_hb14.png


二進制
pages/images/pic_hb15.png


二進制
pages/images/pic_hb16.png


二進制
pages/images/pic_hb17.png


二進制
pages/images/pic_hb18.png


二進制
pages/images/pic_hb19.png


二進制
pages/images/pic_hb20.png


二進制
pages/images/pic_hb21.png


二進制
pages/images/pic_hb22.png


二進制
pages/images/pic_hb23.png


二進制
pages/images/pic_hb24.png


二進制
pages/images/pic_hb25.png


二進制
pages/images/pic_hb26.png


二進制
pages/images/pic_hb27.png


二進制
pages/images/pic_hb28.png


二進制
pages/images/pic_hb29.png


二進制
pages/images/pic_hb30.png


二進制
pages/images/pic_hb31.png


二進制
pages/images/pic_hb32.png


二進制
pages/images/pic_hb33.png


二進制
pages/images/pic_hb34.png


二進制
pages/images/pic_hb35.png


二進制
pages/images/pic_hb36.png


二進制
pages/images/pic_hb37.png


二進制
pages/images/pic_hb38.png


二進制
pages/images/pic_hb39.png


二進制
pages/images/pic_hb40.png


二進制
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
   onUnload: function() {
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
       wx.removeStorageSync('IsShowGuideContainer');
473
       wx.removeStorageSync('IsShowGuideContainer');
474
       app.globalData.SelectedWords=[];
474
       app.globalData.SelectedWords=[];
475
       wx.navigateBack({
475
       wx.navigateBack({

+ 6 - 6
pages/main/article.wxml

@@ -4,11 +4,11 @@
4
   <view id="panelArticle" style="width: 100%;height: 1rpx;"></view>
4
   <view id="panelArticle" style="width: 100%;height: 1rpx;"></view>
5
   <view class="panel1 FlexColumn">
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
     <view class="textArticle FlexColumn" wx:if="{{IsShowTranslate}}">
13
     <view class="textArticle FlexColumn" wx:if="{{IsShowTranslate}}">
14
       <view wx:for="{{Content.ArticleEnglishArr}}" wx:key="index" class="textArticle">
14
       <view wx:for="{{Content.ArticleEnglishArr}}" wx:key="index" class="textArticle">
@@ -119,7 +119,7 @@
119
   <view class="panelHelp1">
119
   <view class="panelHelp1">
120
     <image src="../images/sysIcon_b07.png" class="sysIcon_b07"></image>
120
     <image src="../images/sysIcon_b07.png" class="sysIcon_b07"></image>
121
     <view class="panelHelp2 FlexColumn">
121
     <view class="panelHelp2 FlexColumn">
122
-      <text class="text07">长按句子单独翻译,\n点下面做题目,右下角还有PDF</text>
122
+      <text class="text07">长按翻译句子,点击翻译单词,\n点下面做题目,右下角还有PDF</text>
123
       <view class="btn3 FlexColumn" catch:tap="setDataBoolean" data-name="IsShowFirstOpen2" data-savedata="2">知道了</view>
123
       <view class="btn3 FlexColumn" catch:tap="setDataBoolean" data-name="IsShowFirstOpen2" data-savedata="2">知道了</view>
124
     </view>
124
     </view>
125
   </view>
125
   </view>

+ 2 - 0
pages/main/articlecategory.wxml

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

+ 4 - 0
pages/main/articlecategory.wxss

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

+ 1 - 0
pages/main/articlefine.js

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

+ 3 - 1
pages/main/articlefine.wxml

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

+ 7 - 1
pages/main/articlefine.wxss

@@ -169,7 +169,7 @@
169
   min-height: 852rpx;
169
   min-height: 852rpx;
170
   border-radius: 20rpx;
170
   border-radius: 20rpx;
171
   background-color: #F0EDE6;
171
   background-color: #F0EDE6;
172
-  margin: 40rpx 0 200rpx 0;
172
+  margin: 40rpx 0 60rpx 0;
173
   flex-wrap: wrap;
173
   flex-wrap: wrap;
174
   justify-content: flex-start;
174
   justify-content: flex-start;
175
   align-items: flex-start;
175
   align-items: flex-start;
@@ -201,6 +201,12 @@
201
   font-weight: 400;
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
 .panelFooter{
210
 .panelFooter{
205
   width: 100%;
211
   width: 100%;
206
   background-color: #fff;
212
   background-color: #fff;

+ 23 - 11
pages/main/help.js

@@ -12,7 +12,7 @@ Page({
12
     let that = this;
12
     let that = this;
13
     //debugger;
13
     //debugger;
14
     let arr=[];
14
     let arr=[];
15
-    for(let i=0;i<24;i++){
15
+    for(let i=0;i<42;i++){
16
       let id=i.toString();
16
       let id=i.toString();
17
       if (i<10)
17
       if (i<10)
18
         id="0"+id;
18
         id="0"+id;
@@ -39,24 +39,36 @@ Page({
39
     let targetId="",offsetY=0;
39
     let targetId="",offsetY=0;
40
     switch(id) {
40
     switch(id) {
41
       case "02":
41
       case "02":
42
-        targetId = "img07";
43
-        offsetY=40;
42
+        targetId = "img10";
43
+        offsetY=50;
44
         break;
44
         break;
45
       case "03":
45
       case "03":
46
-        targetId = "img09";
47
-        offsetY=210;
46
+        targetId = "img14";
47
+        offsetY=190;
48
         break;
48
         break;
49
       case "04":
49
       case "04":
50
-        targetId = "img12";
51
-        offsetY=50;
50
+        targetId = "img21";
51
+        offsetY=-20;
52
         break;
52
         break;
53
       case "05":
53
       case "05":
54
-        targetId = "img17";
55
-        offsetY=220;
54
+        targetId = "img26";
55
+        offsetY=130;
56
         break;
56
         break;
57
       case "06":
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
         break;
72
         break;
61
       default:
73
       default:
62
         targetId = "";
74
         targetId = "";

+ 1 - 2
pages/main/index.js

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

+ 1 - 2
pages/main/index.wxml

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

+ 0 - 7
pages/main/index.wxss

@@ -195,13 +195,6 @@
195
   height:230rpx;
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
 .panelFooterBtn{
198
 .panelFooterBtn{
206
   width: 50%;
199
   width: 50%;
207
   font-size: 36rpx;
200
   font-size: 36rpx;

+ 2 - 2
pages/main/myarticles.js

@@ -97,7 +97,7 @@ Page({
97
     });
97
     });
98
     animation.toggleRemindWithAnimation(this, {
98
     animation.toggleRemindWithAnimation(this, {
99
       hideColor: 'rgba(0,0,0,0)',
99
       hideColor: 'rgba(0,0,0,0)',
100
-      showColor: 'rgba(277,277,277,0.5)',
100
+      showColor: 'rgba(227,227,227,0.5)',
101
       panelAnimationKey: 'panelAnimation', // 控制内容面板的动画
101
       panelAnimationKey: 'panelAnimation', // 控制内容面板的动画
102
       animationKey: 'parentAnimation' // 控制父容器的动画(如果需要)
102
       animationKey: 'parentAnimation' // 控制父容器的动画(如果需要)
103
     });
103
     });
@@ -107,7 +107,7 @@ Page({
107
     const confirm=e.currentTarget.dataset.confirm;
107
     const confirm=e.currentTarget.dataset.confirm;
108
     animation.toggleRemindWithAnimation(this, {
108
     animation.toggleRemindWithAnimation(this, {
109
       hideColor: 'rgba(0,0,0,0)',
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
     if (confirm=="1") {
112
     if (confirm=="1") {
113
       main.getData('DeleteYJBDCArticleList?UserID=' + that.data.UserID+"&ID="+that.data.ID, function (data) {
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
 .container {
1
 .container {
2
   background: #E3E3E3;
2
   background: #E3E3E3;
3
   color: #4D4D4D;
3
   color: #4D4D4D;
4
+  position: fixed;
5
+  top:0;
4
 }
6
 }
5
 
7
 
6
 .panel1 {
8
 .panel1 {

+ 11 - 12
pages/main/mywords.js

@@ -100,7 +100,7 @@ Page({
100
     });
100
     });
101
 
101
 
102
     let arr=that.getSelectedWord();
102
     let arr=that.getSelectedWord();
103
-    if (arr){
103
+    if (arr && remindIndex>0){
104
       if (arr.length==0){
104
       if (arr.length==0){
105
         // 使用组件显示提示
105
         // 使用组件显示提示
106
         this.selectComponent('#alertTip').showAlert("请至少选择1个单词");
106
         this.selectComponent('#alertTip').showAlert("请至少选择1个单词");
@@ -117,7 +117,7 @@ Page({
117
       that.Word=e.currentTarget.dataset.word;
117
       that.Word=e.currentTarget.dataset.word;
118
     animation.toggleRemindWithAnimation(this, {
118
     animation.toggleRemindWithAnimation(this, {
119
       hideColor: 'rgba(0,0,0,0)',
119
       hideColor: 'rgba(0,0,0,0)',
120
-      showColor: 'rgba(277,277,277,0.5)',
120
+      showColor: 'rgba(227,227,227,0.5)',
121
       panelAnimationKey: 'panelAnimation', // 控制内容面板的动画
121
       panelAnimationKey: 'panelAnimation', // 控制内容面板的动画
122
       animationKey: 'parentAnimation' // 控制父容器的动画(如果需要)
122
       animationKey: 'parentAnimation' // 控制父容器的动画(如果需要)
123
     });
123
     });
@@ -127,7 +127,7 @@ Page({
127
     const confirm=e.currentTarget.dataset.confirm;
127
     const confirm=e.currentTarget.dataset.confirm;
128
     animation.toggleRemindWithAnimation(this, {
128
     animation.toggleRemindWithAnimation(this, {
129
       hideColor: 'rgba(0,0,0,0)',
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
     if (confirm=="1") {
132
     if (confirm=="1") {
133
       switch(Number(that.data.RemindIndex)){
133
       switch(Number(that.data.RemindIndex)){
@@ -154,9 +154,6 @@ Page({
154
         that.setData({
154
         that.setData({
155
           List:app.globalData.UserCollect,
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
         that.setData({
166
         that.setData({
170
           List:app.globalData.UserCollect,
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
     let that=this;
173
     let that=this;
180
     let arr=that.getSelectedWord(true);
174
     let arr=that.getSelectedWord(true);
181
     app.globalData.SelectedWords=arr;
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
   gotoMiaoguo:function(e){
185
   gotoMiaoguo:function(e){
187
     let that=this;
186
     let that=this;
188
     let arr=that.getSelectedWord();
187
     let arr=that.getSelectedWord();
189
     var appid="wx84b3feac6069eec3";
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
     wx.navigateToMiniProgram({
190
     wx.navigateToMiniProgram({
192
       appId: appid,
191
       appId: appid,
193
       path: path,
192
       path: path,

+ 2 - 1
pages/main/mywords.wxml

@@ -40,11 +40,12 @@
40
           </view>
40
           </view>
41
         </view>
41
         </view>
42
       </view>
42
       </view>
43
+      <view style="height: 40rpx;"></view>
43
     </view>
44
     </view>
44
 
45
 
45
     <view style="height: 150rpx;" hidden="{{!IsShowSelect}}"></view>
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
       <view class="panelFooter1 FlexRow">
49
       <view class="panelFooter1 FlexRow">
49
         <view class="panelFooter11 panelFooter10 FlexColumn" >
50
         <view class="panelFooter11 panelFooter10 FlexColumn" >
50
           <view class="text03">{{Count}}</view>
51
           <view class="text03">{{Count}}</view>

+ 5 - 5
pages/main/mywords.wxss

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

+ 0 - 2
pages/main/wordsinput.js

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

+ 16 - 2
project.private.config.json

@@ -22,12 +22,26 @@
22
   "condition": {
22
   "condition": {
23
     "miniprogram": {
23
     "miniprogram": {
24
       "list": [
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
           "name": "秒过跳转",
40
           "name": "秒过跳转",
27
           "pathName": "pages/index/index",
41
           "pathName": "pages/index/index",
28
           "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",
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
         //console.log("array["+j+"]:"+array[j][obj]);
216
         //console.log("array["+j+"]:"+array[j][obj]);
217
         if (array[i][obj] && array[j][obj]) {
217
         if (array[i][obj] && array[j][obj]) {
218
           try {
218
           try {
219
+            // 转换为小写进行比较,实现不区分大小写的排序
219
             if (sort_order == "ASC")
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
             else if (sort_order == "DESC")
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
           catch (ex) {
225
           catch (ex) {
225
             console.log("ex:" + ex);
226
             console.log("ex:" + ex);
227
+            // 转换为小写进行比较,实现不区分大小写的排序
226
             if (sort_order == "ASC")
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
             else if (sort_order == "DESC")
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
         else {
234
         else {