shish 4 лет назад
Родитель
Сommit
320f4a764c
2 измененных файлов с 37 добавлено и 32 удалено
  1. 37 31
      hdPad/src/admin/home/components/rightGoodsArea.vue
  2. 0 1
      hdPad/src/mixins/product.js

+ 37 - 31
hdPad/src/admin/home/components/rightGoodsArea.vue

@@ -5,6 +5,7 @@
         </view>
         </view>
 
 
         <scroll-view class="shop-show_box" enable-flex="true" scroll-y="true" lower-threshold="20" @scrolltolower="reachBottom">
         <scroll-view class="shop-show_box" enable-flex="true" scroll-y="true" lower-threshold="20" @scrolltolower="reachBottom">
+            <view class="goods-item-area">
             <view v-for="item in list.data" :key="item.id" class="show-shop_box">
             <view v-for="item in list.data" :key="item.id" class="show-shop_box">
                 <view class="item-detail" @click="popAddModelFn(item)">
                 <view class="item-detail" @click="popAddModelFn(item)">
                     <image class="img" :src="item.cover" mode="scaleToFill" ></image>
                     <image class="img" :src="item.cover" mode="scaleToFill" ></image>
@@ -16,6 +17,7 @@
                     </view>
                     </view>
                 </view>
                 </view>
             </view>
             </view>
+            </view>
         </scroll-view>
         </scroll-view>
 
 
         <slot name="footer"></slot>
         <slot name="footer"></slot>
@@ -110,42 +112,46 @@ export default {
     flex-direction: column;
     flex-direction: column;
     box-sizing: border-box;
     box-sizing: border-box;
     & .shop-show_box{
     & .shop-show_box{
-        flex: 1;
         padding: 2upx;
         padding: 2upx;
-        display: flex;
-        flex-wrap: wrap;
         overflow-y: scroll;
         overflow-y: scroll;
         overflow-x: hidden;
         overflow-x: hidden;
-        height:80vh;
-        & .show-shop_box{
-            & .item-detail{
-                position: relative;
-                margin-right: 9upx;
-                margin-bottom: 6upx;
-                width: 82upx;
-                height: 82upx;
-                & .img {
+        & .goods-item-area{
+            flex: 1;
+            display: flex;
+            flex-wrap: wrap;
+            overflow-y: scroll;
+            overflow-x: hidden;
+            height:90vh;
+            & .show-shop_box{
+                & .item-detail{
+                    position: relative;
+                    margin-right: 9upx;
+                    margin-bottom: 6upx;
                     width: 82upx;
                     width: 82upx;
                     height: 82upx;
                     height: 82upx;
-                }
-                .shop-info_price {
-                    position: absolute;
-                    background-color: rgba(0, 0, 0, 0.5);
-                    bottom: 0;
-                    width: 100%;
-                    font-size: 12upx;
-                    color: #ffffff;
-                    height:25upx;
-                    & > view {
-                        font-size: 10upx;
-                        & > view:nth-child(1) {
-                            overflow: hidden;
-                            text-overflow:ellipsis;
-                            white-space: nowrap;
-                            width:90%;
-                        }
-                        & > view:nth-child(2) {
-                            font-size:8upx;
+                    & .img {
+                        width: 82upx;
+                        height: 82upx;
+                    }
+                    .shop-info_price {
+                        position: absolute;
+                        background-color: rgba(0, 0, 0, 0.5);
+                        bottom: 0;
+                        width: 100%;
+                        font-size: 12upx;
+                        color: #ffffff;
+                        height:25upx;
+                        & > view {
+                            font-size: 10upx;
+                            & > view:nth-child(1) {
+                                overflow: hidden;
+                                text-overflow:ellipsis;
+                                white-space: nowrap;
+                                width:90%;
+                            }
+                            & > view:nth-child(2) {
+                                font-size:8upx;
+                            }
                         }
                         }
                     }
                     }
                 }
                 }

+ 0 - 1
hdPad/src/mixins/product.js

@@ -99,7 +99,6 @@ export default {
 		},
 		},
 		//取出缓存数据
 		//取出缓存数据
 		initDataFromStorage() {
 		initDataFromStorage() {
-			console.log('aaaabc')
 			let currentInfo = uni.getStorageSync('selectList_'+this.selectJobType+'_target_'+this.selectJobId)
 			let currentInfo = uni.getStorageSync('selectList_'+this.selectJobType+'_target_'+this.selectJobId)
 			if(!this.$util.isEmpty(currentInfo)){
 			if(!this.$util.isEmpty(currentInfo)){
 				this.setSelectInfo({ selectJobType: this.selectJobType, info: currentInfo,selectJobId:this.selectJobId })
 				this.setSelectInfo({ selectJobType: this.selectJobType, info: currentInfo,selectJobId:this.selectJobId })