chengjie 5 年之前
父節點
當前提交
61a6ebc090
共有 9 個文件被更改,包括 204 次插入160 次删除
  1. 1 1
      app.js
  2. 16 0
      pages/main/default.js
  3. 13 4
      pages/main/default.wxml
  4. 6 4
      pages/main/default.wxss
  5. 1 1
      pages/main/searchWeb2.js
  6. 23 10
      pages/other/newuser.js
  7. 4 4
      pages/other/userbook.wxml
  8. 1 1
      pages/test/list.wxml
  9. 139 135
      project.config.json

+ 1 - 1
app.js

@@ -1,6 +1,6 @@
1 1
 App({
2 2
   globalData: {
3
-    Version: "1.6.23",
3
+    Version: "1.6.25",
4 4
     IsProduction: true,
5 5
     ShareTitle: "高效学习从秒过开始",
6 6
     SharePath: "pages/index/index",

+ 16 - 0
pages/main/default.js

@@ -15,6 +15,7 @@ Page({
15 15
     IsIPhoneX: app.globalData.IsIPhoneX,
16 16
     ImagePath: app.globalData.uploadImageUrl,
17 17
     IsShowUserID: false,
18
+    VersionID:app.globalData.Version,
18 19
   },
19 20
   onPullDownRefresh: function () {
20 21
     wx.redirectTo({
@@ -326,6 +327,11 @@ Page({
326 327
         ChangeIntroducerUserID: id,
327 328
       });
328 329
     }
330
+    else if (usertype=="versionid"){
331
+      that.setData({
332
+        VersoinID: id,
333
+      });
334
+    }
329 335
   },
330 336
   setSelectUser: function (e) {
331 337
     var that = this;
@@ -407,6 +413,16 @@ Page({
407 413
       }
408 414
     }
409 415
   },
416
+  setVersionStart:function(e){
417
+    var flag=e.currentTarget.dataset.flag;
418
+    var versionid=e.currentTarget.dataset.versionid;
419
+    var url = "UpdateVersionStatus?ProgramID=166&Version="+versionid+"&Flag=" + flag;
420
+    main.getData(url, function (data) {
421
+      wx.showToast({
422
+        title: '修改成功!',
423
+      })
424
+    });
425
+  },
410 426
   onShareAppMessage: function () {
411 427
     return {
412 428
       title: app.globalData.ShareTitle,

+ 13 - 4
pages/main/default.wxml

@@ -73,11 +73,15 @@
73 73
 </view>
74 74
 
75 75
 <view wx:if="{{IsShowUserID}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
76
-    <input class='input' type="number" value="{{ChangeUserID}}" bindinput="onKeyInput" data-type="userid" />
77
-    <button class="btnShowUserID" bindtap="setSelectUser">查看用户数据</button>
76
+    <view class="panel2 FlexRow">
77
+    <input class='input2 input' type="number" value="{{ChangeUserID}}" bindinput="onKeyInput" data-type="userid" />
78
+    <button class="btn2" bindtap="setSelectUser">查看用户</button>
79
+    </view>
78 80
     <view style="height:50rpx;"></view>
79
-    <button class="btnShowUserID" bindtap="goto" data-url="../other/webview?PageID=9999">网页访问钥匙</button>
81
+    <view class="panel2 FlexRow">
82
+    <button class="btnShowUserID" bindtap="goto" data-url="../other/webview?PageID=9999">钥匙</button>
80 83
     <button class="btnShowUserID" bindtap="goto" data-url="../other/webviewInterior">访问统计网页</button>
84
+    </view>
81 85
     <view style="height:50rpx;"></view>
82 86
     <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
83 87
     <view style="height:50rpx;"></view>
@@ -98,6 +102,11 @@
98 102
       <view  class="NickName2">{{IntroducerNickName}}</view>
99 103
     </view>
100 104
     <button class="btnShowUserID" bindtap="setUserIntroducer">更改用户介绍人</button>
101
-    
105
+    <view style="height:50rpx;"></view>
106
+    <view class="panel2 FlexRow">
107
+      <input class='input2 input' type="number" placeholder="版本号" value="{{VersionID}}" bindinput="onKeyInput" data-type="versionid"/>
108
+      <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="1">开通</button>
109
+      <button class="btn2" bindtap="setVersionStart" data-versionid="{{VersionID}}" data-flag="-1">关闭</button>
110
+    </view>
102 111
 </view>
103 112
 

+ 6 - 4
pages/main/default.wxss

@@ -280,14 +280,16 @@
280 280
 }
281 281
 .input2{
282 282
   width: 200rpx;
283
+  height:65rpx;
283 284
   margin-top: 0rpx;
284 285
   margin-left: 10rpx;
286
+  font-size:28rpx;
285 287
 }
286 288
 .btnShowUserID{
287
-  margin-top: 30rpx;
289
+  margin:30rpx 5rpx;
290
+  font-size: 26rpx;
288 291
 }
289 292
 .btn2{
290
-  height:50rpx;
291
-  font-size: 22rpx;
292
-  margin:0 10rpx 0 10rpx;
293
+  font-size: 26rpx;
294
+  margin:0 0 0 10rpx;
293 295
 }

+ 1 - 1
pages/main/searchWeb2.js

@@ -162,7 +162,7 @@ Page({
162 162
                     str = "[读 src='" + item.SoundMark + "']" + item.Content + "[/读]";
163 163
                 }
164 164
                 else
165
-                  str = "[读]" + item.Content + "[/读]";
165
+                  str = "[读 src='"+this.data.Result.CHN.HanZi+"("+ main.getPinyinNormal(item.Content) +")"+"']" + item.Content + "[/读]";
166 166
               }
167 167
             }
168 168
             else {

+ 23 - 10
pages/other/newuser.js

@@ -10,16 +10,26 @@ Page({
10 10
   },
11 11
   onLoad: function (options) {
12 12
     var that = this;
13
-    that.setData({
14
-      Containnerheight: main.getWindowHeight(),
15
-    });
16
-    that.init();
17
-
18
-    wx.setNavigationBarColor({
19
-      frontColor: "#ffffff",
20
-      backgroundColor: "#9BD41C",
13
+    wx.getSetting({
14
+      success(res) {
15
+        if (res.authSetting['scope.userInfo'] || app.globalData.userInfo.IsShow == 0) {
16
+          that.setData({
17
+            Containnerheight: main.getWindowHeight(),
18
+          });
19
+      
20
+          that.init();
21
+          wx.setNavigationBarColor({
22
+            frontColor: "#ffffff",
23
+            backgroundColor: "#9BD41C",
24
+          });
25
+        }
26
+        else {
27
+          wx.navigateTo({
28
+            url: '../index/accredit',
29
+          });
30
+        }
31
+      }
21 32
     });
22
-
23 33
   },
24 34
   init: function () {
25 35
     var that = this;
@@ -35,7 +45,10 @@ Page({
35 45
     var that = this;
36 46
     var money = 1;
37 47
     var detail = {};
38
-      
48
+    detail.UserID = app.globalData.userInfo.UserID;
49
+    detail.Introducer = app.globalData.userInfo.Introducer;
50
+    detail.PayType=9;
51
+    detail = JSON.stringify(detail);
39 52
     //console.log(detail);
40 53
     //console.log(money);
41 54
     var remark = null;

+ 4 - 4
pages/other/userbook.wxml

@@ -31,12 +31,12 @@
31 31
         <view>优惠券</view>
32 32
       </view>
33 33
 
34
-      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayUserID={{UserID}}&PayType=6" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) }}">
34
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayUserID={{UserID}}&PayType=6" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) && !ChildUserID }}">
35 35
         <image class="usermanual_index_handshake" src='../images/usermanual_index_wallet.png' />
36 36
         <view>去续费</view>
37 37
       </view>
38 38
       
39
-      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayUserID={{UserID}}&PayType=6&EndDate={{EndDate}}" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==1 && !IsLoseEfficacy) }}">
39
+      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayUserID={{UserID}}&PayType=6&EndDate={{EndDate}}" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==1 && !IsLoseEfficacy) && !ChildUserID }}">
40 40
         <image class="usermanual_index_handshake" src='../images/usermanual_index_wallet.png' />
41 41
         <view>去续费</view>
42 42
       </view>
@@ -104,7 +104,7 @@
104 104
       </view>
105 105
     </block>
106 106
 
107
-    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && IsPay==0}}">
107
+    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && IsPay==0 && !ChildUserID}}">
108 108
       <view class="panelItem FlexColumn">
109 109
         <image class="salesactivity_a04_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a04_usermanual_banner_header.png' />
110 110
         <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}">续费</view>
@@ -112,7 +112,7 @@
112 112
       <view class='lineFooter'></view>
113 113
     </block>
114 114
 
115
-    <block wx:if="{{IsShow==1 && PanelShow===2 && IsPay==0 && ClassDayNumber>=(ClassTotalDayNumber-4) && ClassDayNumber<ClassTotalDayNumber}}">
115
+    <block wx:if="{{IsShow==1 && PanelShow===2 && IsPay==0 && ClassDayNumber>=(ClassTotalDayNumber-4) && ClassDayNumber<ClassTotalDayNumber && !ChildUserID}}">
116 116
       <view class="panelItem FlexColumn">
117 117
         <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
118 118
         <view class="text9">活动日期:{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>

+ 1 - 1
pages/test/list.wxml

@@ -88,7 +88,7 @@
88 88
 				<image src="../images/universalpic_words_blue_30x30.png" class="universalpic_word_blue_30x30" />
89 89
 				<view class="SelectContainer1Text4">查看词表</view>
90 90
 			</view>
91
-			<view class="btnPanel1">说出单词在句子中的含义</view>
91
+			<view class="btnPanel1">念出单词的发音并说出含义</view>
92 92
 			<view class="btnPanel0 btnPanel FlexRow">
93 93
 				<view wx:if="{{SelectItem.TestTypeReadFinished}}" class="btn FlexRow" bindtap="gotoTestReportInfo" data-id="{{SelectItem.ReadReportID}}" data-url="./item?testtype=read&bookid={{BookID}}&unitsid={{SelectItem.ID}}&name1={{Name1}}&name2={{SelectItem.Name}}">
94 94
 					<view class="SelectContainer1Text3">开始检验</view>

+ 139 - 135
project.config.json

@@ -1,137 +1,141 @@
1 1
 {
2
-	"description": "项目配置文件",
3
-	"packOptions": {
4
-		"ignore": []
5
-	},
6
-	"setting": {
7
-		"urlCheck": false,
8
-		"es6": true,
9
-		"enhance": true,
10
-		"postcss": true,
11
-		"preloadBackgroundData": false,
12
-		"minified": true,
13
-		"newFeature": true,
14
-		"autoAudits": false,
15
-		"scopeDataCheck": false,
16
-		"uglifyFileName": false,
17
-		"checkInvalidKey": true,
18
-		"checkSiteMap": true,
19
-		"uploadWithSourceMap": true,
20
-		"compileHotReLoad": false,
21
-		"babelSetting": {
22
-			"ignore": [],
23
-			"disablePlugins": [],
24
-			"outputPath": ""
25
-		},
26
-		"useIsolateContext": true,
27
-		"useCompilerModule": false,
28
-		"userConfirmedUseCompilerModuleSwitch": false
29
-	},
30
-	"compileType": "miniprogram",
31
-	"libVersion": "2.11.3",
32
-	"appid": "wx84b3feac6069eec3",
33
-	"projectname": "miaoguo_master",
34
-	"debugOptions": {
35
-		"hidedInDevtools": []
36
-	},
37
-	"isGameTourist": false,
38
-	"simulatorType": "wechat",
39
-	"simulatorPluginLibVersion": {},
40
-	"condition": {
41
-		"search": {
42
-			"current": -1,
43
-			"list": []
44
-		},
45
-		"conversation": {
46
-			"current": -1,
47
-			"list": []
48
-		},
49
-		"plugin": {
50
-			"current": -1,
51
-			"list": []
52
-		},
53
-		"game": {
54
-			"currentL": -1,
55
-			"list": []
56
-		},
57
-		"gamePlugin": {
58
-			"current": -1,
59
-			"list": []
60
-		},
61
-		"miniprogram": {
62
-			"current": 7,
63
-			"list": [
64
-				{
65
-					"id": 0,
66
-					"name": "分享",
67
-					"pathName": "pages/index/index",
68
-					"query": "UserID=1&type=share&MiaoguoCardID=71228",
69
-					"scene": null
70
-				},
71
-				{
72
-					"id": 1,
73
-					"name": "pages/index/index",
74
-					"pathName": "pages/index/index",
75
-					"query": "type=activity&ActivityID=2&EndTime=2019年10月07日&EarlyBirdTimeStart=2019年09月23日&EarlyBirdTimeEnd=2019年10月05日",
76
-					"scene": 1007
77
-				},
78
-				{
79
-					"id": 3,
80
-					"name": "webview",
81
-					"pathName": "pages/other/webview",
82
-					"query": "UserID=1",
83
-					"scene": 1001
84
-				},
85
-				{
86
-					"id": 4,
87
-					"name": "pages/other/activity",
88
-					"pathName": "pages/other/activity",
89
-					"query": "EndTime=2019-09-01",
90
-					"scene": 1001
91
-				},
92
-				{
93
-					"id": 4,
94
-					"name": "pages/other/paycustom",
95
-					"pathName": "pages/other/paycustom",
96
-					"query": "",
97
-					"scene": null
98
-				},
99
-				{
100
-					"id": 6,
101
-					"name": "用户手册",
102
-					"pathName": "pages/index/index",
103
-					"query": "type=userbook",
104
-					"scene": null
105
-				},
106
-				{
107
-					"id": 6,
108
-					"name": "pages/index/index",
109
-					"pathName": "pages/index/index",
110
-					"query": "type=paycontinue&EndDate=2020-09-15",
111
-					"scene": null
112
-				},
113
-				{
114
-					"id": 7,
115
-					"name": "pages/test/index",
116
-					"pathName": "pages/test/index",
117
-					"query": "UserID=1",
118
-					"scene": null
119
-				},
120
-				{
121
-					"id": 8,
122
-					"name": "pages/index/index",
123
-					"pathName": "pages/index/index",
124
-					"query": "type=paycustom&PayUserID=1&DayNumber=365&Price=199&Remark=111",
125
-					"scene": 1007
126
-				},
127
-				{
128
-					"id": 9,
129
-					"name": "pages/marketing/award",
130
-					"pathName": "pages/marketing/award",
131
-					"query": "",
132
-					"scene": null
133
-				}
134
-			]
135
-		}
136
-	}
2
+  "description": "项目配置文件",
3
+  "packOptions": {
4
+    "ignore": []
5
+  },
6
+  "setting": {
7
+    "urlCheck": false,
8
+    "es6": true,
9
+    "enhance": true,
10
+    "postcss": true,
11
+    "preloadBackgroundData": false,
12
+    "minified": true,
13
+    "newFeature": true,
14
+    "autoAudits": false,
15
+    "scopeDataCheck": false,
16
+    "uglifyFileName": false,
17
+    "checkInvalidKey": true,
18
+    "checkSiteMap": true,
19
+    "uploadWithSourceMap": true,
20
+    "compileHotReLoad": false,
21
+    "babelSetting": {
22
+      "ignore": [],
23
+      "disablePlugins": [],
24
+      "outputPath": ""
25
+    },
26
+    "useIsolateContext": true,
27
+    "useCompilerModule": true,
28
+    "userConfirmedUseCompilerModuleSwitch": false,
29
+    "packNpmManually": false,
30
+    "packNpmRelationList": [],
31
+    "useMultiFrameRuntime": false,
32
+    "useApiHook": false
33
+  },
34
+  "compileType": "miniprogram",
35
+  "libVersion": "2.11.3",
36
+  "appid": "wx84b3feac6069eec3",
37
+  "projectname": "miaoguo_master",
38
+  "debugOptions": {
39
+    "hidedInDevtools": []
40
+  },
41
+  "isGameTourist": false,
42
+  "simulatorType": "wechat",
43
+  "simulatorPluginLibVersion": {},
44
+  "condition": {
45
+    "search": {
46
+      "current": -1,
47
+      "list": []
48
+    },
49
+    "conversation": {
50
+      "current": -1,
51
+      "list": []
52
+    },
53
+    "plugin": {
54
+      "current": -1,
55
+      "list": []
56
+    },
57
+    "game": {
58
+      "currentL": -1,
59
+      "list": []
60
+    },
61
+    "gamePlugin": {
62
+      "current": -1,
63
+      "list": []
64
+    },
65
+    "miniprogram": {
66
+      "current": 7,
67
+      "list": [
68
+        {
69
+          "id": 0,
70
+          "name": "分享",
71
+          "pathName": "pages/index/index",
72
+          "query": "UserID=1&type=share&MiaoguoCardID=71228",
73
+          "scene": null
74
+        },
75
+        {
76
+          "id": 1,
77
+          "name": "pages/index/index",
78
+          "pathName": "pages/index/index",
79
+          "query": "type=activity&ActivityID=2&EndTime=2019年10月07日&EarlyBirdTimeStart=2019年09月23日&EarlyBirdTimeEnd=2019年10月05日",
80
+          "scene": 1007
81
+        },
82
+        {
83
+          "id": 3,
84
+          "name": "webview",
85
+          "pathName": "pages/other/webview",
86
+          "query": "UserID=1",
87
+          "scene": 1001
88
+        },
89
+        {
90
+          "id": 4,
91
+          "name": "pages/other/activity",
92
+          "pathName": "pages/other/activity",
93
+          "query": "EndTime=2019-09-01",
94
+          "scene": 1001
95
+        },
96
+        {
97
+          "id": 4,
98
+          "name": "pages/other/paycustom",
99
+          "pathName": "pages/other/paycustom",
100
+          "query": "",
101
+          "scene": null
102
+        },
103
+        {
104
+          "id": 6,
105
+          "name": "用户手册",
106
+          "pathName": "pages/index/index",
107
+          "query": "type=userbook",
108
+          "scene": null
109
+        },
110
+        {
111
+          "id": 6,
112
+          "name": "pages/index/index",
113
+          "pathName": "pages/index/index",
114
+          "query": "type=paycontinue&EndDate=2020-09-15",
115
+          "scene": null
116
+        },
117
+        {
118
+          "id": 7,
119
+          "name": "pages/test/index",
120
+          "pathName": "pages/test/index",
121
+          "query": "UserID=1",
122
+          "scene": null
123
+        },
124
+        {
125
+          "id": 8,
126
+          "name": "pages/index/index",
127
+          "pathName": "pages/index/index",
128
+          "query": "type=paycustom&PayUserID=1&DayNumber=365&Price=199&Remark=111",
129
+          "scene": 1007
130
+        },
131
+        {
132
+          "id": 9,
133
+          "name": "pages/marketing/award",
134
+          "pathName": "pages/marketing/award",
135
+          "query": "",
136
+          "scene": null
137
+        }
138
+      ]
139
+    }
140
+  }
137 141
 }