Commit 460ca7cc authored by Mac's avatar Mac

匹配条件

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