挂账增加

This commit is contained in:
GaoHao
2024-11-27 11:27:54 +08:00
parent bcb058e136
commit 8d37679bac
16 changed files with 2238 additions and 4 deletions

View File

@@ -45,7 +45,7 @@
<view> 领券后{{ item.validDays }}天过期 </view>
</view>
<view class="JQclass">
<image :src="'/static/coupon/qrcode.svg'" mode="scaleToFill" />
<image :src="'/static/coupon/qrcode.svg'" mode="scaleToFill" />
</view>
</view>
<view class="couponContentListcontent2">
@@ -81,6 +81,7 @@
<view class="bottomPop">
<button @click="addCoupon">+添加{{pageData.status.tagName}}</button>
</view>
<up-modal :show="pageData.delShow" title="确认是否删除当前优惠券" @confirm="delConfirm" @cancel="pageData.delShow=false" showCancelButton></up-modal>
</view>
</template>
@@ -96,6 +97,8 @@
onPullDownRefresh,
onReachBottom, } from '@dcloudio/uni-app';
const pageData = reactive({
delShow: false,
delItem: null,
status: {
list: [
{name: '优惠券', type: 1},
@@ -175,7 +178,12 @@
* 删除
*/
let delCoupon = (item) => {
delTbShopCoupon([item.id]).then((res) => {
pageData.delShow = true;
pageData.delItem = item;
}
let delConfirm = () => {
pageData.delShow = false;
delTbShopCoupon([pageData.delItem.id]).then((res) => {
getCoupon();
})
}