作者 lihongjuan

1

@@ -107,7 +107,7 @@ export default { @@ -107,7 +107,7 @@ export default {
107 usera_id:that.userb_id, 107 usera_id:that.userb_id,
108 userb_id:that.usera_id, 108 userb_id:that.usera_id,
109 des_content:that.des_content, 109 des_content:that.des_content,
110 - createtime:datek 110 + createtime:datek
111 } 111 }
112 } 112 }
113 113
@@ -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
@@ -15,23 +15,22 @@ @@ -15,23 +15,22 @@
15 <view class="typeitem" @click="majorShow" :class="{'active':active3}">专业</view> 15 <view class="typeitem" @click="majorShow" :class="{'active':active3}">专业</view>
16 <view class="typeitem" @click="styleShow" :class="{'active':active4}">升学方式</view> 16 <view class="typeitem" @click="styleShow" :class="{'active':active4}">升学方式</view>
17 <view class="diquPopup" v-if="isDiquShow"> 17 <view class="diquPopup" v-if="isDiquShow">
18 - 18 +
19 <view class="cont"> 19 <view class="cont">
20 <view class="colum" style="overflow: auto;height: 600rpx;"> 20 <view class="colum" style="overflow: auto;height: 600rpx;">
21 <view class="title" @click="selectallprovince">全部</view> 21 <view class="title" @click="selectallprovince">全部</view>
22 <view class="item" @click="selectprovince" v-for="(item,index) in provinceList" :key="index" :data-id="item.code">{{item.name}}</view> 22 <view class="item" @click="selectprovince" v-for="(item,index) in provinceList" :key="index" :data-id="item.code">{{item.name}}</view>
23 - 23 +
24 </view> 24 </view>
25 <view class="colum" style="overflow: auto;height: 600rpx;"> 25 <view class="colum" style="overflow: auto;height: 600rpx;">
26 <!-- <view class="title" @click="selectallcity" :data-id="null">这个省的市</view> --> 26 <!-- <view class="title" @click="selectallcity" :data-id="null">这个省的市</view> -->
27 <view class="item" @click="selectcity" v-for="(item,index) in cityList" :key="index" :data-id="item.code">{{item.name}}</view> 27 <view class="item" @click="selectcity" v-for="(item,index) in cityList" :key="index" :data-id="item.code">{{item.name}}</view>
28 - 28 +
29 </view> 29 </view>
30 <view class="colum" style="overflow: auto;height: 600rpx;"> 30 <view class="colum" style="overflow: auto;height: 600rpx;">
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>
  52 +
53 <view class="stylePopup" v-if="isStyleShow"> 53 <view class="stylePopup" v-if="isStyleShow">
54 -  
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 -  
59 -  
60 - 57 +
61 </view> 58 </view>
62 </view> 59 </view>
63 </view> 60 </view>
@@ -83,13 +80,13 @@ @@ -83,13 +80,13 @@
83 </view> 80 </view>
84 </view> 81 </view>
85 <view class="nodata" v-if="schoolmateList.length==0">暂无数据</view> 82 <view class="nodata" v-if="schoolmateList.length==0">暂无数据</view>
86 - 83 +
87 <!-- <view class="box"> 84 <!-- <view class="box">
88 <view class="text"><text @click="tobuy">购买畅读卡</text>可以额外找到888人</view> 85 <view class="text"><text @click="tobuy">购买畅读卡</text>可以额外找到888人</view>
89 </view> --> 86 </view> -->
90 <!-- <tab :current="currentTabIndex" @getData="tabClick"></tab> --> 87 <!-- <tab :current="currentTabIndex" @getData="tabClick"></tab> -->
91 <view class="teacherfooter" v-if="type == 1"> 88 <view class="teacherfooter" v-if="type == 1">
92 - 89 +
93 <view class="teacherfootitem"> 90 <view class="teacherfootitem">
94 <view class="teacherfootitemtop" @click="footerselChange" :data-id="1" :data-url="'/pages/school/school?type='+1"> 91 <view class="teacherfootitemtop" @click="footerselChange" :data-id="1" :data-url="'/pages/school/school?type='+1">
95 <image :src="footersel==1?'/static/xuexiao_icon@2x.png':'/static/xuexiao_icon@2x3.png'"></image> 92 <image :src="footersel==1?'/static/xuexiao_icon@2x.png':'/static/xuexiao_icon@2x3.png'"></image>
@@ -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)
@@ -347,7 +345,7 @@ @@ -347,7 +345,7 @@
347 } 345 }
348 app.post(url, params, "get").then((res) => { 346 app.post(url, params, "get").then((res) => {
349 console.log(res) 347 console.log(res)
350 - 348 +
351 // let obj={ 349 // let obj={
352 // code:'', 350 // code:'',
353 // name:'全部市' 351 // name:'全部市'
@@ -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