chengjie лет назад: 4
Родитель
Сommit
f2aaae30d8
47 измененных файлов с 760 добавлено и 448 удалено
  1. 1 1
      app.js
  2. 2 1
      app.json
  3. BIN
      package4/images/pay_shoppingguide_illus_03_105.png
  4. BIN
      package4/images/pay_shoppingguide_illus_03_98.png
  5. 13 4
      package4/main/buyad.js
  6. 2 0
      package4/main/buyad.wxml
  7. 14 4
      package4/main/buyad.wxss
  8. 47 0
      package4/main/getgiftlist.js
  9. 6 0
      package4/main/getgiftlist.json
  10. 27 0
      package4/main/getgiftlist.wxml
  11. 62 0
      package4/main/getgiftlist.wxss
  12. 1 1
      package4/main/giftlist.json
  13. 22 0
      package4/main/miaoguoreadme.js
  14. 6 0
      package4/main/miaoguoreadme.json
  15. 11 0
      package4/main/miaoguoreadme.wxml
  16. 16 0
      package4/main/miaoguoreadme.wxss
  17. 0 59
      package4/main/newuser.js
  18. 0 5
      package4/main/newuser.json
  19. 0 31
      package4/main/newuser.wxml
  20. 0 78
      package4/main/newuser.wxss
  21. BIN
      pages/images/02014.png
  22. BIN
      pages/images/accredit.png
  23. BIN
      pages/images/bm_sy_banner-open.png
  24. BIN
      pages/images/bm_sy_illus.png
  25. BIN
      pages/images/home_banner.png
  26. BIN
      pages/images/home_banner_window.png
  27. BIN
      pages/images/home_triangle_up.png
  28. BIN
      pages/images/message_home_01.png
  29. BIN
      pages/images/pay_shoppingguide_illus_03_105.png
  30. BIN
      pages/images/signup_abnormal_illus.png
  31. BIN
      pages/images/sofewareicon_jst.png
  32. BIN
      pages/images/sofewareicon_ks.png
  33. BIN
      pages/images/sofewareicon_mg.png
  34. BIN
      pages/images/sofewareicon_pd.png
  35. BIN
      pages/images/sofewareicon_py.png
  36. BIN
      pages/images/sofewareicon_sz.png
  37. 4 43
      pages/index/index.js
  38. 21 53
      pages/main/accredit.js
  39. 5 4
      pages/main/accredit.json
  40. 3 12
      pages/main/accredit.wxml
  41. 28 35
      pages/main/accredit.wxss
  42. 68 41
      pages/main/default.js
  43. 123 22
      pages/main/default.wxml
  44. 263 24
      pages/main/default.wxss
  45. 1 1
      pages/main/userinfo.js
  46. 10 24
      pages/main/userinfo.wxml
  47. 4 5
      project.config.json

+ 1 - 1
app.js

@@ -26,7 +26,7 @@ App({
26 26
     }
27 27
   },
28 28
   globalData: {
29
-    version: "1.1.11",
29
+    version: "1.1.13",
30 30
     IsProduction: true,
31 31
     ProgramID: 105,
32 32
     AppID: "wx1fef080f74481cbd",

+ 2 - 1
app.json

@@ -45,12 +45,13 @@
45 45
         "main/activateFinish",
46 46
         "main/giftcard",
47 47
         "main/giftlist",
48
+        "main/getgiftlist",
48 49
         "main/giftinfo",
49 50
         "main/coupon",
50 51
         "main/limited",
51 52
         "main/invite",
52 53
         "main/share",
53
-        "main/newuser",
54
+        "main/miaoguoreadme",
54 55
         "main/list"
55 56
       ]
56 57
     }

BIN
package4/images/pay_shoppingguide_illus_03_105.png


BIN
package4/images/pay_shoppingguide_illus_03_98.png


+ 13 - 4
package4/main/buyad.js

@@ -9,6 +9,7 @@ Page({
9 9
   onLoad: function (options) {
10 10
     this.setData({
11 11
       Containnerheight: common.getSystemHeight(),
12
+      ProgramID: app.globalData.ProgramID,
12 13
     });
13 14
     this.init();
14 15
   },
@@ -38,10 +39,18 @@ Page({
38 39
       url: "./list?IsGift=1",
39 40
     });
40 41
   },
41
-  closePage:function(){
42
-    wx.navigateBack({
43
-      delta: 1
44
-    });
42
+  closePage:function(e){
43
+    if (e.currentTarget.dataset.type){
44
+      app.globalData.IsShowMiaoguo=true;
45
+      wx.navigateBack({
46
+        delta: 3
47
+      });
48
+    }
49
+    else{
50
+      wx.navigateBack({
51
+        delta: 1
52
+      });
53
+    }
45 54
   },
46 55
   onShareAppMessage: function () {
47 56
     return {

+ 2 - 0
package4/main/buyad.wxml

@@ -1,4 +1,6 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <image src='../images/pay_shoppingguide_illus_03_{{ProgramID}}.png' class="pay_shoppingguide_illus_03" bindtap="closePage" data-type="openAD" />
3
+  
2 4
   <view class='panel1 FlexColumn'>
3 5
     <image src='../images/pay_shoppingguide_illus_01.png' class="pay_shoppingguide_illus_01" />
4 6
     <view class='panel11 FlexRow'>

+ 14 - 4
package4/main/buyad.wxss

@@ -3,11 +3,16 @@
3 3
   color:#1e1e1e;
4 4
 }
5 5
 
6
+.pay_shoppingguide_illus_03{
7
+  width: 610rpx;
8
+  height: 174rpx;
9
+  margin-top: 40rpx;
10
+}
11
+
6 12
 .panel1 {
7 13
   width: 610rpx;
8
-  margin-top: 100rpx;
14
+  margin-top: 30rpx;
9 15
   justify-content: flex-start;
10
-  background-color: #AE5138;
11 16
   border-radius: 10rpx;
12 17
   box-shadow: 0 20rpx 1rpx #AE5138,
13 18
   0 50rpx 1rpx #2E1E2F;
@@ -63,6 +68,8 @@
63 68
   width:610rpx;
64 69
   height:192rpx;
65 70
   margin-top: 74rpx;
71
+  position: relative;
72
+  z-index: 10;
66 73
 }
67 74
 
68 75
 .text1{
@@ -71,14 +78,15 @@
71 78
   color:#FE6659;
72 79
   text-decoration: underline;
73 80
   z-index: 10;
74
-  background-color: #342535;
81
+  background-color:rgba(0,0,0,0);
75 82
   border: 0rpx solid;
76 83
 }
77 84
 
78 85
 .pay_shoppingguide_footer{
79 86
   width:100%;
80 87
   height:350rpx;
81
-  margin-top: -23rpx;
88
+  position: fixed;
89
+  bottom:130rpx;
82 90
 }
83 91
 
84 92
 .text2{
@@ -89,4 +97,6 @@
89 97
   font-size:48rpx;
90 98
   text-align: center;
91 99
   background-color: #6B4D4E;
100
+  position: fixed;
101
+  bottom:0;
92 102
 }

+ 47 - 0
package4/main/getgiftlist.js

@@ -0,0 +1,47 @@
1
+import common from '../../utils/util';
2
+import server from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    List:[],
9
+  },
10
+  onLoad: function (options) {
11
+    this.setData({
12
+      Containnerheight: common.getSystemHeight(),
13
+    });
14
+    this.init();
15
+  },
16
+  init:function(){
17
+    var that = this;
18
+    wx.showLoading({
19
+      title: '请稍后',
20
+    })
21
+    server.getData('GetProductGivePresent?UserID=' + app.globalData.userInfo.UserID + "&ProductID=" + app.globalData.ProgramID, function (data) {
22
+      wx.hideLoading({});
23
+      if (data) {
24
+        var arr=server.getProgramList();
25
+        for(var i=0;i<arr.length;i++){
26
+          for(var j=0;j<data.length;j++){
27
+            if (arr[i].ID==data[j].ProgramID){
28
+              data[j].ProgramName=arr[i].Name;
29
+              data[j].ProgramUrl=arr[i].ImageUrl;
30
+              break;
31
+            }
32
+          }
33
+        }
34
+        that.setData({
35
+          List: data,
36
+        });
37
+      }
38
+    });
39
+  },
40
+  onShareAppMessage: function () {
41
+    return {
42
+      title: app.globalData.ShareTitle,
43
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
44
+      imageUrl: app.globalData.ShareImage,
45
+    }
46
+  },
47
+})

+ 6 - 0
package4/main/getgiftlist.json

@@ -0,0 +1,6 @@
1
+{
2
+  "navigationBarTitleText": "获赠的礼品卡",
3
+  "navigationBarBackgroundColor": "#ffffff",
4
+  "navigationBarTextStyle": "black",
5
+  "backgroundColor": "#F0F0F0"
6
+}

+ 27 - 0
package4/main/getgiftlist.wxml

@@ -0,0 +1,27 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <block wx:if="{{List.length>0}}" wx:for="{{List}}" wx:key="index">
3
+    <view class='panel FlexColumn'>
4
+      <view class='panel1 FlexColumn'>
5
+        <view class='panel11 FlexRow'>
6
+          <view class='Title1'>激活时间</view>
7
+          <view class='Title2'>{{item.CreateTime}}</view>
8
+        </view>
9
+        <view class='panel11 FlexRow'>
10
+          <view class='Title1'>有效期延长至</view>
11
+          <view class='Title2'>{{item.ProductServiceTime}}</view>
12
+        </view>
13
+      </view>
14
+      <view class='lineWidth750'></view>
15
+      <view class='panel2 FlexRow'>
16
+        <image src='../images/{{item.ProgramUrl}}' class="product_icon_py_70x70" />
17
+        <view class='Title3'>{{item.ProgramName}}</view>
18
+      </view>
19
+    </view>
20
+    <view class='lineFooter'></view>
21
+  </block>
22
+
23
+  <view class='panelNull FlexColumn' wx:if="{{List.length==0}}">
24
+    <view class='Title5'>没有获赠的礼品卡</view>
25
+  </view>
26
+  <view style='height:100rpx;'></view>
27
+</view>

+ 62 - 0
package4/main/getgiftlist.wxss

@@ -0,0 +1,62 @@
1
+.container {
2
+  background-color: #f0f0f0;
3
+  color: #1e1e1e;
4
+  font-weight: 400;
5
+}
6
+
7
+.panel{
8
+  margin-top: 50rpx;
9
+  width:100%;
10
+  background-color: #fff;
11
+}
12
+
13
+.panel .panel1{
14
+  align-items: flex-start;
15
+  margin:0 0 0 30rpx;
16
+  width:700rpx;
17
+  height:131rpx;
18
+}
19
+
20
+.panel .panel11{
21
+  margin:3rpx 0;
22
+}
23
+
24
+.panel .Title1{
25
+  font-size:20rpx;
26
+  color:#9B9B9B;
27
+  font-weight: 400;
28
+  width:120rpx;
29
+}
30
+
31
+.panel .Title2{
32
+  font-size:20rpx;
33
+  margin: 0 0 0 10rpx;
34
+  
35
+}
36
+
37
+.panel .panel2{
38
+  width: 100%;
39
+  height:111rpx;
40
+  justify-content: flex-start;
41
+}
42
+
43
+.product_icon_py_70x70{
44
+  width:50rpx;
45
+  height:50rpx;
46
+  margin:0 0 0 30rpx;
47
+  border-radius: 10rpx;
48
+}
49
+
50
+.panel .Title3{
51
+  font-size:28rpx;
52
+  margin-left: 20rpx;
53
+}
54
+
55
+.panelNull{
56
+  margin-top: 412rpx;
57
+}
58
+
59
+.panelNull .Title5{
60
+  font-size:48rpx;
61
+  font-weight: 500;
62
+}

+ 1 - 1
package4/main/giftlist.json

@@ -1,5 +1,5 @@
1 1
 {
2
-  "navigationBarTitleText": "的礼品卡",
2
+  "navigationBarTitleText": "购买的礼品卡",
3 3
   "navigationBarBackgroundColor": "#ffffff",
4 4
   "navigationBarTextStyle": "black",
5 5
   "backgroundColor": "#F0F0F0"

+ 22 - 0
package4/main/miaoguoreadme.js

@@ -0,0 +1,22 @@
1
+import common from '../../utils/util';
2
+import server from '../../utils/main';
3
+
4
+const app = getApp();
5
+
6
+Page({
7
+  data: {
8
+    
9
+  },
10
+  onLoad: function (options) {
11
+    this.setData({
12
+      Containnerheight: common.getSystemHeight(),
13
+    });
14
+  },
15
+  onShareAppMessage: function () {
16
+    return {
17
+      title: app.globalData.ShareTitle,
18
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
19
+      imageUrl: app.globalData.ShareImage,
20
+    }
21
+  },
22
+})

+ 6 - 0
package4/main/miaoguoreadme.json

@@ -0,0 +1,6 @@
1
+{
2
+  "navigationBarTitleText": "活动规则",
3
+  "navigationBarBackgroundColor": "#ffffff",
4
+  "navigationBarTextStyle": "black",
5
+  "backgroundColor": "#F0F0F0"
6
+}

+ 11 - 0
package4/main/miaoguoreadme.wxml

@@ -0,0 +1,11 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <view class="text1">活动规则</view>
3
+  <text class="text2">① 本活动只针对自2021年3月??日起报名秒过的用户,在此之前报名的老用户不享受此活动优惠项目。\n
4
+② 秒过新手培训只能报名一次,不能重复报名。\n
5
+③ 符合本活动规则的有效报名是指:打开秒过小程序;支付报名费;关注秒过学习法公众号;添加班务员微信;收到班务员开班安排的通知。以上整个流程中的任何环节均不可或缺。请按系统引导信息一步步完成。\n
6
+④ 有效报名可获得唱意公司旗下5款产品各20天免费有效期。产品包括:语文汉语拼音、语文识字、英语自然拼读、数学计算题、口算星球。\n
7
+⑤ 报名后,请尽快打开这5款产品,系统会自动延长有效期。您可以通过「首页 -> 点击用户头像 -> 会员中心 -> 获增的礼品卡」查询。\n
8
+⑥ 「获增的礼品卡」只能查询已打开的产品,想要查看完整5款的记录,请把产品全部打开一遍后回到该功能复查。\n
9
+⑦ 如需人工咨询,请通过报名时添加的微信与班务员联系。客服工作时间:10:00-22:00。\n
10
+活动最终解释权归唱意公司所有。如有争议请在报名后与班务员协商解决。感谢您的配合。</text>
11
+</view>

+ 16 - 0
package4/main/miaoguoreadme.wxss

@@ -0,0 +1,16 @@
1
+.container {
2
+  background-color: #f0f0f0;
3
+  color: #1e1e1e;
4
+  font-weight: 500;
5
+}
6
+
7
+.text1 {
8
+  width: 690rpx;
9
+  font-size:36rpx;
10
+  margin:50rpx 0 0 0;
11
+}
12
+.text2 {
13
+  width: 690rpx;
14
+  font-size:24rpx;
15
+  margin:30rpx 0 0 0;
16
+}

+ 0 - 59
package4/main/newuser.js

@@ -1,59 +0,0 @@
1
-import common from '../../utils/util';
2
-import main from '../../utils/main';
3
-
4
-var app = getApp();
5
-
6
-Page({
7
-  data: {
8
-    PanelShow: 0,
9
-    ImagePath: app.globalData.uploadImageUrl,
10
-  },
11
-  onLoad: function (options) {
12
-    var that = this;
13
-    that.setData({
14
-      Containnerheight: common.getSystemHeight(),
15
-    });
16
-    that.init();
17
-
18
-    wx.setNavigationBarColor({
19
-      frontColor: "#ffffff",
20
-      backgroundColor: "#9BD41C",
21
-    });
22
-
23
-  },
24
-  init: function () {
25
-    var that = this;
26
-    main.getData("GetClassList?Flag=0", function (data) {
27
-      if (data && data.length>0) {
28
-        that.setData({
29
-          StartDate: common.formatDateCHS(data[0].StartDate),
30
-        })
31
-      }
32
-    });
33
-  },
34
-  gotoPanel2:function(){
35
-      this.setData({
36
-        PanelShow:1,
37
-      })
38
-  },
39
-  copyManager: function () {
40
-    wx.setClipboardData({
41
-      data: "秒过学习法",
42
-      success(res) {
43
-        wx.showModal({
44
-          title: '已复制',
45
-          showCancel: false,
46
-          content: "请在微信添加公众号中长按粘贴。",
47
-          confirmText: "知道了",
48
-        });
49
-      }
50
-    });
51
-  },
52
-  onShareAppMessage: function () {
53
-    return {
54
-      title: app.globalData.ShareTitle,
55
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
56
-      imageUrl: app.globalData.ShareImage,
57
-    }
58
-  },
59
-})

+ 0 - 5
package4/main/newuser.json

@@ -1,5 +0,0 @@
1
-{
2
-  "navigationBarTitleText": "秒过学习法",
3
-  "navigationBarBackgroundColor": "#9BD41C",
4
-  "navigationBarTextStyle": "white"
5
-}

+ 0 - 31
package4/main/newuser.wxml

@@ -1,31 +0,0 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-
3
-  <block wx:if="{{PanelShow==0}}">
4
-    <image class="img" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/promotion_leaflet_c01.png' />
5
-    <image class="img" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/promotion_leaflet_c02.png' />
6
-    <image class="img" lazy-load="true" mode="widthFix" src='{{ImagePath}}web/promotion_leaflet_c03.png' />
7
-    <view class="panelBottom FlexRow">
8
-      <view class="panelBottom1 FlexColumn" wx:if="{{!StartDate}}">
9
-        <view class='text7'>16天手把手</view>
10
-        <view class='text8'>还您上手新方法</view>
11
-      </view>
12
-      <view class="panelBottom1 FlexColumn" wx:if="{{StartDate}}">
13
-        <view class='text7'>近期开班时间</view>
14
-        <view class='text8'>{{StartDate}}</view>
15
-      </view>
16
-      <view class="btn2 FlexColumn" bindtap="gotoPanel2">
17
-        去报名
18
-      </view>
19
-    </view>
20
-    <view style="height:140rpx;"></view>
21
-  </block>
22
-  <block wx:if="{{PanelShow==1}}">
23
-    <view class='text1'>报名步骤</view>
24
-    <view class='text2'>第一步</view>
25
-    <text class='text3'>手动关注公众号《秒过学习法》</text>
26
-
27
-    <view class="btn" bindtap='copyManager'>复制公众号名称</view>
28
-    <view class='text4'>第二步</view>
29
-    <view class='text3'>关注后点击“开通新手包”</view>
30
-  </block>
31
-</view>

+ 0 - 78
package4/main/newuser.wxss

@@ -1,78 +0,0 @@
1
-.container{
2
-  background-color: #ffffff;
3
-  color:#1E1E1E;
4
-}
5
-
6
-.img{
7
-  width:100%;
8
-}
9
-
10
-
11
-.panelBottom{
12
-  width:100%;
13
-  height:140rpx;
14
-  position: fixed;
15
-  bottom: 0;
16
-  background-color: #329468;
17
-  z-index: 10;
18
-  justify-content: space-between;
19
-}
20
-
21
-.panelBottom1{
22
-  margin-left: 30rpx;
23
-  color:#fff;
24
-  align-items: flex-start;
25
-}
26
-
27
-.text7{
28
-  font-size:24rpx;
29
-}
30
-
31
-.text8{
32
-  font-size:36rpx;
33
-}
34
-
35
-
36
-.text1{
37
-  margin: 200rpx 0 0 0;
38
-  font-size:64rpx;
39
-  color:#329468;
40
-}
41
-.text2{
42
-  margin: 10rpx 0 0 0;
43
-  font-size:36rpx;
44
-}
45
-.text3{
46
-  font-size:28rpx;
47
-  font-weight: 400;
48
-}
49
-
50
-.btn{
51
-  font-size:36rpx;
52
-  width:520rpx;
53
-  height:90rpx;
54
-  border-radius: 10rpx;
55
-  text-align: center;
56
-  line-height: 90rpx;
57
-  color:#fff;
58
-  background-color: #329468;
59
-  margin-top: 30rpx;
60
-}
61
-
62
-.btn2{
63
-  font-size:48rpx;
64
-  width:380rpx;
65
-  height:100rpx;
66
-  border-radius: 10rpx;
67
-  text-align: center;
68
-  line-height: 100rpx;
69
-  color:#1E1E1E;
70
-  background-color: #FFDD0C;
71
-  margin-right: 30rpx;
72
-}
73
-
74
-.text4{
75
-  margin: 60rpx 0 0 0;
76
-  font-size:36rpx;
77
-}
78
-

BIN
pages/images/02014.png


BIN
pages/images/accredit.png


BIN
pages/images/bm_sy_banner-open.png


BIN
pages/images/bm_sy_illus.png


BIN
pages/images/home_banner.png


BIN
pages/images/home_banner_window.png


BIN
pages/images/home_triangle_up.png


BIN
pages/images/message_home_01.png


BIN
pages/images/pay_shoppingguide_illus_03_105.png


BIN
pages/images/signup_abnormal_illus.png


BIN
pages/images/sofewareicon_jst.png


BIN
pages/images/sofewareicon_ks.png


BIN
pages/images/sofewareicon_mg.png


BIN
pages/images/sofewareicon_pd.png


BIN
pages/images/sofewareicon_py.png


BIN
pages/images/sofewareicon_sz.png


+ 4 - 43
pages/index/index.js

@@ -57,44 +57,12 @@ Page({
57 57
       success: function (res0) {
58 58
         app.globalData.userInfo = {};
59 59
         app.globalData.userInfo.Code = res0.code;
60
-        //console.log("Code:" + res0.code);
61
-
62
-        wx.getSetting({
63
-          scope: "scope.userInfo",
64
-          success(res) {
65
-            if (!res.authSetting['scope.userInfo']) {
66
-              app.globalData.userInfo.nickName = "陌生用户";
67
-              app.globalData.userInfo.language = "";
68
-              app.globalData.userInfo.gender = "0";
69
-              app.globalData.userInfo.city = "";
70
-              app.globalData.userInfo.province = "";
71
-              app.globalData.userInfo.country = "";
72
-              app.globalData.userInfo.avatarUrl = "";
73
-              that.login(app.globalData.userInfo);
74
-            } else {
75
-              wx.getUserInfo({
76
-                withCredentials: false,
77
-                success: function (res) {
78
-                  app.globalData.userInfo = res.userInfo;
79
-
80
-                  app.globalData.userInfo.NickName = app.globalData.userInfo.nickName;
81
-                  app.globalData.userInfo.AvatarUrl = app.globalData.userInfo.avatarUrl;
82
-
83
-                  app.globalData.userInfo.Code = res0.code;
84
-                  that.login(app.globalData.userInfo);
85
-
86
-                },
87
-                fail: function (res) {
88
-                  that.login(app.globalData.userInfo);
89
-                }
90
-              });
91
-
92
-            }
93
-          }
94
-        });
60
+        //console.log("Code:" + res0.code);app.globalData.userInfo.nickName = "陌生用户";
61
+        that.login(app.globalData.userInfo);
62
+        
95 63
       },
96 64
       fail: function () {
97
-        timeout2 = setTimeout(function () {
65
+        setTimeout(function () {
98 66
           that.getUserInfo();
99 67
           console.log("reboot:" + new Date().getTime());
100 68
         }, 2000);
@@ -108,13 +76,6 @@ Page({
108 76
     server.getLocalHost(function () {
109 77
       server.postData('MathLogin', {
110 78
         Code: param.Code,
111
-        NickName: param.nickName,
112
-        Language: param.language,
113
-        Gender: param.gender,
114
-        City: param.city,
115
-        Province: param.province,
116
-        Country: param.country,
117
-        AvatarUrl: param.avatarUrl,
118 79
         Introducer: app.globalData.introducer,
119 80
         UserSource: app.globalData.userSource,
120 81
         SourceID: app.globalData.SourceID,

+ 21 - 53
pages/main/accredit.js

@@ -8,20 +8,19 @@ Page({
8 8
     fileUrl: app.globalData.fileUrl,
9 9
   },
10 10
   onLoad: function (options) {
11
-    var text0 = "", text1 = "", text2 = "", text4 = "", text5 = "";
12
-    text0 = "用户登录";
13
-    text1 = "需要您的授权";
14
-    text2 = "去授权";
15
-    text4 = "提醒:授权仅获取微信头像和昵称,";
16
-    text5 = "其它信息均受到微信保护。不授权将使个性化功能无法正常运作,特别是解锁、优惠礼品等会员功能。为保障您的消费权益,请尽快授权用户信息。";
11
+    var text0 = "", text1 = "", text2 = "", text3 = "";
12
+    text0 = "会员登录";
13
+    text1 = "无需注册,微信授权即可登录";
14
+    text2 = "去登录";
15
+    text3 = "注意:会员登录后可使用付费功能。授权微信用户信息即可一键登录。为保障消费权益,购买后请尽快授权用户信息。登录后才能正常使用统计、排行、我的订单、套装、礼品卡等功能。";
17 16
 
18 17
     this.setData({
19 18
       Height: common.getSystemHeight(),
20 19
       Text0: text0,
21 20
       Text1: text1,
22 21
       Text2: text2,
23
-      Text4: text4,
24
-      Text5: text5,
22
+      Text3: text3,
23
+      OrderType: options.type,
25 24
     });
26 25
 
27 26
     //适配ipad
@@ -33,59 +32,28 @@ Page({
33 32
         })
34 33
       }
35 34
     }
36
-
37
-  },
38
-  goto: function (e) {
39
-    var that = this;
40
-    wx.getSetting({
41
-      success(res) {
42
-        if (!res.authSetting['scope.userInfo']) {
43
-          wx.authorize({
44
-            scope: 'scope.userInfo',
45
-            success() {
46
-              that.getUserInfo();
47
-            },
48
-            fail() {
49
-              wx.openSetting({
50
-                success(res) {
51
-                  that.getUserInfo();
52
-                },
53
-              });
54
-            }
55
-          })
56
-        }
57
-        else {
58
-          that.getUserInfo();
59
-        }
60
-      }
61
-    })
62
-
63 35
   },
64 36
   //得到用户信息
65 37
   getUserInfo: function () {
66 38
     var that = this
67
-    //调用登录接口
68
-    wx.login({
69
-      success: function (res0) {
70
-        wx.getUserInfo({
71
-          withCredentials: true,
72
-          success: function (res) {
39
+   
40
+    wx.getUserProfile({
41
+      desc: "登录注册",
42
+      success: function (res2) {
43
+        
44
+        app.globalData.userInfo.NickName = res2.userInfo.nickName;
45
+        app.globalData.userInfo.AvatarUrl = res2.userInfo.avatarUrl;
46
+        
47
+        //调用登录接口
48
+        wx.login({
49
+          success: function (res0) {
73 50
             app.globalData.userInfo.Code = res0.code;
74
-            app.globalData.userInfo.iv = res.iv;
75
-            app.globalData.userInfo.encryptedData = res.encryptedData;
76
-
77
-            app.globalData.userInfo.NickName = res.userInfo.nickName;
78
-            app.globalData.userInfo.AvatarUrl = res.userInfo.avatarUrl;
79
-
80
-            that.login(app.globalData.userInfo, res.userInfo);
81
-          },
82
-          fail: function (res) {
83
-
51
+            that.login(app.globalData.userInfo, res2.userInfo);
84 52
           }
85 53
         });
86 54
       },
87
-      fail: function () {
88
-
55
+      fail: function (res) {
56
+        console.log(res);
89 57
       }
90 58
     });
91 59
   },

+ 5 - 4
pages/main/accredit.json

@@ -1,6 +1,7 @@
1 1
 {
2
-  "navigationBarBackgroundColor": "#99607C",
3
-  "navigationBarTextStyle": "white",
4
-  "navigationBarTitleText": "登录",
5
-  "backgroundColor": "#99607C"
2
+  "navigationBarTitleText": "会员登录",  
3
+  "navigationBarBackgroundColor": "#FEBD00",
4
+  "navigationBarTextStyle": "black",
5
+  "backgroundColor": "#FEBD00",
6
+  "enablePullDownRefresh": false
6 7
 }

+ 3 - 12
pages/main/accredit.wxml

@@ -1,19 +1,10 @@
1 1
 <view class="container FlexColumn" style='height:{{Height}}rpx;'>
2 2
   <image src="../images/accredit.png" class="bg" />
3
-  <image src="../images/universalpic_face_default_blue_size01.png" class="universalpic_face_default_blue_size01" />
4
-
5 3
   <text class="text0">{{Text0}}</text>
6 4
   <text class="text1">{{Text1}}</text>
7
-
8 5
   <view class="btn">
9
-    <view class="btn1">
10
-      <button open-type="getUserInfo" bindgetuserinfo="goto" class="btn2">{{Text2}}</button>
11
-    </view>
6
+    <button  class="btn1" catchtap="getUserInfo">{{Text2}}</button>
12 7
   </view>
13
-
14
-  <view class="text3">
15
-    <text class="text4">{{Text4}}</text>
16
-    <text class="text5">{{Text5}}</text>
17
-  </view>
18
-
8
+  <view class="line2 {{ipad}}"></view>
9
+  <text class="text3">{{Text3}}</text>
19 10
 </view>

+ 28 - 35
pages/main/accredit.wxss

@@ -1,29 +1,18 @@
1
-.container {
2
-  background-color: #99607C;
3
-  justify-content: flex-start;
4
-  color: #FFD48B;
5
-  font-weight: 500;
1
+.container{
2
+  background-color: #FEBD00;
6 3
 }
7
-
8 4
 .bg{
9 5
   width: 100%;
10
-  height:490rpx;
6
+  height:769rpx;
11 7
   position: fixed;
12 8
   bottom: 0;
13 9
   left:0;
14 10
 }
15 11
 
16
-.universalpic_face_default_blue_size01{
17
-  width: 160rpx;
18
-  height:160rpx;
19
-  border-radius: 50%;
20
-  margin-top: 80rpx;
21
-}
22
-
23 12
 .text0{
24 13
   font-size:36rpx;
25 14
   text-align: center;
26
-  margin-top: 40rpx;
15
+  margin-top: 280rpx;
27 16
   z-index: 10;
28 17
 }
29 18
 
@@ -36,34 +25,33 @@
36 25
 
37 26
 
38 27
 .btn {
39
-  width: 520rpx;
40
-  height: 118rpx;
41
-  background-color:rgba(0,0,0,0.2);
28
+  width: 600rpx;
29
+  height: 104rpx;
30
+  background-color: #035834;
42 31
   border-radius: 14rpx;
43
-  margin-top: 50rpx;
32
+  margin-top: 90rpx;
44 33
   z-index: 10;
45 34
 }
46 35
 
47 36
 .btn1 {
48
-  width: 100%;
49
-  height: 104rpx;
50
-  background-color: #D6A665;
51
-  border-radius: 14rpx;
52
-  position:relative;
53
-  top:0;
54
-}
55
-
56
-.btn2 {
57 37
   width: 100%;
58 38
   height: 90rpx;
59
-  background-color: #FFCD79;
39
+  background-color: #03AF69;
60 40
   border-radius: 14rpx;
61 41
   position:relative;
62 42
   top:0;
63 43
   font-size: 36rpx;
64 44
   text-align: center;
65 45
   line-height: 90rpx;
66
-  color:#713312;
46
+  color:#fff;
47
+}
48
+
49
+.line2{
50
+  width: 600rpx;
51
+  height:3rpx;
52
+  background-color: #593613;
53
+  margin-top:350rpx;
54
+  z-index: 10;
67 55
 }
68 56
 
69 57
 .ipad{
@@ -72,14 +60,19 @@
72 60
 
73 61
 .text3{
74 62
   font-size:22rpx;
75
-  width:470rpx; 
63
+  width:560rpx; 
76 64
   margin-top: 40rpx;
77 65
   z-index: 10;
78 66
   font-weight: 400;
79 67
 }
68
+
69
+.buyOK{
70
+  width: 106rpx;
71
+  height:106rpx;
72
+  margin-top: 120rpx;
73
+}
80 74
 .text4{
81
-  color:#FFD48B;
75
+  font-size:64rpx;
76
+  margin-top: 20rpx;
77
+  font-weight: 500;
82 78
 }
83
-.text5{
84
-  color:#C8A5C4;
85
-}

+ 68 - 41
pages/main/default.js

@@ -16,17 +16,15 @@ Page({
16 16
     IsMember: 1,
17 17
     AvatarUrl: "",
18 18
     IsAccredit: false,
19
-    IsExit: false,
20 19
     IsMiaoguoAD: false,
21 20
     IsMiaoguoAD2: 0,
22 21
   },
23 22
   onLoad: function () {
24 23
     var that = this;
25 24
     this.setData({
26
-      Containnerheight: server.getWindowHeight(),
25
+      Height: server.getWindowHeight(),
27 26
       ProgramList: server.getProgramListOld(),
28
-      NickName: app.globalData.userInfo.NickName,
29
-      AvatarUrl: app.globalData.userInfo.AvatarUrl,
27
+      IsShowGift:app.globalData.userInfo.IsShowGift,
30 28
     });
31 29
     wx.login({
32 30
       success: function (res0) {
@@ -34,25 +32,15 @@ Page({
34 32
       }
35 33
     });
36 34
 
37
-    if (app.globalData.IsIPad) {
38
-      if (app.globalData.systemInfo.windowHeight < app.globalData.systemInfo.windowWidth) {
39
-        this.setData({
40
-          IsExit: true,
41
-        });
42
-      }
43
-    }
44
-
45 35
     isMiaoguoADShow = false;
46 36
   },
47 37
   onUnload: function () {
48 38
 
49 39
   },
50 40
   onShow: function () {
51
-    if (wx.getStorageSync("HasActivate") == 1) {
52
-      wx.navigateTo({
53
-        url: '../../package4/main/activate',
54
-      });
55
-    }
41
+
42
+    var that = this;
43
+
56 44
     var list = wx.getStorageSync("AnswerList");
57 45
     var answerLength = 0;
58 46
     if (list && list.length > 0) {
@@ -68,28 +56,35 @@ Page({
68 56
     this.setData({
69 57
       AnswerLength: answerLength,
70 58
       ErrorCount: errorCount,
71
-      IsShow:app.globalData.userInfo.IsShow,
59
+      IsLocked: app.globalData.IsLocked,
60
+      IsShow: app.globalData.userInfo.IsShow,
61
+      IsMember: app.globalData.userInfo.IsMember,
62
+      NickName: app.globalData.userInfo.NickName,
63
+      AvatarUrl: app.globalData.userInfo.AvatarUrl,
72 64
     });
73 65
 
74
-    var that = this;
75
-    wx.getSetting({
76
-      success(res) {
77
-        if (res.authSetting['scope.userInfo'] || app.globalData.userInfo.IsShow <= 0) {
78
-          that.setData({
79
-            IsAccredit: true,
80
-          });
81
-          that.downloadUserAvatar();
82
-          common.getStorageValue(that, "HelpHidden1", false, function () {
83
-            that.showHelp();
84
-          });
85
-        } else {
86
-          wx.navigateTo({
87
-            url: './accredit',
88
-          });
89
-        }
90
-      }
91
-    });
66
+    if (app.globalData.userInfo.NickName=="陌生用户" && app.globalData.userInfo.IsShow>0) {
67
+      this.setData({
68
+        IsRemind:true,
69
+      });
70
+    }
71
+    else{
72
+      that.setData({
73
+        IsAccredit: true,
74
+        IsRemind:false,
75
+      });
76
+      that.downloadUserAvatar();
77
+      common.getStorageValue(that, "HelpHidden1", false, function () {
78
+        that.showHelp();
79
+      });
80
+    }
92 81
 
82
+    if (wx.getStorageSync("HasActivate") == 1) {
83
+      wx.navigateTo({
84
+        url: '../../package4/main/activate',
85
+      });
86
+    }
87
+    
93 88
     common.getStorageValue(this, "IsMiaoguoAD", true, function () { });
94 89
 
95 90
     var miaoguoADTime = wx.getStorageSync("miaoguoADTime");
@@ -105,6 +100,13 @@ Page({
105 100
     }
106 101
 
107 102
     isMiaoguoADShow = true;
103
+
104
+    if (app.globalData.IsShowMiaoguo){
105
+      this.setData({
106
+        IsShowMiaoguo:1,
107
+      });
108
+      app.globalData.IsShowMiaoguo=false;
109
+    }
108 110
   },
109 111
   downloadUserAvatar: function () {
110 112
     var avatar = wx.getStorageSync("Avatar");
@@ -145,6 +147,7 @@ Page({
145 147
       wx.setStorageSync('IsMiaoguoAD', false);
146 148
       wx.setStorageSync("miaoguoADTime", common.formatTime(common.addDate("d", 15, new Date())));
147 149
     }
150
+    app.globalData.userInfo.IsShowGift=0;
148 151
   },
149 152
   gotoHelp: function () {
150 153
     wx.redirectTo({
@@ -164,17 +167,26 @@ Page({
164 167
   switchProgram: function (e) {
165 168
     wx.navigateToMiniProgram({
166 169
       appId: e.currentTarget.dataset.appid,
167
-      path: e.currentTarget.dataset.path,
168
-      extraData: {},
170
+      path: "pages/index/index?SourceID="+app.globalData.ProgramID,
171
+      extraData: {
172
+      },
169 173
       success(res) {
170 174
         // 打开成功
171 175
       }
172 176
     });
173 177
   },
174 178
   gotoMemberCenter: function () {
175
-    wx.navigateTo({
176
-      url: './userinfo',
177
-    });
179
+    if (app.globalData.userInfo.NickName=="陌生用户" && app.globalData.userInfo.IsShow>0) {
180
+      //请去授权
181
+      wx.navigateTo({
182
+        url: './accredit?type=accredit',
183
+      });
184
+    }
185
+    else if (app.globalData.userInfo.IsShow>0) {
186
+      wx.navigateTo({
187
+        url: './userinfo',
188
+      });
189
+    }
178 190
   },
179 191
   gotoFeedback: function () {
180 192
     server.gotoFeedback();
@@ -250,6 +262,7 @@ Page({
250 262
   close: function (e) {
251 263
     this.setData({
252 264
       IsMiaoguoAD2: 0,
265
+      IsShowGift:0,
253 266
     });
254 267
     var num = e.currentTarget.dataset.num;
255 268
     if (num > 0) {
@@ -257,6 +270,20 @@ Page({
257 270
       time = common.formatTime(time);
258 271
       wx.setStorageSync("miaoguoADTime", time);
259 272
     }
273
+    app.globalData.userInfo.IsShowGift=0;
274
+  },
275
+  showMiaoguo:function(){
276
+    this.setData({
277
+      IsShowMiaoguo: 1,
278
+      IsMiaoguoAD2: 0,
279
+    });
280
+    app.globalData.userInfo.IsShowGift=0;
281
+    wx.setStorageSync("miaoguoADTime", common.formatTime(common.addDate("d", 15, new Date())));
282
+  },
283
+  closeMiaoguo:function(){
284
+    this.setData({
285
+      IsShowMiaoguo: 0,
286
+    });
260 287
   },
261 288
   onShareAppMessage: function () {
262 289
     return {

+ 123 - 22
pages/main/default.wxml

@@ -1,6 +1,5 @@
1
-<view class="container FlexColumn" style="min-height:{{Containnerheight}}rpx;">
1
+<view class="container FlexColumn" style="min-height:{{Height}}rpx;">
2 2
   <view class="index0 FlexColumn">
3
-    <image src='../images/home_banner_header_jst.png' class="home_banner_header_sz" bindtap='goto' data-id="topAD" data-url='../../package4/main/newuser' wx:if="{{IsMiaoguoAD && IsMember==1 && IsShow==1}}" />
4 3
     <scroll-view class="scroll-view_H" scroll-x>
5 4
       <image class="homepage_headline_illus" src="../images/homepage_headline_illus.png" />
6 5
       <scroll-view scroll-y class="scrollview">
@@ -9,7 +8,6 @@
9 8
     </scroll-view>
10 9
   </view>
11 10
   <view class="panel FlexColumn">
12
-
13 11
     <view class="line1"></view>
14 12
     <view class="panel0 FlexRow">
15 13
       <view class="panel00 FlexColumn">
@@ -23,7 +21,8 @@
23 21
         </view>
24 22
         <view class="panel001 FlexRow">
25 23
           <view class="panel0010 FlexRow">
26
-            <image wx:for="{{[1,2,3,4]}}" wx:key="index" bindtap='gotoList' data-id="{{item}}" class="homepage_question_illus_grade01" src="../images/homepage_question_illus_grade0{{item}}.png" />
24
+            <image wx:for="{{[1,2,3,4]}}" wx:key="index" bindtap='gotoList' data-id="{{item}}"
25
+              class="homepage_question_illus_grade01" src="../images/homepage_question_illus_grade0{{item}}.png" />
27 26
           </view>
28 27
         </view>
29 28
         <view class="panel0011">
@@ -58,25 +57,26 @@
58 57
                 </view>
59 58
 
60 59
                 <view class="btn20 btn0" bindtap='gotoAnswer'>
61
-                  <view class="btn3 btn10">
60
+                  <view class="btn30 btn10">
62 61
                     对答案
63 62
                   </view>
64 63
                 </view>
65 64
               </view>
66 65
             </view>
67 66
             <view class="panel00201 FlexRow" bindtap="gotoMemberCenter">
68
-              <image wx:if="{{!IsAccredit}}" class="universalpic_face_default_black_size01" src="../images/universalpic_face_default_black_size01.png" bindtap='gotoBindGetUserInfo' />
67
+              <image wx:if="{{!IsAccredit}}" class="universalpic_face_default_black_size01"
68
+                src="../images/universalpic_face_default_black_size01.png" bindtap='gotoBindGetUserInfo' />
69 69
               <image wx:if="{{IsAccredit}}" class="universalpic_face_default_black_size01" src="{{AvatarUrl}}" />
70
-              <view class="gear FlexRow">
71
-                <image src='../images/02022.png' class="img" />
72
-              </view>
70
+              <image wx:if="{{IsRemind}}" src='../images/message_home_01.png' class="message_home_01" />
71
+  
73 72
             </view>
74 73
           </view>
75 74
           <image class="homepage_clipboard_illus_clip" src="../images/homepage_clipboard_illus_clip.png" />
76 75
           <image class="homepage_clipboard_illus_ruler" src="../images/homepage_clipboard_illus_ruler.png" />
77 76
 
78 77
         </view>
79
-        <image class="universalpic_line_zigzag_brown_down" src="../images/universalpic_line_zigzag_brown_down.png" />
78
+
79
+        <!-- <image class="universalpic_line_zigzag_brown_down" src="../images/universalpic_line_zigzag_brown_down.png" />
80 80
         <image class="universalpic_line_zigzag_brown_up" src="../images/universalpic_line_zigzag_brown_up.png" />
81 81
         <view class="panel003 circularBottom FlexColumn">
82 82
           <view class="panel0030 FlexRow">
@@ -119,20 +119,93 @@
119 119
               <image src='../images/home_banner_footer600.png' class="home_banner" bindtap='goto' data-url='../../package4/main/newuser' />
120 120
             </view>
121 121
           </view>
122
+        </view> 
123
+        <view style="height:100rpx;width:100%"></view>
124
+        -->
125
+      </view>
126
+    </view>
127
+    <view class="panel1 FlesColumn">
128
+      <view class="panelOther FlexRow">
129
+        <view class="panelOther1">其它产品</view>
130
+        <image src='../images/home_triangle_up.png' class="home_triangle_up" />
131
+      </view>
132
+      <view class="panelProduct FlexColumn">
133
+        <view class="panelProduct10 panelProduct0 FlexColumn">
134
+          <view class="panelProduct1">全科练习</view>
135
+          <view class="panelProduct3 FlexRow" bindtap="showMiaoguo">
136
+            <image src='../images/sofewareicon_mg.png' class="sofewareicon_mg" />
137
+            <view class="panelProduct31 FlexColumn">
138
+              <view class="panelProduct311">秒过</view>
139
+              <view class="panelProduct312">基础知识记忆工具</view>
140
+            </view>
141
+          </view>
122 142
         </view>
123 143
 
124
-        <view style="height:100rpx;width:100%"></view>
144
+        <view class="panelProduct1">单科练习</view>
145
+        <view class="panelProduct10 FlexRow" style="width:100%;">
146
+          <view class="panelProduct0 FlexColumn">
147
+            <view class="panelProduct2">数学</view>
148
+            <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wxa5441bbf344692ba'>
149
+              <image src='../images/sofewareicon_ks.png' class="sofewareicon_mg" />
150
+              <view class="panelProduct31 FlexColumn">
151
+                <view class="panelProduct311">口算星球</view>
152
+                <view class="panelProduct312">好玩的口算敏捷练习</view>
153
+              </view>
154
+            </view>
155
+            <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wx1fef080f74481cbd'>
156
+              <image src='../images/sofewareicon_jst.png' class="sofewareicon_mg" />
157
+              <view class="panelProduct31 FlexColumn">
158
+                <view class="panelProduct311">计算题打印</view>
159
+                <view class="panelProduct312">打印竖式横式计算题</view>
160
+              </view>
161
+            </view>
162
+          </view>
163
+          <view class="panelProduct0 FlexColumn">
164
+            <view class="panelProduct2">语文</view>
165
+            <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wx331e8dd070f01d0e'>
166
+              <image src='../images/sofewareicon_py.png' class="sofewareicon_mg" />
167
+              <view class="panelProduct31 FlexColumn">
168
+                <view class="panelProduct311">汉语拼音</view>
169
+                <view class="panelProduct312">纯正发音练习</view>
170
+              </view>
171
+            </view>
172
+            <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wx313a8f2c0741efe1'>
173
+              <image src='../images/sofewareicon_sz.png' class="sofewareicon_mg" />
174
+              <view class="panelProduct31 FlexColumn">
175
+                <view class="panelProduct311">识字</view>
176
+                <view class="panelProduct312">小学六年课本同步</view>
177
+              </view>
178
+            </view>
179
+          </view>
180
+        </view>
181
+
182
+        <view style="width:100%;height:20rpx;"></view>
183
+        <view class="panelProduct10 panelProduct0 FlexColumn" bindtap='switchProgram' data-appid='wxb54a6d5aff836ee3'>
184
+          <view class="panelProduct1">英语</view>
185
+          <view class="panelProduct3 FlexRow">
186
+            <image src='../images/sofewareicon_pd.png' class="sofewareicon_mg" />
187
+            <view class="panelProduct31 FlexColumn">
188
+              <view class="panelProduct311">自然拼读</view>
189
+              <view class="panelProduct312">英语国家母语学习法</view>
190
+            </view>
191
+          </view>
192
+        </view>
193
+        <view style="width:100%;height:60rpx;"></view>
125 194
       </view>
195
+
196
+      <image bindtap="showMiaoguo" src='../images/home_banner.png' class="home_banner" />
197
+
126 198
     </view>
127 199
   </view>
128 200
 </view>
129
-<image hidden="{{HelpHidden1}}" bindtap='closeHelp' class="Help_aside_homepage" src="../images/Help_aside_homepage.png" />
201
+<image hidden="{{HelpHidden1}}" bindtap='closeHelp' class="Help_aside_homepage"
202
+  src="../images/Help_aside_homepage.png" />
130 203
 
131
-<view class="HelpInfo2 FlexColumn" style='height:{{Containnerheight}}rpx;' wx:if="{{IsMiaoguoAD2==1}}">
132
-  <view class="btn" bindtap='goto' data-url='../../package4/main/newuser' data-id="topAD">
133
-    <view class="btn1 FlexColumn">
204
+<view class="HelpInfo2 FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsMiaoguoAD2==1}}">
205
+  <view class="btn">
206
+    <view class="btn1 FlexColumn" catchtap="showMiaoguo">
134 207
       <image src='../images/home_banner_window.png' class="home_banner_window" />
135
-      <view class="btn2">了解一下</view>
208
+      <view class="btn2">去领取</view>
136 209
     </view>
137 210
   </view>
138 211
   <view class="close2 FlexColumn" bindtap='close' data-num="1">
@@ -143,10 +216,38 @@
143 216
   </view>
144 217
 </view>
145 218
 
146
-<audio hidden='true' id="myAudio"></audio>
147
-<canvas class='Canvas' canvas-id="MyCanvas"></canvas>
219
+<view class="HelpInfo2 FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsShowGift==1}}">
220
+  <view class="btn">
221
+    <view class="btn1 FlexColumn" catchtap="showMiaoguo">
222
+      <view class="HelpInfo21 FlexColumn">
223
+        <image src='../images/02014.png' class="png02014" />
224
+        <view class="HelpInfo211">有效期已延长</view>
225
+        <view class="HelpInfo212">计算题20天礼品卡已兑换成功</view>
226
+      </view>
227
+      <view class="btn2" catchtap='goto' data-url='../../package4/main/getgiftlist'>查看记录</view>
228
+    </view>
229
+  </view>
230
+  <view class="close FlexColumn" bindtap='close' data-num="0">
231
+    <image src='../images/02024.png' class="closeImage" />
232
+  </view>
233
+</view>
234
+
235
+<view class="PanelMiaoguo FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsShowMiaoguo==1}}" catchtap="closeMiaoguo">
236
+  <view class="PanelMiaoguo1 FlexColumn">
237
+    <image src='../images/bm_sy_illus.png' class="bm_sy_illus"/>
238
+    <view class="Text1">该记的记不住</view>
239
+    <view class="Text2">用「秒过」</view>
240
+    <text class="Text3">帮助孩子记牢语数外基础知识的\n工具和练习方法</text>
241
+    <view class="Text4">了解详情,欢迎参加</view>
242
+    <view class="Text5">新手培训</view>
243
+    <view class="btn3 FlexColumn" bindtap='switchProgram' data-appid='wx84b3feac6069eec3'>
244
+      <image src='../images/bm_sy_banner-open.png' class="bm_sy_banner-open" />
245
+    </view>
148 246
 
149
-<view wx:if="{{IsExit}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
150
-  <view class='IsExitText'>请竖起屏幕再打开小程序</view>
151
-  <navigator class='isExit' open-type="exit" target="miniProgram">确认</navigator>
152
-</view>
247
+    <view class="btnReadme" catchtap='goto' data-url='../../package4/main/miaoguoreadme'></view>
248
+    <view class="btnRecord" catchtap='goto' data-url='../../package4/main/getgiftlist'></view>
249
+  </view>
250
+</view>
251
+
252
+<audio hidden='true' id="myAudio"></audio>
253
+<canvas class='Canvas' canvas-id="MyCanvas"></canvas>

+ 263 - 24
pages/main/default.wxss

@@ -144,10 +144,12 @@ page{
144 144
 }
145 145
 .panel002 {
146 146
   width: 100%;
147
-  height:698rpx;
147
+  height:658rpx;
148 148
   background-color: #723c30;
149 149
   position: relative;
150 150
   align-items: flex-start;
151
+  border-bottom-left-radius: 20rpx;
152
+  border-bottom-right-radius: 20rpx;
151 153
 }
152 154
 
153 155
 .panel0020 {
@@ -191,7 +193,7 @@ page{
191 193
   margin-top: 70rpx;
192 194
   font-weight: 500;
193 195
   position: relative;
194
-  width: 154rpx;
196
+  width: 174rpx;
195 197
   height:50rpx;
196 198
   text-align: center;
197 199
 }
@@ -260,7 +262,7 @@ page{
260 262
   margin-left: 14rpx;
261 263
 }
262 264
 
263
-.btn3 {
265
+.btn30 {
264 266
   background-color: #3b85d0;
265 267
 }
266 268
 
@@ -477,38 +479,171 @@ page{
477 479
 }
478 480
 
479 481
 
480
-.IsExitContainer{
481
-  background-color: #B9DC5D;
482
-  z-index: 100;
482
+.index5{
483
+  width:100%;
484
+  justify-content: flex-start;
485
+}
486
+
487
+
488
+/* .HelpInfo2 {
483 489
   position: fixed;
484
-  top:0;
490
+  left: 0;
491
+  top: 0;
492
+  width: 100%;
493
+  background-color: rgba(185, 220, 93, 0.95);
494
+  justify-content: flex-start;
495
+  z-index: 100;
485 496
 }
486
-.IsExitText{
487
-  margin-top: 200rpx;
488
-  color:#1e1e1e;
489
-  font-size:36rpx;
497
+
498
+.HelpInfo2 .btn {
499
+  width: 600rpx;
500
+  height: 640rpx;
501
+  background-color: #D2D2D2;
502
+  border-radius: 40rpx;
503
+  margin: 15rpx;
504
+  position: relative;
505
+  margin-top: 222rpx;
506
+  box-shadow: 0 0 30rpx rgba(0, 0, 0, 0.5);
490 507
 }
491
-.isExit{
492
-  border: 1rpx solid #1e1e1e;
493
-  color:#1e1e1e;
494
-  border-radius: 10rpx;
495
-  margin-top: 80rpx;
496
-  padding: 20rpx;
497
-  width:100rpx;
498
-  font-size:36rpx;
508
+
509
+.HelpInfo2 .btn1 {
510
+  width: 100%;
511
+  height: 640rpx;
512
+  border-radius: 40rpx;
513
+  color: #1e1e1e;
499 514
   text-align: center;
515
+  font-size: 36rpx;
516
+  justify-content: flex-start;
500 517
 }
501 518
 
519
+.HelpInfo2 .home_banner_window {
520
+  width: 600rpx;
521
+  height: 500rpx;
522
+  border-top-left-radius: 40rpx;
523
+  border-top-right-radius: 40rpx;
524
+}
502 525
 
503
-.index5{
526
+.HelpInfo2 .btn2 {
527
+  width: 100%;
528
+  height: 120rpx;
529
+  line-height: 120rpx;
530
+  background-color: #F0F0F0;
531
+  color: #1e1e1e;
532
+  text-align: center;
533
+  font-size: 48rpx;
534
+  font-weight: 500;
535
+  border-bottom-left-radius: 40rpx;
536
+  border-bottom-right-radius: 40rpx;
537
+}
538
+.HelpInfo2 .close2 {
539
+  position: fixed;
540
+  bottom:207rpx;
541
+  font-size:26rpx;
542
+  color: #1e1e1e;
543
+  text-decoration: underline;
544
+  font-weight: 500;
545
+  z-index: 100;
546
+  width:100%;
547
+  height:50rpx;
548
+}
549
+.HelpInfo2 .close {
550
+  width: 100%;
551
+  height: 235rpx;
552
+  position: fixed;
553
+  bottom:0;
554
+}
555
+
556
+.HelpInfo2 .closeImage{
557
+  width:33rpx;
558
+  height:33rpx;
559
+} */
560
+
561
+.panel1{
504 562
   width:100%;
563
+  position: absolute;
564
+  top:1800rpx;
565
+}
566
+
567
+.panelOther{
568
+  width:100%;
569
+  height:160rpx;
505 570
   justify-content: flex-start;
571
+  align-items: flex-start;
572
+  position: relative;
573
+}
574
+
575
+.panelOther1{
576
+  color:#fff;
577
+  margin:60rpx 0 0 50rpx;
578
+  font-size:36rpx; 
579
+}
580
+
581
+.home_triangle_up{
582
+  width:34rpx;
583
+  height:20rpx;
584
+  position: absolute;
585
+  bottom:0;
586
+  left:105rpx;
587
+  z-index: 10;
588
+}
589
+
590
+.panelProduct{
591
+  width:100%;
592
+  background-color: #fff;
593
+  align-items: flex-start;
594
+}
595
+.panelProduct0{
596
+  width:50%;
597
+  font-size:32rpx;
598
+  color:#4D4D4D;
599
+  justify-content: flex-start;
600
+  align-items: flex-start;
601
+}
602
+.panelProduct1{
603
+  background-color: #fff;
604
+  margin: 50rpx 0 0 50rpx;
605
+  font-size:32rpx;
606
+  color:#4D4D4D;
607
+}
608
+
609
+.panelProduct10{
610
+  width:100%;
611
+}
612
+
613
+.panelProduct2{
614
+  background-color: #fff;
615
+  margin: 0 0 0 50rpx;
616
+  font-size:32rpx;
617
+  color:#4D4D4D;
618
+}
619
+
620
+.panelProduct3{
621
+  width:300rpx;
622
+  margin:30rpx 0 0 50rpx;
623
+  justify-content: flex-start;
624
+}
625
+
626
+.sofewareicon_mg{
627
+  width:66rpx;
628
+  height:66rpx;
629
+}
630
+
631
+
632
+.panelProduct31{
633
+  margin:0 0 0 30rpx;
634
+  align-items: flex-start;
635
+}
636
+.panelProduct311{
637
+  font-size:28rpx;
638
+}
639
+.panelProduct312{
640
+  font-size:20rpx;
641
+  color:#4D4D4D;
506 642
 }
507 643
 
508 644
 .home_banner{
509
-   width:600rpx;
510
-   height:320rpx;
511
-   margin: 40rpx 0 50rpx 0;
645
+  width:100%;
646
+  height: 280rpx;
512 647
 }
513 648
 
514 649
 .HelpInfo2 {
@@ -516,7 +651,7 @@ page{
516 651
   left: 0;
517 652
   top: 0;
518 653
   width: 100%;
519
-  background-color: rgba(185, 220, 93, 0.95);
654
+  background-color: #B9DC5D;
520 655
   justify-content: flex-start;
521 656
   z-index: 100;
522 657
 }
@@ -583,3 +718,107 @@ page{
583 718
   width:33rpx;
584 719
   height:33rpx;
585 720
 }
721
+
722
+.PanelMiaoguo{
723
+  width:100%;
724
+  background-color: rgba(0, 0, 0, 0.5);
725
+  z-index: 20;
726
+  position: fixed;
727
+  left: 0;
728
+  top: 0;
729
+  justify-content: flex-start;
730
+}
731
+
732
+.PanelMiaoguo1{
733
+  width:100%;
734
+  height:1055rpx;
735
+  background-color: #1A264C;
736
+  color:#fff;
737
+  position: fixed;
738
+  left: 0;
739
+  bottom: 0;
740
+  justify-content: flex-start;
741
+}
742
+
743
+.Text1{
744
+  font-size:32rpx;
745
+  margin-top:70rpx;
746
+}
747
+.Text2{
748
+  font-size:64rpx;
749
+}
750
+
751
+.Text3{
752
+  font-size:32rpx;
753
+  text-align: center;
754
+}
755
+
756
+.Text4{
757
+  font-size:32rpx;
758
+  margin-top:50rpx;
759
+  color:#FF970C;
760
+}
761
+.Text5{
762
+  font-size:68rpx;
763
+  color:#FF970C;
764
+}
765
+.btn3{
766
+  width:580rpx;
767
+  height:130rpx;
768
+  border-radius: 20rpx;
769
+  background-color:#FF970C;
770
+  margin-top:20rpx;
771
+}
772
+.bm_sy_banner-open{
773
+  width:220rpx;
774
+  height:70rpx;
775
+}
776
+.bm_sy_illus{
777
+  width:100%;
778
+  height:360rpx;
779
+}
780
+
781
+.btnRecord{
782
+  width:220rpx;
783
+  height:80rpx;
784
+  position: absolute;
785
+  left:232rpx;
786
+  top:270rpx;
787
+  z-index: 20;
788
+}
789
+.btnReadme{
790
+  width:125rpx;
791
+  height:80rpx;
792
+  position: absolute;
793
+  left:35rpx;
794
+  top:270rpx;
795
+  z-index: 20;
796
+}
797
+
798
+.HelpInfo21{
799
+  width:100%;
800
+  height:500rpx;
801
+  border-top-left-radius: 40rpx;
802
+  border-top-right-radius: 40rpx;
803
+  background-color: #DAEB99;
804
+}
805
+.HelpInfo211{
806
+  font-size:60rpx;
807
+  margin-top:30rpx;
808
+}
809
+.HelpInfo212{
810
+  font-size:36rpx;
811
+}
812
+.png02014{
813
+  width:190rpx;
814
+  height:190rpx;
815
+}
816
+
817
+.message_home_01{
818
+  width:265rpx;
819
+  height: 127rpx;
820
+  position: absolute;
821
+  top:145rpx;
822
+  left:40rpx;
823
+  z-index: 10;
824
+}

+ 1 - 1
pages/main/userinfo.js

@@ -6,7 +6,7 @@ const app = getApp();
6 6
 Page({
7 7
   data: {
8 8
     FileUrl: app.globalData.imageUrl,
9
-    Version: app.globalData.Version,
9
+    Version: app.globalData.version,
10 10
     ProgramName: app.globalData.ProgramName,
11 11
   },
12 12
   onLoad: function (options) {

+ 10 - 24
pages/main/userinfo.wxml

@@ -41,7 +41,16 @@
41 41
       <view class="lineWidth720"></view>
42 42
     </view>
43 43
     <view class="panelItem FlexRow" bindtap='goto' data-url='../../package4/main/giftlist'>
44
-      <view class="panelItem1">我的礼品卡</view>
44
+      <view class="panelItem1">购买的礼品卡</view>
45
+      <view class="panelItem2 FlexRow">
46
+        <image src='../images/Arrow.png' class="Arrow" />
47
+      </view>
48
+    </view>
49
+    <view class="lineWidthAll FlexRow">
50
+      <view class="lineWidth720"></view>
51
+    </view>
52
+    <view class="panelItem FlexRow" bindtap='goto' data-url='../../package4/main/getgiftlist'>
53
+      <view class="panelItem1">获赠的礼品卡</view>
45 54
       <view class="panelItem2 FlexRow">
46 55
         <image src='../images/Arrow.png' class="Arrow" />
47 56
       </view>
@@ -86,29 +95,6 @@
86 95
     </view>
87 96
     <view class='lineFooter'></view>
88 97
   </block>
89
-  <view class="panelTitle FlexRow">
90
-    <view class="panelTitle1">更多学习工具</view>
91
-  </view>
92
-  <block wx:for="{{ProgramList}}" wx:key="index" wx:if="{{item.IsShow}}">
93
-    <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
94
-      <view class="lineWidth620"></view>
95
-    </view>
96
-    <view class="panelItem0 panelItem FlexRow" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}'>
97
-
98
-      <view class="FlexRow">
99
-        <image src='../images/{{item.ImageUrl}}' class="universalpic_product_jisuanti_icon_size01" />
100
-        <view class="panelItem13 FlexColumn">
101
-          <view class="panelItem11">{{item.Name}}</view>
102
-          <view class="panelItem12">{{item.Name2}}</view>
103
-        </view>
104
-      </view>
105
-      <view class="panelItem2 FlexRow">
106
-        <image src='../images/Arrow.png' class="Arrow" />
107
-      </view>
108
-    </view>
109
-  </block>
110
-  <view class='lineFooter'></view>
111
-
112 98
   <view class="panelTitle FlexRow">
113 99
     <view class="panelTitle1">支持</view>
114 100
   </view>

+ 4 - 5
project.config.json

@@ -6,28 +6,27 @@
6 6
     "postcss": true,
7 7
     "minified": true,
8 8
     "newFeature": true,
9
+    "scopeDataCheck": false,
9 10
     "checkInvalidKey": true,
10 11
     "checkSiteMap": true,
11 12
     "uploadWithSourceMap": true,
12 13
     "useMultiFrameRuntime": true,
13 14
     "useApiHook": true,
15
+    "useApiHostProcess": true,
14 16
     "babelSetting": {
15 17
       "ignore": [],
16 18
       "disablePlugins": [],
17 19
       "outputPath": ""
18 20
     },
19 21
     "useIsolateContext": true,
20
-    "useCompilerModule": false,
21
-    "userConfirmedUseCompilerModuleSwitch": false,
22 22
     "userConfirmedBundleSwitch": false,
23 23
     "packNpmManually": false,
24 24
     "packNpmRelationList": [],
25 25
     "minifyWXSS": true,
26
-    "bundle": false,
27
-    "useApiHostProcess": true
26
+    "showES6CompileOption": false
28 27
   },
29 28
   "compileType": "miniprogram",
30
-  "libVersion": "2.3.0",
29
+  "libVersion": "2.15.0",
31 30
   "appid": "wx1fef080f74481cbd",
32 31
   "projectname": "%E6%95%B0%E5%AD%A6%E8%AE%A1%E7%AE%97%E9%A2%98",
33 32
   "isGameTourist": false,