xuxueyang
2024-09-13 731b3a23a6369aaef5c4fdc0ff4524eb6a7f3642
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('标题搜店铺修改成功');
                  }
               });
            }
         },