HuaJingwen 6 gadi atpakaļ
vecāks
revīzija
ced654abed

+ 0 - 7
app.json

@@ -4,7 +4,6 @@
4 4
     "pages/find/find",
5 5
     "pages/mine/mine",
6 6
     "pages/details/details",
7
-    "pages/card/card",
8 7
     "pages/questions/questions",
9 8
     "pages/feedback/feedback",
10 9
     "pages/application/application",
@@ -39,12 +38,6 @@
39 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 41
         "selectedIconPath": "pages/resource/image/mine-on.png",
49 42
         "iconPath": "pages/resource/image/mine.png",
50 43
         "pagePath": "pages/mine/mine",

+ 12 - 12
pages/application/application.js

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

+ 6 - 6
pages/application/application.wxml

@@ -1,22 +1,22 @@
1 1
 <import src="../template/template.wxml" />
2 2
 <view class="weui-tab application">
3
-    <view class="tab-container">
3
+    <!-- <view class="tab-container">
4 4
     <view class="weui-navbar">
5 5
         <block wx:for="{{tabs}}" wx:key="*this">
6 6
             <view id="{{index}}" class="weui-navbar__item {{activeIndex == index ? 'weui-bar__item_on' : ''}}" bindtap="tabClick">
7 7
                 <view class="weui-navbar__title">{{item}}</view>
8 8
             </view>
9 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 10
     </view>
11
+    </view> -->
13 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 15
             <template is="jiefItem3" data="{{dataList}}"/>
16 16
         </view>
17
-        <view class="weui-tab__content" hidden="{{activeIndex != 1}}">
17
+        <!-- <view class="weui-tab__content" hidden="{{activeIndex != 1}}">
18 18
             <template is="jiefItem4" data="{{cardList}}"/>
19
-        </view>
19
+        </view> -->
20 20
     </view>
21 21
     <view class="mask" hidden="{{hiddenThis}}">
22 22
       <view class="content">

+ 2 - 1
pages/application/application.wxss

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

+ 13 - 1
project.config.json

@@ -28,7 +28,7 @@
28 28
 			"list": []
29 29
 		},
30 30
 		"miniprogram": {
31
-			"current": -1,
31
+			"current": 1,
32 32
 			"list": [
33 33
 				{
34 34
 					"id": -1,
@@ -143,6 +143,18 @@
143 143
 					"name": "getIt",
144 144
 					"pathName": "pages/getIt/getIt",
145 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
 		}