xuxueyang
2024-09-26 05bd41aab8c9dba2cf7afcd78493415761f11d9d
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">
@@ -61,7 +60,7 @@
                  <view class="flex1">
                     <view class="cateen_infos list">
                        <view class="title flex">
                           {{item.name}}
                           <view style="max-width: 200rpx;text-align: left;">{{item.name}}</view>
                           <view class="desc m-l-a m-r-0">在售 {{item.stock||'0'}} 扎</view>
                        </view>
                        <view class="price">
@@ -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('标题搜店铺修改成功');
                  }
               });
            }
         },