| | |
| | | <uni-icons color="#20613D" type="search" size="24" @click="buttonSearchFlow"></uni-icons> |
| | | </template> |
| | | </u-input> --> |
| | | <u-input :placeholder="search_home_placeholder" v-model="query.name" clearable @confirm="buttonSearchFlow" @clear="()=>{ |
| | | <u-input :placeholder="search_home_placeholder" v-model="query.name" clearable |
| | | @confirm="buttonSearchFlow" @clear="()=>{ |
| | | $nextTick(()=>{buttonSearchFlow()}) |
| | | }"> |
| | | <!-- <u--text text="http://" slot="prefix" margin="0 3px 0 0" type="tips"></u--text> --> |
| | | |
| | | |
| | | <template slot="suffix"> |
| | |
| | | currentCategory: {}, |
| | | type: 'category', //supplier |
| | | def: 0, |
| | | typeList:[ |
| | | { |
| | | label: '按分类', |
| | | value: 'category', |
| | | }, |
| | | { |
| | | label: '按店铺', |
| | | value: 'supplier', |
| | | }, |
| | | typeList: [{ |
| | | label: '按分类', |
| | | value: 'category', |
| | | }, |
| | | { |
| | | label: '按店铺', |
| | | value: 'supplier', |
| | | }, |
| | | ], |
| | | search_home_placeholder:"请输入分类", |
| | | search_home_placeholder: "请输入分类", |
| | | |
| | | |
| | | } |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | fnChange(e) { |
| | | fnChange(e) { |
| | | this.type = e.value |
| | | if (this.type == 'category') { |
| | | this.search_home_placeholder = '请输入分类' |
| | | uni.setNavigationBarTitle({ |
| | | title: '搜分类', |
| | | success: function() { |
| | | // console.log('标题搜鲜花修改成功'); |
| | | } |
| | | title: '搜分类', |
| | | success: function() { |
| | | // console.log('标题搜鲜花修改成功'); |
| | | } |
| | | }); |
| | | |
| | | } else { |
| | | this.search_home_placeholder = '请输入店铺名' |
| | | uni.setNavigationBarTitle({ |
| | | title: '按店铺', |
| | | success: function() { |
| | | // console.log('标题搜店铺修改成功'); |
| | | } |
| | | title: '按店铺', |
| | | success: function() { |
| | | // console.log('标题搜店铺修改成功'); |
| | | } |
| | | }); |
| | | } |
| | | }, |