作者 lihongjuan

1

... ... @@ -107,7 +107,7 @@ export default {
usera_id:that.userb_id,
userb_id:that.usera_id,
des_content:that.des_content,
createtime:datek
createtime:datek
}
}
... ...
... ... @@ -150,7 +150,7 @@ methods:{
fail: function (res) { },
complete: function (res) { },
})
微信程
},
liuyanBoxShow(){
this.isliuyanBoxShow=true
... ...
... ... @@ -15,23 +15,22 @@
<view class="typeitem" @click="majorShow" :class="{'active':active3}">专业</view>
<view class="typeitem" @click="styleShow" :class="{'active':active4}">升学方式</view>
<view class="diquPopup" v-if="isDiquShow">
<view class="cont">
<view class="colum" style="overflow: auto;height: 600rpx;">
<view class="title" @click="selectallprovince">全部</view>
<view class="item" @click="selectprovince" v-for="(item,index) in provinceList" :key="index" :data-id="item.code">{{item.name}}</view>
</view>
<view class="colum" style="overflow: auto;height: 600rpx;">
<!-- <view class="title" @click="selectallcity" :data-id="null">这个省的市</view> -->
<view class="item" @click="selectcity" v-for="(item,index) in cityList" :key="index" :data-id="item.code">{{item.name}}</view>
</view>
<view class="colum" style="overflow: auto;height: 600rpx;">
<!-- <view class="title" @click="selectschool" :data-id="null">全部学校</view> -->
<view class="item" @click="selectschool" v-for="(item,index) in schoolList" :key="index" :data-id="item.id">{{item.name}}</view>
</view>
</view>
</view>
<!-- <view class="schoolPopup" v-if="isSchoolShow">
... ... @@ -50,14 +49,12 @@
:data-id="item.id">{{item.name}}</view>
</view>
</view>
<view class="stylePopup" v-if="isStyleShow">
<view class="cont" style="display:flex;flex-direction: column;overflow: auto;height: 600rpx;">
<view class="title" @click="selectup" :data-id="null">全部</view>
<!-- <view class="title" @click="selectup" :data-id="null">全部</view> -->
<view class="item" style="width:230rpx" @click="selectup" v-for="(item,index) in upList" :key="index" :data-id="item.id">{{item.name}}</view>
</view>
</view>
</view>
... ... @@ -83,13 +80,13 @@
</view>
</view>
<view class="nodata" v-if="schoolmateList.length==0">暂无数据</view>
<!-- <view class="box">
<view class="text"><text @click="tobuy">购买畅读卡</text>可以额外找到888人</view>
</view> -->
<!-- <tab :current="currentTabIndex" @getData="tabClick"></tab> -->
<view class="teacherfooter" v-if="type == 1">
<view class="teacherfootitem">
<view class="teacherfootitemtop" @click="footerselChange" :data-id="1" :data-url="'/pages/school/school?type='+1">
<image :src="footersel==1?'/static/xuexiao_icon@2x.png':'/static/xuexiao_icon@2x3.png'"></image>
... ... @@ -109,7 +106,6 @@
<view class="teacherfootname" :class="footersel==3?'selactive':''">我的主页</view>
</view>
</view>
<view class="collegefooter" v-if="type == 2">
<view class="teacherfootitem" @click="footerselChange" :data-id="2" :data-url="'/pages/schoolmate/schoolmate?type='+2">
<view class="teacherfootitemtop">
... ... @@ -124,16 +120,9 @@
<view class="teacherfootname" :class="footersel==3?'selactive':''">我的主页</view>
</view>
</view>
</view>
</view>
</template>
<script>
... ... @@ -180,7 +169,7 @@
provinceList: [],
cityList: [],
schoolList: [],
word:""
word: ""
}
},
methods: {
... ... @@ -246,6 +235,7 @@
},
styleShow() {
console.log(37844374378)
this.isStyleShow = true
this.isMajorShow = false
this.isSchoolShow = false
... ... @@ -253,7 +243,10 @@
this.active1 = false,
this.active2 = false
this.active3 = false
this.active4 = true
this.active4 = true;
// this.this.schoolmate.page=1;
// this.schoolmateList=[]
},
// 底部导航跳转
... ... @@ -293,7 +286,7 @@
}
app.post(url, params, "get").then((res) => {
console.log(res)
this.schoolmateList =this.schoolmateList.concat(res)
this.schoolmateList = this.schoolmateList.concat(res)
}).catch((err) => {
console.log(err)
})
... ... @@ -318,6 +311,11 @@
var params = {}
app.post(url, params, "get").then((res) => {
console.log(res[0].name)
let obj = {
id: '',
name: '全部'
}
res.unshift(obj)
this.upList = res
}).catch((err) => {
console.log(err)
... ... @@ -347,7 +345,7 @@
}
app.post(url, params, "get").then((res) => {
console.log(res)
// let obj={
// code:'',
// name:'全部市'
... ... @@ -377,11 +375,15 @@
console.log(err)
})
},
//点击选中的升学方式
selectup(e) {
console.log('34783443797')
this.schoolmate.up_id = e.currentTarget.dataset.id
console.log(e.currentTarget.dataset.id)
this.schoolmate.university_id=''
this.schoolmate.graduated_id=''
this.schoolmate.page = 1;
this.word='';
this.schoolmateList = []
this.getmatelist()
this.isStyleShow = false
},
... ... @@ -389,18 +391,25 @@
//点击选中的专业
selectgraduated(e) {
this.schoolmate.graduated_id = e.currentTarget.dataset.id;
console.log('选择的id',this.schoolmate.graduated_id)
this.isMajorShow = false
console.log('选择的id', this.schoolmate.graduated_id)
this.isMajorShow = false;
this.schoolmate.page = 1;
this.schoolmate.page=1,
this.schoolmate.university_id=''
this.schoolmate.up_id=''
this.word=''
this.schoolmateList = []
this.getmatelist()
},
//点击选中的学校
selectschool(e) {
this.schoolmate.university_id = e.currentTarget.dataset.id
console.log(e.currentTarget.dataset.id)
this.schoolmate.page = 1
this.schoolmate.graduated_id = ''
this.schoolmate.up_id = ''
this.word = '';
this.isDiquShow = false
this.schoolmate.university_id = e.currentTarget.dataset.id;
this.schoolmateList=[]
this.getmatelist()
},
... ... @@ -415,12 +424,12 @@
},
//点击全部省
selectallprovince() {
this.schoolmate.page=1,
this.schoolmate.university_id=''
this.schoolmate.graduated_id=''
this.schoolmate.up_id=''
this.word=''
this.schoolmate.page = 1,
this.schoolmate.university_id = ''
this.schoolmate.graduated_id = ''
this.schoolmate.up_id = ''
this.word = ''
this.schoolmateList = []
this.getmatelist()
this.isDiquShow = false
},
... ... @@ -437,8 +446,6 @@
this.schoolList = [];
this.getAllSchool()
}
},
todetile(e) {
if (uni.getStorageSync('token') == '') {
... ... @@ -455,8 +462,6 @@
}
}
},
onLoad(options) {
console.log(options.type)
... ... @@ -469,9 +474,9 @@
this.getAllProvince()
},
onShow(){
this.page=1;
this.schoolmateList=[]
onShow() {
this.page = 1;
this.schoolmateList = []
this.getmatelist()
}
... ...