chengjie 1 年之前
父节点
当前提交
52c9a7d188

+ 1 - 1
app.js

@@ -1,7 +1,7 @@
1
 // app.js
1
 // app.js
2
 App({
2
 App({
3
   globalData: {
3
   globalData: {
4
-    Version: "1.0.13",
4
+    Version: "1.0.15",
5
     IsProduction: true,
5
     IsProduction: true,
6
     ShareTitle: "上海中考招生信息查询工具",
6
     ShareTitle: "上海中考招生信息查询工具",
7
     SharePath: "pages/index/index",
7
     SharePath: "pages/index/index",

+ 1 - 1
app.json

@@ -3,9 +3,9 @@
3
     "pages/index/index",
3
     "pages/index/index",
4
     "pages/main/userinfo",
4
     "pages/main/userinfo",
5
     "pages/main/wishAll",
5
     "pages/main/wishAll",
6
-    "pages/main/wish",
7
     "pages/main/wishinfo",
6
     "pages/main/wishinfo",
8
     "pages/main/webview",
7
     "pages/main/webview",
8
+    "pages/main/wishAdd",
9
     "pages/main/docs",
9
     "pages/main/docs",
10
     "pages/main/search",
10
     "pages/main/search",
11
     "pages/main/collect",
11
     "pages/main/collect",

+ 1 - 3
pages/index/index.js

@@ -176,10 +176,8 @@ Page({
176
               isShow = 1;
176
               isShow = 1;
177
             }
177
             }
178
           }
178
           }
179
-
179
+          //debugger;
180
           app.globalData.userInfo.IsShow = isShow;
180
           app.globalData.userInfo.IsShow = isShow;
181
-          if (app.globalData.userInfo.IsMember == 1)
182
-            app.globalData.IsLocked = 0;
183
 
181
 
184
           wx.removeStorageSync("UserID");
182
           wx.removeStorageSync("UserID");
185
           wx.removeStorageSync("UserName");
183
           wx.removeStorageSync("UserName");

+ 2 - 1
pages/main/default.js

@@ -9,12 +9,13 @@ Page({
9
     ImagePath: app.globalData.uploadImageUrl,
9
     ImagePath: app.globalData.uploadImageUrl,
10
     ArticleList:constant.arrArticleList,
10
     ArticleList:constant.arrArticleList,
11
     District:constant.arrDistrict,  
11
     District:constant.arrDistrict,  
12
-    Version:app.globalData.Version,  
12
+    Version:app.globalData.Version,
13
   },
13
   },
14
   onLoad: function (options) {
14
   onLoad: function (options) {
15
     var that = this;
15
     var that = this;
16
     that.setData({
16
     that.setData({
17
       Containnerheight: main.getWindowHeight(),
17
       Containnerheight: main.getWindowHeight(),
18
+      IsShow:app.globalData.userInfo.IsShow,
18
     });
19
     });
19
 
20
 
20
     if (app.globalData.GotoUrl) {
21
     if (app.globalData.GotoUrl) {

+ 1 - 1
pages/main/default.wxml

@@ -34,7 +34,7 @@
34
       
34
       
35
     </view>
35
     </view>
36
 
36
 
37
-    <view class="panel114 FlexColumn">
37
+    <view class="panel114 FlexColumn" wx:if="{{IsShow}}">
38
       <view class="panel1141 FlexColumn">
38
       <view class="panel1141 FlexColumn">
39
         <view class="text12">中考祝福</view>
39
         <view class="text12">中考祝福</view>
40
         <view class="line06"></view>
40
         <view class="line06"></view>

+ 1 - 1
pages/main/default.wxss

@@ -200,10 +200,10 @@
200
 }
200
 }
201
 .panel11421_1{
201
 .panel11421_1{
202
   width:540rpx;
202
   width:540rpx;
203
+  line-height: 33rpx;
203
 }
204
 }
204
 
205
 
205
 .avatar{
206
 .avatar{
206
-  margin-top: 5rpx;
207
   border-radius: 50%;
207
   border-radius: 50%;
208
   width:40rpx;
208
   width:40rpx;
209
   height:40rpx;
209
   height:40rpx;

+ 1 - 0
pages/main/school.js

@@ -19,6 +19,7 @@ Page({
19
     var that = this;
19
     var that = this;
20
     that.setData({
20
     that.setData({
21
       Containnerheight: main.getWindowHeight(),
21
       Containnerheight: main.getWindowHeight(),
22
+      IsShow:app.globalData.userInfo.IsShow,
22
       SchoolID:options.ID,
23
       SchoolID:options.ID,
23
       IsCollect:false,
24
       IsCollect:false,
24
       HasWish:false,
25
       HasWish:false,

+ 2 - 2
pages/main/school.wxml

@@ -55,9 +55,9 @@
55
     <view style="height: 20rpx;"></view>
55
     <view style="height: 20rpx;"></view>
56
   </view>
56
   </view>
57
 
57
 
58
-  <view class="panel114 panelBasicCss panelMain FlexColumn">
58
+  <view class="panel114 panelBasicCss panelMain FlexColumn" wx:if="{{Info.SchoolType1=='高中' && IsShow}}">
59
     <view class="panelSchoolText08">中考祝福</view>
59
     <view class="panelSchoolText08">中考祝福</view>
60
-    <view wx:if="{{!HasWish}}" class="btnMyWish FlexRow" bindtap="goto" data-url="./wish?SchoolID={{Info.ID}}">我要祝福</view>
60
+    <view wx:if="{{!HasWish}}" class="btnMyWish FlexRow" bindtap="goto" data-url="./wishAdd?SchoolID={{Info.ID}}">我要祝福</view>
61
     <view wx:if="{{HasWish}}" class="btnMyWish btnMyWish2 FlexRow" bindtap="goto" data-url="./wishinfo">
61
     <view wx:if="{{HasWish}}" class="btnMyWish btnMyWish2 FlexRow" bindtap="goto" data-url="./wishinfo">
62
       <image class="icon_share_03" src="../images/icon_share_03.png"></image>
62
       <image class="icon_share_03" src="../images/icon_share_03.png"></image>
63
       我的福帖
63
       我的福帖

+ 1 - 1
pages/main/school.wxss

@@ -501,10 +501,10 @@
501
 }
501
 }
502
 .panel11421_1{
502
 .panel11421_1{
503
   width:580rpx;
503
   width:580rpx;
504
+  line-height:33rpx;
504
 }
505
 }
505
 
506
 
506
 .avatar{
507
 .avatar{
507
-  margin-top: 5rpx;
508
   border-radius: 50%;
508
   border-radius: 50%;
509
   width:40rpx;
509
   width:40rpx;
510
   height:40rpx;
510
   height:40rpx;

+ 0 - 3
pages/main/wish.json

@@ -1,3 +0,0 @@
1
-{
2
-  "navigationBarTitleText": "中考祝福"
3
-}

+ 11 - 0
pages/main/wish.js

@@ -11,11 +11,14 @@ Page({
11
     InputValue: "",
11
     InputValue: "",
12
     ToWhomIndex: 0,
12
     ToWhomIndex: 0,
13
     IsOpen: true,
13
     IsOpen: true,
14
+    IsShow:0,
14
   },
15
   },
15
   onLoad: function (options) {
16
   onLoad: function (options) {
16
     var that = this;
17
     var that = this;
18
+    
17
     that.setData({
19
     that.setData({
18
       Containnerheight: main.getWindowHeight(),
20
       Containnerheight: main.getWindowHeight(),
21
+      IsShow:app.globalData.userInfo.IsShow,
19
       SchoolID: options.SchoolID,
22
       SchoolID: options.SchoolID,
20
       ID: 0,
23
       ID: 0,
21
       ArrToWhom: [{
24
       ArrToWhom: [{
@@ -27,6 +30,8 @@ Page({
27
       }],
30
       }],
28
     });
31
     });
29
 
32
 
33
+    
34
+
30
     if (options.type == "edit") {
35
     if (options.type == "edit") {
31
       var mywish = app.globalData.MyWish;
36
       var mywish = app.globalData.MyWish;
32
 
37
 
@@ -49,6 +54,12 @@ Page({
49
         ID: mywish.ID,
54
         ID: mywish.ID,
50
       });
55
       });
51
     }
56
     }
57
+
58
+    if (app.globalData.userInfo.IsShow){
59
+      wx.setNavigationBarTitle({
60
+        title: "中考祝福",
61
+      });
62
+    }
52
   },
63
   },
53
   onShow:function(){
64
   onShow:function(){
54
     if (app.globalData.TempParam=="return"){
65
     if (app.globalData.TempParam=="return"){

+ 3 - 0
pages/main/wishAdd.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": ""
3
+}

+ 1 - 1
pages/main/wish.wxml

@@ -1,4 +1,4 @@
1
-<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
1
+<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;' wx:if="{{IsShow}}">
2
   <view class="panelBasicCss panelMain FlexColumn">
2
   <view class="panelBasicCss panelMain FlexColumn">
3
     <view class="panelSchoolText08">祝福送给谁</view>
3
     <view class="panelSchoolText08">祝福送给谁</view>
4
     <view class="panel11 FlexRow">
4
     <view class="panel11 FlexRow">

pages/main/wish.wxss → pages/main/wishAdd.wxss


+ 1 - 1
pages/main/wishAll.wxss

@@ -19,7 +19,7 @@
19
 }
19
 }
20
 .panel11421_1{
20
 .panel11421_1{
21
   width:620rpx;
21
   width:620rpx;
22
-  line-height: 35rpx;
22
+  line-height: 33rpx;
23
   margin-top: 3rpx;
23
   margin-top: 3rpx;
24
 }
24
 }
25
 
25
 

+ 1 - 1
pages/main/wishinfo.wxml

@@ -12,7 +12,7 @@
12
   </view>
12
   </view>
13
 
13
 
14
   <block wx:if="{{MyWish.UserID==UserID && !IsShare}}">
14
   <block wx:if="{{MyWish.UserID==UserID && !IsShare}}">
15
-    <view class="text05" bindtap="gotoRedirectTo" data-url="./wish?type=edit">修改祝福</view>
15
+    <view class="text05" bindtap="gotoRedirectTo" data-url="./wishAdd?type=edit">修改祝福</view>
16
     <view class="line"></view>
16
     <view class="line"></view>
17
   </block>
17
   </block>
18
  
18