chengjie 4 年之前
父节点
当前提交
4428d61042
共有 96 个文件被更改,包括 1081 次插入584 次删除
  1. 3 1
      app.js
  2. 2 1
      app.json
  3. 二进制
      package4/images/pay_shoppingguide_illus_03_106.png
  4. 二进制
      package4/images/pay_shoppingguide_illus_03_98.png
  5. 78 142
      package4/main/activate.js
  6. 2 4
      package4/main/activate.json
  7. 8 32
      package4/main/activate.wxml
  8. 56 64
      package4/main/activate.wxss
  9. 13 4
      package4/main/buyad.js
  10. 2 0
      package4/main/buyad.wxml
  11. 14 4
      package4/main/buyad.wxss
  12. 47 0
      package4/main/getgiftlist.js
  13. 6 0
      package4/main/getgiftlist.json
  14. 27 0
      package4/main/getgiftlist.wxml
  15. 62 0
      package4/main/getgiftlist.wxss
  16. 1 1
      package4/main/giftlist.json
  17. 22 0
      package4/main/miaoguoreadme.js
  18. 6 0
      package4/main/miaoguoreadme.json
  19. 11 0
      package4/main/miaoguoreadme.wxml
  20. 16 0
      package4/main/miaoguoreadme.wxss
  21. 0 59
      package4/main/newuser.js
  22. 0 5
      package4/main/newuser.json
  23. 0 31
      package4/main/newuser.wxml
  24. 0 78
      package4/main/newuser.wxss
  25. 二进制
      pages/images/02005.png
  26. 二进制
      pages/images/02006.png
  27. 二进制
      pages/images/02007.png
  28. 二进制
      pages/images/02008.png
  29. 二进制
      pages/images/02009.png
  30. 二进制
      pages/images/02010.png
  31. 二进制
      pages/images/02011.png
  32. 二进制
      pages/images/02012.png
  33. 二进制
      pages/images/02031.png
  34. 二进制
      pages/images/02032.png
  35. 二进制
      pages/images/02035.png
  36. 二进制
      pages/images/02036.png
  37. 二进制
      pages/images/02037.png
  38. 二进制
      pages/images/02038.png
  39. 二进制
      pages/images/02039.png
  40. 二进制
      pages/images/02040.png
  41. 二进制
      pages/images/02041.png
  42. 二进制
      pages/images/02042.png
  43. 二进制
      pages/images/02043.png
  44. 二进制
      pages/images/02044.png
  45. 二进制
      pages/images/02045.png
  46. 二进制
      pages/images/02046.png
  47. 二进制
      pages/images/02047.png
  48. 二进制
      pages/images/02048.png
  49. 二进制
      pages/images/03001.png
  50. 二进制
      pages/images/03002.png
  51. 二进制
      pages/images/03003.png
  52. 二进制
      pages/images/03004.png
  53. 二进制
      pages/images/03005.png
  54. 二进制
      pages/images/bm_sy_banner-open.png
  55. 二进制
      pages/images/bm_sy_illus.png
  56. 二进制
      pages/images/home_banner.png
  57. 二进制
      pages/images/home_banner_window.png
  58. 二进制
      pages/images/home_header_bg.png
  59. 二进制
      pages/images/home_plate_11.png
  60. 二进制
      pages/images/home_plate_12.png
  61. 二进制
      pages/images/home_plate_21.png
  62. 二进制
      pages/images/home_plate_22.png
  63. 二进制
      pages/images/home_plate_31.png
  64. 二进制
      pages/images/home_plate_32.png
  65. 二进制
      pages/images/home_plate_41.png
  66. 二进制
      pages/images/home_plate_42.png
  67. 二进制
      pages/images/home_plate_51.png
  68. 二进制
      pages/images/home_plate_52.png
  69. 二进制
      pages/images/home_plate_61.png
  70. 二进制
      pages/images/home_plate_62.png
  71. 二进制
      pages/images/home_triangle_up.png
  72. 二进制
      pages/images/icon.png
  73. 二进制
      pages/images/message_home_01.png
  74. 二进制
      pages/images/png02016.png
  75. 二进制
      pages/images/product_icon_jst_70x70.png
  76. 二进制
      pages/images/product_icon_kslx_70x70.png
  77. 二进制
      pages/images/product_icon_ksxq_70x70.png
  78. 二进制
      pages/images/product_icon_mg_70x70.png
  79. 二进制
      pages/images/product_icon_pd_70x70.png
  80. 二进制
      pages/images/product_icon_py_70x70.png
  81. 二进制
      pages/images/product_icon_sz_70x70.png
  82. 二进制
      pages/images/signup_abnormal_illus.png
  83. 二进制
      pages/images/sofewareicon_jst.png
  84. 二进制
      pages/images/sofewareicon_ks.png
  85. 二进制
      pages/images/sofewareicon_mg.png
  86. 二进制
      pages/images/sofewareicon_pd.png
  87. 二进制
      pages/images/sofewareicon_py.png
  88. 二进制
      pages/images/sofewareicon_sz.png
  89. 二进制
      pages/images/universalpic_magnifier_black_30x30.png
  90. 二进制
      pages/images/userface_default.png
  91. 4 38
      pages/index/index.js
  92. 104 89
      pages/main/index.js
  93. 168 5
      pages/main/index.wxml
  94. 416 1
      pages/main/index.wxss
  95. 11 23
      pages/main/userinfo.wxml
  96. 2 2
      project.config.json

+ 3 - 1
app.js

@@ -23,7 +23,7 @@ App({
23 23
     }
24 24
   },
25 25
   globalData: {
26
-    Version: "1.2.12",
26
+    Version: "1.2.13",
27 27
     IsProduction: true,
28 28
     ProgramID: 106,
29 29
     AppID: "wx313a8f2c0741efe1",
@@ -56,6 +56,8 @@ App({
56 56
     NewUserNumberMax:6,//邀请新用户最大值
57 57
     IsSaveCustom:false,//是否保存了定制
58 58
     goto:"",//用于服务直达的跳转
59
+    IsShowMiaoguo:false,
59 60
     IsRefresh: false,
61
+    IsShowGift:0,
60 62
   }
61 63
 })

+ 2 - 1
app.json

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

二进制
package4/images/pay_shoppingguide_illus_03_106.png


二进制
package4/images/pay_shoppingguide_illus_03_98.png


+ 78 - 142
package4/main/activate.js

@@ -2,171 +2,107 @@ import common from '../../utils/util';
2 2
 import server from '../../utils/main';
3 3
 
4 4
 const app = getApp();
5
-var productList = [];
6 5
 
7 6
 Page({
8 7
   data: {
8
+    fileUrl: app.globalData.fileUrl,
9 9
   },
10 10
   onLoad: function (options) {
11
+    var text0 = "", text1 = "", text2 = "", text3 = "";
12
+    text0 = "会员登录";
13
+    text1 = "无需注册,微信授权即可登录";
14
+    text2 = "去登录";
15
+    text3 = "注意:会员登录后可使用付费功能。授权微信用户信息即可一键登录。为保障消费权益,购买后请尽快授权用户信息。登录后才能正常使用统计、排行、我的订单、套装、礼品卡等功能。";
11 16
 
12 17
     this.setData({
13
-      Containnerheight: common.getSystemHeight(),
14
-      ProgramList: server.getProgramList(),
18
+      Height: common.getSystemHeight(),
19
+      Text0: text0,
20
+      Text1: text1,
21
+      Text2: text2,
22
+      Text3: text3,
23
+      OrderType: options.type,
15 24
     });
16 25
 
17
-    this.init();
18
-  },
19
-  onUnload:function(){
20
-    productList=[];
26
+    //适配ipad
27
+    var systemInfo = wx.getSystemInfoSync();
28
+    if (systemInfo.model) {
29
+      if (systemInfo.model.indexOf("iPad") >= 0) {
30
+        this.setData({
31
+          ipad: "ipad",
32
+        })
33
+      }
34
+    }
21 35
   },
22
-  init: function (e, isRemind) {
23
-    var that = this;
24
-    wx.showLoading({
25
-      title: '装载中',
26
-    });
27
-    server.getData('GetUserActivateListByUserID500?UserID=' + app.globalData.userInfo.UserID + "&ProductID=" + app.globalData.ProgramID, function (data) {
28
-      if (data && data.length > 0) {
29
-        var programList = server.getProgramList();
30
-        for (var i = 0; i < programList.length; i++) {
31
-          for (var j = 0; j < data.length; j++) {
32
-            if (programList[i].ID == data[j].ProductID) {
33
-              data[j].Name = programList[i].Name;
34
-              data[j].ImageUrl = programList[i].ImageUrl;
35
-              data[j].appId = programList[i].appId;
36
-              data[j].path = programList[i].path;
37
-              //不是当前小程序不解锁
38
-              if (app.globalData.ProgramID == data[j].ProductID)
39
-                app.globalData.userInfo.IsMember = 1;
40
-            }
41
-          }
42
-        }
43
-
44
-        if (productList.length > 0) {
45
-          for (var i = 0; i < productList.length; i++) {
46
-            var b = false;
47
-            for (var j = 0; j < data.length; j++) {
48
-              if (productList[i].ProductID == data[j].ProductID) {
49
-                b = true;
50
-                
51
-                break;
52
-              }
53
-            }
54
-            if (!b) {
55
-              productList[i].IsActivate = 1;
56
-              data.push(productList[i]);
57
-            }
36
+  //得到用户信息
37
+  getUserInfo: function () {
38
+    var that = this
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) {
50
+            app.globalData.userInfo.Code = res0.code;
51
+            that.login(app.globalData.userInfo, res2.userInfo);
58 52
           }
59
-        }
60
-
61
-        that.setData({
62
-          List: data,
63 53
         });
64
-
65
-        productList = data;
66
-
67
-        if (isRemind) {
68
-          wx.showModal({
69
-            title: '产品未激活',
70
-            content: '您有产品未激活,请立即点击红色“去激活”按钮。',
71
-            showCancel: false,
72
-            confirmText: "知道了",
73
-          });
74
-        }
75
-
76
-        wx.setStorageSync("HasActivate", 1);
77
-        wx.hideLoading();
78
-      }
79
-      else {
80
-        if (isRemind) {
81
-          var arr = [];
82
-          for (var i = 0; i < productList.length; i++) {
83
-            arr.push(productList[i].ProductID);
84
-          }
85
-          wx.redirectTo({
86
-            url: "./activateFinish?idarr="+arr.join(","),
87
-          });
88
-          productList = [];
89
-          wx.removeStorageSync("HasActivate");
90
-        }
91
-        else{
92
-          for (var i = 0; i < productList.length; i++) {
93
-            productList[i].IsActivate = 1;
94
-          }
95
-
96
-          if (productList.length>0){
97
-            that.setData({
98
-              List: productList,
99
-            });
100
-          }
101
-          else{
102
-            wx.removeStorageSync("HasActivate");
103
-            wx.showModal({
104
-              title: '提醒',
105
-              content: '产品已激活。',
106
-              showCancel: false,
107
-              confirmText: "去首页",
108
-              success:function(){
109
-                wx.reLaunch({
110
-                  url: '../../pages/index/index',
111
-                })
112
-              }
113
-            });
114
-          }
115
-        }
54
+      },
55
+      fail: function (res) {
56
+        console.log(res);
116 57
       }
117
-      wx.hideLoading();
118
-
119 58
     });
120 59
   },
121
-  gotoFeedback: function () {
122
-    server.gotoFeedback();
123
-  },
124
-  gotoActive: function (e) {
60
+  login: function (param, param2) {
125 61
     var that = this;
126
-    var productid = e.currentTarget.dataset.id;
127
-
128
-    if (productid == app.globalData.ProgramID) {
129
-      server.getData('UpdateWXUsersAll500?ProductID=' + productid
130
-        + "&ProductUserID=" + app.globalData.userInfo.UserID
131
-        + "&CurrentProductID=" + productid
132
-        + "&CurrentUserID=" + app.globalData.userInfo.UserID, function (data) {
133
-          if (data) {
134
-
135
-          }
136
-        });
62
+    var url = "Login";
63
+    switch (app.globalData.ProgramID) {
64
+      case 164:
65
+        url = "MathStar" + url;
66
+        break;
67
+      case 105:
68
+        url = "Math" + url;
69
+        break;
70
+      case 106:
71
+        url = "Hanzi" + url;
72
+        break;
73
+      case 98:
74
+        url = "Pinyin" + url;
75
+        break;
76
+      case 99:
77
+        url = "Phonics" + url;
78
+        break;
137 79
     }
138
-    else {
139
-      var appId = e.currentTarget.dataset.appid;
140
-      var path = e.currentTarget.dataset.path;
141
-
142
-      path += "&ProductID=" + app.globalData.ProgramID;
143
-      path += "&ProductUserID=" + app.globalData.userInfo.UserID;
144
-
145
-      wx.navigateToMiniProgram({
146
-        appId: appId,
147
-        path: path,
148
-        success(res) {
149
-
150
-        }
80
+    server.postData(url, {
81
+      Code: param.Code,
82
+      NickName: param2.nickName,
83
+      AvatarUrl: param2.avatarUrl,
84
+      Language: param2.language,
85
+      Gender: param2.gender,
86
+      City: param2.city,
87
+      Province: param2.province,
88
+      Country: param2.country,
89
+      ProgramVersion: app.globalData.Version,
90
+      Introducer: app.globalData.introducer,
91
+      UserSource: app.globalData.userSource,
92
+      SourceID: app.globalData.SourceID,
93
+      LastUserSource: app.globalData.userSource,
94
+      iv: param.iv,
95
+      encryptedData: param.encryptedData,
96
+    }, function (data) {
97
+      wx.navigateBack({
98
+        delta: 1
151 99
       });
152
-    }
153
-    var data = this.data.List;
154
-    for (var i = 0; i < data.length; i++) {
155
-      if (data[i].ProductID == productid) {
156
-        data[i].IsActivate = 0;
157
-      }
158
-    }
159
-    that.setData({
160
-      List: data,
161 100
     });
162 101
   },
163
-  gotoFinish: function () {
164
-    this.init(null, true);
165
-  },
166 102
   onShareAppMessage: function () {
167 103
     return {
168 104
       title: app.globalData.ShareTitle,
169
-      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
105
+      path: 'pages/index/index?UserID=' + app.globalData.userInfo.UserID,
170 106
       imageUrl: app.globalData.ShareImage,
171 107
     }
172 108
   },

+ 2 - 4
package4/main/activate.json

@@ -1,6 +1,4 @@
1 1
 {
2
-  "navigationBarTitleText": "激活产品",
3
-  "navigationBarBackgroundColor": "#ffffff",
4
-  "navigationBarTextStyle": "black",
5
-  "backgroundColor": "#F0F0F0"
2
+  "navigationBarTitleText": "会员登录",
3
+  "enablePullDownRefresh": false
6 4
 }

+ 8 - 32
package4/main/activate.wxml

@@ -1,34 +1,10 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
-  <view class='text1 FlexColumn' bindtap='gotoFeedback'>
3
-    <view>您有产品未激活,必须激活才能继续其它操作,请立即处理。如</view>
4
-    <view class='FlexRow'>
5
-      <view>遇到问题请切换到“唱意教育家长助手”通过</view>
6
-      <view class='text11'>意见反馈</view>
7
-      <view>联系我们为</view>
8
-    </view>
9
-    <view>您处理。</view>
10
-  </view>
11
-
12
-  <view class="panelItem FlexRow" wx:for="{{List}}" wx:key="index">
13
-    <view class="Left FlexRow">
14
-      <image src='../images/{{item.ImageUrl}}' class="img" />
15
-      <view class="title1">
16
-        {{item.Name}}
17
-      </view>
18
-    </view>
19
-    <view class="Right">
20
-      <view class='btnActivate' wx:if="{{item.IsActivate==-1}}" bindtap="gotoActive" data-id="{{item.ProductID}}" data-appid="{{item.appId}}" data-path="{{item.path}}">去激活</view>
21
-      <view class='btnRefresh btnActivate' wx:if="{{item.IsActivate==0}}" bindtap="init">刷新</view>
22
-      <view class='text2' wx:if="{{item.IsActivate==1}}">已激活</view>
23
-    </view>
24
-  </view>
25
-  <view class='lineFooter'></view>
26
-
27
-  <image src='../images/file_0401.png' class="file_0401" />
28
-  <view class='lineFooter'></view>
29
-  <view style='height:240rpx'></view>
30
-
31
-  <view class='footer FlexRow' bindtap="gotoFinish">
32
-    完成
1
+<view class="container FlexColumn" style='height:{{Height}}rpx;'>
2
+  <image src="../images/accredit.png" class="bg" />
3
+  <text class="text0">{{Text0}}</text>
4
+  <text class="text1">{{Text1}}</text>
5
+  <view class="btn">
6
+    <button  class="btn1" catchtap="getUserInfo">{{Text2}}</button>
33 7
   </view>
8
+  <view class="line2 {{ipad}}"></view>
9
+  <text class="text3">{{Text3}}</text>
34 10
 </view>

+ 56 - 64
package4/main/activate.wxss

@@ -1,83 +1,75 @@
1
-.container {
2
-  background-color: #f0f0f0;
3
-  color:#1e1e1e;
4
-  font-weight: 500;
1
+.bg{
2
+  width: 100%;
3
+  height:769rpx;
4
+  position: fixed;
5
+  bottom: 0;
6
+  left:0;
5 7
 }
6 8
 
7
-.text1{
8
-  width:690rpx;
9
-  font-size:24rpx;
10
-  align-items: flex-start;
11
-  margin: 50rpx 0;
9
+.text0{
10
+  font-size:36rpx;
11
+  text-align: center;
12
+  margin-top: 280rpx;
13
+  z-index: 10;
12 14
 }
13 15
 
14
-.text11{
15
-  color:#B3443B;
16
-  text-decoration: underline;
16
+.text1{
17
+  font-size:44rpx;
18
+  text-align: center;
19
+  margin-top: 10rpx;
20
+  z-index: 10;
17 21
 }
18 22
 
19
-.panelItem{
20
-  width:100%;
21
-  height:111rpx;
22
-  background-color: #fff;
23
-  justify-content: space-between;
24
-  margin-top: 1rpx;
25
-}
26 23
 
27
-.Left {
28
-  margin-left: 30rpx;
29
-  justify-content: flex-start;
24
+.btn {
25
+  width: 600rpx;
26
+  height: 104rpx;
27
+  background-color: #035834;
28
+  border-radius: 14rpx;
29
+  margin-top: 90rpx;
30
+  z-index: 10;
30 31
 }
31 32
 
32
-.Right {
33
-  margin-right: 30rpx;
34
-  justify-content: flex-end;
33
+.btn1 {
34
+  width: 100%;
35
+  height: 90rpx;
36
+  background-color: #03AF69;
37
+  border-radius: 14rpx;
38
+  position:relative;
39
+  top:0;
40
+  font-size: 36rpx;
41
+  text-align: center;
42
+  line-height: 90rpx;
43
+  color:#fff;
35 44
 }
36 45
 
37
-.img{
38
-  width:50rpx;
39
-  height:50rpx;
40
-  border-radius: 10rpx;
46
+.line2{
47
+  width: 600rpx;
48
+  height:3rpx;
49
+  background-color: #593613;
50
+  margin-top:350rpx;
51
+  z-index: 10;
41 52
 }
42 53
 
43
-.title1{
44
-  margin-left: 20rpx;
45
-  font-size:28rpx;
54
+.ipad{
55
+  margin-top:140rpx;
46 56
 }
47 57
 
48
-.btnActivate{
49
-  width:108rpx;
50
-  height:50rpx;
51
-  border-radius: 10rpx;
52
-  background-color: #E5321C;
53
-  color:#fff;
54
-  font-size:24rpx;
55
-  text-align: center;
56
-  line-height: 50rpx;
57
-}
58
-.btnRefresh{
59
-  background-color: #0792E4;
60
-}
61
-.text2{
62
-  color:#329468;
63
-  font-size:28rpx;
58
+.text3{
59
+  font-size:22rpx;
60
+  width:560rpx; 
61
+  margin-top: 40rpx;
62
+  z-index: 10;
63
+  font-weight: 400;
64 64
 }
65 65
 
66
-.file_0401{
67
-  width:100%;
68
-  height:1879rpx;
69
-  margin-top: 50rpx;
66
+.buyOK{
67
+  width: 106rpx;
68
+  height:106rpx;
69
+  margin-top: 120rpx;
70 70
 }
71
-
72
-
73
-.footer{
74
-  width: 100%;
75
-  height: 140rpx;
76
-  position: fixed;
77
-  bottom: 0;
78
-  line-height: 140rpx;
79
-  font-size:48rpx;
80
-  color:#fff;
81
-  text-align: center;
82
-  background-color: #0792E4;
71
+.text4{
72
+  font-size:64rpx;
73
+  margin-top: 20rpx;
74
+  font-weight: 500;
83 75
 }

+ 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
-

二进制
pages/images/02005.png


二进制
pages/images/02006.png


二进制
pages/images/02007.png


二进制
pages/images/02008.png


二进制
pages/images/02009.png


二进制
pages/images/02010.png


二进制
pages/images/02011.png


二进制
pages/images/02012.png


二进制
pages/images/02031.png


二进制
pages/images/02032.png


二进制
pages/images/02035.png


二进制
pages/images/02036.png


二进制
pages/images/02037.png


二进制
pages/images/02038.png


二进制
pages/images/02039.png


二进制
pages/images/02040.png


二进制
pages/images/02041.png


二进制
pages/images/02042.png


二进制
pages/images/02043.png


二进制
pages/images/02044.png


二进制
pages/images/02045.png


二进制
pages/images/02046.png


二进制
pages/images/02047.png


二进制
pages/images/02048.png


二进制
pages/images/03001.png


二进制
pages/images/03002.png


二进制
pages/images/03003.png


二进制
pages/images/03004.png


二进制
pages/images/03005.png


二进制
pages/images/bm_sy_banner-open.png


二进制
pages/images/bm_sy_illus.png


二进制
pages/images/home_banner.png


二进制
pages/images/home_banner_window.png


二进制
pages/images/home_header_bg.png


二进制
pages/images/home_plate_11.png


二进制
pages/images/home_plate_12.png


二进制
pages/images/home_plate_21.png


二进制
pages/images/home_plate_22.png


二进制
pages/images/home_plate_31.png


二进制
pages/images/home_plate_32.png


二进制
pages/images/home_plate_41.png


二进制
pages/images/home_plate_42.png


二进制
pages/images/home_plate_51.png


二进制
pages/images/home_plate_52.png


二进制
pages/images/home_plate_61.png


二进制
pages/images/home_plate_62.png


二进制
pages/images/home_triangle_up.png


二进制
pages/images/icon.png


二进制
pages/images/message_home_01.png


二进制
pages/images/png02016.png


二进制
pages/images/product_icon_jst_70x70.png


二进制
pages/images/product_icon_kslx_70x70.png


二进制
pages/images/product_icon_ksxq_70x70.png


二进制
pages/images/product_icon_mg_70x70.png


二进制
pages/images/product_icon_pd_70x70.png


二进制
pages/images/product_icon_py_70x70.png


二进制
pages/images/product_icon_sz_70x70.png


二进制
pages/images/signup_abnormal_illus.png


二进制
pages/images/sofewareicon_jst.png


二进制
pages/images/sofewareicon_ks.png


二进制
pages/images/sofewareicon_mg.png


二进制
pages/images/sofewareicon_pd.png


二进制
pages/images/sofewareicon_py.png


二进制
pages/images/sofewareicon_sz.png


二进制
pages/images/universalpic_magnifier_black_30x30.png


二进制
pages/images/userface_default.png


+ 4 - 38
pages/index/index.js

@@ -74,52 +74,18 @@ Page({
74 74
       success: function (res0) {
75 75
         app.globalData.userInfo = {};
76 76
         app.globalData.userInfo.Code = res0.code;
77
-        //console.log("Code:" + res0.code);
78
-
79
-        wx.getSetting({
80
-          scope: "scope.userInfo",
81
-          success(res) {
82
-            if (!res.authSetting['scope.userInfo']) {
83
-              app.globalData.userInfo.nickName = "陌生用户";
84
-              app.globalData.userInfo.language = "";
85
-              app.globalData.userInfo.gender = "0";
86
-              app.globalData.userInfo.city = "";
87
-              app.globalData.userInfo.province = "";
88
-              app.globalData.userInfo.country = "";
89
-              app.globalData.userInfo.avatarUrl = "../images/FACE.png";
90
-              that.login(app.globalData.userInfo);
91
-            }
92
-            else {
93
-              wx.getUserInfo({
94
-                withCredentials: false,
95
-                success: function (res) {
96
-                  app.globalData.userInfo = res.userInfo;
97
-
98
-                  app.globalData.userInfo.NickName = app.globalData.userInfo.nickName;
99
-                  app.globalData.userInfo.AvatarUrl = app.globalData.userInfo.avatarUrl;
100
-
101
-                  app.globalData.userInfo.Code = res0.code;
102
-                  that.login(app.globalData.userInfo);
103
-
104
-                },
105
-                fail: function (res) {
106
-                  that.login(app.globalData.userInfo);
107
-                }
108
-              });
109
-
110
-            }
111
-          }
112
-        });
77
+        //console.log("Code:" + res0.code);app.globalData.userInfo.nickName = "陌生用户";
78
+        that.login(app.globalData.userInfo);
79
+        
113 80
       },
114 81
       fail: function () {
115
-        timeout2 = setTimeout(function () {
82
+        setTimeout(function () {
116 83
           that.getUserInfo();
117 84
           console.log("reboot:" + new Date().getTime());
118 85
         }, 2000);
119 86
       }
120 87
     });
121 88
   },
122
-
123 89
   login: function (param) {
124 90
     var that = this;
125 91
 

+ 104 - 89
pages/main/index.js

@@ -10,7 +10,56 @@ var isMiaoguoADShow=false;
10 10
 Page({
11 11
   data: {
12 12
     Version: app.globalData.Version,
13
-    ListProgram: server.getProgramListOld(),
13
+    List: [
14
+      {
15
+        ImageUrl: "home_plate_11.png",
16
+        Url: "../main/list?id=1",
17
+      },
18
+      {
19
+        ImageUrl: "home_plate_12.png",
20
+        Url: "../main/list?id=2",
21
+      },
22
+      {
23
+        ImageUrl: "home_plate_21.png",
24
+        Url: "../main/list?id=3",
25
+      },
26
+      {
27
+        ImageUrl: "home_plate_22.png",
28
+        Url: "../main/list?id=4",
29
+      },
30
+      {
31
+        ImageUrl: "home_plate_31.png",
32
+        Url: "../main/list?id=5",
33
+      },
34
+      {
35
+        ImageUrl: "home_plate_32.png",
36
+        Url: "../main/list?id=6",
37
+      },
38
+      {
39
+        ImageUrl: "home_plate_41.png",
40
+        Url: "../main/list?id=7",
41
+      },
42
+      {
43
+        ImageUrl: "home_plate_42.png",
44
+        Url: "../main/list?id=8",
45
+      },
46
+      {
47
+        ImageUrl: "home_plate_51.png",
48
+        Url: "../main/list?id=9",
49
+      },
50
+      {
51
+        ImageUrl: "home_plate_52.png",
52
+        Url: "../main/list?id=10",
53
+      },
54
+      {
55
+        ImageUrl: "home_plate_61.png",
56
+        Url: "../main/list?id=11",
57
+      },
58
+      {
59
+        ImageUrl: "home_plate_62.png",
60
+        Url: "../main/list?id=12",
61
+      },
62
+    ],
14 63
     NickName: "陌生用户",
15 64
     IsMember: 1,
16 65
     NewUserNumber: 2,
@@ -19,56 +68,43 @@ Page({
19 68
     ReviewCount: "0",
20 69
     FinishedCount: "0",
21 70
     IsAccredit: false,
22
-    NavClass1: "",
23
-    NavClass2: "nav2",
24 71
     IsRemind: false,
25 72
     IsMemberForeverRemind: 0,
26
-    IsExit: false,
27 73
     IsMiaoguoAD: false,
28 74
     IsMiaoguoAD2:0,
75
+    IsShowGift:0,
29 76
   },
30 77
   onLoad: function (options) {
31 78
     //app.globalData.userInfo.UserID=5;
32 79
     this.setData({
33 80
       Height: common.getSystemHeight(),
34
-      NickName: app.globalData.userInfo.NickName,
35
-      AvatarUrl: app.globalData.userInfo.AvatarUrl,
81
+      ListProgram: server.getProgramListOld(),
82
+      IsShowGift:app.globalData.userInfo.IsShowGift,
36 83
     });
37 84
 
38 85
     var that = this;
39
-    wx.getSetting({
40
-      success(res) {
41
-        if (res.authSetting['scope.userInfo'] || app.globalData.userInfo.IsShow <= 0) {
42
-          that.setData({
43
-            IsAccredit: true,
44
-          });
45
-        }
46
-        else {
47
-          wx.navigateTo({
48
-            url: './accredit',
49
-          });
50
-        }
51
-      }
52
-    })
53
-
54
-    common.getStorageValue(this, "IsRemind", true, function () { });
55
-
56
-    if (app.globalData.IsIPad) {
57
-      if (app.globalData.systemInfo.windowHeight < app.globalData.systemInfo.windowWidth) {
58
-        this.setData({
59
-          IsExit: true,
60
-        });
61
-      }
62
-    }
86
+   
63 87
     isMiaoguoADShow = false;
64 88
   },
65 89
   onShow: function () {
66 90
     this.setData({
67 91
       IsLocked: app.globalData.IsLocked,
68 92
       IsShow: app.globalData.userInfo.IsShow,
69
-      IsMember: app.globalData.userInfo.IsMember
93
+      IsMember: app.globalData.userInfo.IsMember,
94
+      NickName: app.globalData.userInfo.NickName,
95
+      AvatarUrl: app.globalData.userInfo.AvatarUrl,
70 96
     });
71 97
 
98
+    if (app.globalData.userInfo.NickName=="陌生用户" && app.globalData.userInfo.IsShow>0) {
99
+      this.setData({
100
+        IsRemind:true,
101
+      });
102
+    }
103
+    else{
104
+      this.setData({
105
+        IsRemind:false,
106
+      });
107
+    }
72 108
     if (wx.getStorageSync("HasActivate") == 1) {
73 109
       wx.navigateTo({
74 110
         url: '../../package4/main/activate',
@@ -77,19 +113,6 @@ Page({
77 113
     else {
78 114
       this.getData();
79 115
 
80
-      if (wx.getStorageSync("indexNav")) {
81
-        var obj = {
82
-          currentTarget: {
83
-            dataset: {
84
-              id: 2,
85
-            }
86
-          }
87
-        }
88
-        this.selectNav(obj);
89
-        wx.removeStorageSync("indexNav");
90
-      }
91
-
92
-
93 116
       if (app.globalData.goto) {
94 117
         var url = "../main/list?id=1";
95 118
         if (app.globalData.goto == "test")
@@ -99,19 +122,7 @@ Page({
99 122
         });
100 123
         app.globalData.goto = "";
101 124
       }
102
-      else {
103
-        var IsRemindTest = wx.getStorageSync("IsRemindTest");
104
-        if (IsRemindTest == 1) {
105
-          wx.setStorageSync('IsRemindTest', 2);
106
-          wx.navigateTo({
107
-            url: '../main/test',
108
-          });
109
-        }
110
-      }
111 125
     }
112
-
113
-    common.getStorageValue(this, "IsMiaoguoAD", true, function () { });
114
-
115 126
     var miaoguoADTime = wx.getStorageSync("miaoguoADTime");
116 127
     if (miaoguoADTime) {
117 128
       if (this.data.IsShow == 1 && this.data.IsMember == 1 && isMiaoguoADShow && common.formatTime(new Date()) >= miaoguoADTime) {
@@ -125,6 +136,13 @@ Page({
125 136
     }
126 137
 
127 138
     isMiaoguoADShow=true;
139
+
140
+    if (app.globalData.IsShowMiaoguo){
141
+      this.setData({
142
+        IsShowMiaoguo:1,
143
+      });
144
+      app.globalData.IsShowMiaoguo=false;
145
+    }
128 146
   },
129 147
   getData: function () {
130 148
     var that = this;
@@ -172,6 +190,7 @@ Page({
172 190
           hanziNumber = 0;
173 191
         }
174 192
         that.setData({
193
+          IsAccredit:true,
175 194
           DayNumber: data.DayNumber,
176 195
           HanziNumber: hanziNumber,
177 196
           FinishedCount: finishedCount,
@@ -196,35 +215,6 @@ Page({
196 215
       });
197 216
     }
198 217
   },
199
-  selectNav: function (e) {
200
-    var that = this;
201
-    var id = e.currentTarget.dataset.id;
202
-    //console.log(id);
203
-    if (id == "1") {
204
-      this.setData({
205
-        NavClass1: "",
206
-        NavClass2: "nav2",
207
-      })
208
-    }
209
-    else if (id == "2") {
210
-      this.setData({
211
-        NavClass1: "nav2",
212
-        NavClass2: "nav3",
213
-        IsRemind: false,
214
-      })
215
-      wx.setStorageSync('IsRemind', false);
216
-      wx.pageScrollTo({
217
-        scrollTop: 0
218
-      });
219
-
220
-      var url = e.currentTarget.dataset.url;
221
-      if (url == "orderlist") {
222
-        setTimeout(function () {
223
-          that.gotoAllPay();
224
-        }, 1000);
225
-      }
226
-    }
227
-  },
228 218
   goto: function (e) {
229 219
     var url = e.currentTarget.dataset.url;
230 220
     wx.navigateTo({
@@ -238,6 +228,8 @@ Page({
238 228
       wx.setStorageSync('IsMiaoguoAD', false); 
239 229
       wx.setStorageSync("miaoguoADTime", common.formatTime(common.addDate("d", 15, new Date())));
240 230
     }
231
+
232
+    app.globalData.userInfo.IsShowGift=0;
241 233
   },
242 234
   gotoSearch: function (e) {
243 235
     wx.navigateTo({
@@ -264,7 +256,7 @@ Page({
264 256
   switchProgram: function (e) {
265 257
     wx.navigateToMiniProgram({
266 258
       appId: e.currentTarget.dataset.appid,
267
-      path: e.currentTarget.dataset.path,
259
+      path: "pages/index/index?SourceID="+app.globalData.ProgramID,
268 260
       extraData: {
269 261
       },
270 262
       success(res) {
@@ -273,9 +265,17 @@ Page({
273 265
     });
274 266
   },
275 267
   gotoMemberCenter: function () {
276
-    wx.navigateTo({
277
-      url: './userinfo',
278
-    });
268
+    if (app.globalData.userInfo.NickName=="陌生用户" && app.globalData.userInfo.IsShow>0) {
269
+      //请去授权
270
+      wx.navigateTo({
271
+        url: './accredit?type=accredit',
272
+      });
273
+    }
274
+    else if (app.globalData.userInfo.IsShow>0) {
275
+      wx.navigateTo({
276
+        url: './userinfo',
277
+      });
278
+    }
279 279
   },
280 280
   updateMember: function () {
281 281
     if (app.globalData.userInfo.UserID == 1) {
@@ -297,6 +297,7 @@ Page({
297 297
   close: function (e) {
298 298
     this.setData({
299 299
       IsMiaoguoAD2: 0,
300
+      IsShowGift:0,
300 301
     });
301 302
     var num=e.currentTarget.dataset.num;
302 303
     if (num>0){
@@ -304,6 +305,20 @@ Page({
304 305
       time = common.formatTime(time);
305 306
       wx.setStorageSync("miaoguoADTime", time);
306 307
     }
308
+    app.globalData.userInfo.IsShowGift=0;
309
+  },
310
+  showMiaoguo:function(){
311
+    this.setData({
312
+      IsShowMiaoguo: 1,
313
+      IsMiaoguoAD2: 0,
314
+    });
315
+    app.globalData.userInfo.IsShowGift=0;
316
+    wx.setStorageSync("miaoguoADTime", common.formatTime(common.addDate("d", 15, new Date())));
317
+  },
318
+  closeMiaoguo:function(){
319
+    this.setData({
320
+      IsShowMiaoguo: 0,
321
+    });
307 322
   },
308 323
   onShareAppMessage: function () {
309 324
     return {

+ 168 - 5
pages/main/index.wxml

@@ -1,5 +1,5 @@
1 1
 <view class="container FlexColumn" style='min-height:{{Height}}rpx;'>
2
-  <view class="index0 FlexColumn">
2
+  <!-- <view class="index0 FlexColumn">
3 3
     <image src='../images/home_banner_header_sz.png' class="home_banner_header_sz" bindtap='goto' data-id="topAD" data-url='../../package4/main/newuser' wx:if="{{IsMiaoguoAD && IsMember==1 && IsShow==1}}" />
4 4
     <view class="index1 FlexRow">
5 5
       <view class="{{NavClass1}} nav FlexColumn" bindtap='selectNav' data-id="1">
@@ -210,11 +210,132 @@
210 210
   </block>
211 211
   <view class="index5 FlexColumn" wx:if="{{NavClass1!='nav2' && IsShow==1}}">
212 212
     <image mode="widthFix" src='../images/home_banner_footer.png' class="home_banner" bindtap='goto' data-url='../../package4/main/newuser' />
213
+  </view> -->
214
+  <view class="panelTop FlexRow">
215
+    <view class="Avatar FlexColumn">
216
+      <image src='../images/userface_default.png' class="AvatarImage" bindtap="gotoMemberCenter">
217
+      </image>
218
+      <image wx:if="{{!IsRemind}}" src='{{AvatarUrl}}' class="AvatarImage1" bindtap="gotoMemberCenter">
219
+      </image>
220
+    </view>
221
+    
222
+    <view class="panelTop1 FlexColumn">
223
+      <view class="number" wx:if="{{!IsAccredit}}">-</view>
224
+      <view class="number" wx:if="{{IsAccredit}}">{{DayNumber}}</view>
225
+      <view class="panelTop11 FlexRow">持续天数</view>
226
+    </view>
227
+    <view class="panelTop1 FlexColumn">
228
+      <view class="number" wx:if="{{!IsAccredit}}">-</view>
229
+      <view class="number" wx:if="{{IsAccredit}}">{{FinishedCount}}</view>
230
+      <view class="panelTop11 FlexRow">已学章节</view>
231
+    </view>
232
+    <view class="panelTop1 FlexColumn">
233
+      <view class="number" wx:if="{{!IsAccredit}}">-</view>
234
+      <view class="number" wx:if="{{IsAccredit}}">{{HanziNumber}}</view>
235
+      <view class="panelTop11 FlexRow">总共识字</view>
236
+    </view>
237
+    <image src='../images/home_header_bg.png' class="home_header_bg" />
238
+    <image wx:if="{{IsRemind}}" src='../images/message_home_01.png' class="message_home_01" />
239
+  </view>
240
+  <view class="panelTop2 FlexRow" wx:if="{{IsMember==0 && IsShow==1}}" bindtap="goto" data-url="../../package4/main/buyad">
241
+    <view class="panelTop21">帐户已过期,点这里升级到正式版</view>
242
+  </view>
243
+  <view class="panelList FlexRow">
244
+    <view class="panelItem btn FlexColumn" wx:for="{{List}}" wx:key="*this">
245
+      <image  src='../images/{{item.ImageUrl}}' bindtap="goto" data-url="{{item.Url}}"
246
+      class="itemImg" />
247
+    </view>
248
+    <view class="panelTool FlexColumn">
249
+      <view class="panelTool1">自测工具</view>
250
+      <view class="panelTool2 FlexRow">
251
+        <view class="btn1 btn FlexRow" bindtap='gotoSearch'>
252
+          <image src='../images/universalpic_magnifier_black_30x30.png' class="search" />
253
+        </view>
254
+        <view class="btn2 btn FlexRow" bindtap="gotoReview">
255
+          <view>复习</view>
256
+          <view class="number2" wx:if="{{ReviewCount>0}}">{{ReviewCount}}</view>
257
+        </view>
258
+        <view class="btn2 btn FlexRow" bindtap="gotoTest">
259
+          <view>测试</view>
260
+        </view>
261
+      </view>
262
+    </view>
263
+
264
+    <image src='../images/png02016.png' class="png02016" />
265
+    <view class="panelOther FlexRow">
266
+      <view class="panelOther1">其它产品</view>
267
+      <image src='../images/home_triangle_up.png' class="home_triangle_up" />
268
+    </view>
213 269
   </view>
270
+  <view class="panelProduct FlexColumn">
271
+    <view class="panelProduct10 panelProduct0 FlexColumn">
272
+      <view class="panelProduct1">全科练习</view>
273
+      <view class="panelProduct3 FlexRow" bindtap="showMiaoguo" >
274
+        <image src='../images/sofewareicon_mg.png' class="sofewareicon_mg" />
275
+        <view class="panelProduct31 FlexColumn">
276
+          <view class="panelProduct311">秒过</view>
277
+          <view class="panelProduct312">基础知识记忆工具</view>
278
+        </view>
279
+      </view>
280
+    </view>
214 281
 
282
+    <view class="panelProduct1">单科练习</view>
283
+    <view class="panelProduct10 FlexRow" style="width:100%;">
284
+      <view class="panelProduct0 FlexColumn">
285
+        <view class="panelProduct2">数学</view>
286
+        <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wxa5441bbf344692ba' >
287
+          <image src='../images/sofewareicon_ks.png' class="sofewareicon_mg" />
288
+          <view class="panelProduct31 FlexColumn">
289
+            <view class="panelProduct311">口算星球</view>
290
+            <view class="panelProduct312">好玩的口算敏捷练习</view>
291
+          </view>
292
+        </view>
293
+        <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wx1fef080f74481cbd' >
294
+          <image src='../images/sofewareicon_jst.png' class="sofewareicon_mg" />
295
+          <view class="panelProduct31 FlexColumn">
296
+            <view class="panelProduct311">计算题打印</view>
297
+            <view class="panelProduct312">打印竖式横式计算题</view>
298
+          </view>
299
+        </view>
300
+      </view>
301
+      <view class="panelProduct0 FlexColumn">
302
+        <view class="panelProduct2">语文</view>
303
+        <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wx331e8dd070f01d0e' >
304
+          <image src='../images/sofewareicon_py.png' class="sofewareicon_mg" />
305
+          <view class="panelProduct31 FlexColumn">
306
+            <view class="panelProduct311">汉语拼音</view>
307
+            <view class="panelProduct312">纯正发音练习</view>
308
+          </view>
309
+        </view>
310
+        <view class="panelProduct3 FlexRow" bindtap='switchProgram' data-appid='wx313a8f2c0741efe1' >
311
+          <image src='../images/sofewareicon_sz.png' class="sofewareicon_mg" />
312
+          <view class="panelProduct31 FlexColumn">
313
+            <view class="panelProduct311">识字</view>
314
+            <view class="panelProduct312">小学六年课本同步</view>
315
+          </view>
316
+        </view>
317
+      </view>
318
+    </view>
319
+    
320
+    <view style="width:100%;height:20rpx;"></view>
321
+    <view class="panelProduct10 panelProduct0 FlexColumn" bindtap='switchProgram' data-appid='wxb54a6d5aff836ee3' >
322
+      <view class="panelProduct1">英语</view>
323
+      <view class="panelProduct3 FlexRow">
324
+        <image src='../images/sofewareicon_pd.png' class="sofewareicon_mg" />
325
+        <view class="panelProduct31 FlexColumn">
326
+          <view class="panelProduct311">自然拼读</view>
327
+          <view class="panelProduct312">英语国家母语学习法</view>
328
+        </view>
329
+      </view>
330
+    </view>
331
+    <view style="width:100%;height:60rpx;"></view>
332
+  </view>
333
+  
334
+  <image bindtap="showMiaoguo" src='../images/home_banner.png' class="home_banner" />
335
+          
215 336
 </view>
216 337
 
217
-<view class="HelpInfo2 FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsMiaoguoAD2==1}}">
338
+<!-- <view class="HelpInfo2 FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsMiaoguoAD2==1}}">
218 339
   <view class="btn" bindtap='goto' data-url='../../package4/main/newuser' data-id="topAD">
219 340
     <view class="btn1 FlexColumn">
220 341
       <image src='../images/home_banner_window.png' class="home_banner_window" />
@@ -227,10 +348,52 @@
227 348
   <view class="close FlexColumn" bindtap='close' data-num="0">
228 349
     <image src='../images/02024.png' class="closeImage" />
229 350
   </view>
351
+</view> -->
352
+
353
+<view class="HelpInfo2 FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsMiaoguoAD2==1}}">
354
+  <view class="btn">
355
+    <view class="btn1 FlexColumn" catchtap="showMiaoguo">
356
+      <image src='../images/home_banner_window.png' class="home_banner_window" />
357
+      <view class="btn2">去领取</view>
358
+    </view>
359
+  </view>
360
+  <view class="close2 FlexColumn" bindtap='close' data-num="1">
361
+    以后再看
362
+  </view>
363
+  <view class="close FlexColumn" bindtap='close' data-num="0">
364
+    <image src='../images/02024.png' class="closeImage" />
365
+  </view>
366
+</view>
367
+
368
+<view class="HelpInfo2 FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsShowGift==1}}">
369
+  <view class="btn">
370
+    <view class="btn1 FlexColumn" catchtap="showMiaoguo">
371
+      <view class="HelpInfo21 FlexColumn">
372
+        <image src='../images/02023.png' class="png02014" />
373
+        <view class="HelpInfo211">有效期已延长</view>
374
+        <view class="HelpInfo212">识字20天礼品卡已兑换成功</view>
375
+      </view>
376
+      <view class="btn2" catchtap='goto' data-url='../../package4/main/getgiftlist'>查看记录</view>
377
+    </view>
378
+  </view>
379
+  <view class="close FlexColumn" bindtap='close' data-num="0">
380
+    <image src='../images/02024.png' class="closeImage" />
381
+  </view>
230 382
 </view>
231 383
 
384
+<view class="PanelMiaoguo FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsShowMiaoguo==1}}" catchtap="closeMiaoguo">
385
+  <view class="PanelMiaoguo1 FlexColumn">
386
+    <image src='../images/bm_sy_illus.png' class="bm_sy_illus"/>
387
+    <view class="Text1">该记的记不住</view>
388
+    <view class="Text2">用「秒过」</view>
389
+    <text class="Text3">帮助孩子记牢语数外基础知识的\n工具和练习方法</text>
390
+    <view class="Text4">了解详情,欢迎参加</view>
391
+    <view class="Text5">新手培训</view>
392
+    <view class="btn3 FlexColumn" bindtap='switchProgram' data-appid='wx84b3feac6069eec3'>
393
+      <image src='../images/bm_sy_banner-open.png' class="bm_sy_banner-open" />
394
+    </view>
232 395
 
233
-<view wx:if="{{IsExit}}" class="IsExitContainer container FlexColumn" style='height:{{Height}}rpx;'>
234
-  <view class='IsExitText'>请竖起屏幕再打开小程序</view>
235
-  <navigator class='isExit' open-type="exit" target="miniProgram">确认</navigator>
396
+    <view class="btnReadme" catchtap='goto' data-url='../../package4/main/miaoguoreadme'></view>
397
+    <view class="btnRecord" catchtap='goto' data-url='../../package4/main/getgiftlist'></view>
398
+  </view>
236 399
 </view>

+ 416 - 1
pages/main/index.wxss

@@ -1,4 +1,4 @@
1
-.container {
1
+/* .container {
2 2
   background-color: #F5E2BE;
3 3
   justify-content: flex-start;
4 4
   font-weight: 500;
@@ -459,4 +459,419 @@
459 459
 .HelpInfo2 .closeImage{
460 460
   width:33rpx;
461 461
   height:33rpx;
462
+} */
463
+
464
+.container {
465
+  background-color: #F5E2BE;
466
+  justify-content: flex-start;
467
+  font-weight: 500;
468
+}
469
+.panelTop{
470
+  width:100%;
471
+  height:120rpx;
472
+  justify-content: flex-start;
473
+  position: relative;
474
+}
475
+
476
+.Avatar{
477
+  width:80rpx;
478
+  height:80rpx;
479
+  background-color: #FEF5DA;
480
+  border-radius: 20rpx;
481
+  margin:0 45rpx 0 70rpx;
482
+  justify-content: flex-end;
483
+  position: relative;
484
+}
485
+.AvatarImage{
486
+  width:80rpx;
487
+  height:90rpx;
488
+}
489
+.AvatarImage1{
490
+  width:80rpx;
491
+  height:80rpx;
492
+  border-radius: 18rpx;
493
+  position: absolute;
494
+  top:-10rpx;
495
+  left:0;
496
+
497
+}
498
+.panelTop1{
499
+  width:120rpx;
500
+  justify-content: center;
501
+  position: relative;
502
+  z-index: 10;
503
+}
504
+
505
+.number{
506
+  font-family: 'SF UI Display Light';
507
+  font-weight: 200;
508
+  font-style: normal;
509
+  font-size:36rpx;
510
+}
511
+
512
+.panelTop11{
513
+  color:#1E1E1E;
514
+  font-size:22rpx;
515
+}
516
+
517
+.home_header_bg{
518
+  width:250rpx;
519
+  height: 120rpx;
520
+  position: absolute;
521
+  right:0;
522
+  z-index: 5;
523
+}
524
+
525
+.message_home_01{
526
+  width:265rpx;
527
+  height: 127rpx;
528
+  position: absolute;
529
+  top:80rpx;
530
+  left:70rpx;
531
+  z-index: 10;
532
+}
533
+
534
+.panelTop2{
535
+  width:100%;
536
+  height:80rpx;
537
+  background-color: #DFC7A4;
538
+  align-items: flex-end;
539
+}
540
+
541
+.panelTop21{
542
+  width:400rpx;
543
+  height:42rpx;
544
+  background-color: #593613;
545
+  text-align: center;
546
+  border-radius: 8rpx;
547
+  line-height:42rpx;
548
+  font-size:24rpx;
549
+  color:#fff;
550
+}
551
+
552
+.panelList{
553
+  width:100%;
554
+  flex-wrap: wrap;
555
+  background-color: #DFC7A4;
556
+}
557
+
558
+.btn {
559
+  border-radius: 20rpx;
560
+  background-color: #F8F8F8;
561
+  box-shadow: 0 20rpx 1rpx #CDB797;
562
+}
563
+
564
+.panelItem{
565
+  width:330rpx;
566
+  height:306rpx;
567
+  background-color: #F8F8F8;
568
+  margin:40rpx 15rpx 0 15rpx;
569
+  
570
+}
571
+
572
+.itemImg{
573
+  width:207rpx;
574
+  height:206rpx;
575
+}
576
+
577
+.panelTool{
578
+  width:690rpx;
579
+  margin:62rpx 0 80rpx 0;
580
+}
581
+
582
+.panelTool1{
583
+  color:#593613;
584
+  font-size:48rpx; 
585
+}
586
+
587
+.panelTool2{
588
+  width:690rpx;
589
+  margin-top:30rpx;
590
+  justify-content: space-between;
591
+}
592
+
593
+.btn1{
594
+  width:100rpx;
595
+  height:100rpx;
596
+}
597
+
598
+.btn2{
599
+  width:275rpx;
600
+  height:100rpx;
601
+  position: relative;
602
+  font-size:36rpx;
603
+  line-height: 100rpx;
604
+  text-align: center;
605
+}
606
+.search{
607
+  width:30rpx;
608
+  height:30rpx;
609
+}
610
+
611
+.number2{
612
+  min-width:53rpx;
613
+  height:50rpx;
614
+  border-radius: 8rpx;
615
+  background-color: #593613;
616
+  color:#fff;
617
+  line-height: 50rpx;
618
+  text-align: center;
619
+  font-size:24rpx;
620
+  font-family: Arial;
621
+  position: absolute;
622
+  right:20rpx;
623
+}
624
+
625
+.png02016{
626
+  width:754rpx;
627
+  height:35rpx;
628
+}
629
+
630
+.panelOther{
631
+  width:100%;
632
+  height:197rpx;
633
+  background-color: #CDB797;
634
+  position: relative;
635
+  align-items: flex-start;
636
+}
637
+
638
+.panelOther1{
639
+  color:#593613;
640
+  margin:80rpx 0 0 0;
641
+  font-size:48rpx; 
642
+}
643
+
644
+.home_triangle_up{
645
+  width:34rpx;
646
+  height:20rpx;
647
+  position: absolute;
648
+  bottom:0;
649
+  z-index: 10;
650
+}
651
+
652
+.panelProduct{
653
+  width:100%;
654
+  background-color: #fff;
655
+  align-items: flex-start;
656
+}
657
+.panelProduct0{
658
+  width:50%;
659
+  font-size:32rpx;
660
+  color:#4D4D4D;
661
+  justify-content: flex-start;
662
+  align-items: flex-start;
663
+}
664
+.panelProduct1{
665
+  background-color: #fff;
666
+  margin: 50rpx 0 0 50rpx;
667
+  font-size:32rpx;
668
+  color:#4D4D4D;
669
+}
670
+
671
+.panelProduct10{
672
+  width:100%;
673
+}
674
+
675
+.panelProduct2{
676
+  background-color: #fff;
677
+  margin: 0 0 0 50rpx;
678
+  font-size:32rpx;
679
+  color:#4D4D4D;
680
+}
681
+
682
+.panelProduct3{
683
+  width:300rpx;
684
+  margin:30rpx 0 0 50rpx;
685
+  justify-content: flex-start;
686
+}
687
+
688
+.sofewareicon_mg{
689
+  width:66rpx;
690
+  height:66rpx;
691
+}
692
+
693
+
694
+.panelProduct31{
695
+  margin:0 0 0 30rpx;
696
+  align-items: flex-start;
697
+}
698
+.panelProduct311{
699
+  font-size:28rpx;
700
+}
701
+.panelProduct312{
702
+  font-size:20rpx;
703
+  color:#4D4D4D;
704
+}
705
+
706
+.home_banner{
707
+  width:100%;
708
+  height: 280rpx;
709
+}
710
+
711
+.HelpInfo2 {
712
+  position: fixed;
713
+  left: 0;
714
+  top: 0;
715
+  width: 100%;
716
+  background-color:#F5E2BE;
717
+  justify-content: flex-start;
718
+  z-index: 100;
719
+}
720
+
721
+.HelpInfo2 .btn {
722
+  width: 600rpx;
723
+  height: 640rpx;
724
+  background-color: #D2D2D2;
725
+  border-radius: 40rpx;
726
+  margin: 15rpx;
727
+  position: relative;
728
+  margin-top: 222rpx;
729
+  box-shadow: 0 0 30rpx rgba(0, 0, 0, 0.5);
730
+}
731
+
732
+.HelpInfo2 .btn1 {
733
+  width: 100%;
734
+  height: 640rpx;
735
+  border-radius: 40rpx;
736
+  color: #fff;
737
+  text-align: center;
738
+  font-size: 36rpx;
739
+  justify-content: flex-start;
740
+}
741
+
742
+.HelpInfo2 .home_banner_window {
743
+  width: 600rpx;
744
+  height: 500rpx;
745
+  border-top-left-radius: 40rpx;
746
+  border-top-right-radius: 40rpx;
747
+}
748
+
749
+.HelpInfo2 .btn2 {
750
+  width: 100%;
751
+  height: 120rpx;
752
+  line-height: 120rpx;
753
+  background-color: #F0F0F0;
754
+  color: #1e1e1e;
755
+  text-align: center;
756
+  font-size: 48rpx;
757
+  font-weight: 500;
758
+  border-bottom-left-radius: 40rpx;
759
+  border-bottom-right-radius: 40rpx;
760
+}
761
+.HelpInfo2 .close2 {
762
+  position: fixed;
763
+  bottom:207rpx;
764
+  font-size:26rpx;
765
+  color: #1e1e1e;
766
+  text-decoration: underline;
767
+  font-weight: 500;
768
+  z-index: 100;
769
+  width:100%;
770
+  height:50rpx;
771
+}
772
+.HelpInfo2 .close {
773
+  width: 100%;
774
+  height: 235rpx;
775
+  position: fixed;
776
+  bottom:0;
777
+}
778
+
779
+.HelpInfo2 .closeImage{
780
+  width:33rpx;
781
+  height:33rpx;
782
+}
783
+
784
+.PanelMiaoguo{
785
+  width:100%;
786
+  background-color: rgba(0, 0, 0, 0.5);
787
+  z-index: 20;
788
+  position: fixed;
789
+  left: 0;
790
+  top: 0;
791
+  justify-content: flex-start;
792
+}
793
+
794
+.PanelMiaoguo1{
795
+  width:100%;
796
+  height:1055rpx;
797
+  background-color: #1A264C;
798
+  color:#fff;
799
+  position: fixed;
800
+  left: 0;
801
+  bottom: 0;
802
+  justify-content: flex-start;
803
+}
804
+
805
+.Text1{
806
+  font-size:32rpx;
807
+  margin-top:70rpx;
808
+}
809
+.Text2{
810
+  font-size:64rpx;
811
+}
812
+
813
+.Text3{
814
+  font-size:32rpx;
815
+  text-align: center;
816
+}
817
+
818
+.Text4{
819
+  font-size:32rpx;
820
+  margin-top:50rpx;
821
+  color:#FF970C;
822
+}
823
+.Text5{
824
+  font-size:68rpx;
825
+  color:#FF970C;
826
+}
827
+.btn3{
828
+  width:580rpx;
829
+  height:130rpx;
830
+  border-radius: 20rpx;
831
+  background-color:#FF970C;
832
+  margin-top:20rpx;
833
+}
834
+.bm_sy_banner-open{
835
+  width:220rpx;
836
+  height:70rpx;
837
+}
838
+.bm_sy_illus{
839
+  width:100%;
840
+  height:360rpx;
841
+}
842
+
843
+.btnRecord{
844
+  width:220rpx;
845
+  height:80rpx;
846
+  position: absolute;
847
+  left:232rpx;
848
+  top:270rpx;
849
+  z-index: 20;
850
+}
851
+.btnReadme{
852
+  width:125rpx;
853
+  height:80rpx;
854
+  position: absolute;
855
+  left:35rpx;
856
+  top:270rpx;
857
+  z-index: 20;
858
+}
859
+
860
+.HelpInfo21{
861
+  width:100%;
862
+  height:500rpx;
863
+  border-top-left-radius: 40rpx;
864
+  border-top-right-radius: 40rpx;
865
+  background-color: #B3443B;
866
+}
867
+.HelpInfo211{
868
+  font-size:60rpx;
869
+  margin-top:30rpx;
870
+}
871
+.HelpInfo212{
872
+  font-size:36rpx;
873
+}
874
+.png02014{
875
+  width:190rpx;
876
+  height:190rpx;
462 877
 }

+ 11 - 23
pages/main/userinfo.wxml

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

+ 2 - 2
project.config.json

@@ -11,6 +11,7 @@
11 11
     "uploadWithSourceMap": true,
12 12
     "useMultiFrameRuntime": true,
13 13
     "useApiHook": true,
14
+    "useApiHostProcess": true,
14 15
     "babelSetting": {
15 16
       "ignore": [],
16 17
       "disablePlugins": [],
@@ -23,8 +24,7 @@
23 24
     "userConfirmedBundleSwitch": false,
24 25
     "packNpmManually": false,
25 26
     "packNpmRelationList": [],
26
-    "minifyWXSS": true,
27
-    "useApiHostProcess": false
27
+    "minifyWXSS": true
28 28
   },
29 29
   "compileType": "miniprogram",
30 30
   "libVersion": "2.3.0",