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

+ 1 - 1
app.js

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

+ 1 - 1
app.json

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

+ 1 - 3
pages/index/index.js

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

+ 2 - 1
pages/main/default.js

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

+ 1 - 1
pages/main/default.wxml

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

+ 1 - 1
pages/main/default.wxss

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

+ 1 - 0
pages/main/school.js

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

+ 2 - 2
pages/main/school.wxml

@@ -55,9 +55,9 @@
55 55
     <view style="height: 20rpx;"></view>
56 56
   </view>
57 57
 
58
-  <view class="panel114 panelBasicCss panelMain FlexColumn">
58
+  <view class="panel114 panelBasicCss panelMain FlexColumn" wx:if="{{Info.SchoolType1=='高中' && IsShow}}">
59 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 61
     <view wx:if="{{HasWish}}" class="btnMyWish btnMyWish2 FlexRow" bindtap="goto" data-url="./wishinfo">
62 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 502
 .panel11421_1{
503 503
   width:580rpx;
504
+  line-height:33rpx;
504 505
 }
505 506
 
506 507
 .avatar{
507
-  margin-top: 5rpx;
508 508
   border-radius: 50%;
509 509
   width:40rpx;
510 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 11
     InputValue: "",
12 12
     ToWhomIndex: 0,
13 13
     IsOpen: true,
14
+    IsShow:0,
14 15
   },
15 16
   onLoad: function (options) {
16 17
     var that = this;
18
+    
17 19
     that.setData({
18 20
       Containnerheight: main.getWindowHeight(),
21
+      IsShow:app.globalData.userInfo.IsShow,
19 22
       SchoolID: options.SchoolID,
20 23
       ID: 0,
21 24
       ArrToWhom: [{
@@ -27,6 +30,8 @@ Page({
27 30
       }],
28 31
     });
29 32
 
33
+    
34
+
30 35
     if (options.type == "edit") {
31 36
       var mywish = app.globalData.MyWish;
32 37
 
@@ -49,6 +54,12 @@ Page({
49 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 64
   onShow:function(){
54 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 2
   <view class="panelBasicCss panelMain FlexColumn">
3 3
     <view class="panelSchoolText08">祝福送给谁</view>
4 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 20
 .panel11421_1{
21 21
   width:620rpx;
22
-  line-height: 35rpx;
22
+  line-height: 33rpx;
23 23
   margin-top: 3rpx;
24 24
 }
25 25
 

+ 1 - 1
pages/main/wishinfo.wxml

@@ -12,7 +12,7 @@
12 12
   </view>
13 13
 
14 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 16
     <view class="line"></view>
17 17
   </block>
18 18