|
|
@@ -9,7 +9,6 @@
|
|
|
<app-search-module v-model="py" placeholder="请输入关键词,支持拼音首字母搜索" @input="suitSearchFn" />
|
|
|
</view>
|
|
|
<view class="scroll-middle_bx">
|
|
|
- <!--商品-->
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop" v-show="tabIndex == 0">
|
|
|
<div v-for="(item, index) in suitFilterProductInfo" :key="index" class="tab-bar-item" :class="[suitClassIndex == index ? 'active' : '']" :data-current="index" @tap.stop="suitSwichClass(index)">
|
|
|
<text>{{ item.className || "" }}</text>
|
|
|
@@ -20,7 +19,6 @@
|
|
|
</text>
|
|
|
</div>
|
|
|
</scroll-view>
|
|
|
-
|
|
|
<scroll-view scroll-y class="right-box" v-show="tabIndex == 0" :scroll-into-view="suit_scroll_into_view" scroll-with-animation="true"
|
|
|
@scroll="suit_scroll_detail"
|
|
|
lower-threshold="100"
|
|
|
@@ -39,19 +37,13 @@
|
|
|
@del="delGoodsEvent"
|
|
|
></GoodsCommondity>
|
|
|
</view>
|
|
|
- <!-- <Commondity
|
|
|
- :type="COMMODITY_TYPE.CHANGE"
|
|
|
- @customNum="customNum"
|
|
|
- ></Commondity> -->
|
|
|
</template>
|
|
|
</view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
<app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(filterProductInfo)" />
|
|
|
</block>
|
|
|
- <!--内容部分 end -->
|
|
|
</scroll-view>
|
|
|
- <!--花材-->
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop" v-show="tabIndex == 1">
|
|
|
<div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
|
<text>{{ item.className || "" }}</text>
|
|
|
@@ -64,14 +56,11 @@
|
|
|
</text>
|
|
|
</div>
|
|
|
<view style="height: 120upx"></view>
|
|
|
- <!-- <view class="switchover-unit" @tap="isSmallCount = !isSmallCount">{{isSmallCount?'支':'扎'}}</view> -->
|
|
|
</scroll-view>
|
|
|
-<!-- <scroll-view scroll-y class="right-box" v-if="tabIndex == 1" :scroll-into-view="scrollClassId">-->
|
|
|
<scroll-view scroll-y class="right-box" v-show="tabIndex == 1" :scroll-into-view="scroll_into_view" scroll-with-animation="true"
|
|
|
@scroll="scroll_detail"
|
|
|
lower-threshold="100"
|
|
|
@scrolltolower="scroll_bottom">
|
|
|
- <!--内容部分 start -->
|
|
|
<block v-if="!$util.isEmpty(filterProductInfo)">
|
|
|
<view class="item_list_bx selectAll" v-for="(classItem, classIndex) in filterProductInfo" :key="classIndex" :id="`class_${classIndex}`">
|
|
|
<view class="item_list_title">
|
|
|
@@ -82,12 +71,8 @@
|
|
|
<Commondity v-if="classItem.isActive"
|
|
|
:offVerifyRepertory = 'true'
|
|
|
:info="productItem"
|
|
|
- :bigCount="
|
|
|
- getSelectItemById(productItem.id, classItem.classId).bigCount
|
|
|
- "
|
|
|
- :smallCount="
|
|
|
- getSelectItemById(productItem.id, classItem.classId).smallCount
|
|
|
- "
|
|
|
+ :bigCount="getSelectItemById(productItem.id, classItem.classId).bigCount"
|
|
|
+ :smallCount="getSelectItemById(productItem.id, classItem.classId).smallCount"
|
|
|
@customNum="customNum"
|
|
|
@add="addEvent"
|
|
|
@addOneEvent="addCustomNumEvent"
|
|
|
@@ -95,23 +80,13 @@
|
|
|
@showBigCover="showBigCover"
|
|
|
></Commondity>
|
|
|
</view>
|
|
|
- <!-- <Commondity
|
|
|
- :type="COMMODITY_TYPE.CHANGE"
|
|
|
- @customNum="customNum"
|
|
|
- ></Commondity> -->
|
|
|
</template>
|
|
|
</view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
- <app-wrapper-empty
|
|
|
- title="暂无数据"
|
|
|
- :is-empty="$util.isEmpty(filterProductInfo)"
|
|
|
- />
|
|
|
+ <app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(filterProductInfo)" />
|
|
|
</block>
|
|
|
- <!--内容部分 end -->
|
|
|
</scroll-view>
|
|
|
-
|
|
|
- <!-- 课程 -->
|
|
|
<scroll-view scroll-y scroll-with-animation v-show="tabIndex == 2" class="PxClass-box">
|
|
|
<block v-if="!$util.isEmpty(pxClassInfo)">
|
|
|
<PxClassCommondity :info="pxClassInfo"></PxClassCommondity>
|
|
|
@@ -121,40 +96,22 @@
|
|
|
</block>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
- <!-- :maskClosable="false" -->
|
|
|
<modal-module :show="isModel" @cancel="modalCancel" @click="affirm" :title="customData.itemName" color="#333" :size="32" padding="30rpx 30rpx">
|
|
|
<template slot="customContent">
|
|
|
<view class="select-cmd_bx" v-if="customData">
|
|
|
<view class="kc"> 库存 {{ customData.stock }} </view>
|
|
|
<view class="num_bx">
|
|
|
- <!--<allMoreSelectInput-->
|
|
|
- <!--:isActive="isActive" :isFocus="isFocus" :value="customData.bigCount"-->
|
|
|
- <!--:isActiveOne="isActiveOne" :isFocusOne="isFocusOne" :valueOne="customData.smallCount"-->
|
|
|
- <!--@deleteInputVal="deleteInputVal" @initAllInput="initAllInput" @moveAllInput="moveAllInput"-->
|
|
|
- <!--@deleteInputValOne="deleteInputValOne" @initAllInputOne="initAllInputOne" @moveAllInputOne="moveAllInputOne">-->
|
|
|
- <!--</allMoreSelectInput>-->
|
|
|
<input v-model="customData.bigCount" :focus="isFocus" type="number" />扎
|
|
|
<input v-model="customData.smallCount" type="number" style="margin-left:24upx" />支
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
- <modal-module
|
|
|
- :show="showSubmitModel"
|
|
|
- @cancel="cancelEvent"
|
|
|
- @click="submitEvent"
|
|
|
- :title="confirmContent"
|
|
|
- color="#333"
|
|
|
- :size="32"
|
|
|
- padding="30rpx 30rpx"
|
|
|
- >
|
|
|
+ <modal-module :show="showSubmitModel" @cancel="cancelEvent" @click="submitEvent" :title="confirmContent" color="#333" :size="32" padding="30rpx 30rpx" >
|
|
|
</modal-module>
|
|
|
- <!--<FooterCart :price="allGoodsPrice" :count="allGoodsCount" @confirm="confirmSelectGoodsEvent" v-if="tabIndex == 0"></FooterCart>-->
|
|
|
<FooterCart :price="allGoodsPrice" :countNumber="allGoodsCount" @confirm="confirmSelectGoodsEvent" v-if="tabIndex == 0"></FooterCart>
|
|
|
<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" v-if="tabIndex == 1"></FooterCart>
|
|
|
-
|
|
|
<sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
|