chengjie 6 年之前
父节点
当前提交
e66d595ca2

+ 2 - 2
app.js

@@ -11,13 +11,13 @@ App({
11
     this.globalData.systemInfo = wx.getSystemInfoSync();
11
     this.globalData.systemInfo = wx.getSystemInfoSync();
12
   },
12
   },
13
   globalData: {
13
   globalData: {
14
-    Version: "1.1.16",
14
+    Version: "1.2.0",
15
     IsProduction: true,
15
     IsProduction: true,
16
     ProgramID: 106,
16
     ProgramID: 106,
17
     AppID: "wx313a8f2c0741efe1",
17
     AppID: "wx313a8f2c0741efe1",
18
     ProgramName: "语文识字",
18
     ProgramName: "语文识字",
19
     ShareTitle:"赢在阅读起跑线",
19
     ShareTitle:"赢在阅读起跑线",
20
-    ShareImage: "../images/07001.png",
20
+    ShareImage: "../../pages/images/07001.png",
21
     userInfo: null,
21
     userInfo: null,
22
     fileUrl: "https://www.kylx365.com/",
22
     fileUrl: "https://www.kylx365.com/",
23
     serverUrl: "https://www.kylx365.com/apiData/",
23
     serverUrl: "https://www.kylx365.com/apiData/",

+ 1 - 0
app.json

@@ -45,6 +45,7 @@
45
         "main/giftinfo",
45
         "main/giftinfo",
46
         "main/coupon",
46
         "main/coupon",
47
         "main/limited",
47
         "main/limited",
48
+        "main/invite",
48
         "main/list"
49
         "main/list"
49
       ]
50
       ]
50
     }
51
     }

+ 7 - 14
app.wxss

@@ -1,4 +1,3 @@
1
-/**app.wxss**/
2
 ::-webkit-scrollbar {
1
 ::-webkit-scrollbar {
3
   width: 0;
2
   width: 0;
4
   height: 0;
3
   height: 0;
@@ -30,39 +29,33 @@
30
 
29
 
31
 .lineFooter{
30
 .lineFooter{
32
   width: 100%;
31
   width: 100%;
33
-  height: 2rpx;
34
-  background-color: #E3E3E3; 
32
+  height: 1rpx;
33
+  background-color: #d2d2d2; 
35
 }
34
 }
36
-
37
-
38
 .lineWidthAll{
35
 .lineWidthAll{
39
   width: 100%;
36
   width: 100%;
40
   justify-content: flex-end;
37
   justify-content: flex-end;
41
   background-color: #fff;
38
   background-color: #fff;
42
-  height: 2rpx;
39
+  height: 1rpx;
43
 }
40
 }
44
-
45
 .lineWidth750{
41
 .lineWidth750{
46
   width: 100%;
42
   width: 100%;
47
-  height: 2rpx;
43
+  height: 1rpx;
48
   background-color: #E3E3E3; 
44
   background-color: #E3E3E3; 
49
 }
45
 }
50
-
51
 .lineWidth720{
46
 .lineWidth720{
52
   width: 720rpx;
47
   width: 720rpx;
53
-  height: 2rpx;
48
+  height: 1rpx;
54
   background-color: #E3E3E3; 
49
   background-color: #E3E3E3; 
55
 }
50
 }
56
-
57
 .lineWidth650{
51
 .lineWidth650{
58
   width: 650rpx;
52
   width: 650rpx;
59
-  height: 2rpx;
53
+  height: 1rpx;
60
   background-color: #E3E3E3; 
54
   background-color: #E3E3E3; 
61
 }
55
 }
62
-
63
 .lineWidth620{
56
 .lineWidth620{
64
   width: 620rpx;
57
   width: 620rpx;
65
-  height: 2rpx;
58
+  height: 1rpx;
66
   background-color: #E3E3E3; 
59
   background-color: #E3E3E3; 
67
 }
60
 }
68
 
61
 

+ 10 - 0
package4/main/activate.wxss

@@ -24,6 +24,16 @@
24
   margin-top: 1rpx;
24
   margin-top: 1rpx;
25
 }
25
 }
26
 
26
 
27
+.Left {
28
+  margin-left: 30rpx;
29
+  justify-content: flex-start;
30
+}
31
+
32
+.Right {
33
+  margin-right: 30rpx;
34
+  justify-content: flex-end;
35
+}
36
+
27
 .img{
37
 .img{
28
   width:50rpx;
38
   width:50rpx;
29
   height:50rpx;
39
   height:50rpx;

+ 10 - 0
package4/main/activateFinish.wxss

@@ -33,6 +33,16 @@
33
   margin-top: 1rpx;
33
   margin-top: 1rpx;
34
 }
34
 }
35
 
35
 
36
+.Left {
37
+  margin-left: 30rpx;
38
+  justify-content: flex-start;
39
+}
40
+
41
+.Right {
42
+  margin-right: 30rpx;
43
+  justify-content: flex-end;
44
+}
45
+
36
 .img{
46
 .img{
37
   width:50rpx;
47
   width:50rpx;
38
   height:50rpx;
48
   height:50rpx;

+ 1 - 2
package4/main/buyad.js

@@ -18,7 +18,7 @@ Page({
18
     for (var i = 0; i < arrProduct.length; i++) {
18
     for (var i = 0; i < arrProduct.length; i++) {
19
       if (arrProduct[i].ProductNum == app.globalData.ProgramID) {
19
       if (arrProduct[i].ProductNum == app.globalData.ProgramID) {
20
         that.setData({
20
         that.setData({
21
-          Price: Math.floor(arrProduct[i].Period[0].Price),
21
+          Price: Math.floor(100 * arrProduct[i].Period[0].Price) / 100,
22
         });
22
         });
23
       }
23
       }
24
     }
24
     }
@@ -39,7 +39,6 @@ Page({
39
     });
39
     });
40
   },
40
   },
41
   closePage:function(){
41
   closePage:function(){
42
-    wx.setStorageSync("NoRefreshList", true);
43
     wx.navigateBack({
42
     wx.navigateBack({
44
       delta: 1
43
       delta: 1
45
     });
44
     });

+ 1 - 0
package4/main/buyad.wxml

@@ -5,6 +5,7 @@
5
       <view class='panel111' bindtap='gotoOrder'>
5
       <view class='panel111' bindtap='gotoOrder'>
6
         直接购买
6
         直接购买
7
       </view>
7
       </view>
8
+      <view class='line1'></view>
8
       <view class='panel112 panel111' bindtap='gotoPackList'>
9
       <view class='panel112 panel111' bindtap='gotoPackList'>
9
         优惠套装
10
         优惠套装
10
       </view>
11
       </view>

+ 9 - 2
package4/main/buyad.wxss

@@ -1,5 +1,6 @@
1
 .container {
1
 .container {
2
   background-color: #342535;
2
   background-color: #342535;
3
+  color:#1e1e1e;
3
 }
4
 }
4
 
5
 
5
 .panel1 {
6
 .panel1 {
@@ -20,20 +21,26 @@
20
 
21
 
21
 .panel11{
22
 .panel11{
22
   width: 610rpx;
23
   width: 610rpx;
23
-  background-color: #E4B06C;
24
+  background-color: #FEC579;
24
   justify-content: space-between;
25
   justify-content: space-between;
25
   border-bottom-left-radius: 10rpx;
26
   border-bottom-left-radius: 10rpx;
26
   border-bottom-right-radius: 10rpx;
27
   border-bottom-right-radius: 10rpx;
27
 }
28
 }
28
 
29
 
29
 .panel111{
30
 .panel111{
30
-  width: 305rpx;
31
+  width: 304rpx;
31
   height:120rpx;
32
   height:120rpx;
32
   line-height: 120rpx;
33
   line-height: 120rpx;
33
   text-align: center;
34
   text-align: center;
34
   background-color: #FEC579;
35
   background-color: #FEC579;
35
   border-bottom-left-radius: 10rpx;
36
   border-bottom-left-radius: 10rpx;
36
 }
37
 }
38
+
39
+.line1{
40
+  width:2rpx;
41
+  height:60rpx;
42
+  background-color: #E4B06C;
43
+}
37
 .panel112{
44
 .panel112{
38
   border-bottom-left-radius: 0;
45
   border-bottom-left-radius: 0;
39
   border-bottom-right-radius: 10rpx;
46
   border-bottom-right-radius: 10rpx;

+ 1 - 1
package4/main/coupon.js

@@ -22,7 +22,7 @@ Page({
22
     wx.showLoading({
22
     wx.showLoading({
23
       title: '请稍后',
23
       title: '请稍后',
24
     });
24
     });
25
-    server.getData('GetUserCouponListByUserID?IsShowAll=1&UserID=' + app.globalData.userInfo.UserID, function (data) {
25
+    server.getData('GetUserCouponListByUserID?ProductID='+app.globalData.ProgramID+'&IsShowAll=1&UserID=' + app.globalData.userInfo.UserID, function (data) {
26
       if (data) {
26
       if (data) {
27
         that.setData({
27
         that.setData({
28
           CouponList: data,
28
           CouponList: data,

+ 38 - 0
package4/main/invite.js

@@ -0,0 +1,38 @@
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
+
15
+    this.init();
16
+  },
17
+  init: function () {
18
+    var that = this;
19
+    wx.showLoading({
20
+      title: '请稍后',
21
+    });
22
+    server.getData('GetInviteUser500?ProductID=' + app.globalData.ProgramID + '&UserID=' + app.globalData.userInfo.UserID, function (data) {
23
+      if (data) {
24
+        that.setData({
25
+          List: data,
26
+        });
27
+      }
28
+      wx.hideLoading();
29
+    });
30
+  },
31
+  onShareAppMessage: function () {
32
+    return {
33
+      title: app.globalData.ShareTitle,
34
+      path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
35
+      imageUrl: app.globalData.ShareImage,
36
+    }
37
+  },
38
+})

+ 6 - 0
package4/main/invite.json

@@ -0,0 +1,6 @@
1
+{
2
+  "navigationBarTitleText": "我的邀请",
3
+  "navigationBarBackgroundColor": "#ffffff",
4
+  "navigationBarTextStyle": "black",
5
+  "backgroundColor": "#F0F0F0"
6
+}

+ 22 - 0
package4/main/invite.wxml

@@ -0,0 +1,22 @@
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
2
+  <block wx:if="{{List.length>0}}">
3
+    <view class="panelTitle FlexRow">
4
+      <view class="panelTitle1">已邀请到 {{List.length}} 位新用户</view>
5
+    </view>
6
+    <block wx:for="{{List}}" wx:key="index">
7
+      <view class="lineWidthAll FlexRow" wx:if="{{index>0}}">
8
+        <view class="lineWidth750"></view>
9
+      </view>
10
+      <view class="panelItem FlexRow">
11
+        <image src='{{item.AvatarUrl}}' class="AvatarUrl" wx:if="{{item.AvatarUrl}}" />
12
+        <view class="AvatarUrl" wx:if="{{!item.AvatarUrl}}"></view>
13
+        <view class="panelItem1">{{item.NickName}}</view>
14
+      </view>
15
+    </block>
16
+    <view class='lineFooter'></view>
17
+    <view style='height:100rpx;'></view>
18
+  </block>
19
+  <block wx:if="{{List.length==0}}">
20
+  <text class='text1'>暂无由您邀请\n的新用户</text>
21
+  </block>
22
+</view>

+ 44 - 0
package4/main/invite.wxss

@@ -0,0 +1,44 @@
1
+.container {
2
+  background-color: #f0f0f0;
3
+  color:#1e1e1e;
4
+  font-weight: 500;
5
+}
6
+
7
+.panelTitle{
8
+  width:100%;
9
+  margin-top: 50rpx;
10
+  justify-content: flex-start;
11
+}
12
+.panelTitle .panelTitle1{
13
+  font-size:32rpx;
14
+  margin-left: 30rpx;
15
+  margin-bottom: 30rpx;
16
+}
17
+
18
+.panelItem{
19
+  width:100%;
20
+  justify-content: flex-start;
21
+  font-size:28rpx;
22
+  height:120rpx;
23
+  background-color: #fff;
24
+}
25
+
26
+.AvatarUrl{
27
+  width: 60rpx;
28
+  height: 60rpx;
29
+  border-radius: 50%;
30
+  margin-left: 30rpx;
31
+  background-color: #D2D2D2;
32
+}
33
+
34
+.panelItem .panelItem1{
35
+  margin-left: 20rpx;
36
+  font-weight: 400;
37
+  color:#1e1e1e;
38
+}
39
+
40
+.text1{
41
+  font-size:48rpx;
42
+  text-align: center;
43
+  margin-top: 462rpx;
44
+}

+ 1 - 0
package4/main/list.js

@@ -12,6 +12,7 @@ Page({
12
     this.setData({
12
     this.setData({
13
       Containnerheight: common.getSystemHeight(),
13
       Containnerheight: common.getSystemHeight(),
14
       ProgramList: server.getProgramList(),
14
       ProgramList: server.getProgramList(),
15
+      ProgramID:app.globalData.ProgramID,
15
       MathShow: false,
16
       MathShow: false,
16
       ChineseShow: false,
17
       ChineseShow: false,
17
       AllShow: false,
18
       AllShow: false,

+ 9 - 9
package4/main/list.wxml

@@ -21,7 +21,7 @@
21
                 <view class="text5">{{item.Name2}}</view>
21
                 <view class="text5">{{item.Name2}}</view>
22
               </view>
22
               </view>
23
             </view>
23
             </view>
24
-            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}'>去体验</view>
24
+            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}' wx:if="{{ProgramID!=item.ID}}">去体验</view>
25
           </view>
25
           </view>
26
         </block>
26
         </block>
27
         <block wx:if="{{!ChineseShow}}">
27
         <block wx:if="{{!ChineseShow}}">
@@ -58,14 +58,14 @@
58
                 <view class="text5">{{item.Name2}}</view>
58
                 <view class="text5">{{item.Name2}}</view>
59
               </view>
59
               </view>
60
             </view>
60
             </view>
61
-            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}'>去体验</view>
61
+            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}' wx:if="{{ProgramID!=item.ID}}">去体验</view>
62
           </view>
62
           </view>
63
           <view class="line1"></view>
63
           <view class="line1"></view>
64
         </block>
64
         </block>
65
         <block wx:if="{{!MathShow}}">
65
         <block wx:if="{{!MathShow}}">
66
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="MathShow">
66
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="MathShow">
67
             <view class="text4">套装详情</view>
67
             <view class="text4">套装详情</view>
68
-            <image src='../../pages/images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
68
+            <image src='../images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
69
           </view>
69
           </view>
70
         </block>
70
         </block>
71
 
71
 
@@ -96,7 +96,7 @@
96
                 <view class="text5">{{item.Name2}}</view>
96
                 <view class="text5">{{item.Name2}}</view>
97
               </view>
97
               </view>
98
             </view>
98
             </view>
99
-            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}'>去体验</view>
99
+            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}' wx:if="{{ProgramID!=item.ID}}">去体验</view>
100
           </view>
100
           </view>
101
           <view class="line1"></view>
101
           <view class="line1"></view>
102
         </block>
102
         </block>
@@ -104,7 +104,7 @@
104
         <block wx:if="{{!AllShow}}">
104
         <block wx:if="{{!AllShow}}">
105
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="AllShow">
105
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="AllShow">
106
             <view class="text4">套装详情</view>
106
             <view class="text4">套装详情</view>
107
-            <image src='../../pages/images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
107
+            <image src='../images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
108
           </view>
108
           </view>
109
         </block>
109
         </block>
110
       </view>
110
       </view>
@@ -137,14 +137,14 @@
137
                 <view class="text5">{{item.Name2}}</view>
137
                 <view class="text5">{{item.Name2}}</view>
138
               </view>
138
               </view>
139
             </view>
139
             </view>
140
-            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}'>去体验</view>
140
+            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}' wx:if="{{ProgramID!=item.ID}}">去体验</view>
141
           </view>
141
           </view>
142
           <view class="line1"></view>
142
           <view class="line1"></view>
143
         </block>
143
         </block>
144
         <block wx:if="{{!MathGiftShow}}">
144
         <block wx:if="{{!MathGiftShow}}">
145
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="MathGiftShow">
145
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="MathGiftShow">
146
             <view class="text4">礼品卡详情</view>
146
             <view class="text4">礼品卡详情</view>
147
-            <image src='../../pages/images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
147
+            <image src='../images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
148
           </view>
148
           </view>
149
         </block>
149
         </block>
150
 
150
 
@@ -175,13 +175,13 @@
175
                 <view class="text5">{{item.Name2}}</view>
175
                 <view class="text5">{{item.Name2}}</view>
176
               </view>
176
               </view>
177
             </view>
177
             </view>
178
-            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}'>去体验</view>
178
+            <view class="panel14" bindtap='switchProgram' data-appid='{{item.appId}}' data-path='{{item.path}}' wx:if="{{ProgramID!=item.ID}}">去体验</view>
179
           </view>
179
           </view>
180
         </block>
180
         </block>
181
         <block wx:if="{{!AllGiftShow}}">
181
         <block wx:if="{{!AllGiftShow}}">
182
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="AllGiftShow">
182
           <view class="panel121 panel12 FlexRow" bindtap="showList" data-id="AllGiftShow">
183
             <view class="text4">礼品卡详情</view>
183
             <view class="text4">礼品卡详情</view>
184
-            <image src='../../pages/images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
184
+            <image src='../images/universalpic_indicator_down_gray.png' class="universalpic_indicator_down_gray" />
185
           </view>
185
           </view>
186
         </block>
186
         </block>
187
       </view>
187
       </view>

+ 1 - 1
package4/main/order.js

@@ -86,7 +86,7 @@ Page({
86
     wx.showLoading({
86
     wx.showLoading({
87
       title: '请稍后',
87
       title: '请稍后',
88
     });
88
     });
89
-    server.getData('GetUserCouponListByUserID?UserID=' + app.globalData.userInfo.UserID, function (data) {
89
+    server.getData('GetUserCouponListByUserID?ProductID='+app.globalData.ProgramID+'&UserID=' + app.globalData.userInfo.UserID, function (data) {
90
         if (data) {
90
         if (data) {
91
           that.setData({
91
           that.setData({
92
             CouponList:data,
92
             CouponList:data,

+ 3 - 11
pages/main/index.js

@@ -246,17 +246,9 @@ Page({
246
   },
246
   },
247
   gotoReview: function () {
247
   gotoReview: function () {
248
     if (this.data.IsShow == 1 && this.data.IsMember == 0) {
248
     if (this.data.IsShow == 1 && this.data.IsMember == 0) {
249
-      var query = wx.createSelectorQuery();
250
-      query.select('.payInfo').boundingClientRect();
251
-      query.selectViewport().scrollOffset();
252
-      query.exec(function (res) {
253
-        var top = res[0].top + res[1].scrollTop
254
-
255
-        wx.pageScrollTo({
256
-          scrollTop: top,
257
-          duration: 500
258
-        });
259
-      });
249
+      wx.navigateTo({
250
+        url: '../../package4/main/buyad',
251
+      })
260
     }
252
     }
261
     else {
253
     else {
262
       wx.navigateTo({
254
       wx.navigateTo({

+ 3 - 9
pages/main/list.js

@@ -15,7 +15,6 @@ Page({
15
       NavClass2: "nav2",
15
       NavClass2: "nav2",
16
       IsShowNav1: true,
16
       IsShowNav1: true,
17
       BookID: bookID,
17
       BookID: bookID,
18
-      IsShowPayInfo: false,
19
       IsShow: app.globalData.IsShow,
18
       IsShow: app.globalData.IsShow,
20
     });
19
     });
21
 
20
 
@@ -115,9 +114,9 @@ Page({
115
   goto: function (e) {
114
   goto: function (e) {
116
     var islocked = e.currentTarget.dataset.islocked;
115
     var islocked = e.currentTarget.dataset.islocked;
117
     if (islocked == 1 && app.globalData.IsShow == 1) {
116
     if (islocked == 1 && app.globalData.IsShow == 1) {
118
-      this.setData({
119
-        IsShowPayInfo: true,
120
-      });
117
+      wx.navigateTo({
118
+        url: '../../package4/main/buyad',
119
+      })
121
     }
120
     }
122
     else {
121
     else {
123
       var word = e.currentTarget.dataset.word;
122
       var word = e.currentTarget.dataset.word;
@@ -171,11 +170,6 @@ Page({
171
       }
170
       }
172
     });
171
     });
173
   },
172
   },
174
-  close: function () {
175
-    this.setData({
176
-      IsShowPayInfo: false,
177
-    });
178
-  },
179
   gotoIndex: function () {
173
   gotoIndex: function () {
180
     wx.setStorageSync("indexNav", 2);
174
     wx.setStorageSync("indexNav", 2);
181
     wx.navigateBack({
175
     wx.navigateBack({

+ 0 - 22
pages/main/list.wxml

@@ -64,25 +64,3 @@
64
   <image src='../images/02004.gif' class="hand" wx:if="{{IsRemind}}" />
64
   <image src='../images/02004.gif' class="hand" wx:if="{{IsRemind}}" />
65
 
65
 
66
 </view>
66
 </view>
67
-  
68
-<view class="PayInfo container FlexColumn" style='height:{{Height}}rpx;' wx:if="{{IsShowPayInfo}}">
69
-  <view class="btn">
70
-    <view class="btn1 FlexColumn" catchtap="getPay">
71
-      <view class="panel1 FlexColumn">
72
-        <image src='../images/04010.png' class="img" />
73
-      </view>
74
-      <view class="panel2 FlexColumn">
75
-        购买
76
-      </view>
77
-    </view>
78
-  </view>
79
-  <view class="text1">一款原价,成套购买更划算</view>
80
-  <view class="text2 FlexRow" catchtap='gotoIndex'>
81
-    <image src='../images/06010.png' class="Triangle" />
82
-    <view class="text3">产品详情</view>
83
-  </view>
84
-
85
-  <view class="close FlexColumn" catchtap='close'>
86
-    <image src='../images/02024.png' class="closeImage" />
87
-  </view>
88
-</view>

+ 0 - 72
pages/main/list.wxss

@@ -186,78 +186,6 @@
186
   height:106rpx;
186
   height:106rpx;
187
 }
187
 }
188
 
188
 
189
-
190
-.PayInfo{
191
-  z-index: 100;
192
-  position: fixed;
193
-  width: 100%;
194
-  left:0;
195
-  top:0;
196
-  background-color: rgba(240,240,240,0.95);
197
-}
198
-
199
-.PayInfo .btn {
200
-  width: 600rpx;
201
-  height: 420rpx;
202
-  background-color: #F19805;
203
-  border-radius: 40rpx;
204
-  margin-top: 282rpx;
205
-  box-shadow: 0 0 30rpx rgba(0, 0, 0, 0.5);
206
-}
207
-.PayInfo .btn1 {
208
-  width: 100%;
209
-  height: 400rpx;
210
-  background-color: #FFDD0C;
211
-  border-radius: 40rpx;
212
-  position:relative;
213
-  top:0;
214
-  justify-content: flex-start;
215
-}
216
-.PayInfo .panel1 {
217
-  width: 100%;
218
-  height: 280rpx;
219
-  background-color: #F9676C;
220
-  border-top-left-radius: 40rpx;
221
-  border-top-right-radius: 40rpx;
222
-}
223
-.PayInfo .img {
224
-  width: 518rpx;
225
-  height: 175rpx;
226
-}
227
-.PayInfo .panel2 {
228
-  width: 100%;
229
-  height: 120rpx;
230
-  font-size:48rpx;
231
-}
232
-
233
-.PayInfo .text1{
234
-  margin-top: 126rpx;
235
-  font-size:32rpx;
236
-}
237
-.PayInfo .text2{
238
-  margin-top: 20rpx;
239
-  font-size:36rpx;
240
-  color:#A20602;
241
-}
242
-.PayInfo .Triangle{
243
-  width: 16rpx;
244
-  height:22rpx;
245
-  margin-right: 22rpx;
246
-}
247
-.PayInfo .close {
248
-  width: 100%;
249
-  height: 155rpx;
250
-  position: fixed;
251
-  bottom: 0;
252
-  justify-content: flex-start;
253
-}
254
-
255
-.PayInfo .closeImage {
256
-  width: 33rpx;
257
-  height: 33rpx;
258
-  margin-top: 30rpx;
259
-}
260
-
261
 .hand{
189
 .hand{
262
   width:60rpx;
190
   width:60rpx;
263
   height:90rpx;
191
   height:90rpx;

+ 10 - 1
pages/main/userinfo.wxml

@@ -8,6 +8,15 @@
8
       <image src='../images/Arrow.png' class="Arrow" />
8
       <image src='../images/Arrow.png' class="Arrow" />
9
     </view>
9
     </view>
10
   </view>
10
   </view>
11
+  <view class="lineWidthAll FlexRow">
12
+    <view class="lineWidth720"></view>
13
+  </view>
14
+  <view class="panelItem FlexRow" bindtap='goto' data-url='../../package4/main/invite'>
15
+    <view class="panelItem1">我的邀请</view>
16
+    <view class="panelItem2 FlexRow">
17
+      <image src='../images/Arrow.png' class="Arrow" />
18
+    </view>
19
+  </view>
11
   <view class='lineFooter'></view>
20
   <view class='lineFooter'></view>
12
 
21
 
13
   <view class="panelTitle FlexRow">
22
   <view class="panelTitle FlexRow">
@@ -103,7 +112,7 @@
103
   <view class="panelTitle FlexRow">
112
   <view class="panelTitle FlexRow">
104
     <view class="panelTitle1">支持</view>
113
     <view class="panelTitle1">支持</view>
105
   </view>
114
   </view>
106
-  <view class="panelItem FlexRow" bindtap='goto' data-url='./help'>
115
+  <view class="panelItem FlexRow" bindtap='goto' data-url='./help' wx:if="{{ProgramID!=106}}">
107
     <view class="panelItem1">帮助</view>
116
     <view class="panelItem1">帮助</view>
108
     <view class="panelItem2 FlexRow">
117
     <view class="panelItem2 FlexRow">
109
       <image src='../images/Arrow.png' class="Arrow" />
118
       <image src='../images/Arrow.png' class="Arrow" />

+ 1 - 0
pages/main/userinfo.wxss

@@ -1,5 +1,6 @@
1
 .container {
1
 .container {
2
   background-color: #f0f0f0;
2
   background-color: #f0f0f0;
3
+  color:#1e1e1e;
3
 }
4
 }
4
 
5
 
5
 .panelTitle{
6
 .panelTitle{

+ 5 - 4
utils/main.js

@@ -65,7 +65,7 @@ function getLocalHost(callback) {
65
   }
65
   }
66
 }
66
 }
67
 
67
 
68
-function payMoney(payType, money, detail, callback) {
68
+function payMoney(payType, buyType, money, detail, callback) {
69
   console.log(money);
69
   console.log(money);
70
   if (app.globalData.userInfo.UserID == 1)
70
   if (app.globalData.userInfo.UserID == 1)
71
     money = 0.01;
71
     money = 0.01;
@@ -77,7 +77,7 @@ function payMoney(payType, money, detail, callback) {
77
       if (res.code) {
77
       if (res.code) {
78
         console.log('获取用户登录态成功!' + res.code);
78
         console.log('获取用户登录态成功!' + res.code);
79
         //预支付
79
         //预支付
80
-        getData('HanziPayLogin?code=' + res.code + '&payType=' + payType + '&money=' + money + '&detail=' + detail + '&productID=' + app.globalData.ProgramID, function (data) {
80
+        getData('ProductPayLogin500?code=' + res.code + '&payType=' + payType + '&buyType=' + buyType + '&money=' + money + '&detail=' + detail + '&productID=' + app.globalData.ProgramID, function (data) {
81
           if (data && data.timeStamp) {
81
           if (data && data.timeStamp) {
82
             //微信支付
82
             //微信支付
83
             wx.requestPayment({
83
             wx.requestPayment({
@@ -118,6 +118,7 @@ function payMoney(payType, money, detail, callback) {
118
   });
118
   });
119
 }
119
 }
120
 
120
 
121
+
121
 function getProgramList() {
122
 function getProgramList() {
122
   return [
123
   return [
123
     {
124
     {
@@ -149,7 +150,7 @@ function getProgramList() {
149
       ImageUrl: "product_icon_sz_70x70.png",
150
       ImageUrl: "product_icon_sz_70x70.png",
150
       appId: 'wx313a8f2c0741efe1',
151
       appId: 'wx313a8f2c0741efe1',
151
       path: 'pages/index/index?SourceID=' + app.globalData.ProgramID,
152
       path: 'pages/index/index?SourceID=' + app.globalData.ProgramID,
152
-      IsShow: true,
153
+      IsShow: false,
153
       IsShow2: true,
154
       IsShow2: true,
154
       Category: "语文系列",
155
       Category: "语文系列",
155
     },
156
     },
@@ -160,7 +161,7 @@ function getProgramList() {
160
       ImageUrl: "product_icon_py_70x70.png",
161
       ImageUrl: "product_icon_py_70x70.png",
161
       appId: 'wx331e8dd070f01d0e',
162
       appId: 'wx331e8dd070f01d0e',
162
       path: 'pages/index/index?SourceID=' + app.globalData.ProgramID,
163
       path: 'pages/index/index?SourceID=' + app.globalData.ProgramID,
163
-      IsShow: false,
164
+      IsShow: true,
164
       IsShow2: true,
165
       IsShow2: true,
165
       Category: "语文系列",
166
       Category: "语文系列",
166
     },
167
     },