Your Name 5 years ago
parent
commit
e1870bf7e3

+ 1 - 9
app.js

@@ -5,14 +5,6 @@ App({
5 5
     url: 'http://yhbdemo.niufangw.com/v1/'
6 6
   },
7 7
 
8
-
9
-
10
-  share() {   //分享
11
-    wx.showShareMenu();
12
-    console.log(1);
13
-  },
14
-
15
-
16 8
   judge_Land() {
17 9
     try {
18 10
       const value = wx.getStorageSync('wx_id')
@@ -234,7 +226,7 @@ App({
234 226
 
235 227
 
236 228
 getApp().judge_Land(); //判断登陆
237
-getApp().share();  //分享
229
+
238 230
 
239 231
 
240 232
 

+ 2 - 1
app.json

@@ -1,9 +1,10 @@
1 1
 {
2 2
   "pages": [
3
+      "pages/Setup/Opinion/Opinion",
3 4
   "pages/Setup/Publicaddress/Publicaddress",
4 5
   "pages/Setup/Contactus/Contactus",
5 6
   "pages/Setup/Aboutus/Aboutus",
6
-  "pages/Setup/Opinion/Opinion",
7
+
7 8
   "pages/Setup/modify/modify",
8 9
   "pages/Landpage/Land/Land",
9 10
   "pages/zheo_More/zheo_More",

+ 184 - 33
pages/Setup/Opinion/Opinion.js

@@ -5,52 +5,203 @@ Page({
5 5
  
6 6
   data: {
7 7
 
8
-    selectArray: [], // 性别-数据
9
-    index: '',  // 性别-下标、
10
-    sex: '',     //  性别  
8
+    // selectArray: [], // 性别-数据
9
+    // index: '',  // 性别-下标、
10
+    // sex: '',     //  性别  
11
+
12
+    content:'', //反馈信息
13
+    scsfzImages:'', //图片
14
+    scsfzImagesNum: true,   //加号图标 显示
15
+    content_text:'',
11 16
   },
12 17
 
13 18
  
14 19
   onLoad: function (options) {
15 20
     var that =this;
16
-        //  性别 ajax
17
-        let p_url = 'public/paramsgather?type=sex';
18
-        let p_data = {
19
-          // pid: '0'
20
-        };
21
-        app.postRequest(p_url, p_data, function (res) {      //  性别 ajax
22
-          if (res.code == 201) {
23
-            // console.log(res.data);
24
-            that.setData({
25
-              selectArray: res.data
26
-            })
27
-
28
-          }
29
-          // let dictObject = res.data;
30
-          // // 对象转成数组
31
-          // var createArr = []
32
-          // for (let i in dictObject) {
33
-          //   createArr.push(dictObject[i]);
34
-          // }
35
-
36
-        })
21
+         //  性别 ajax
22
+        // let p_url = 'public/paramsgather?type=sex';
23
+        // let p_data = {
24
+        //   // pid: '0'
25
+        // };
26
+        // app.postRequest(p_url, p_data, function (res) {      //  性别 ajax
27
+        //   if (res.code == 201) {
28
+        //     // console.log(res.data);
29
+        //     that.setData({
30
+        //       selectArray: res.data
31
+        //     })
32
+
33
+        //   }
34
+        //   // let dictObject = res.data;
35
+        //   // // 对象转成数组
36
+        //   // var createArr = []
37
+        //   // for (let i in dictObject) {
38
+        //   //   createArr.push(dictObject[i]);
39
+        //   // }
40
+
41
+        // })
42
+  },
43
+
44
+
45
+  // GenderEvent: function (e) {   //  性别    单项选择器
46
+  //   // console.log(this);
47
+  //   // console.log(e);
48
+  //   // console.log(this.data.selectArray[e.detail.value]);
49
+  //   // console.log('picker发送选择改变,携带值为', e.detail.value)
50
+  //   this.setData({
51
+  //     index: e.detail.value,
52
+  //     sex: e.detail.value
53
+  //   })
54
+  // },
55
+
56
+  //获取反馈信息
57
+  click_content: function (e) {
58
+    var _content = e.detail.value;
59
+    console.log(_content);
60
+    this.setData({
61
+      content: _content
62
+    });
37 63
   },
38 64
 
39 65
 
66
+  // 上传学历
67
+  scsfzclick: function (e) {
68
+    var _this = this;
69
+    wx.chooseImage({
70
+      count: 1,
71
+      sizeType: ['original', 'compressed'],
72
+      sourceType: ['album', 'camera'],
73
+      success(res) {
74
+
75
+        let tempFilesSize = res.tempFiles[0].size;
76
+
77
+        if (tempFilesSize > 1024 * 1024 * 3) {
78
+
79
+          wx.showModal({
80
+            title: '提示',
81
+            content: '图片不得超过3MB',
82
+            showCancel: false,
83
+          })
84
+
85
+          return;
86
+        }
40 87
 
41
-  onShow: function () {
88
+        _this.setData({
89
+          scsfzImages: res.tempFilePaths[0],
90
+          scsfzImagesNum: false,
91
+        });
42 92
 
93
+
94
+
95
+      }
96
+    })
43 97
   },
44 98
 
45
-  GenderEvent: function (e) {   //  性别    单项选择器
46
-    // console.log(this);
47
-    // console.log(e);
48
-    // console.log(this.data.selectArray[e.detail.value]);
49
-    // console.log('picker发送选择改变,携带值为', e.detail.value)
50
-    this.setData({
51
-      index: e.detail.value,
52
-      sex: e.detail.value
99
+
100
+  // 相册点击放大
101
+  enlarge: function (e) {
102
+    var that = this;
103
+    // console.log(e.currentTarget.dataset.src)
104
+    wx.previewImage({
105
+      urls: [e.currentTarget.dataset.src], // 需要预览的图片http链接列表
106
+      current: e.currentTarget.dataset.src
53 107
     })
108
+
109
+  },
110
+
111
+
112
+
113
+  // //最后提交认证
114
+  Submission: function (e) {
115
+    var _this = this;
116
+
117
+    // console.log(_this.data.scsfzImages)
118
+
119
+
120
+    if (_this.data.scsfzImages != ''  &&   _this.data.content != '') {
121
+
122
+              //上传图片
123
+              wx.uploadFile({
124
+                url: app.globalData.url + 'my/other/suggestions',
125
+                filePath: _this.data.scsfzImages,
126
+                name: 'img',
127
+                formData: {
128
+                  key: wx.getStorageSync('access_key'),
129
+                  token: wx.getStorageSync('access_token'),
130
+                  content: _this.data.content
131
+                },
132
+                success: function (res) {
133
+                  console.log(res.data);
134
+                  var data = JSON.parse(res.data);
135
+
136
+                  if (data.code == 201) {
137
+
138
+                    wx.showToast({
139
+                      title: '提交成功',
140
+                      icon: 'success',
141
+                      duration: 2000
142
+                    })
143
+
144
+                    _this.setData({
145
+                      scsfzImagesNum:true,
146
+                      content_text:'',
147
+                      content: '',
148
+                    });
149
+
150
+                    return;
151
+                  }
152
+
153
+                  var _qrcode = data.msg
154
+                  getApp().Tips(_qrcode);
155
+
156
+                }, fail: function (d) {
157
+                  wx.showToast({     //这里提示失败
158
+                    title: '上传失败',
159
+                    icon: 'none',  // 不显示图标
160
+                    duration: 2000
161
+                  })
162
+                }
163
+              })
164
+
165
+    } else if (_this.data.content != '') {
166
+
167
+
168
+              let setwxqrcode_url = 'my/other/suggestions';
169
+              let setwxqrcode_data = {
170
+                content: _this.data.content,
171
+              };
172
+              app.postRequest(setwxqrcode_url, setwxqrcode_data, function (res) {
173
+                if (res.code == 201) {
174
+                  wx.showToast({
175
+                    title: '上传成功',
176
+                    icon: 'success',
177
+                    duration: 2000
178
+                  })
179
+
180
+                  _this.setData({
181
+                    scsfzImagesNum: true,
182
+                    content_text: '',
183
+                    content: '',
184
+                  });
185
+
186
+                  return;
187
+                }
188
+
189
+                var _qrcode = '上传失败'
190
+                getApp().Tips(_qrcode);
191
+
192
+              })
193
+
194
+
195
+
196
+    } else {
197
+
198
+              var _qrcode = '请描述您遇到的问题'
199
+              getApp().Tips(_qrcode);
200
+
201
+    }
202
+
203
+
204
+
54 205
   },
55 206
 
56 207
 

+ 11 - 7
pages/Setup/Opinion/Opinion.wxml

@@ -2,7 +2,7 @@
2 2
 
3 3
 <view class='data_box'>
4 4
 
5
-        <view class="Choice_dx_box">     <!--  性别 单项选择器-->
5
+        <!-- <view class="Choice_dx_box">     
6 6
                     <picker  bindchange="GenderEvent" value="{{index}}" range="{{selectArray}}">
7 7
                             
8 8
                               <view class='Choice_dx c'>
@@ -16,22 +16,26 @@
16 16
                                         
17 17
                               </view>
18 18
                   </picker>
19
-        </view>
19
+        </view> -->
20
+
21
+
22
+        <view class='data_text'>请您提供准确信息,我们会在收到投诉后的一个工作日内与您联系,请尽量详细填写反馈问题描述,我们可以缩短处理时间。</view>
20 23
 
21 24
         <view class='index_box'>
22
-                 <input type='text' placeholder="请描述您遇到的问题" bindinput="getPhone"  value=""></input>
25
+                 <input type='text' placeholder="请描述您遇到的问题" bindinput="click_content"  value="{{content_text}}"></input>
23 26
         </view>
24 27
         
25
-        <view class='img_box'>
26
-                <image src='/image/ce1.jpg' mode="aspectFill"></image>
28
+        <view class='img_box'  hidden='{{scsfzImagesNum}}'>
29
+                <image src='{{scsfzImages}}' mode="aspectFill"  data-src='{{scsfzImages}}'   bindtap='enlarge'></image>
27 30
         </view>
28 31
 
29
-        <view class='upload_box'>
32
+        <view class='upload_box' bindtap='scsfzclick'>
30 33
                 <image src='/image/sctp1.png'  mode="widthFix"></image>
31 34
                 <text class='upload_text1'>上传相关截图说明</text>
32 35
                 <text class='upload_text2'>(可选)</text>
33 36
         </view>
34 37
 
35
-       <view class='NextStep'  bindtap='register'>提交</view>
38
+       <view class='NextStep'  bindtap='Submission'>提交</view>
39
+
36 40
 
37 41
 </view>

+ 2 - 1
pages/Setup/Opinion/Opinion.wxss

@@ -1,6 +1,7 @@
1 1
 
2 2
 .data_box{width:90%;margin:auto;margin-top:44rpx;position:relative;}
3 3
 
4
+.data_text{border:1px dashed #DCDCDC;width:95%;margin:auto;background:#F5F5F5;padding:20rpx;border-radius:6rpx;font-size:24rpx;color:#999;line-height:50rpx;}
4 5
 
5 6
 .Choice_dx_box{border-bottom:1px solid #eee;padding-bottom:14rpx;color:#ECECEC;line-height:50rpx;margin-top:30rpx;}
6 7
 .Choice_dx_title{float:left;font-size:28rpx;color:#000;}
@@ -9,7 +10,7 @@
9 10
 .Choice_dx_text .picker text{display:block;float:right;}
10 11
 
11 12
 
12
-.index_box{border:1px solid #eee;height:80rpx;margin-top:30rpx;border-radius:10rpx;background:#F5F5F5;}
13
+.index_box{border:1px solid #eee;height:80rpx;margin-top:30rpx;border-radius:10rpx;background:#FFF;}
13 14
 .index_box input{height:100%;padding:0 30rpx;font-size:26rpx;display:block;}
14 15
 
15 16
 .img_box{width:220rpx;height:220rpx;margin-top:30rpx;}

+ 5 - 1
pages/Setup/Publicaddress/Publicaddress.js

@@ -62,5 +62,9 @@ Page({
62 62
    */
63 63
   onShareAppMessage: function () {
64 64
 
65
-  }
65
+  },
66
+
67
+
68
+
69
+
66 70
 })

File diff suppressed because it is too large
+ 243 - 32
pages/index/index.js


+ 7 - 4
pages/index/index.wxml

@@ -51,9 +51,9 @@
51 51
         <view class='screen_styke'>
52 52
                 <picker  mode="multiSelector"  bindchange="AgeEvent"  value="{{AgeIndex}}" range="{{AgeArray}}">
53 53
                         <!-- <text wx:if='{{Ageid == 1}}'>{{AgeArray[0][AgeIndex[0]]}}-{{AgeArray[1][AgeIndex[1]]}}</text> -->
54
-                        <text wx:if='{{Ageid == 1}}'>{{age}}岁1</text>
54
+                        <text wx:if='{{Ageid == 1}}'>{{age}}</text>
55 55
                         <text wx:else>
56
-                                  <block wx:if='{{age != 0}}'>{{age}}岁2</block>
56
+                                  <block wx:if='{{age != 0}}'>{{age}}</block>
57 57
 
58 58
                                   <block wx:else>年龄</block>
59 59
                         </text>
@@ -67,9 +67,9 @@
67 67
         
68 68
         <view class='screen_styke'>
69 69
                 <picker mode="multiSelector" bindchange="heightEvent"  value="{{heightindex}}" range="{{heightArray}}">
70
-                        <text wx:if='{{heightid == 1}}'>{{height}}a</text>
70
+                        <text wx:if='{{heightid == 1}}'>{{height}}</text>
71 71
                         <text wx:else>
72
-                                  <block wx:if='{{height != 0}}'>{{height}}b</block>
72
+                                  <block wx:if='{{height != 0}}'>{{height}}</block>
73 73
 
74 74
                                   <block wx:else>身高</block>
75 75
                         </text>  
@@ -83,8 +83,11 @@
83 83
 
84 84
         <view class='screen_styke'>
85 85
                 <picker bindchange="MarriageEvent" value="{{Marriageindex}}" range="{{MarriageArray}}">
86
+                        <text wx:if='{{idmarry == 0}}'> 婚史</text>
87
+                        <block  wx:else>
86 88
                         <text wx:if='{{marry != 0}}'> {{MarriageArray[Marriageindex]}}</text>
87 89
                         <text wx:else>{{MarriageArray[Marriageindex] ? MarriageArray[Marriageindex]  : "婚史"}}</text>
90
+                         </block>
88 91
                         <image src='/image/search1.png' mode="aspectFill"></image>
89 92
                 </picker>
90 93
         </view>

+ 180 - 27
pages/index_screen/index_screen.js

@@ -46,8 +46,11 @@ Page({
46 46
     area: '',     // 区
47 47
 
48 48
     age: '',      //  年龄  
49
+    agezx:0,
49 50
     height: '',      //  身高  
51
+    heightzx: 0,
50 52
     marry: '',    //   婚史 
53
+    idmarry:0,
51 54
     education: '',    //  学历  
52 55
     income: 0,     //  收入 
53 56
 
@@ -77,6 +80,7 @@ Page({
77 80
     var _provincename = option.provincename      //  省  
78 81
     var _cityname = option.cityname      //  市  
79 82
     var _areaname = option.areaname      //  区  
83
+    var _idmarry = option.idmarry      //  区  
80 84
 
81 85
     // console.log(_province)
82 86
     // console.log(_city)
@@ -85,6 +89,7 @@ Page({
85 89
       province: _province,
86 90
       city: _city,
87 91
       area: _area,
92
+      idmarry: _idmarry,
88 93
 
89 94
       provincename: _provincename,  // 省
90 95
       cityname: _cityname , // 市
@@ -117,12 +122,22 @@ Page({
117 122
     let Age_data = {
118 123
       // pid: '0'
119 124
     };
120
-
125
+    // console.log(option.agezx)
121 126
     var _age = option.age      //  年龄  
127
+    var _agezx = option.agezx    
128
+
129
+    if (_agezx == 0){
130
+      var agenewArry = _age.split("-");  //转成数组
131
+      var _age_min = agenewArry[0]
132
+      var _age_max = agenewArry[1]
133
+    }else{
134
+      var agenewArry = _agezx.split("-");  //转成数组
135
+      var _age_min = agenewArry[0]
136
+      var _age_max = agenewArry[1]
137
+    }
138
+
139
+
122 140
 
123
-    var agenewArry = _age.split("-");  //转成数组
124
-    var _age_min = agenewArry[0]
125
-    var _age_max = agenewArry[1]
126 141
     // console.log(_age_min)
127 142
     // console.log(_age_max)
128 143
     that.setData({
@@ -130,11 +145,17 @@ Page({
130 145
     })
131 146
     app.postRequest(Age_url, Age_data, function (res) {   //  年龄 ajax
132 147
       if (res.code == 201) {
133
-        for (let i = 0; i < res.data.length; i++) {    //已选中的数据处理
134 148
 
135
-          if (res.data[i] == _age_min) { var _min = i; }
149
+        let createArr1 = res.data;
150
+        let newarray1 = ['不限'];
151
+        createArr1 = newarray1.concat(createArr1);
152
+
153
+
154
+        for (let i = 0; i < createArr1.length; i++) {    //已选中的数据处理
136 155
 
137
-          if (res.data[i] == _age_max) { var _max = i; }
156
+          if (createArr1[i] == _age_min) { var _min = i; }
157
+
158
+          if (createArr1[i] == _age_max) { var _max = i; }
138 159
 
139 160
           that.setData({
140 161
             AgeIndex: [_min, _max]
@@ -148,6 +169,10 @@ Page({
148 169
         for (let i in dictObject) {
149 170
           createArr.push(dictObject[i] + "岁");
150 171
         }
172
+
173
+        let newarray = ['不限'];
174
+        createArr = newarray.concat(createArr);
175
+
151 176
         that.setData({
152 177
           AgeArray: [createArr, createArr],
153 178
         })
@@ -165,10 +190,22 @@ Page({
165 190
     };
166 191
 
167 192
     var _height = option.height      //  身高  
193
+    var _heightzx = option.heightzx      //  年龄  
194
+
195
+    if (_heightzx == 0) {
196
+
197
+      var heightnewArry = _height.split("-");  //转成数组
198
+      var heightSmall = heightnewArry[0]
199
+      var heightlarge = heightnewArry[1]
200
+
201
+    } else {
202
+
203
+      var heightnewArry = _heightzx.split("-");  //转成数组
204
+      var heightSmall = heightnewArry[0]
205
+      var heightlarge = heightnewArry[1]
206
+
207
+    }
168 208
 
169
-    var heightnewArry = _height.split("-");  //转成数组
170
-    var heightSmall = heightnewArry[0]
171
-    var heightlarge = heightnewArry[1]
172 209
     // console.log(heightSmall)
173 210
     // console.log(heightlarge)
174 211
     that.setData({
@@ -177,11 +214,15 @@ Page({
177 214
     app.postRequest(height_url, height_data, function (res) {      //  身高 ajax
178 215
       if (res.code == 201) {
179 216
 
180
-        for (let i = 0; i < res.data.length; i++) {    //已选中的数据处理
217
+        let createArr1 = res.data;
218
+        let newarray1 = ['不限'];
219
+        createArr1 = newarray1.concat(createArr1);
220
+        
221
+        for (let i = 0; i < createArr1.length; i++) {    //已选中的数据处理
181 222
           // console.log(res.data[i])
182
-          if (res.data[i] == heightSmall) { var _min = i; }
223
+          if (createArr1[i] == heightSmall) { var _min = i; }
183 224
 
184
-          if (res.data[i] == heightlarge) { var _max = i; }
225
+          if (createArr1[i] == heightlarge) { var _max = i; }
185 226
 
186 227
           that.setData({
187 228
             heightindex: [_min, _max]
@@ -195,6 +236,8 @@ Page({
195 236
           createArr.push(dictObject[i] + "cm");
196 237
         }
197 238
 
239
+        let newarray = ['不限'];
240
+        createArr = newarray.concat(createArr);
198 241
 
199 242
         that.setData({
200 243
           heightArray: [createArr, createArr],
@@ -211,23 +254,32 @@ Page({
211 254
       pid: '0'
212 255
     };
213 256
     var _marry = option.marry   //   婚史 
214
-    // console.log(_marry)
215
-    that.setData({
257
+    console.log(_marry)
258
+      that.setData({
216 259
       marry: _marry
217 260
     })
218 261
     app.postRequest(Marriage_url, Marriage_data, function (res) {      //  婚史 ajax
219 262
       if (res.code == 201) {
220 263
         // console.log(res.data);
221
-        for (let i = 0; i < res.data.length; i++) {    //已选中的数据处理
264
+        let createArr1 = res.data;
265
+        let newarray1 = ['不限'];
266
+        createArr1 = newarray1.concat(createArr1);
267
+        for (let i = 0; i < createArr1.length; i++) {    //已选中的数据处理
222 268
           if (i == _marry) {
223 269
             that.setData({
224 270
               Marriageindex: i,
225 271
             })
272
+            console.log(i);
226 273
           }
227 274
         }
228 275
 
276
+        let createArr = res.data;
277
+        let newarray = ['不限'];
278
+        createArr = newarray.concat(createArr);
279
+
229 280
         that.setData({
230
-          MarriageArray: res.data
281
+          MarriageArray: createArr,
282
+          idmarry: that.data.idmarry,
231 283
         })
232 284
 
233 285
       }
@@ -335,32 +387,125 @@ Page({
335 387
 
336 388
   // 年龄双选
337 389
   AgeEvent: function (e) {
390
+    var that = this;
338 391
     // console.log('picker发送选择改变,携带值为', e.detail.value)
392
+    var _value = e.detail.value;  //发送选择改变,携带值为
339 393
     var Small = this.data.AgeArray[0][e.detail.value[0]].substring(0, 2);
340 394
     var large = this.data.AgeArray[1][e.detail.value[1]].substring(0, 2);
341
-    var Agedata = Small + '-' + large;
342 395
 
343
-    // console.log(Agedata);
396
+    if (Small > large && Small != '不限' && large != '不限') {     //判断  最小值  大于  最大值  数据互换
397
+      //  console.log('调换')
398
+      var Agedata = large + '-' + Small;
399
+      that.Exchange(_value);    // 调用数组调换
400
+      that.setData({
401
+        agezx: 0,
402
+      })
403
+    } else if (Small == '不限' && large != '不限') {        //判断  最小值 = 不限      输出 最大的值以下
404
+      // console.log('以下')
405
+      var Agedata = large + '以下';
406
+      var Agedataxz = '不限' + '-' + large;
407
+      that.setData({
408
+        agezx: Agedataxz,
409
+      })
410
+
411
+    } else if (large == '不限' && Small != '不限') {   //判断  最大值 = 不限      输出 最小的值以上
412
+      // console.log('以上')
413
+      var Agedata = Small + '以上';
414
+      var Agedataxz = Small + '-' + '不限';
415
+      that.setData({
416
+        agezx: Agedataxz,
417
+      })
344 418
 
345
-    this.setData({
346
-      AgeIndex: e.detail.value,
419
+    } else if (Small == '不限' && large == '不限') {    //判断  大小值 = 不限      输出  不限
420
+      // console.log('不限')
421
+      var Agedata = '不限';
422
+      var Agedataxz = '不限' + '-' + '不限';
423
+      that.setData({
424
+        agezx: Agedataxz,
425
+      })
426
+    } else {
427
+
428
+      var Agedata = Small + '-' + large;    //否则正常选中
429
+      that.setData({
430
+        agezx: 0,
431
+      })
432
+    }
433
+
434
+    that.setData({
435
+      AgeIndex: _value,
347 436
       age: Agedata,
348 437
       Ageid: 1,
349 438
     })
439
+
350 440
   },
351 441
 
352
-  heightEvent: function (e) {   //  身高    
442
+  // 数组数据调换
443
+  Exchange: function (data) {
444
+    for (var i = 0; i < data.length / 2; i++) {
445
+      var data_i = data[i];
446
+      data[i] = data[data.length - 1 - i];
447
+      data[data.length - 1 - i] = data_i;
448
+    }
449
+    return;
450
+  },
451
+
452
+
453
+  heightEvent: function (e) {   //  身高   
454
+    var that=this; 
353 455
     // console.log(this);
354 456
     // console.log(e);
355 457
     // console.log(this.data.heightArray[e.detail.value]);
356 458
     // console.log('picker发送选择改变,携带值为', e.detail.value)
459
+    var _value = e.detail.value;  //发送选择改变,携带值为
460
+    var heightSmall = this.data.heightArray[0][e.detail.value[0]].substring(0, 3);  //最小值
461
+    var heightlarge = this.data.heightArray[1][e.detail.value[1]].substring(0, 3);   //最大值
462
+
463
+    if (heightSmall > heightlarge && heightSmall != '不限' && heightlarge != '不限') {     //判断  最小值  大于  最大值  数据互换
464
+      //  console.log('调换')
465
+      var heightdata = heightlarge + '-' + heightSmall;
466
+      that.Exchange(_value);    // 调用数组调换
467
+
468
+      that.setData({
469
+        heightzx: 0,
470
+      })
471
+
472
+    } else if (heightSmall == '不限' && heightlarge != '不限') {        //判断  最小值 = 不限      输出 最大的值以下
473
+      // console.log('以下')
474
+      var heightdata = heightlarge + '以下';
475
+      var heightdatazx = '不限' + '-' + heightlarge;
476
+      that.setData({
477
+        heightzx: heightdatazx,
478
+      })
479
+
480
+    } else if (heightlarge == '不限' && heightSmall != '不限') {   //判断  最大值 = 不限      输出 最小的值以上
481
+      // console.log('以上')
482
+      var heightdata = heightSmall + '以上';
483
+      var heightdatazx = heightSmall + '-' + '不限';
484
+      that.setData({
485
+        heightzx: heightdatazx,
486
+      })
487
+
488
+
489
+    } else if (heightSmall == '不限' && heightlarge == '不限') {    //判断  大小值 = 不限      输出  不限
490
+      // console.log('不限')
491
+      var heightdata = '不限';
492
+
493
+      var heightdatazx = '不限' + '-' + '不限';
494
+      that.setData({
495
+        heightzx: heightdatazx,
496
+      })
497
+
498
+    } else {
499
+
500
+      var heightdata = heightSmall + '-' + heightlarge;   //否则正常选中
501
+      that.setData({
502
+        heightzx: 0,
503
+      })
504
+    }
357 505
 
358
-    var heightSmall = this.data.heightArray[0][e.detail.value[0]].substring(0, 3);
359
-    var heightlarge = this.data.heightArray[1][e.detail.value[1]].substring(0, 3);
360
-    var heightdata = heightSmall + '-' + heightlarge;
361 506
 
362 507
     this.setData({
363
-      heightindex: e.detail.value,
508
+      heightindex: _value,
364 509
       height: heightdata,
365 510
       heightid: 1,
366 511
     })
@@ -373,7 +518,8 @@ Page({
373 518
     // console.log('picker发送选择改变,携带值为', e.detail.value)
374 519
     this.setData({
375 520
       Marriageindex: e.detail.value,
376
-      marry: e.detail.value
521
+      marry: e.detail.value,
522
+      idmarry:1,
377 523
     })
378 524
   },
379 525
 
@@ -682,9 +828,12 @@ Page({
682 828
 
683 829
     var nickname = this.data.nickname  //姓名
684 830
     var age = this.data.age                     //  年龄  
831
+    var agezx = this.data.agezx                     //  年龄  
685 832
     var height = this.data.height             //  身高  
833
+    var heightzx = this.data.heightzx             //  身高  
686 834
     var education = this.data.education  //  学历  
687 835
     var marry = this.data.marry                 //   婚史 
836
+    var idmarry = this.data.idmarry                 //   婚史 
688 837
     var income = this.data.income             //  收入 
689 838
 
690 839
     var province = this.data.province      // 市
@@ -700,8 +849,11 @@ Page({
700 849
 
701 850
     //设置全局变量(app已经定义 var app=getApp())     赋值要传的参数
702 851
     app.globalData.age = age;    //  年龄  
852
+    app.globalData.agezx = agezx;    //  年龄
703 853
     app.globalData.height = height;    //  身高  
854
+    app.globalData.heightzx = heightzx;    //  身高  
704 855
     app.globalData.marry = marry  //  婚史  
856
+    app.globalData.idmarry = idmarry  //  婚史  
705 857
     app.globalData.education = education  //  学历  
706 858
     app.globalData.income = income;     //  收入 
707 859
     app.globalData.Selection = 1;    //  是否选中   1 选中   0没选中
@@ -775,6 +927,7 @@ Page({
775 927
       AgeIndex: ['', ''],    //  年龄-下标
776 928
       age: 0,     //  年龄
777 929
       Ageid: 0,
930
+      agezx:0,
778 931
 
779 932
       heightindex: ['', ''],  // 身高-下标
780 933
       height: 0, //身高

+ 17 - 15
pages/index_screen/index_screen.wxml

@@ -68,14 +68,14 @@
68 68
 
69 69
                                             <view class="Choice_dx_text picker" wx:if='{{Ageid == 0}}'>
70 70
                                                   <block wx:if='{{age != 0}}'>
71
-                                                    {{AgeArray[0][AgeIndex[0]]}}-{{AgeArray[1][AgeIndex[1]]}}
71
+                                                    {{age}}
72 72
                                                   </block>
73 73
 
74 74
                                                     <block wx:else>请选择</block>
75 75
                                             </view> 
76 76
 
77 77
                                             <view class="Choice_dx_text picker" wx:if='{{Ageid == 1}}'>
78
-                                                  {{AgeArray[0][AgeIndex[0]]}}-{{AgeArray[1][AgeIndex[1]]}}
78
+                                                 {{age}}
79 79
                                             </view> 
80 80
                                             
81 81
                                   </view>
@@ -93,14 +93,14 @@
93 93
                                 <view class="Choice_dx_text picker" wx:if='{{heightid == 0}}' data-asd="{{height}}">
94 94
 
95 95
                                      <block wx:if='{{height != 0}}'>
96
-                                        {{heightArray[0][heightindex[0]]}}-{{heightArray[1][heightindex[1]]}}
96
+                                       {{height}}
97 97
                                      </block>
98 98
                                      
99 99
                                       <block wx:else>请选择</block>
100 100
                                 </view> 
101 101
 
102 102
                                         <view class="Choice_dx_text picker" wx:else>
103
-                                              {{heightArray[0][heightindex[0]]}}-{{heightArray[1][heightindex[1]]}}
103
+                                         {{height}}
104 104
                                         </view>
105 105
                                             
106 106
                                   </view>
@@ -116,17 +116,19 @@
116 116
                                   <view class='Choice_dx c'>
117 117
                                         <view class="Choice_dx_title">婚史</view>
118 118
 
119
-                                        <view class='Choice_dx_text' wx:if='{{marry != 0}}'>
120
-                                          
121
-                                              {{MarriageArray[Marriageindex]}}
122
-                                            
123
-                                        </view>
124
-                                        <view class='Choice_dx_text' wx:else>
125
-                                          
126
-                                              {{MarriageArray[Marriageindex] ? MarriageArray[Marriageindex]  : "请选择"}}
127
-                                            
128
-                                        </view>
129
-                                            
119
+                                       <view class='Choice_dx_text' wx:if='{{idmarry == 0}}'> 请选择</view>
120
+                                        <block  wx:else>
121
+                                                <view class='Choice_dx_text' wx:if='{{marry != 0}}'>
122
+                                                  
123
+                                                      {{MarriageArray[Marriageindex]}}
124
+                                                    
125
+                                                </view>
126
+                                                <view class='Choice_dx_text' wx:else>
127
+                                                  
128
+                                                      {{MarriageArray[Marriageindex] ? MarriageArray[Marriageindex]  : "请选择"}}
129
+                                                    
130
+                                                </view>
131
+                                         </block>
130 132
                                   </view>
131 133
                       </picker>
132 134
             </view>

+ 1 - 1
pages/personal_core/Adegreein/Adegreein.wxml

@@ -22,7 +22,7 @@
22 22
                             <view class='sfzyz_upload_rimg'  bindtap='scsfzclick' wx:elif='{{initial.status ==2}}'>   <!-- 未通过 -->
23 23
 
24 24
                                       <view class='sfzyz_wtg'   hidden='{{scsfzImagesNum}}'>
25
-                                              <image class='sfzyz_img'  src='{{initial.img}}  mode="aspectFill"'></image>
25
+                                              <image class='sfzyz_img'  src='{{initial.img}}'   mode="aspectFill"></image>
26 26
 
27 27
                                               <view class='sfzyz_zhez'>
28 28
                                                     <text>{{initial.status_str}}</text>