chenxiaofeng 5 years ago
parent
commit
ddd55a6046

+ 1 - 1
app.js

@@ -3,7 +3,7 @@ const webSocket = require('./utils/websocket.js');
3 3
 App({
4 4
   //设置全局请求URL
5 5
   globalData: {
6
-    url: 'http://xiaochengxuapi.jrjyjrjy.com/v1/'
6
+    url: 'https://xiaochengxuapi.jrjyjrjy.com/v1/'
7 7
   },
8 8
 
9 9
   judge_Land() {

+ 3 - 1
pages/chat-list/chat-list.js

@@ -20,7 +20,9 @@ Page({
20 20
      */
21 21
     onLoad(options) {
22 22
       let that = this;
23
-
23
+      var timestamp = Date.parse(new Date());
24
+      timestamp = timestamp / 1000;
25
+      console.log("当前时间戳为:" + timestamp);  
24 26
   
25 27
 
26 28
 

+ 1 - 1
pages/index/index.js

@@ -368,7 +368,7 @@ Page({
368 368
     app.postRequest(Education_url, Education_data, function (res) {      //  学历 ajax
369 369
       if (res.code == 201) {
370 370
 
371
-        var obj = { id: 0, name: '不限' };
371
+        var obj = { id: 0, education_name: '不限' };
372 372
         var datares = res.data;
373 373
         datares.unshift(obj)
374 374
 

+ 3 - 3
pages/index/index.wxml

@@ -89,11 +89,11 @@
89 89
 
90 90
 
91 91
         <view class='screen_styke'>
92
-                <picker  bindchange="EducationEvent" value="{{Educationindex}}" range="{{EducationArray}}"  range-key="name">
92
+                <picker  bindchange="EducationEvent" value="{{Educationindex}}" range="{{EducationArray}}"  range-key="education_name">
93 93
                         <text  wx:if='{{educationid == 0}}'>学历</text>
94 94
                         <block  wx:else>
95
-                        <text wx:if='{{education != 0}}'>{{EducationArray[Educationindex].name}}</text>
96
-                        <text wx:else>{{EducationArray[Educationindex].name ? EducationArray[Educationindex].name  :  "学历"}}</text>
95
+                        <text wx:if='{{education != 0}}'>{{EducationArray[Educationindex].education_name}}</text>
96
+                        <text wx:else>{{EducationArray[Educationindex].education_name ? EducationArray[Educationindex].education_name  :  "学历"}}</text>
97 97
                         </block>
98 98
                         <image src='/image/search1.png' mode="aspectFill"></image>
99 99
                       

+ 4 - 2
pages/index_details/index_details.js

@@ -21,6 +21,7 @@ Page({
21 21
     uploadImages:[], //相册放大图集
22 22
     albumimg:'', // 相册
23 23
     albumimgurl: '',// 相册url
24
+    watermark: '',
24 25
   },
25 26
 
26 27
 
@@ -80,13 +81,14 @@ Page({
80 81
         //遍历数据
81 82
         for (let i in itemList) {
82 83
           //push到空数组里
83
-          items.push(res.data.url+itemList[i].img);
84
+          items.push(res.data.url + itemList[i].img + res.data.watermark);
84 85
         }
85 86
         console.log(items);
86 87
         that.setData({
87 88
           uploadImages: items,
88 89
           albumimg: res.data.data,
89 90
           albumimgurl: res.data.url,
91
+          watermark: res.data.watermark,
90 92
         })
91 93
       }
92 94
     })
@@ -196,7 +198,7 @@ Page({
196 198
     var that = this;
197 199
 console.log(that.data.uploadImages)
198 200
     wx.previewImage({
199
-      urls: that.data.uploadImages,
201
+      urls: that.data.uploadImages ,
200 202
       current: e.currentTarget.dataset.src
201 203
     })
202 204
 

+ 1 - 1
pages/index_details/index_details.wxml

@@ -20,7 +20,7 @@
20 20
       <view class='Album_box c' wx:if="{{albumimg}}">
21 21
                   <block wx:for='{{albumimg}}'  wx:key="item">  
22 22
                           <view class='Album'  >
23
-                                  <image mode="aspectFill" class='Album_img'  src='{{albumimgurl}}{{item.img}}'  data-src='{{albumimgurl}}{{item.img}}'  bindtap='enlarge'></image>
23
+                                  <image mode="aspectFill" class='Album_img'  src='{{albumimgurl}}{{item.img}}{{watermark}}'  data-src='{{albumimgurl}}{{item.img}}{{watermark}}'  bindtap='enlarge'></image>
24 24
                           </view>
25 25
                   </block>
26 26
       </view>

+ 1 - 1
pages/index_screen/index_screen.js

@@ -287,7 +287,7 @@ Page({
287 287
       if (res.code == 201) {
288 288
         // console.log(res.data);
289 289
 
290
-        var obj = { id: 0, name: '不限' };
290
+        var obj = { id: 0, education_name: '不限' };
291 291
         var datares = res.data;
292 292
         datares.unshift(obj)
293 293
 

+ 3 - 3
pages/index_screen/index_screen.wxml

@@ -145,7 +145,7 @@
145 145
 
146 146
 
147 147
             <view class="Choice_dx_box">     <!--  学历 单项选择器-->
148
-                        <picker  bindchange="EducationEvent" value="{{Educationindex}}" range="{{EducationArray}}"  range-key="name">
148
+                        <picker  bindchange="EducationEvent" value="{{Educationindex}}" range="{{EducationArray}}"  range-key="education_name">
149 149
                                 
150 150
                                   <view class='Choice_dx c'>
151 151
                                         <view class="Choice_dx_title">学历</view>
@@ -155,13 +155,13 @@
155 155
                                         <block  wx:else>
156 156
                                                 <view class='Choice_dx_text'  wx:if='{{education != 0}}'>
157 157
                                                 
158
-                                                      {{EducationArray[Educationindex].name}}
158
+                                                      {{EducationArray[Educationindex].education_name}}
159 159
                                                     
160 160
                                                 </view>
161 161
 
162 162
                                                 <view class='Choice_dx_text'  wx:else>
163 163
                                                   
164
-                                                      {{EducationArray[Educationindex].name ? EducationArray[Educationindex].name  : "请选择"}}
164
+                                                      {{EducationArray[Educationindex].education_name ? EducationArray[Educationindex].education_name  : "请选择"}}
165 165
                                                     
166 166
                                                 </view>
167 167
                                         </block>