chengjie 6 年 前
コミット
32c9f78ab2
共有3 個のファイルを変更した4 個の追加3 個の削除を含む
  1. 1 1
      app.js
  2. 2 1
      pages/other/lesson.js
  3. 1 1
      pages/other/lessonlist.js

+ 1 - 1
app.js

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

+ 2 - 1
pages/other/lesson.js

@@ -40,6 +40,7 @@ Page({
40 40
       that.setData({
41 41
         ArrTirtle: data.List,
42 42
         IsPause: true,
43
+        ShareImageUrl:data.ImageUrl,
43 44
         AudioSrc: imageUrlPrefix + "sounds/"+that.data.LessonPage+".m4a",
44 45
         ImageUrl: imageUrlPrefix + "%E5%B9%BB%E7%81%AF%E7%89%87" + id+".jpg",
45 46
       });
@@ -130,7 +131,7 @@ Page({
130 131
   },
131 132
   onShareAppMessage: function () {
132 133
     var title ="秒过学习法";
133
-    var imageUrl = '../images/program_screenshot_l' + this.data.LessonID + '.png';
134
+    var imageUrl = this.data.ShareImageUrl;
134 135
     if (this.data.LessonPage>0){
135 136
       title = this.data.ArrTirtle[this.data.LessonPage - 1].Title;
136 137
     }

+ 1 - 1
pages/other/lessonlist.js

@@ -5,7 +5,7 @@ const app = getApp();
5 5
 
6 6
 Page({
7 7
   data: {
8
-    List: ['第一课', '第二课', '第三课', '第四课'],
8
+    List: ['第一课', '第二课', '第三课', '第四课', '第五课', '第六课', '第七课', '第八课'],
9 9
   },
10 10
   onLoad: function () {
11 11
     var that = this;