代客下单逻辑修改

This commit is contained in:
2025-11-14 18:06:04 +08:00
parent d0cee95145
commit 67ec915181
26 changed files with 5314 additions and 870 deletions

View File

@@ -48,9 +48,9 @@
</view>
<view class="u-flex u-font-24"> {{ item.fullAmount }}可用 </view>
<view class="u-flex">
<view class="use-btn" @click.stop="toEmitChooseQuan(item)"
<!-- <view class="use-btn" @click.stop="toEmitChooseQuan(item)"
>去使用</view
>
> -->
</view>
</view>
</view>
@@ -112,9 +112,9 @@
</view>
<view class="u-flex u-font-24"> {{ item.fullAmount }}可用 </view>
<view class="u-flex">
<view class="use-btn" @click.stop="toEmitChooseQuan(item)"
<!-- <view class="use-btn" @click.stop="toEmitChooseQuan(item)"
>去使用</view
>
> -->
</view>
</view>
</view>
@@ -173,7 +173,6 @@
<script setup>
import { ref, reactive, watch, computed, onMounted, toRaw } from "vue";
import couponUtils from "./coupon";
import color from "@/commons/color.js";
import dayjs from "dayjs";
import { getSafeBottomHeight } from "@/commons/utils/safe-bottom.js";
@@ -193,8 +192,12 @@ import { queryAllShopUser, shopUserDetail } from "@/http/yskApi/shop-user.js";
// const yskUtils = {
// couponUtils,
// };
import yskUtils from "ysk-utils";
// import yskUtils from "ysk-utils";
import {couponUtils} from "@/lib/index";
const yskUtils={
couponUtils
}
const modal = reactive({
title: "提示",
@@ -458,6 +461,7 @@ async function getQuan() {
const orderRes = await orderApi.tbOrderInfoDetail(option.orderId);
if (orderRes.code == 200) {
order.value = orderRes.data;
Object.assign(limitTimeDiscount,orderRes.data.limitRate)
}
console.log(order.value);
@@ -528,6 +532,7 @@ watch(
user,
shopInfo
);
console.log('canDikouGoodsArr');
console.log(canDikouGoodsArr);
let goodsCoupon = newval.filter((v) => v.type == 2);
@@ -757,6 +762,7 @@ $quan-color: #318afe;
flex-direction: column;
background-color: $quan-color;
height: 100%;
min-width: 180rpx;
}
&.goods {