|
@@ -6,7 +6,7 @@
|
|
|
<button class="admin-button-com middle blue" @click="selectFlowerNumFn()">图片分类</button>
|
|
<button class="admin-button-com middle blue" @click="selectFlowerNumFn()">图片分类</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="search-bar">
|
|
<view class="search-bar">
|
|
|
- <app-search-module v-model="py" placeholder="输入拼音首字母搜索" @input="searchFn"/>
|
|
|
|
|
|
|
+ <app-search-module v-model="globalPy" ref="globalSearchRef" placeholder="这里搜索" @input="searchFn"/>
|
|
|
</view>
|
|
</view>
|
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
|
<button class="admin-button-com middle blue" @click="downloadTable()">价格表</button>
|
|
<button class="admin-button-com middle blue" @click="downloadTable()">价格表</button>
|
|
@@ -15,8 +15,8 @@
|
|
|
|
|
|
|
|
<view class="scroll-middle_bx">
|
|
<view class="scroll-middle_bx">
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
|
|
|
- <div v-for="(item, index) in globalClassItemList" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
|
|
|
- <text style="text-align: center;">{{ item.className || "" }}</text>
|
|
|
|
|
|
|
+ <div v-for="(item, index) in globalClassData" :key="index" class="tab-bar-item" :class="[globalClassIndex == index ? 'active' : '']" :data-current="index" @tap.stop="globalSwitchClass(index,item)">
|
|
|
|
|
+ <text style="text-align: center;">{{ item.name || "" }}</text>
|
|
|
</div>
|
|
</div>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
<scroll-view scroll-y class="right-box"
|
|
<scroll-view scroll-y class="right-box"
|
|
@@ -27,14 +27,14 @@
|
|
|
@scrolltolower="scroll_bottom">
|
|
@scrolltolower="scroll_bottom">
|
|
|
|
|
|
|
|
<block v-if="!$util.isEmpty(globalClassItemList)">
|
|
<block v-if="!$util.isEmpty(globalClassItemList)">
|
|
|
- <view class="item_list_bx selectAll" v-for="(classItem, classIndex) in globalClassItemList" :key="classIndex" :id="`class_${classIndex}`">
|
|
|
|
|
- <view class="item_list_title"> {{ classItem.className }}</view>
|
|
|
|
|
|
|
+ <view class="item_list_bx selectAll">
|
|
|
|
|
+ <view class="item_list_title"></view>
|
|
|
|
|
|
|
|
- <view v-if="classItem.child && !$util.isEmpty(classItem.child)">
|
|
|
|
|
|
|
+ <view v-if="!$util.isEmpty(globalItemData)">
|
|
|
|
|
|
|
|
- <template v-for="(productItem, productIndex) in classItem.child">
|
|
|
|
|
- <view style="height:230upx" :id="`class_${classIndex}`" :key="productIndex">
|
|
|
|
|
- <ItemComponent v-if="classItem.isActive" :isPrice="false" :info="productItem" @hideChangeFn="hideChangeFn" :ref="`productRef${productItem.id}`"
|
|
|
|
|
|
|
+ <template v-for="(productItem, productIndex) in globalItemData">
|
|
|
|
|
+ <view style="height:230upx" :key="productIndex">
|
|
|
|
|
+ <ItemComponent :isPrice="false" :info="productItem" @hideChangeFn="hideChangeFn" :ref="`productRef${productItem.id}`"
|
|
|
@savePrice="savePrice" @cancelDiscountFn="cancelDiscountFn" @cancelFullOff="cancelFullOff" @cancelPreSellFn="cancelPreSellFn"></ItemComponent>
|
|
@savePrice="savePrice" @cancelDiscountFn="cancelDiscountFn" @cancelFullOff="cancelFullOff" @cancelPreSellFn="cancelPreSellFn"></ItemComponent>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -62,14 +62,12 @@
|
|
|
<button class="admin-button-com big blue" style="width:40vw;" @click="commitPrice">保存修改</button>
|
|
<button class="admin-button-com big blue" style="width:40vw;" @click="commitPrice">保存修改</button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <uni-popup ref="selectFlowerNumRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
|
|
|
|
+ <uni-popup ref="globalClassImgRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
<view style="display:flex;padding:20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
|
|
<view style="display:flex;padding:20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
|
|
|
-
|
|
|
|
|
- <view v-for="(item, index) in globalClassItemList" :key="index" @tap.stop="changeClass(index)" style="margin-bottom:20upx;margin-left:3upx;">
|
|
|
|
|
- <image :src="item.classCover" style="width:120upx;height:120upx;border-radius:10upx;"></image>
|
|
|
|
|
- <view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:120upx;text-align:center;">{{item.className}}</view>
|
|
|
|
|
|
|
+ <view v-for="(item, index) in globalClassData" :key="index" @tap.stop="globalChangeClass(index,item)" style="margin-bottom:20upx;margin-left:3upx;">
|
|
|
|
|
+ <image :src="item.cover" style="width:120upx;height:120upx;border-radius:10upx;"></image>
|
|
|
|
|
+ <view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:120upx;text-align:center;">{{item.name}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
|
|
|
|
@@ -82,7 +80,7 @@
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import ItemComponent from "./components/Item2";
|
|
import ItemComponent from "./components/Item2";
|
|
|
-import productMins from "@/mixins/product";
|
|
|
|
|
|
|
+import productMins from "@/mixins/product2";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import { batchChangePrice,generatePriceTable,cancelDiscountPrice,cancelFullOffFn,cancelPreSell } from '@/api/product'
|
|
import { batchChangePrice,generatePriceTable,cancelDiscountPrice,cancelFullOffFn,cancelPreSell } from '@/api/product'
|
|
|
import { changeFrontHide } from '@/api/item'
|
|
import { changeFrontHide } from '@/api/item'
|
|
@@ -111,7 +109,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
goBatchChange(){
|
|
goBatchChange(){
|
|
|
- this.$util.pageTo({url: '/admin/changePrice/batchChange2'})
|
|
|
|
|
|
|
+ this.$util.pageTo({url: '/admin/changePrice/batchChange'})
|
|
|
},
|
|
},
|
|
|
hideChangeFn(item,status){
|
|
hideChangeFn(item,status){
|
|
|
let that = this
|
|
let that = this
|
|
@@ -121,12 +119,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- changeClass(index){
|
|
|
|
|
- this.$refs.selectFlowerNumRef.close()
|
|
|
|
|
- this.swichClass(index)
|
|
|
|
|
- },
|
|
|
|
|
selectFlowerNumFn(){
|
|
selectFlowerNumFn(){
|
|
|
- this.$refs.selectFlowerNumRef.open('top')
|
|
|
|
|
|
|
+ this.$refs.globalClassImgRef.open('top')
|
|
|
},
|
|
},
|
|
|
hideClassRemind(){
|
|
hideClassRemind(){
|
|
|
|
|
|