Browse Source

hide card

HuaJingwen 6 years ago
parent
commit
ced654abed

+ 0 - 7
app.json

4
     "pages/find/find",
4
     "pages/find/find",
5
     "pages/mine/mine",
5
     "pages/mine/mine",
6
     "pages/details/details",
6
     "pages/details/details",
7
-    "pages/card/card",
8
     "pages/questions/questions",
7
     "pages/questions/questions",
9
     "pages/feedback/feedback",
8
     "pages/feedback/feedback",
10
     "pages/application/application",
9
     "pages/application/application",
39
         "text": "发现"
38
         "text": "发现"
40
       },
39
       },
41
       {
40
       {
42
-        "selectedIconPath": "pages/resource/image/card-on.png",
43
-        "iconPath": "pages/resource/image/card.png",
44
-        "pagePath": "pages/card/card",
45
-        "text": "信用卡"
46
-      },
47
-      {
48
         "selectedIconPath": "pages/resource/image/mine-on.png",
41
         "selectedIconPath": "pages/resource/image/mine-on.png",
49
         "iconPath": "pages/resource/image/mine.png",
42
         "iconPath": "pages/resource/image/mine.png",
50
         "pagePath": "pages/mine/mine",
43
         "pagePath": "pages/mine/mine",

+ 12 - 12
pages/application/application.js

6
     page: 0,
6
     page: 0,
7
     dataList: [],
7
     dataList: [],
8
     cardList: [],
8
     cardList: [],
9
-    tabs: ["借款申请", "信用卡申请"],
10
-    activeIndex: 0,
9
+    // tabs: ["借款申请", "信用卡申请"],
10
+    // activeIndex: 0,
11
     hidden: false,
11
     hidden: false,
12
     hiddenThis: true,
12
     hiddenThis: true,
13
     appid: 0
13
     appid: 0
91
       }
91
       }
92
     });
92
     });
93
   },
93
   },
94
-  tabClick: function (e) {
94
+ /* tabClick: function (e) {
95
       var id = e.currentTarget.id;
95
       var id = e.currentTarget.id;
96
       this.setData({
96
       this.setData({
97
           activeIndex: id,
97
           activeIndex: id,
104
       }else{
104
       }else{
105
         this.initCardList();
105
         this.initCardList();
106
       }
106
       }
107
-  },
107
+  },*/
108
   onPullDownRefresh: function () {
108
   onPullDownRefresh: function () {
109
     //下拉
109
     //下拉
110
     this.data.page = 0;
110
     this.data.page = 0;
111
     setTimeout(() => {
111
     setTimeout(() => {
112
-        if (this.data.activeIndex == 0) {
113
           this.initApplication();
112
           this.initApplication();
114
-        }else{
115
-          this.initCardList();
116
-        }
113
+        // if (this.data.activeIndex == 0) {
114
+        // }else{
115
+        //   this.initCardList();
116
+        // }
117
     }, 600)
117
     }, 600)
118
   },
118
   },
119
   onReachBottom: function () {
119
   onReachBottom: function () {
120
     //上拉
120
     //上拉
121
-    if (this.data.activeIndex == 0) {
122
       this.initApplication();
121
       this.initApplication();
123
-    }else{
124
-      this.initCardList();
125
-    }
122
+    // if (this.data.activeIndex == 0) {
123
+    // }else{
124
+    //   this.initCardList();
125
+    // }
126
   },
126
   },
127
   onHide () {
127
   onHide () {
128
     this.setData({hiddenThis: true})
128
     this.setData({hiddenThis: true})

+ 6 - 6
pages/application/application.wxml

1
 <import src="../template/template.wxml" />
1
 <import src="../template/template.wxml" />
2
 <view class="weui-tab application">
2
 <view class="weui-tab application">
3
-    <view class="tab-container">
3
+    <!-- <view class="tab-container">
4
     <view class="weui-navbar">
4
     <view class="weui-navbar">
5
         <block wx:for="{{tabs}}" wx:key="*this">
5
         <block wx:for="{{tabs}}" wx:key="*this">
6
             <view id="{{index}}" class="weui-navbar__item {{activeIndex == index ? 'weui-bar__item_on' : ''}}" bindtap="tabClick">
6
             <view id="{{index}}" class="weui-navbar__item {{activeIndex == index ? 'weui-bar__item_on' : ''}}" bindtap="tabClick">
7
                 <view class="weui-navbar__title">{{item}}</view>
7
                 <view class="weui-navbar__title">{{item}}</view>
8
             </view>
8
             </view>
9
         </block>
9
         </block>
10
-        <!-- <view class="weui-navbar__slider" style="left: {{sliderLeft}}px; transform: translateX({{sliderOffset}}px); -webkit-transform: translateX({{sliderOffset}}px);"></view> -->
11
-    </view>
12
     </view>
10
     </view>
11
+    </view> -->
13
     <view class="weui-tab__panel">
12
     <view class="weui-tab__panel">
14
-        <view class="weui-tab__content" hidden="{{activeIndex != 0}}">
13
+        <!-- hidden="{{activeIndex != 0}}" -->
14
+        <view class="weui-tab__content">
15
             <template is="jiefItem3" data="{{dataList}}"/>
15
             <template is="jiefItem3" data="{{dataList}}"/>
16
         </view>
16
         </view>
17
-        <view class="weui-tab__content" hidden="{{activeIndex != 1}}">
17
+        <!-- <view class="weui-tab__content" hidden="{{activeIndex != 1}}">
18
             <template is="jiefItem4" data="{{cardList}}"/>
18
             <template is="jiefItem4" data="{{cardList}}"/>
19
-        </view>
19
+        </view> -->
20
     </view>
20
     </view>
21
     <view class="mask" hidden="{{hiddenThis}}">
21
     <view class="mask" hidden="{{hiddenThis}}">
22
       <view class="content">
22
       <view class="content">

+ 2 - 1
pages/application/application.wxss

46
 .application{
46
 .application{
47
 }
47
 }
48
 .application .weui-tab__panel{
48
 .application .weui-tab__panel{
49
-  padding-top: 60px;
49
+  /*padding-top: 60px;*/
50
+  padding-top: 0px;
50
 }
51
 }
51
 .application .weui-navbar{
52
 .application .weui-navbar{
52
   position: relative;
53
   position: relative;

+ 13 - 1
project.config.json

28
 			"list": []
28
 			"list": []
29
 		},
29
 		},
30
 		"miniprogram": {
30
 		"miniprogram": {
31
-			"current": -1,
31
+			"current": 1,
32
 			"list": [
32
 			"list": [
33
 				{
33
 				{
34
 					"id": -1,
34
 					"id": -1,
143
 					"name": "getIt",
143
 					"name": "getIt",
144
 					"pathName": "pages/getIt/getIt",
144
 					"pathName": "pages/getIt/getIt",
145
 					"query": ""
145
 					"query": ""
146
+				},
147
+				{
148
+					"id": -1,
149
+					"name": "app",
150
+					"pathName": "pages/application/application",
151
+					"query": ""
152
+				},
153
+				{
154
+					"id": -1,
155
+					"name": "app",
156
+					"pathName": "pages/getPhone/getPhone",
157
+					"query": ""
146
 				}
158
 				}
147
 			]
159
 			]
148
 		}
160
 		}