소스 검색

Merge branch 'master' of gitpfg.pinfangw.com:gaofangming/yhb

chenxiaofeng 5 년 전
부모
커밋
cb6f3ed715
4개의 변경된 파일96개의 추가작업 그리고 37개의 파일을 삭제
  1. 17 17
      app.js
  2. 2 2
      app.json
  3. 11 11
      pages/personal_core/requirements/requirements.js
  4. 66 7
      pages/personal_core/requirements/requirements.wxml

+ 17 - 17
app.js

@@ -12,23 +12,23 @@ App({
12 12
       console.log(wx.getStorageSync('access_token'), '注册');
13 13
       console.log(wx.getStorageSync('wx_id'), '授权');
14 14
       
15
-        // if (wx.getStorageSync('access_token')) {   //是否注册过
16
-        //   console.log('列表页');
17
-        //   wx.reLaunch({
18
-        //     url: '/pages/index/index'        //注册过 进入首页
19
-        //   })
20
-
21
-        // } else if (wx.getStorageSync('wx_id')) {  //是否授权
22
-        //   console.log('登陆页');
23
-        //   wx.reLaunch({
24
-        //     url: '/pages/Landpage/Land/Land'    //授权过 进入登陆页
25
-        //   })
26
-        // } else {
27
-        //   console.log('授权页');
28
-        //   wx.reLaunch({
29
-        //     url: '/pages/Jurisdiction/click_Jurisdiction/click_Jurisdiction'   //未授权  进入授权页
30
-        //   })
31
-        // }
15
+        if (wx.getStorageSync('access_token')) {   //是否注册过
16
+          console.log('列表页');
17
+          wx.reLaunch({
18
+            url: '/pages/index/index'        //注册过 进入首页
19
+          })
20
+
21
+        } else if (wx.getStorageSync('wx_id')) {  //是否授权
22
+          console.log('登陆页');
23
+          wx.reLaunch({
24
+            url: '/pages/Landpage/Land/Land'    //授权过 进入登陆页
25
+          })
26
+        } else {
27
+          console.log('授权页');
28
+          wx.reLaunch({
29
+            url: '/pages/Jurisdiction/click_Jurisdiction/click_Jurisdiction'   //未授权  进入授权页
30
+          })
31
+        }
32 32
 
33 33
     
34 34
     } catch (e) {

+ 2 - 2
app.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "pages": [
3
-  "pages/personal_core/personaldata/personaldata",
3
+
4 4
   "pages/index/waitfor/waitfor",
5 5
   "pages/index/index",
6 6
   "pages/Jurisdiction/click_Jurisdiction/click_Jurisdiction",
@@ -11,7 +11,7 @@
11 11
   "pages/Landpage/Land/Land",
12 12
   "pages/zheo_More/zheo_More",
13 13
   "pages/details_More/details_More",
14
-
14
+  "pages/personal_core/personaldata/personaldata",
15 15
   "pages/Setup/Opinion/Opinion",
16 16
   "pages/Setup/Publicaddress/Publicaddress",
17 17
   "pages/Setup/Contactus/Contactus",

+ 11 - 11
pages/personal_core/requirements/requirements.js

@@ -60,18 +60,15 @@ Page({
60 60
     var that = this
61 61
  
62 62
     //  获取择偶信息
63
-    let personal_url = 'my/personaloption/optioninfo';
64
-    let personal_data = {
65
-    };
66
-    app.postRequest(personal_url, personal_data, function (res) {
67
-      if (res.code == 201) {
63
+    // let personal_url = 'my/personaloption/optioninfo';
64
+    // let personal_data = {
65
+    // };
66
+    // app.postRequest(personal_url, personal_data, function (res) {
67
+    //   if (res.code == 201) {
68 68
         
69
-        that.setData({
70
-          personal: res.data,    //获取全部数据
71
-      
72
-        })
73
-      }
74
-    })
69
+ 
70
+    //   }
71
+    // })
75 72
 
76 73
 
77 74
 
@@ -82,7 +79,10 @@ Page({
82 79
     let editinfo_data = {
83 80
     };
84 81
     app.postRequest(editinfo_url, editinfo_data, function (res) {     
82
+       that.setData({
83
+          personal: res.data,    //获取全部数据
85 84
 
85
+        })
86 86
       // console.log(res.data)
87 87
 
88 88
       //  年龄 ajax

+ 66 - 7
pages/personal_core/requirements/requirements.wxml

@@ -38,7 +38,7 @@
38 38
 
39 39
 
40 40
 
41
-    <view class="Choice_dx_box" data-da="{{personacodel.data.age_max}}">  
41
+    <!-- <view class="Choice_dx_box" data-da="{{personacodel.data.age_max}}">  
42 42
             <picker mode="multiSelector" bindchange="AgeEvent"  value="{{AgeIndex}}" range="{{AgeArray}}">           
43 43
                           <view class='Choice_dx c'>
44 44
                                 <view class="Choice_dx_title">年龄要求</view>
@@ -58,11 +58,47 @@
58 58
 
59 59
                           </view>
60 60
               </picker>
61
+    </view> -->
62
+
63
+    <view class="Choice_dx_box" data-da="{{AgeArray[0][AgeIndex[0]]  +'-' + AgeArray[1][AgeIndex[1]]}}">  
64
+            <picker mode="multiSelector" bindchange="AgeEvent"  value="{{AgeIndex}}" range="{{AgeArray}}">           
65
+                          <view class='Choice_dx c'>
66
+                                <view class="Choice_dx_title">年龄要求</view>
67
+
68
+                                <view class="Choice_dx_text picker" wx:if='{{Ageid == 0}}'>
69
+
70
+                                     <!-- <block wx:if='{{personacodel.code == 201}}'>
71
+                                       {{AgeArray[0][AgeIndex[0]]  +'-' + AgeArray[1][AgeIndex[1]]  == '不限-以上' ? '无需求'  :  AgeArray[0][AgeIndex[0]]  +'-' + AgeArray[1][AgeIndex[1]]}}
72
+                                     </block> -->
73
+
74
+                                    <!-- <block  wx:else>无需求</block> -->
75
+
76
+                                   
77
+                                   {{AgeArray[0][AgeIndex[0]]  && AgeArray[1][AgeIndex[1]]  ? 
78
+
79
+                                   ( AgeArray[0][AgeIndex[0]] +'-' + AgeArray[1][AgeIndex[1]] == '不限-以上' ?
80
+
81
+                                    '无需求' : AgeArray[0][AgeIndex[0]] +'-' + AgeArray[1][AgeIndex[1]] ) 
82
+
83
+                                    : '无需求'}}  
84
+
85
+
86
+                                </view> 
87
+
88
+                                <view class="Choice_dx_text picker" wx:if='{{Ageid == 1}}'>
89
+                                      {{AgeArray[0][AgeIndex[0]] +'-' + AgeArray[1][AgeIndex[1]]  == '不限-以上' ? '无需求'  : AgeArray[0][AgeIndex[0]] +'-' + AgeArray[1][AgeIndex[1]]}}
90
+                                </view> 
91
+
92
+                          </view>
93
+              </picker>
61 94
     </view>
62 95
 
63 96
 
64 97
 
65 98
 
99
+
100
+
101
+
66 102
 <view class="Choice_dx_box">     <!--  住址 多项选择器 -->
67 103
             <picker mode="multiSelector" range="{{multiArray}}" bindcolumnchange="columnchange" value="{{multiIndex}}" bindchange='pickchange'>
68 104
                       <view class='Choice_dx c'>
@@ -71,7 +107,7 @@
71 107
                               <view class='Choice_dx_text' >
72 108
                                 
73 109
                                           <view class='right' wx:if="{{multiArray[2][multiIndex[2]] && step == 0}}">
74
-                                                  <text wx:if='{{personacodel.code == 201 && personacodel.data.city}}'>{{personal.city}}</text>
110
+                                                  <text wx:if='{{personacodel.code == 201 && personacodel.data.city}}'>{{personal.select_city}}</text>
75 111
 
76 112
                                                   <text wx:else>无需求</text>
77 113
                                           </view>
@@ -97,11 +133,22 @@
97 133
 
98 134
                                 <view class="Choice_dx_text picker" wx:if='{{heightid == 0}}'>
99 135
 
100
-                                     <block wx:if='{{personacodel.code == 201}}'>
136
+                                     <!-- <block wx:if='{{personacodel.code == 201}}'>
101 137
                                         {{heightArray[0][heightindex[0]] +'-' + heightArray[1][heightindex[1]] == '不限-以上' ? '无需求' : heightArray[0][heightindex[0]] +'-' + heightArray[1][heightindex[1]]}}
102 138
                                      </block>
103 139
                                      
104
-                                      <block wx:else>无需求</block>
140
+                                      <block wx:else>无需求</block> -->
141
+
142
+                                   {{heightArray[0][heightindex[0]]  && heightArray[1][heightindex[1]]  ? 
143
+
144
+                                   ( heightArray[0][heightindex[0]] +'-' + heightArray[1][heightindex[1]] == '不限-以上' ?
145
+
146
+                                    '无需求' : heightArray[0][heightindex[0]] +'-' + heightArray[1][heightindex[1]] ) 
147
+
148
+                                    : '无需求'}}  
149
+
150
+
151
+
105 152
                                 </view> 
106 153
 
107 154
                                 <view class="Choice_dx_text picker" wx:else>
@@ -116,7 +163,7 @@
116 163
 
117 164
 
118 165
 
119
-<view class="Choice_dx_box">     <!--  婚史 单项选择器-->
166
+<view class="Choice_dx_box" data-asd="{{MarriageArray[Marriageindex]}}">     <!--  婚史 单项选择器-->
120 167
             <picker  bindchange="MarriageEvent" value="{{Marriageindex}}" range="{{MarriageArray}}">
121 168
                     
122 169
                       <view class='Choice_dx c'>
@@ -146,11 +193,23 @@
146 193
                                 <view class="Choice_dx_title">收入要求</view>
147 194
 
148 195
                                 <view class="Choice_dx_text picker"  wx:if='{{incomeid == 0}}'>
149
-                                    <block wx:if='{{personacodel.code == 201}}'>
196
+                                    <!-- <block wx:if='{{personacodel.code == 201}}'>
150 197
                                        {{incomeArray[0][incomeindex[0]] +'-' + incomeArray[1][incomeindex[1]]  == '不限-以上' ? '无需求' : incomeArray[0][incomeindex[0]] +'-' + incomeArray[1][incomeindex[1]]}}
151 198
                                      </block>
152 199
                                     
153
-                                      <block wx:else>无需求</block>
200
+                                      <block wx:else>无需求</block> -->
201
+
202
+
203
+                                   {{incomeArray[0][incomeindex[0]]  && incomeArray[1][incomeindex[1]]  ? 
204
+
205
+                                   ( incomeArray[0][incomeindex[0]] +'-' + incomeArray[1][incomeindex[1]] == '不限-以上' ?
206
+
207
+                                    '无需求' : incomeArray[0][incomeindex[0]] +'-' + incomeArray[1][incomeindex[1]] ) 
208
+
209
+                                    : '无需求'}}  
210
+
211
+
212
+
154 213
                                 </view>   
155 214
 
156 215
                                 <view class="Choice_dx_text picker"  wx:else>