chengjie il y a 3 ans
Parent
commit
4560c6ec70

+ 1 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "2.2.0",
3
+    Version: "2.3.0",
4 4
     //IsProduction: true,
5 5
     IsProduction: false,
6 6
     ShareTitle: "高效学习从秒过开始",

+ 0 - 1
app.json

@@ -1,6 +1,5 @@
1 1
 {
2 2
   "pages": [
3
-    
4 3
     "pages/index/index",
5 4
     "pages/main/health",
6 5
     "pages/main/folderEdit",

+ 54 - 0
pages/index/test.js

@@ -0,0 +1,54 @@
1
+Page({
2
+  data: {
3
+   navbarInitTop: 0, //导航栏初始化距顶部的距离
4
+   isFixedTop: false, //是否固定顶部
5
+  },
6
+  
7
+  /**
8
+   * 生命周期函数--监听页面加载
9
+   */
10
+  onLoad: function(options) {
11
+  
12
+  },
13
+  
14
+  /**
15
+   * 生命周期函数--监听页面显示
16
+   */
17
+  onShow: function() {
18
+   var that = this;
19
+  
20
+   if (that.data.navbarInitTop == 0) {
21
+  
22
+    //获取节点距离顶部的距离
23
+    wx.createSelectorQuery().select('#navbar').boundingClientRect(function(rect) {
24
+     if (rect && rect.top > 0) {
25
+      var navbarInitTop = parseInt(rect.top);
26
+      that.setData({
27
+       navbarInitTop: navbarInitTop
28
+      });
29
+     }
30
+    }).exec();
31
+  
32
+   }
33
+  },
34
+  
35
+  /**
36
+   * 监听页面滑动事件
37
+   */
38
+  onPageScroll: function(e) {
39
+   var that = this;
40
+   var scrollTop = parseInt(e.scrollTop); //滚动条距离顶部高度
41
+  
42
+   //判断'滚动条'滚动的距离 和 '元素在初始时'距顶部的距离进行判断
43
+   var isSatisfy = scrollTop >= that.data.navbarInitTop ? true : false;
44
+   //为了防止不停的setData, 这儿做了一个等式判断。 只有处于吸顶的临界值才会不相等
45
+   if (that.data.isFixedTop === isSatisfy) {
46
+    return false;
47
+   }
48
+  
49
+   that.setData({
50
+    isFixedTop: isSatisfy
51
+   });
52
+  }
53
+ })
54
+ 

+ 3 - 0
pages/index/test.json

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

+ 16 - 0
pages/index/test.wxml

@@ -0,0 +1,16 @@
1
+<view style="width: 90%; height: 300rpx; background: #f0f0f0; margin: 30rpx auto;"></view>
2
+<view class="navbar-wrap">
3
+ <view class="column {{isFixedTop?'fixed':''}}" id="navbar">
4
+  <view class="block active">新品推荐</view>
5
+  <view class="block">限时优惠</view>
6
+  <view class="block">火爆热搜</view>
7
+  <view class="block">猜你喜欢</view>
8
+ </view>
9
+ <!-- 用于吸顶后 占位用的 -->
10
+ <view class="column" wx:if="{{isFixedTop}}"></view>
11
+</view>
12
+ 
13
+ 
14
+<block wx:for="{{20}}" wx:key="list">
15
+ <view style="width: 100%; height: 120rpx; background: #f0f0f0; margin: 20rpx auto;"></view>
16
+</block>

+ 30 - 0
pages/index/test.wxss

@@ -0,0 +1,30 @@
1
+view, text {
2
+  box-sizing: border-box;
3
+  -moz-box-sizing: border-box;
4
+  -webkit-box-sizing: border-box;
5
+ }
6
+  
7
+ .navbar-wrap {
8
+  width: 100%;
9
+ }
10
+  
11
+ .navbar-wrap .column {
12
+  width: 100%;
13
+  height: 100rpx;
14
+  display: flex;
15
+  flex-direction: row;
16
+  align-items: center;
17
+  justify-content: space-around;
18
+  background: #fff;
19
+  
20
+  top: 0;
21
+  left: 0;
22
+  z-index: 100;
23
+ }
24
+  
25
+ .navbar-wrap .column.fixed {
26
+  position: fixed;
27
+
28
+  border-bottom: solid 1px #1e1e1e;
29
+ }
30
+  

+ 1 - 0
pages/main/addInfomationDetail.js

@@ -209,6 +209,7 @@ Page({
209 209
             } else if (item.Type == "sound") {
210 210
               str = "[读]" + item.Content + "[/读]";
211 211
               if (item.Tag == "发音") {
212
+                item.SoundMark = main.GetSoundError(item.SoundMark);
212 213
                 var strTemp = item.Content.substr(0, 1);
213 214
                 if (this.data.ShowSoundMark == "1")
214 215
                   str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";

+ 19 - 2
pages/main/detail.js

@@ -1294,6 +1294,24 @@ Page({
1294 1294
     url += "&FolderType=" + foldertype;
1295 1295
     url += "&ID=" + TaskList[0].MiaoguoCardID;
1296 1296
     main.getData(url, function (data) {
1297
+
1298
+      //归档后要修改上方的数字
1299
+      if (that.data.TaskInfo.IsNew){
1300
+        that.setData({
1301
+          NumberNew:--that.data.NumberNew,
1302
+        });
1303
+      }
1304
+      else if (that.data.TaskInfo.IsHistory){
1305
+        that.setData({
1306
+          NumberHistory:--that.data.NumberHistory,
1307
+        });
1308
+      }      
1309
+      else if (that.data.TaskInfo.IsReview){
1310
+        that.setData({
1311
+          NumberReview:--that.data.NumberReview,
1312
+        });
1313
+      }
1314
+      
1297 1315
       TaskList.splice(0, 1);
1298 1316
       if (TaskList.length > 0) {
1299 1317
         that.setData({
@@ -1317,12 +1335,11 @@ Page({
1317 1335
             image: "../images/universalpic_cupboard_white_120x120.png",
1318 1336
           });
1319 1337
         }
1320
-
1338
+        
1321 1339
         that.setSoundFile(3);
1322 1340
       } else {
1323 1341
         that.setFinallyResult();
1324 1342
       }
1325
-
1326 1343
     });
1327 1344
   },
1328 1345
   saveIsFolderPractice: function (e) {

+ 7 - 0
pages/other/newuser.js

@@ -43,6 +43,13 @@ Page({
43 43
       }
44 44
       
45 45
     });
46
+
47
+    if (wx.setNavigationBarColor) {
48
+      wx.setNavigationBarColor({
49
+        frontColor: "#000000",
50
+        backgroundColor: "#ffffff",
51
+      })
52
+    }
46 53
   },
47 54
   goto: function (e) {
48 55
     var url = e.currentTarget.dataset.url;

BIN
pages_agent/images/bm_weblink_04.png


BIN
pages_agent/images/promotion_poster04.png


+ 4 - 1
pages_agent/marketing/shareuser.wxss

@@ -31,10 +31,13 @@
31 31
 
32 32
 .panel .panel1{
33 33
   margin-top: 60rpx;
34
+  width:670rpx;
35
+  height:526rpx;
36
+  flex-wrap: wrap;
34 37
 }
35 38
 
36 39
 .panel .img{
37
-  width:196rpx;
40
+  width:300rpx;
38 41
   height:248rpx;
39 42
   margin: 0 10rpx;
40 43
 }

+ 3 - 0
utils/constant.js

@@ -21,6 +21,9 @@ module.exports = {
21 21
     },{
22 22
       Word: "游说",
23 23
       Sound: "(yóu)(shuì)",
24
+    },{
25
+      Word: "lan=en&text=Mr&",
26
+      Sound: "lan=en&text=Mister&",
24 27
     },
25 28
   ],
26 29
   arrMenuText: [{