#
zjj
2024-08-21 54fce333aae7d6f596616a6eb5e65c27c28a9994
pages/basics/matSelect.vue
@@ -4,7 +4,7 @@
         <view class="search-box">
            <view class="search-area">
               <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view>
               <input type="text" @focus="inputF" v-model="condition" placeholder="请输入商品编码 / 名称"/>
               <input type="text" v-model="condition" placeholder="请输入商品编码 / 名称"/>
               <view class="close-icon" @click="reset()"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view>
            </view>
            <view class="search-btn"><button @click="search(condition)" class="cu-btn bg-blue">搜索</button></view>
@@ -35,12 +35,12 @@
            </label>
         </checkbox-group>
      </scroll-view>
      <view class="record" v-show="recordShow">
      <!-- <view class="record" v-show="recordShow">
         <label class="record-card" v-for="(item,index) in record" :key="index" @click="chose(index)">
            <view style="padding: 0 5rpx 0  10rpx;">{{item}}</view>
            <uni-icons style="padding: 0 5rpx 0  5rpx;" type="closeempty" size="22" color="#a5a5a5" @click="del(index)"></uni-icons>
         </label>
      </view>
      </view> -->
      </view>
</template>
@@ -103,6 +103,7 @@
                  'token':uni.getStorageSync('token'),
                },
               success(result) {
                  console.log(result);
                  uni.hideLoading();
                  var res = result.data
                  if (res.code === 200 ) {
@@ -143,9 +144,9 @@
            this.record.splice(i,1)
            uni.setStorageSync("record",this.record)
         },
         chose(i) {
            this.condition = this.record[i]
         },
         // chose(i) {
         //    this.condition = this.record[i]
         // },
         showTag(parentId) {
            let that = this
            uni.showLoading();
@@ -246,6 +247,9 @@
      z-index: 1;
      position: fixed;
      top: 188rpx;
      /* #ifdef APP-PLUS */
      top: 89rpx;
      /* #endif */
      width: 100%;
      min-height: 50rpx;
      background-color: #E4E7ED;