Commit 460ca7cc authored by Mac's avatar Mac

匹配条件

parent 29bd98f9
......@@ -154,21 +154,23 @@
</scroll-view>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</div>
</template>
<script>
import matchmaking from "@/components/matchmaking/index"
import rangeSlider from "../components/range-slider.vue"
import rangeSlider from "../components/range-slider.vue"
import auth from "@/components/auth/index.vue";
export default {
components: {
matchmaking,
rangeSlider
rangeSlider,
auth
},
data() {
return {
showAuth:false,
u:{},
mainColor: '',
active: 0,
searchKey: "",
......@@ -212,10 +214,7 @@
},
page_count: 1,
status: "loadmore",
data: {
listStyle: -1,
list: [],
},
width: 0, //滑块的高度
cHeight: 0,
ages: [0, 0], //年龄
......@@ -237,19 +236,18 @@
}
}
this.cHeight = this.$uiConfig.is_bang ? 60 : 52;
if (uni.getStorageSync('blindDate_listStyle')) { //从缓存里获取图片模式
this.data.listStyle = uni.getStorageSync('blindDate_listStyle').style;
this.Styletype = uni.getStorageSync('blindDate_listStyle').style;
} else {
uni.setStorageSync("blindDate_listStyle", {
style: this.data.listStyle
}); //吧当前时间存起来
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
this.getmethod()
}
this.GetBaseInfoQueryList() //获取筛选数据
this.getEnumList(); //学历
this.getMarriage(); //婚姻
this.GetHouseList() //获取房屋枚举
this.GetCarList() //获取车辆枚举
},
created() {
this.mainColor = this.$uiConfig.mainColor;
......@@ -273,7 +271,14 @@
},
methods: {
methods: {
getmethod(){
this.GetBaseInfoQueryList() //获取筛选数据
this.getEnumList(); //学历
this.getMarriage(); //婚姻
this.GetHouseList() //获取房屋枚举
this.GetCarList() //获取车辆枚举
},
GetBaseInfoQueryList() {
this.request2({
url: '/api/AppletMiai/GetBaseInfoQueryList',
......@@ -350,7 +355,7 @@
this.active = i;
this.msg.Sex = this.typeList[i].Id;
this.msg.pageIndex = 1;
this.data.list = [];
this.getscreen(this.queryList)
},
goreset() { //重置
......@@ -377,17 +382,14 @@
this.Weights = [0, 0]; //体重
this.YearMoeys = [0, 0]; //年收入
this.msg = data;
this.data.list = [];
this.init(2);
},
determine() { //确定
this.msg.pageIndex = 1;
this.data.list = [];
this.data.listStyle = this.Styletype
uni.setStorageSync("blindDate_listStyle", {
style: this.data.listStyle
}); //吧当前时间存起来
this.init(1);
this.show = false
},
......@@ -479,6 +481,15 @@
}
}
);
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.getmethod();
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment