chengjie 7 vuotta sitten
vanhempi
commit
1a4f030c3b

+ 2 - 2
app.js

@@ -11,8 +11,8 @@ App({
11 11
     this.globalData.systemInfo = wx.getSystemInfoSync();
12 12
   },
13 13
   globalData: {
14
-    Version: "1.1.1",
15
-    IsProduction: false,
14
+    Version: "1.1.3",
15
+    IsProduction: true,
16 16
     ProgramID: 106,
17 17
     AppID: "wx313a8f2c0741efe1",
18 18
     ShareTitle:"赢在阅读起跑线",

BIN
images/02025.png


BIN
images/02028.png


+ 3 - 1
pages/about/membercenter.js

@@ -57,7 +57,9 @@ Page({
57 57
           });
58 58
         }
59 59
         else {
60
-          that.getAccredit();
60
+          wx.redirectTo({
61
+            url: '../about/payfinished?type=accredit',
62
+          });
61 63
         }
62 64
       }
63 65
     });

+ 2 - 2
pages/about/newuserlist.wxml

@@ -11,7 +11,7 @@
11 11
     </view>
12 12
   </view>
13 13
   <view class="text2">满6位新用户</view>
14
-  <view class="text3">可延长有效期3个月</view>
14
+  <view class="text3">可延长有效期1个月</view>
15 15
   <view class="text4">技巧:转发到家长群,又快又有效率。</view>
16 16
   <button class="btnParent FlexRow" open-type="share">
17 17
     <view class="btn" bindtap="">
@@ -19,7 +19,7 @@
19 19
     </view>
20 20
   </button>
21 21
   <view class="text5">活动细则</view>
22
-  <text class="text6">* 本活动仅对会员(付费用户)开放,推荐结果自成为会员后开始计算。奖品自动生效,在达到要求后有效期延长3个月。</text>
22
+  <text class="text6">* 本活动仅对会员(付费用户)开放,推荐结果自成为会员后开始计算。奖品自动生效,在达到要求后有效期延长1个月。</text>
23 23
   <text class="text7 text6">* “新用户”是指:从未打开过本小程序的微信帐号,经由您通过转发使对方打开小程序。</text>
24 24
 
25 25
 </view>

+ 18 - 5
pages/about/orderlist.js

@@ -20,7 +20,7 @@ Page({
20 20
         Name: "英语自然拼读",
21 21
         Remark: "原价19.80元,有效期6个月",
22 22
         Price: 1980,
23
-        Remark2: "成套购买加送6个月",
23
+        Remark2: "",
24 24
         Image: "06006",
25 25
         IsSelect: true,
26 26
       }, {
@@ -28,7 +28,7 @@ Page({
28 28
         Name: "语文汉语拼音",
29 29
         Remark: "原价9.90元,有效期6个月",
30 30
         Price: 990,
31
-        Remark2: "成套购买加送6个月",
31
+        Remark2: "",
32 32
         Image: "06007",
33 33
         IsSelect: true,
34 34
       }, {
@@ -36,7 +36,7 @@ Page({
36 36
         Name: "语文识字",
37 37
         Remark: "原价9.80元,有效期6个月",
38 38
         Price: 980,
39
-        Remark2: "成套购买加送6个月",
39
+        Remark2: "",
40 40
         Image: "06008",
41 41
         IsSelect: true,
42 42
       },
@@ -116,8 +116,21 @@ Page({
116 116
       }
117 117
       else {
118 118
         server.payMoney(4, money, detail, function (data) {
119
-          wx.navigateTo({
120
-            url: '../about/payfinished?type=all',
119
+          wx.setStorageSync("IsShowActivty", true);
120
+          var that = this;
121
+          wx.getSetting({
122
+            success(res) {
123
+              if (res.authSetting['scope.userInfo']) {
124
+                wx.navigateTo({
125
+                  url: '../about/payfinished?type=all',
126
+                });
127
+              }
128
+              else {
129
+                wx.navigateTo({
130
+                  url: '../about/payfinished?type=accredit',
131
+                });
132
+              }
133
+            }
121 134
           });
122 135
         });
123 136
       }

+ 4 - 2
pages/about/orderlist.wxml

@@ -11,7 +11,7 @@
11 11
       <view class="text FlexColumn">
12 12
         <view class="text1">{{item.Name}}</view>
13 13
         <view class="text2">{{item.Remark}}</view>
14
-        <view class="text3" wx:if="{{item.Remark2}}">{{item.Remark2}}</view>
14
+        <!-- <view class="text3" wx:if="{{item.Remark2}}">{{item.Remark2}}</view> -->
15 15
       </view>
16 16
     </view>
17 17
     <view class="text0 FlexRow" bindtap='gotoFeedback'>
@@ -19,6 +19,8 @@
19 19
       <view class="red">联系客服</view>
20 20
       <view>为您处理</view>
21 21
     </view>
22
+     <view style='width:100%;height:500rpx;' >
23
+    </view> 
22 24
   </view>
23 25
 
24 26
   <view class="bottom FlexColumn">
@@ -31,7 +33,7 @@
31 33
         <view class="right FlexColumn">
32 34
           <view class="text3 text2 FlexRow">原价
33 35
             <view class="total">{{Total}}</view> 元</view>
34
-          <view class="text2">{{Remark}}</view>
36
+           <view class="text2">{{Remark}}</view> 
35 37
         </view>
36 38
       </view>
37 39
       <view class="top FlexRow" wx:if="{{Total==0}}">

+ 0 - 1
pages/about/payfinished.js

@@ -26,7 +26,6 @@ Page({
26 26
         text1 = "激活后才能正常使用";
27 27
         text2 = "去激活";
28 28
         text3 = "注意:如遇网络问题未能解锁,请清理手机内存并重新打开微信小程序,一般即可恢复正常。如仍未解决,可通过首页底部“意见反馈”联系我们为您处理。";
29
-        wx.setStorageSync("IsShowActivty", true);
30 29
       }
31 30
     }
32 31
 

+ 4 - 1
pages/main/index.js

@@ -140,6 +140,7 @@ Page({
140 140
             app.globalData.userInfo.Code = res0.code;
141 141
             app.globalData.userInfo.iv = res.iv;
142 142
             app.globalData.userInfo.encryptedData = res.encryptedData;
143
+            
143 144
             that.login(app.globalData.userInfo);
144 145
           },
145 146
           fail: function (res) {
@@ -305,7 +306,9 @@ Page({
305 306
         IsRemind: false,
306 307
       })
307 308
       wx.setStorageSync('IsRemind', false);
308
-
309
+      wx.pageScrollTo({
310
+        scrollTop: 0
311
+      });
309 312
     }
310 313
   },
311 314
   goto: function (e) {

+ 1 - 1
pages/main/index.wxml

@@ -189,7 +189,7 @@ wx:if="{{IsMemberForeverRemind==1}}">
189 189
       <view class="panel1 FlexColumn">
190 190
         <image src='../../images/02023.png' class="img" />
191 191
         <view class="text1">恭喜你</view>
192
-        <view class="text2">获得3个月有效期</view>
192
+        <view class="text2">获得1个月有效期</view>
193 193
       </view>
194 194
       <view class="panel2 FlexColumn">
195 195
         知道了

+ 1 - 1
project.config.json

@@ -1,7 +1,7 @@
1 1
 {
2 2
 	"description": "项目配置文件。",
3 3
 	"setting": {
4
-		"urlCheck": false,
4
+		"urlCheck": true,
5 5
 		"es6": true,
6 6
 		"postcss": true,
7 7
 		"minified": true,

+ 1 - 1
utils/main.js

@@ -77,7 +77,7 @@ function payMoney(payType, money, detail, callback) {
77 77
       if (res.code) {
78 78
         console.log('获取用户登录态成功!' + res.code);
79 79
         //预支付
80
-        getData('HanziPayLogin?code=' + res.code + '&payType=' + payType + '&money=' + money + '&detail=' + detail, function (data) {
80
+        getData('HanziPayLogin?code=' + res.code + '&payType=' + payType + '&money=' + money + '&detail=' + detail + '&productID=' + app.globalData.ProgramID, function (data) {
81 81
           if (data && data.timeStamp) {
82 82
             //微信支付
83 83
             wx.requestPayment({