chengjie лет назад: 6
Родитель
Сommit
77166fa6f7

+ 1 - 1
app.js

@@ -25,7 +25,7 @@ App({
25 25
     }
26 26
   },
27 27
   globalData: {
28
-    Version: "1.1.15",
28
+    Version: "1.1.18",
29 29
     IsProduction: true,
30 30
     ShareTitle: "刻意学习,高效成长",
31 31
     SharePath: "pages/index/index",

+ 2 - 0
app.json

@@ -20,6 +20,8 @@
20 20
     "pages/main/detail",
21 21
     "pages/main/memoryLevel",
22 22
     "pages/other/payinfo",
23
+    "pages/other/lessonlist",
24
+    "pages/other/userlist",
23 25
     "pages/main/setting"
24 26
   ],
25 27
   "window": {

BIN
pages/images/music-player-pause-lines.png


BIN
pages/images/music-player-play.png


BIN
pages/images/program_screenshot_l1.png


BIN
pages/images/program_screenshot_l2.png


BIN
pages/images/program_screenshot_l3.png


BIN
pages/images/program_screenshot_l4.png


+ 4 - 0
pages/index/index.js

@@ -61,6 +61,10 @@ Page({
61 61
       if (options.LessonID) {
62 62
         console.log("Lesson:" + options.LessonID);
63 63
         app.globalData.LessonID = options.LessonID;
64
+        if (options.LessonPage)
65
+          app.globalData.LessonPage = options.LessonPage;
66
+        else
67
+          app.globalData.LessonPage = 1;
64 68
       }
65 69
     }
66 70
     this.setData({

+ 2 - 0
pages/main/add.js

@@ -409,6 +409,8 @@ Page({
409 409
               }
410 410
               //console.log("serverUrl:" + serverUrl);
411 411
               //console.log("tempUrl:" + tempUrl);
412
+              if (serverUrl=="")
413
+                serverUrl = main.getServerImage(tempUrl);
412 414
 
413 415
               main.saveTempImage(serverUrl, tempUrl);
414 416
               arr[i][j].Content = serverUrl;

+ 1 - 1
pages/main/default.js

@@ -48,7 +48,7 @@ Page({
48 48
 
49 49
           if (app.globalData.userInfo.IsMember && app.globalData.LessonID && app.globalData.LessonID>0) {
50 50
             wx.navigateTo({
51
-              url: '../other/lesson?id=' + app.globalData.LessonID,
51
+              url: '../other/lesson?LessonID=' + app.globalData.LessonID +'&LessonPage='+app.globalData.LessonPage,
52 52
             });
53 53
           }
54 54
 

+ 0 - 1
pages/main/preview.js

@@ -590,7 +590,6 @@ Page({
590 590
     return {
591 591
       title: '我的分享',
592 592
       path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID + '&Share=1&MiaoguoCardID=' + this.data.MiaoguoCardID,
593
-      imageUrl: app.globalData.ShareImage,
594 593
     }
595 594
   },
596 595
 })

+ 22 - 18
pages/main/setting.js

@@ -4,8 +4,8 @@ import main from '../../utils/main';
4 4
 const app = getApp();
5 5
 const arrSortType = ["随机抽取的题卡", "时间较早的题卡", "时间较近的题卡"];
6 6
 const arrSortType2 = ["随机的", "较早的", "较近的"];
7
-const arrClickType=["专属按钮","点击空白","两种方式"];
8
-var arrUserName = ["程晟涵", "大耳兔", "teresa", "古利古拉", "Lucy-chan","临时"];
7
+const arrClickType = ["专属按钮", "点击空白", "两种方式"];
8
+var arrUserName = ["程晟涵", "大耳兔", "teresa", "古利古拉", "Lucy-chan", "临时"];
9 9
 var arrUserID = [2, 11, 8, 9, 10, 128];
10 10
 
11 11
 Page({
@@ -13,8 +13,8 @@ Page({
13 13
     CardNumber: [],
14 14
     IsShowChange: false,
15 15
     ProgramName: app.globalData.ProgramName,
16
-    Version:app.globalData.Version,
17
-    RecommendName:"启用",
16
+    Version: app.globalData.Version,
17
+    RecommendName: "启用",
18 18
   },
19 19
   onLoad: function () {
20 20
     var that = this;
@@ -54,7 +54,7 @@ Page({
54 54
         }
55 55
       }
56 56
     });
57
-    
57
+
58 58
 
59 59
     if (app.globalData.userInfo.UserID == 1 || app.globalData.userInfo.UserID == 2) {
60 60
       that.setData({
@@ -63,9 +63,9 @@ Page({
63 63
     }
64 64
   },
65 65
   onShow: function () {
66
-    var that=this;
66
+    var that = this;
67 67
     var colorIndex = wx.getStorageSync("ColorIndexArr");
68
-    if (!colorIndex || colorIndex.length>1) {
68
+    if (!colorIndex || colorIndex.length > 1) {
69 69
       this.setData({
70 70
         ColorName: "多色变换",
71 71
       });
@@ -88,7 +88,7 @@ Page({
88 88
         RecommendName: "禁用",
89 89
       });
90 90
     }
91
-    
91
+
92 92
     that.setData({
93 93
       ClickTypeName: arrClickType[app.globalData.ClickType],
94 94
     });
@@ -166,13 +166,13 @@ Page({
166 166
       url: './clicktype',
167 167
     })
168 168
   },
169
-  updateMember:function(){
169
+  updateMember: function () {
170 170
     wx.reLaunch({
171 171
       url: '../index/index',
172 172
     })
173 173
   },
174 174
   getMemoryLevel: function () {
175
-    var that=this;
175
+    var that = this;
176 176
     var index = wx.getStorageSync("MemoryLevel");
177 177
     if (!index) {
178 178
       index = 0;
@@ -182,26 +182,30 @@ Page({
182 182
     for (var i = 0; i < list.length; i++) {
183 183
       if (i == index) {
184 184
         that.setData({
185
-          MemoryLevelName:list[i].Key,
185
+          MemoryLevelName: list[i].Key,
186 186
         });
187 187
         break;
188 188
       }
189 189
     }
190 190
   },
191
-  setRecommend:function(){
191
+  setRecommend: function () {
192 192
     wx.navigateTo({
193 193
       url: './recommend',
194 194
     })
195 195
   },
196 196
   gotoPay: function () {
197
-    wx.navigateTo({
198
-      url: '../other/payinfo',
199
-    })
197
+    if (app.globalData.userInfo.UserID <= 7) {
198
+      wx.navigateTo({
199
+        url: '../other/payinfo',
200
+      });
201
+    }
200 202
   },
201 203
   gotoLesson: function () {
202
-    wx.navigateTo({
203
-      url: '../other/lesson',
204
-    })
204
+    if (app.globalData.userInfo.UserID <= 7) {
205
+      wx.navigateTo({
206
+        url: '../other/lessonlist',
207
+      });
208
+    }
205 209
   },
206 210
   onShareAppMessage: function () {
207 211
     return {

+ 2 - 2
pages/main/setting.wxml

@@ -116,7 +116,7 @@
116 116
     <view class='lineFooter'></view>
117 117
   </block>
118 118
 
119
-  <view style='width:100%;height:100rpx;' bindtap='updateMember'></view>
120
-  <text class='text1' bindtap='gotoPay'>©2019 {{ProgramName}}\n微信小程序 版本 {{Version}}</text>
119
+  <view style='width:100%;height:100rpx;' bindtap='gotoPay'></view>
120
+  <text class='text1' bindtap='updateMember'>©2019 {{ProgramName}}\n微信小程序 版本 {{Version}}</text>
121 121
   <view style='width:100%;height:100rpx;' bindtap='gotoLesson'></view>
122 122
 </view>

+ 43 - 23
pages/other/lesson.js

@@ -15,23 +15,34 @@ Page({
15 15
   },
16 16
   onLoad: function (options) {
17 17
     var that = this;
18
-    var id = 1;
19
-    if (options && options.id)
20
-      id = options.id;
21
-    imageUrlPrefix = app.globalData.uploadImageUrl + "lesson/lesson" + id + "/";
22
-    main.getData("GetMiaoguoLesson?Lesson=" + id + "&time=" + new Date().getTime(), function (data) {
18
+    var LessonID = 1;
19
+    var LessonPage = 1;
20
+    if (options && options.LessonID) {
21
+      LessonID = options.LessonID;
22
+    } 
23
+    if (options && options.LessonPage) {
24
+      LessonPage = options.LessonPage;
25
+    }
26
+    that.setData({
27
+      Containnerheight: main.getWindowHeight(),
28
+      LessonID: LessonID,
29
+      LessonPage: LessonPage,
30
+    });
31
+    imageUrlPrefix = app.globalData.uploadImageUrl + "lesson/lesson" + LessonID + "/";
32
+    main.getData("GetMiaoguoLesson?Lesson=" + LessonID + "&time=" + new Date().getTime(), function (data) {
33
+      var id = that.data.LessonPage;
34
+      if (id < 10)
35
+        id = "0" + id;
23 36
       that.setData({
24
-        LessonID: data.LessonID,
25 37
         ArrTirtle: data.List,
26 38
         IsPause: true,
27
-        PlayIndex: 0,
28
-        Containnerheight: main.getWindowHeight(),
29
-        AudioSrc: imageUrlPrefix + "sounds/1.m4a",
30
-        ImageUrl: imageUrlPrefix + "%E5%B9%BB%E7%81%AF%E7%89%8701.jpg",
39
+        AudioSrc: imageUrlPrefix + "sounds/"+that.data.LessonPage+".m4a",
40
+        ImageUrl: imageUrlPrefix + "%E5%B9%BB%E7%81%AF%E7%89%87" + id+".jpg",
31 41
       });
32 42
     });
33 43
     currentContent = [];
34 44
     app.globalData.LessonID = 0;
45
+    app.globalData.LessonPage = 0;
35 46
   },
36 47
   onUnload: function () {
37 48
     this.InsertMiaoguoUserLesson();
@@ -52,12 +63,12 @@ Page({
52 63
   },
53 64
   playAudio: function (e) {
54 65
     var that = this;
55
-    var id = e.currentTarget.dataset.id + 1;
66
+    var id = Number(e.currentTarget.dataset.id) + 1;
56 67
     if (id < 10)
57 68
       id = "0" + id;
58 69
     this.setData({
59 70
       IsPause: false,
60
-      PlayIndex: e.currentTarget.dataset.id,
71
+      LessonPage: Number(id),
61 72
       AudioSrc: imageUrlPrefix + "sounds/" + Number(id) + ".m4a",
62 73
       ImageUrl: imageUrlPrefix + "%E5%B9%BB%E7%81%AF%E7%89%87" + id + ".jpg",
63 74
     });
@@ -66,28 +77,37 @@ Page({
66 77
     }, 1000);
67 78
   },
68 79
   bindEnded: function () {
69
-    var id = this.data.PlayIndex + 1;
80
+    var id = this.data.LessonPage;
70 81
     currentContent.push(id);
71 82
     if (id < this.data.ArrTirtle.length)
72 83
       this.playAudio({ currentTarget: { dataset: { id: id } } });
73 84
   },
74 85
   audioPlay: function () {
75
-    this.audioCtx.play();
76
-    this.setData({
77
-      IsPause: false,
78
-    });
86
+    if (this.data.IsPause){
87
+      this.audioCtx.play();
88
+      this.setData({
89
+        IsPause: false,
90
+      });
91
+    }
92
+    else{
93
+      this.audioCtx.pause();
94
+      this.setData({
95
+        IsPause: true,
96
+      });
97
+    }
79 98
   },
80
-  audioPause: function () {
81
-    this.audioCtx.pause();
82
-    this.setData({
83
-      IsPause: true,
99
+  previewImage:function(e){
100
+    var url=e.currentTarget.dataset.url;
101
+    wx.previewImage({
102
+      current: url,
103
+      urls: [url]
84 104
     });
85 105
   },
86 106
   onShareAppMessage: function () {
87 107
     return {
88 108
       title: "秒过学习法",
89
-      path: app.globalData.SharePath + '?LessonID=' + this.data.LessonID + '&UserID=' + app.globalData.userInfo.UserID,
90
-      imageUrl: '../images/program_screenshot_l1.png',
109
+      path: app.globalData.SharePath + '?LessonID=' + this.data.LessonID + '&LessonPage=' + this.data.LessonPage+'&UserID=' + app.globalData.userInfo.UserID,
110
+      imageUrl: '../images/program_screenshot_l' + this.data.LessonID+'.png',
91 111
     }
92 112
   },
93 113
 });

+ 6 - 7
pages/other/lesson.wxml

@@ -1,9 +1,9 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <view class='top FlexColumn'>
3
-    <image class="img" src='{{ImageUrl}}' bindtap='audioPause'></image>
4
-    <view class='pause img FlexRow' catchtap='audioPlay' hidden="{{!IsPause}}">
5
-      <image class="music-player-play" src='../images/music-player-play.png'></image>
6
-    </view>
3
+    <image class="img" src='{{ImageUrl}}' bindtap='previewImage' data-url="{{ImageUrl}}"></image>
4
+    <image class='music-player-play' src='../images/music-player-play.png' hidden="{{!IsPause}}" ></image>
5
+    <image class='music-player-pause-lines' src='../images/music-player-pause-lines.png' hidden="{{IsPause}}" ></image>
6
+    <view class='btnUp' catchtap='audioPlay'></view>  
7 7
   </view>
8 8
   <audio class='audio' src="{{AudioSrc}}" id="myAudio" bindended="bindEnded"></audio>
9 9
   <view class="main FlexColumn">
@@ -11,10 +11,9 @@
11 11
       <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
12 12
         <view class="lineWidth680"></view>
13 13
       </view>
14
-
15 14
       <view class='item FlexRow' bindtap='playAudio' data-id="{{index}}">
16
-        <image src="../images/universalpic_read_begin_gray_20x20.png" class='universalpic_read_begin_gray_20x20' wx:if="{{PlayIndex==index}}" />
17
-        <view class='universalpic_read_begin_gray_20x20' wx:if="{{PlayIndex!=index}}"></view>
15
+        <image src="../images/universalpic_read_begin_gray_20x20.png" class='universalpic_read_begin_gray_20x20' wx:if="{{(LessonPage-1)==index}}" />
16
+        <view class='universalpic_read_begin_gray_20x20' wx:if="{{(LessonPage-1)!=index}}"></view>
18 17
         <view>{{item.Title}}</view>
19 18
       </view>
20 19
     </block>

+ 21 - 13
pages/other/lesson.wxss

@@ -7,7 +7,7 @@
7 7
 
8 8
 .top {
9 9
   width:100%;
10
-  height:495rpx;
10
+  height:575rpx;
11 11
   position: fixed;
12 12
   z-index: 10;
13 13
   background-color: #f0f0f0;
@@ -19,19 +19,8 @@
19 19
   border-radius: 10rpx;
20 20
 }
21 21
 
22
-.pause{
23
-  background-color: rgba(0,0,0,0.2);
24
-  position: absolute;
25
-  z-index: 20;
26
-}
27
-
28
-.music-player-play{
29
-  width:102rpx;
30
-  height:120rpx;
31
-}
32
-
33 22
 .main{
34
-  margin-top: 495rpx;
23
+  margin-top: 575rpx;
35 24
   width:100%;
36 25
   align-items: flex-start;
37 26
   background-color: #fff;
@@ -51,4 +40,23 @@
51 40
   width:21rpx;
52 41
   height:20rpx;
53 42
   margin-right: 20rpx;
43
+}
44
+
45
+.music-player-play{
46
+  width:60rpx;
47
+  height:60rpx;
48
+  margin: 20rpx;
49
+}
50
+
51
+.music-player-pause-lines{
52
+  width:60rpx;
53
+  height:60rpx;
54
+  margin: 20rpx;
55
+}
56
+
57
+.btnUp{
58
+  width:60rpx;
59
+  height:60rpx;
60
+  background-color: rgba(240,240,240,0.6);
61
+  margin-top: -80rpx;
54 62
 }

+ 34 - 0
pages/other/lessonlist.js

@@ -0,0 +1,34 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    List: ['预备课','第1课','第2课','第3课'],
9
+  },
10
+  onLoad: function () {
11
+    var that = this;
12
+    that.setData({
13
+      Containnerheight: main.getWindowHeight(),
14
+    });
15
+  },
16
+  gotoLesson: function (e) {
17
+    var id=e.currentTarget.dataset.id;
18
+    wx.navigateTo({
19
+      url: '../other/lesson?LessonID='+id,
20
+    });
21
+  },
22
+  gotoUserList: function (e) {
23
+    wx.navigateTo({
24
+      url: '../other/userlist',
25
+    });
26
+  },
27
+  onShareAppMessage: function () {
28
+    return {
29
+      title: app.globalData.ShareTitle,
30
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
31
+      imageUrl: app.globalData.ShareImage,
32
+    }
33
+  },
34
+})

+ 3 - 0
pages/other/lessonlist.json

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

+ 18 - 0
pages/other/lessonlist.wxml

@@ -0,0 +1,18 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="main FlexColumn">
3
+    <block wx:for="{{List}}" wx:key="index">
4
+      <view class="panelItem FlexRow" bindtap="gotoLesson" data-id="{{index+1}}">
5
+        <view class="panelItem1">
6
+          {{item}}
7
+        </view>
8
+        <view class="panelItem2 FlexRow">
9
+          <image class="universalpic_indicator_right_gray" src='../images/universalpic_indicator_right_gray.png' />
10
+        </view>
11
+      </view>
12
+      <view class='lineFooter'></view>
13
+    </block>
14
+  </view>
15
+  
16
+  <view style='height:100rpx;'></view>
17
+  <button bindtap='gotoUserList'>审核用户</button>
18
+</view>

+ 37 - 0
pages/other/lessonlist.wxss

@@ -0,0 +1,37 @@
1
+.container {
2
+  justify-content: flex-start;
3
+  font-weight: 500;
4
+}
5
+
6
+.main{
7
+  width: 100%;
8
+}
9
+
10
+.panelItem {
11
+  width: 100%;
12
+  justify-content: space-between;
13
+  font-size: 28rpx;
14
+  height: 100rpx;
15
+  background-color: #fff;
16
+}
17
+
18
+.panelItem1 {
19
+  margin-left: 30rpx;
20
+  justify-content: flex-start;
21
+  font-weight: 400;
22
+  font-size:28rpx;
23
+}
24
+
25
+.panelItem2 {
26
+  margin-right: 30rpx;
27
+  color: #787878;
28
+  font-size:28rpx;
29
+  font-weight: 400;
30
+}
31
+
32
+.universalpic_indicator_right_gray{
33
+  width:16rpx;
34
+  height:26rpx;
35
+  margin-left: 30rpx;
36
+}
37
+

+ 2 - 1
pages/other/payinfo.wxml

@@ -1,5 +1,6 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2 2
   <image class='imageDM' src="http://miaguo-1253256735.file.myqcloud.com/DM.png" ></image>
3 3
   <view class='btn' bindtap='gotoProgram'>报名</view>
4
-  <text class="text">完成报名完成\n如未能自动刷新结果,请手动下拉刷新</text>
4
+  <view style='height:100rpx;'></view>
5
+  <!-- <text class="text">完成报名完成\n如未能自动刷新结果,请手动下拉刷新</text> -->
5 6
 </view>

+ 81 - 0
pages/other/userlist.js

@@ -0,0 +1,81 @@
1
+import common from '../../utils/util';
2
+import main from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+  },
9
+  onLoad: function () {
10
+    var that = this;
11
+    that.setData({
12
+      Containnerheight: main.getWindowHeight(),
13
+    });
14
+    this.init();
15
+  },
16
+  onPullDownRefresh:function(){
17
+    this.init();
18
+    var that = this;
19
+    that.setData({
20
+      SearchInfo: "",
21
+    });
22
+    wx.stopPullDownRefresh();
23
+  },
24
+  init: function () {
25
+    wx.showLoading({
26
+      title: '请稍候',
27
+    });
28
+    var that = this;
29
+    main.getData("GetApprovalUserList", function (data) {
30
+      wx.hideLoading();
31
+      that.setData({
32
+        List: data,
33
+      });
34
+    });
35
+  },
36
+  switch2Change: function (e) {
37
+    var id = e.currentTarget.dataset.id;
38
+    var isMember = 0;
39
+    if (e.detail.value)
40
+      isMember = 1;
41
+
42
+    main.getData("UpdateUserMemberInfo?UserID=" + id + "&IsMember=" + isMember, function (data) {
43
+      var title = "权限已关";
44
+      if (isMember == 1)
45
+        title = "权限已开";
46
+      wx.showToast({
47
+        title: title,
48
+      });
49
+    });
50
+  },
51
+  onKeyInput: function (e) {
52
+    var search = e.detail.value;
53
+    var that = this;
54
+    that.setData({
55
+      SearchInfo: search,
56
+    });
57
+  },
58
+  search: function () {
59
+    if (this.data.SearchInfo) {
60
+      var list = [];
61
+      for (var i = 0; i < this.data.List.length; i++) {
62
+        if (this.data.List[i].NickName.indexOf(this.data.SearchInfo) >= 0) {
63
+          list.push(this.data.List[i]);
64
+        }
65
+      }
66
+      this.setData({
67
+        List: list,
68
+      });
69
+    }
70
+    else {
71
+      this.init();
72
+    }
73
+  },
74
+  onShareAppMessage: function () {
75
+    return {
76
+      title: app.globalData.ShareTitle,
77
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
78
+      imageUrl: app.globalData.ShareImage,
79
+    }
80
+  },
81
+})

+ 3 - 0
pages/other/userlist.json

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

+ 28 - 0
pages/other/userlist.wxml

@@ -0,0 +1,28 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="panelSearch FlexRow">
3
+    <view class="panelSearch1 FlexRow">
4
+      <image class="universalpic_search_gray_30x30" src='../images/universalpic_search_gray_30x30.png' />
5
+      <input class='input' maxlength='50' bindinput="onKeyInput" value="{{SearchInfo}}" />
6
+      <view class='btnSearch' bindtap='search'>搜索</view>
7
+    </view>
8
+  </view>
9
+  
10
+  <view class='lineFooter'></view>
11
+  <view class="main FlexColumn">
12
+    <block wx:for="{{List}}" wx:key="index">
13
+      <view class="panelItem FlexRow" bindtap="gotoLesson" data-id="{{item.UserID}}">
14
+        <view class="panelItem1 FlexRow">
15
+          <image class='avatar' src="{{item.AvatarUrl}}" />
16
+          <view>{{item.NickName}}</view>
17
+          <view class='time'>{{item.CreateTime}}</view>
18
+        </view>
19
+        <view class="panelItem2 FlexRow">
20
+          <switch checked='{{item.IsMember}}' bindchange="switch2Change" data-id="{{item.UserID}}" />
21
+        </view>
22
+      </view>
23
+      <view class='lineFooter'></view>
24
+    </block>
25
+  </view>
26
+  
27
+  <view style='height:100rpx;'></view>
28
+</view>

+ 86 - 0
pages/other/userlist.wxss

@@ -0,0 +1,86 @@
1
+.container {
2
+  justify-content: flex-start;
3
+  font-weight: 500;
4
+}
5
+
6
+
7
+.panelSearch{
8
+  width:100%;
9
+  height:140rpx;
10
+  background-color: #fff;
11
+}
12
+.panelSearch1{
13
+  width:690rpx;
14
+  height:80rpx;
15
+  margin: 20rpx 0 40rpx 0;
16
+  border-radius: 14rpx;
17
+  background-color: #F0F0F0;
18
+  color:#787878;
19
+  font-size:28rpx;
20
+  font-weight: 400;
21
+  justify-content: flex-start;
22
+}
23
+
24
+.universalpic_search_gray_30x30{
25
+  width:30rpx;
26
+  height:30rpx;
27
+  margin: 0 20rpx 0 30rpx;
28
+}
29
+
30
+.input{
31
+  font-size:32rpx;
32
+  font-weight: 400;
33
+  color:#1e1e1e;
34
+  width:500rpx;
35
+  height:40rpx;
36
+}
37
+
38
+.btnSearch{
39
+  margin-right: 0rpx;
40
+  width:80rpx;
41
+  font-size:24rpx;
42
+  border-radius: 5rpx;
43
+  height:50rpx;
44
+  background-color: #dddddd;
45
+  text-align: center;
46
+  line-height: 50rpx;
47
+}
48
+
49
+.main{
50
+  width: 100%;
51
+}
52
+
53
+.panelItem {
54
+  width: 100%;
55
+  justify-content: space-between;
56
+  font-size: 28rpx;
57
+  height: 100rpx;
58
+  background-color: #fff;
59
+  margin-top: 10rpx;
60
+}
61
+
62
+.panelItem1 {
63
+  margin-left: 30rpx;
64
+  justify-content: flex-start;
65
+  font-weight: 400;
66
+  font-size:28rpx;
67
+}
68
+
69
+.panelItem2 {
70
+  margin-right: 30rpx;
71
+  color: #787878;
72
+  font-size:28rpx;
73
+  font-weight: 400;
74
+}
75
+
76
+.avatar{
77
+  width:100rpx;
78
+  height:100rpx;
79
+  margin-right: 30rpx;
80
+}
81
+
82
+.time{
83
+  margin-left: 30rpx;
84
+  font-size:24rpx;
85
+  color:#787878;
86
+}

+ 3 - 3
project.config.json

@@ -40,7 +40,7 @@
40 40
 			"list": []
41 41
 		},
42 42
 		"miniprogram": {
43
-			"current": 3,
43
+			"current": 2,
44 44
 			"list": [
45 45
 				{
46 46
 					"id": 0,
@@ -59,7 +59,7 @@
59 59
 				{
60 60
 					"id": 2,
61 61
 					"name": "临时",
62
-					"pathName": "pages/other/lesson",
62
+					"pathName": "pages/other/userlist",
63 63
 					"query": "",
64 64
 					"scene": null
65 65
 				},
@@ -67,7 +67,7 @@
67 67
 					"id": 3,
68 68
 					"name": "临时",
69 69
 					"pathName": "pages/index/index",
70
-					"query": "LessonID=1",
70
+					"query": "LessonID=1&LessonPage=2",
71 71
 					"scene": null
72 72
 				}
73 73
 			]

+ 17 - 0
utils/main.js

@@ -536,6 +536,22 @@ function getTempImage(serverUrl) {
536 536
   return serverUrl;
537 537
 }
538 538
 
539
+
540
+function getServerImage(tempUrl) {
541
+  if (tempUrl.indexOf("http") < 0) {
542
+    var list = wx.getStorageSync("TempImageList");
543
+    if (!list)
544
+      list = [];
545
+    for (var i = 0; i < list.length; i++) {
546
+      if (list[i].TempUrl == tempUrl) {
547
+        return list[i].ServerUrl;
548
+        break;
549
+      }
550
+    }
551
+    return ""
552
+  }
553
+}
554
+
539 555
 function saveTempImage(serverUrl, tempUrl) {
540 556
   if (tempUrl.indexOf("http") < 0) {
541 557
     var list = wx.getStorageSync("TempImageList");
@@ -2335,4 +2351,5 @@ module.exports = {
2335 2351
   UpdateMiaoguoCardTodayAll: UpdateMiaoguoCardTodayAll,
2336 2352
   setCollect: setCollect,
2337 2353
   UploadUserConfig: UploadUserConfig,
2354
+  getServerImage: getServerImage,
2338 2355
 }