订单结算修改,增加限时折扣

This commit is contained in:
2025-10-24 16:13:40 +08:00
parent 5aa469a7b7
commit 26532150b5
36 changed files with 4989 additions and 1885 deletions

View File

@@ -63,7 +63,9 @@
<text v-if="item.bizCode == 'freeIn'">
霸王餐充值
</text>
<text v-if="item.bizCode == 'rechargeRedemption'">
兑换券充值
</text>
</view>
<view v-else>
{{item.content}}

View File

@@ -25,6 +25,7 @@
<text class="n t">{{ shopUserInfo.amount || 0 }}</text>
</view>
<view class="right">
<text class="t" @click="toduihuan">兑换码</text>
<text class="t" @click="toDetail">明细</text>
<text class="t" @click="toPwd">密码设置</text>
</view>
@@ -161,7 +162,7 @@ import * as rechargeApi from "@/common/api/market/recharge.js";
import { recharge } from "@/common/api/order/index.js";
import { joinMember } from "@/common/api/order/index.js";
import { ref, onMounted, computed, reactive, watch } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { onLoad, onShow } from "@dcloudio/uni-app";
import { pay } from "@/utils/pay.js";
function toShopList() {
@@ -170,6 +171,12 @@ function toShopList() {
});
}
function toduihuan() {
uni.navigateTo({
url: "/user/exchange/index",
});
}
function couponNum(list) {
return list.reduce((prve, cur) => {
return prve + cur.num;
@@ -285,7 +292,7 @@ const charge_money = computed(() => {
});
onLoad((opt) => {
Object.assign(option, opt);
init();
// init();
});
watch(
@@ -296,6 +303,9 @@ watch(
}
}
);
onShow(() => {
init();
});
</script>
<style scoped lang="scss">
@@ -367,7 +377,7 @@ watch(
display: flex;
justify-content: space-between;
position: relative;
padding-top: 40upx;
padding-top: 20rpx;
.left {
display: flex;