From 731b3a23a6369aaef5c4fdc0ff4524eb6a7f3642 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 13 九月 2024 19:07:12 +0800 Subject: [PATCH] update 合伙人、花店端 --- sub_pages/customer/trade/trade.vue | 40 +++++++++++++++++++--------------------- 1 files changed, 19 insertions(+), 21 deletions(-) diff --git a/sub_pages/customer/trade/trade.vue b/sub_pages/customer/trade/trade.vue index a7612cc..4d66227 100644 --- a/sub_pages/customer/trade/trade.vue +++ b/sub_pages/customer/trade/trade.vue @@ -23,11 +23,10 @@ <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"> @@ -140,17 +139,16 @@ 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: "请输入分类", } @@ -217,24 +215,24 @@ }) }, 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('标题搜店铺修改成功'); + } }); } }, -- Gitblit v1.9.3