新增限时折扣并增加头部底部按钮公共组件

This commit is contained in:
gyq
2025-11-19 10:23:17 +08:00
parent 4567206abb
commit fbcb67440b
9 changed files with 529 additions and 169 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="container">
<HeaderCard :options="{ name: '限时折扣', intro: '批量设置商品折扣', icon: 'xszk' }" @load="headLoad" />
<my-header-card :options="{ name: '限时折扣', intro: '批量设置商品折扣', icon: 'xszk' }"></my-header-card>
<view class="list">
<view class="item" v-for="item in tableData.list" :key="item.id">
<view class="head">
@@ -32,7 +32,7 @@
</view>
</view>
<u-loadmore :status="tableData.status"></u-loadmore>
<FooterBtn />
<my-footer-btn @confirm="go.to('PAGES_LIMIT_DISCOUNT_ADD')"></my-footer-btn>
</view>
</template>
@@ -42,12 +42,7 @@ import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import HeaderCard from '../components/HeaderCard.vue';
import FooterBtn from '../components/FooterBtn.vue';
import { limitTimeDiscountPage } from '@/http/api/market/index.js';
// 标题的高度
const headHeight = ref(0);
function headLoad(e) {
headHeight.value = e.height;
}
import go from '@/commons/utils/go.js';
// 删除限时折扣
function delHandle(item) {