作者 lihongjuan

1

@@ -150,7 +150,7 @@ methods:{ @@ -150,7 +150,7 @@ methods:{
150 fail: function (res) { }, 150 fail: function (res) { },
151 complete: function (res) { }, 151 complete: function (res) { },
152 }) 152 })
153 - 微信程 153 +
154 }, 154 },
155 liuyanBoxShow(){ 155 liuyanBoxShow(){
156 this.isliuyanBoxShow=true 156 this.isliuyanBoxShow=true
@@ -31,7 +31,6 @@ @@ -31,7 +31,6 @@
31 <!-- <view class="title" @click="selectschool" :data-id="null">全部学校</view> --> 31 <!-- <view class="title" @click="selectschool" :data-id="null">全部学校</view> -->
32 <view class="item" @click="selectschool" v-for="(item,index) in schoolList" :key="index" :data-id="item.id">{{item.name}}</view> 32 <view class="item" @click="selectschool" v-for="(item,index) in schoolList" :key="index" :data-id="item.id">{{item.name}}</view>
33 </view> 33 </view>
34 -  
35 </view> 34 </view>
36 </view> 35 </view>
37 <!-- <view class="schoolPopup" v-if="isSchoolShow"> 36 <!-- <view class="schoolPopup" v-if="isSchoolShow">
@@ -50,14 +49,12 @@ @@ -50,14 +49,12 @@
50 :data-id="item.id">{{item.name}}</view> 49 :data-id="item.id">{{item.name}}</view>
51 </view> 50 </view>
52 </view> 51 </view>
53 - <view class="stylePopup" v-if="isStyleShow">  
54 52
  53 + <view class="stylePopup" v-if="isStyleShow">
55 <view class="cont" style="display:flex;flex-direction: column;overflow: auto;height: 600rpx;"> 54 <view class="cont" style="display:flex;flex-direction: column;overflow: auto;height: 600rpx;">
56 - <view class="title" @click="selectup" :data-id="null">全部</view> 55 + <!-- <view class="title" @click="selectup" :data-id="null">全部</view> -->
57 <view class="item" style="width:230rpx" @click="selectup" v-for="(item,index) in upList" :key="index" :data-id="item.id">{{item.name}}</view> 56 <view class="item" style="width:230rpx" @click="selectup" v-for="(item,index) in upList" :key="index" :data-id="item.id">{{item.name}}</view>
58 57
59 -  
60 -  
61 </view> 58 </view>
62 </view> 59 </view>
63 </view> 60 </view>
@@ -109,7 +106,6 @@ @@ -109,7 +106,6 @@
109 <view class="teacherfootname" :class="footersel==3?'selactive':''">我的主页</view> 106 <view class="teacherfootname" :class="footersel==3?'selactive':''">我的主页</view>
110 </view> 107 </view>
111 </view> 108 </view>
112 -  
113 <view class="collegefooter" v-if="type == 2"> 109 <view class="collegefooter" v-if="type == 2">
114 <view class="teacherfootitem" @click="footerselChange" :data-id="2" :data-url="'/pages/schoolmate/schoolmate?type='+2"> 110 <view class="teacherfootitem" @click="footerselChange" :data-id="2" :data-url="'/pages/schoolmate/schoolmate?type='+2">
115 <view class="teacherfootitemtop"> 111 <view class="teacherfootitemtop">
@@ -124,16 +120,9 @@ @@ -124,16 +120,9 @@
124 <view class="teacherfootname" :class="footersel==3?'selactive':''">我的主页</view> 120 <view class="teacherfootname" :class="footersel==3?'selactive':''">我的主页</view>
125 </view> 121 </view>
126 </view> 122 </view>
127 -  
128 -  
129 </view> 123 </view>
130 -  
131 -  
132 </view> 124 </view>
133 125
134 -  
135 -  
136 -  
137 </template> 126 </template>
138 127
139 <script> 128 <script>
@@ -180,7 +169,7 @@ @@ -180,7 +169,7 @@
180 provinceList: [], 169 provinceList: [],
181 cityList: [], 170 cityList: [],
182 schoolList: [], 171 schoolList: [],
183 - word:"" 172 + word: ""
184 } 173 }
185 }, 174 },
186 methods: { 175 methods: {
@@ -246,6 +235,7 @@ @@ -246,6 +235,7 @@
246 }, 235 },
247 236
248 styleShow() { 237 styleShow() {
  238 + console.log(37844374378)
249 this.isStyleShow = true 239 this.isStyleShow = true
250 this.isMajorShow = false 240 this.isMajorShow = false
251 this.isSchoolShow = false 241 this.isSchoolShow = false
@@ -253,7 +243,10 @@ @@ -253,7 +243,10 @@
253 this.active1 = false, 243 this.active1 = false,
254 this.active2 = false 244 this.active2 = false
255 this.active3 = false 245 this.active3 = false
256 - this.active4 = true 246 + this.active4 = true;
  247 + // this.this.schoolmate.page=1;
  248 + // this.schoolmateList=[]
  249 +
257 }, 250 },
258 251
259 // 底部导航跳转 252 // 底部导航跳转
@@ -293,7 +286,7 @@ @@ -293,7 +286,7 @@
293 } 286 }
294 app.post(url, params, "get").then((res) => { 287 app.post(url, params, "get").then((res) => {
295 console.log(res) 288 console.log(res)
296 - this.schoolmateList =this.schoolmateList.concat(res) 289 + this.schoolmateList = this.schoolmateList.concat(res)
297 }).catch((err) => { 290 }).catch((err) => {
298 console.log(err) 291 console.log(err)
299 }) 292 })
@@ -318,6 +311,11 @@ @@ -318,6 +311,11 @@
318 var params = {} 311 var params = {}
319 app.post(url, params, "get").then((res) => { 312 app.post(url, params, "get").then((res) => {
320 console.log(res[0].name) 313 console.log(res[0].name)
  314 + let obj = {
  315 + id: '',
  316 + name: '全部'
  317 + }
  318 + res.unshift(obj)
321 this.upList = res 319 this.upList = res
322 }).catch((err) => { 320 }).catch((err) => {
323 console.log(err) 321 console.log(err)
@@ -377,11 +375,15 @@ @@ -377,11 +375,15 @@
377 console.log(err) 375 console.log(err)
378 }) 376 })
379 }, 377 },
380 -  
381 //点击选中的升学方式 378 //点击选中的升学方式
382 selectup(e) { 379 selectup(e) {
  380 + console.log('34783443797')
383 this.schoolmate.up_id = e.currentTarget.dataset.id 381 this.schoolmate.up_id = e.currentTarget.dataset.id
384 - console.log(e.currentTarget.dataset.id) 382 + this.schoolmate.university_id=''
  383 + this.schoolmate.graduated_id=''
  384 + this.schoolmate.page = 1;
  385 + this.word='';
  386 + this.schoolmateList = []
385 this.getmatelist() 387 this.getmatelist()
386 this.isStyleShow = false 388 this.isStyleShow = false
387 }, 389 },
@@ -389,18 +391,25 @@ @@ -389,18 +391,25 @@
389 //点击选中的专业 391 //点击选中的专业
390 selectgraduated(e) { 392 selectgraduated(e) {
391 this.schoolmate.graduated_id = e.currentTarget.dataset.id; 393 this.schoolmate.graduated_id = e.currentTarget.dataset.id;
392 - console.log('选择的id',this.schoolmate.graduated_id)  
393 - this.isMajorShow = false 394 + console.log('选择的id', this.schoolmate.graduated_id)
  395 + this.isMajorShow = false;
  396 + this.schoolmate.page = 1;
  397 + this.schoolmate.page=1,
  398 + this.schoolmate.university_id=''
  399 + this.schoolmate.up_id=''
  400 + this.word=''
  401 + this.schoolmateList = []
394 this.getmatelist() 402 this.getmatelist()
395 -  
396 -  
397 }, 403 },
398 //点击选中的学校 404 //点击选中的学校
399 selectschool(e) { 405 selectschool(e) {
400 - this.schoolmate.university_id = e.currentTarget.dataset.id  
401 - console.log(e.currentTarget.dataset.id) 406 + this.schoolmate.page = 1
  407 + this.schoolmate.graduated_id = ''
  408 + this.schoolmate.up_id = ''
  409 + this.word = '';
402 this.isDiquShow = false 410 this.isDiquShow = false
403 - 411 + this.schoolmate.university_id = e.currentTarget.dataset.id;
  412 + this.schoolmateList=[]
404 this.getmatelist() 413 this.getmatelist()
405 414
406 }, 415 },
@@ -415,12 +424,12 @@ @@ -415,12 +424,12 @@
415 }, 424 },
416 //点击全部省 425 //点击全部省
417 selectallprovince() { 426 selectallprovince() {
418 - this.schoolmate.page=1,  
419 - this.schoolmate.university_id=''  
420 - this.schoolmate.graduated_id=''  
421 - this.schoolmate.up_id=''  
422 - this.word=''  
423 - 427 + this.schoolmate.page = 1,
  428 + this.schoolmate.university_id = ''
  429 + this.schoolmate.graduated_id = ''
  430 + this.schoolmate.up_id = ''
  431 + this.word = ''
  432 + this.schoolmateList = []
424 this.getmatelist() 433 this.getmatelist()
425 this.isDiquShow = false 434 this.isDiquShow = false
426 }, 435 },
@@ -437,8 +446,6 @@ @@ -437,8 +446,6 @@
437 this.schoolList = []; 446 this.schoolList = [];
438 this.getAllSchool() 447 this.getAllSchool()
439 } 448 }
440 -  
441 -  
442 }, 449 },
443 todetile(e) { 450 todetile(e) {
444 if (uni.getStorageSync('token') == '') { 451 if (uni.getStorageSync('token') == '') {
@@ -455,8 +462,6 @@ @@ -455,8 +462,6 @@
455 } 462 }
456 463
457 } 464 }
458 -  
459 -  
460 }, 465 },
461 onLoad(options) { 466 onLoad(options) {
462 console.log(options.type) 467 console.log(options.type)
@@ -469,9 +474,9 @@ @@ -469,9 +474,9 @@
469 this.getAllProvince() 474 this.getAllProvince()
470 475
471 }, 476 },
472 - onShow(){  
473 - this.page=1;  
474 - this.schoolmateList=[] 477 + onShow() {
  478 + this.page = 1;
  479 + this.schoolmateList = []
475 this.getmatelist() 480 this.getmatelist()
476 } 481 }
477 482