#
whycq
2022-08-24 10bab6c75eb356f4ec4cf17e24257f98dcb08235
pages/basics/notificationFile.vue
@@ -1,18 +1,43 @@
<template>
   <view>
      <!-- 搜索框 -->
      <view class="square-1">
         <view class="searchBox">
            <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view>
            <view class="searchArea"><input type="text" placeholder=" 请输入"></view>
            <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada"></uni-icons></view>
      <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" v-model="zpallet" 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(zpallet)" class="cu-btn bg-blue">搜索</button></view>
      </view>
      <!-- list列表 -->
      <checkbox-group @change="checkbox">
         <label v-for="(item,index) in listData" :key="index" class="demo-list bg-false" :class="'bg-'+item.checked" >
            <view class="demo-list-left">
               <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
            </view>
            <view class="demo-list-right">
               <view>托盘条码:{{item.zpallet}}</view>
               <view>托盘名称:{{item.maktx}}</view>
               <view>商品编码:{{item.matnr}}-{{item.batch}}</view>
               <view>仓库号:{{item.origin}}</view>
            </view>
         </label>
      </checkbox-group>
      <!-- 底部刷新 -->
      <uni-load-more :status="status" :icon-size="16" :content-text="contentText" />
      <!-- 底部按钮 -->
      <view class="footer flex justify-around">
         <view>
            <button class="cu-btn lg" @click="resst()">重置</button>
         </view>
         <view>
            <button class="cu-btn lg pakin-btn bg-red" @click="comb()">删除</button>
         </view>
      </view>
      <view style="width: 100%;height: 200rpx;background-color: aqua;margin-top: 10rpx;"
         v-for="(item,index) in listData" :key="index">
         <text>{{index}}</text>
      </view>
      <uni-load-more :status="status" :icon-size="16" :content-text="contentText" />
   </view>
</template>
@@ -21,6 +46,7 @@
      data() {
         return {
            commonUrl:null,
            zpallet:'',
            listData: [],
            reload: false,
            status: 'more',
@@ -86,44 +112,107 @@
</script>
<style>
   .searchBox {
      position: absolute;
      width: 94%;
      height: 80%;
      top: 0;
   .search-box {
      position: fixed;
      left: 0;
      bottom: 0;
      right: 0;
      margin: auto;
      background-color: #F9F9F9;
      border-radius: 20rpx;
      top: 0;
      width: 100%;
      height: 100rpx;
      background-color: #FFF;
      border-bottom: 1px solid #d8d8d8;
      border-radius: 0 0 20rpx 20rpx;
      z-index: 1;
   }
   .searchIcon {
   /*#ifdef H5 */
   .search-box {
      position: fixed;
      left: 0;
      top: 89rpx;
      width: 100%;
      height: 100rpx;
      background-color: #ffffff;
      border-bottom: 1px solid #d8d8d8;
      border-radius: 0 0 20rpx 20rpx;
      z-index: 1;
   }
   /* #endif */
   .search-area {
      display: inline-block;
      background-color: #F1F1F1;
      width: 75%;
      height: 70%;
      margin: 15rpx;
      border-radius: 15rpx;
   }
   .search-area input {
      display: inline-block;
      height: 70rpx;
      width: 70%;
      line-height: 70rpx;
      font-size: 25rpx;
      font-weight: 400;
   }
   .search-btn {
      display: inline-block;
      float: right;
      margin-right: 30rpx;
      margin-top: 15rpx;
   }
   .search-icon {
      display: inline-block;
      float: left;
      width: 10%;
      height: 100%;
      width: 70rpx;
      height: 70rpx;
      text-align: center;
      line-height: 80rpx;
      line-height: 70rpx;
   }
   .close-icon {
      display: inline-block;
      float: right;
      width: 70rpx;
      height: 70rpx;
      text-align: center;
      line-height: 70rpx;
   }
   
   .searchArea {
   .bg-false {
      background-color: #FFFFFF;
   }
   .bg-true {
      background-color: #ebebeb;
   }
   .demo-list {
      border-bottom: 1px solid #d8d8d8;
      height: 180rpx;
      margin: 15rpx;
      border-radius: 20rpx;
   }
   .demo-list:first-child {
      margin-top: 120rpx;
   }
   .demo-list:last-child {
      margin-bottom: 120rpx;
   }
   label {
      display: block;
   }
   .demo-list-left {
      display: inline-block;
      float: left;
      width: 80%;
      height: 100%;
   }
   .searchArea input {
      height: 100%;
      font-size: 14px;
      color: #5f5f5f;
   }
   .closeIcon {
      display: inline-block;
      float: left;
      width: 10%;
      height: 100%;
      text-align: center;
      line-height: 80rpx;
      width: 100rpx;
      height: 180rpx;
      line-height: 180rpx;
   }
   .demo-list-right {
      display: inline-block;
      float: left;
      height: 180rpx;
      color: #828282;
   }
</style>