Browse Source

优化一些代码

master
邓平艺 5 years ago
parent
commit
5d7e2e64c1
  1. 2
      pages.json
  2. 4
      pages/index/index.vue
  3. 8
      pages/userList/userList.vue

2
pages.json

@ -111,7 +111,7 @@
{
"path": "pages/userList/userList",
"style": {
"navigationBarTitleText": "VIP相亲交友"
"navigationBarTitleText": "相亲交友"
}
},
{

4
pages/index/index.vue

@ -2,7 +2,7 @@
<view>
<!-- 头部搜索框 -->
<view class="head-bar">
<view class="lf-flex search">
<view class="lf-flex search" @click="$url('/pages/userList/userList?name=搜索')">
<u-icon name="search" class="lf-font-30 lf-m-l-20"></u-icon>
<view class="lf-m-l-10 lf-font-24">搜索</view>
</view>
@ -36,7 +36,7 @@
<view>
<view class="lf-row-between lf-p-30 lf-p-32 lf-p-b-20">
<view class="lf-font-32 lf-color-black">推荐单身</view>
<view class="lf-color-999" @click="$url('/pages/userList/userList')">
<view class="lf-color-999" @click="$url('/pages/userList/userList?name=最新')">
<text class="lf-font-28">最新</text>
<u-icon name="arrow-right"></u-icon>
</view>

8
pages/userList/userList.vue

@ -1,7 +1,7 @@
<template>
<view>
<view class="head">
<button class="sign-in-btn">最新</button>
<button class="sign-in-btn">{{ name }}</button>
<!-- tabs -->
<view class="filter-item" v-for="(value, key) in filter" :key="key" @click="switchFilter(key)">
<text>{{ value.selected || value.name }}</text>
@ -63,11 +63,13 @@
return {
show_filter: false,
filter: this.productionObj(),
filter_key: ''
filter_key: '',
name: '最新'
}
},
onLoad(){
onLoad(options){
console.log(this.filter)
this.name = options.name || this.name;
},
methods: {
//

Loading…
Cancel
Save