调整样式

This commit is contained in:
2025-12-10 09:14:19 +08:00
parent 1e43269f65
commit 664163620b
6 changed files with 6493 additions and 5300 deletions

View File

@@ -42,6 +42,7 @@
</block> </block>
</up-radio-group> </up-radio-group>
</view> </view>
<slot name="bottom"></slot>
</view> </view>
</template> </template>
@@ -230,11 +231,11 @@ defineExpose({
.paymentMethod { .paymentMethod {
box-sizing: border-box; box-sizing: border-box;
margin-top: 30rpx; margin-top: 30rpx;
border-radius: 18rpx; background-color: #fff;
border-radius: 20rpx;
.paymentMethod_content { .paymentMethod_content {
background-color: #fff;
border-radius: 22rpx;
padding: 30rpx 30rpx 0 30rpx; padding: 30rpx 30rpx 0 30rpx;
box-sizing: border-box; box-sizing: border-box;
@@ -297,6 +298,9 @@ defineExpose({
.method_list:nth-child(odd) { .method_list:nth-child(odd) {
border-bottom: 2rpx solid #e5e5e5; border-bottom: 2rpx solid #e5e5e5;
} }
.method_list:nth-child(2) {
padding-bottom: 22rpx;
}
} }
} }
</style> </style>

View File

@@ -1,11 +1,11 @@
<template> <template>
<view> <view>
<view class="box" v-if="isShow"> <view class="box" v-if="isShow">
<view class="u-flex u-col-center" style="align-items: center"> <!-- <view class="u-flex u-col-center" style="align-items: center">
<image src="/static/icon/charge.png" class="charge" mode=""></image> <image src="/static/icon/charge.png" class="charge" mode=""></image>
<view class="u-m-l-28 color-333 font-700"> 充值享优惠</view> <view class="u-m-l-28 color-333 font-700"> 充值享优惠</view>
</view> </view> -->
<scroll-view scroll-x="true" class="u-m-t-20"> <scroll-view scroll-x="true" >
<view class="list"> <view class="list">
<view <view
class="item color1" class="item color1"
@@ -159,10 +159,7 @@ onMounted(() => {
color: #ff6300; color: #ff6300;
} }
.box { .box {
background-color: #fdf9f6; padding:0 30rpx;
padding: 30rpx;
margin-top: 32rpx;
border-radius: 22rpx;
overflow: hidden; overflow: hidden;
} }
@@ -174,12 +171,12 @@ onMounted(() => {
.list { .list {
display: flex; display: flex;
gap: 20rpx; gap: 20rpx;
padding: 20rpx 0; padding-bottom: 20rpx;
.item { .item {
padding: 36rpx 22rpx; padding: 36rpx 22rpx;
border-radius: 42rpx; border-radius: 42rpx;
background: linear-gradient(180deg, #f5f5f5 58.54%, #fff 104.47%); background: linear-gradient(180deg, #F5F5F5 58.54%, #FFF 104.47%);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;

View File

@@ -101,21 +101,6 @@
@changeFree="changeFree" @changeFree="changeFree"
></rechargeFree> ></rechargeFree>
<!-- 充值享优惠 -->
<view
v-if="
!showFreeDine &&
(listinfo.status == 'unpaid' || !listinfo.id) &&
cartStore.orderCostSummary.finalPayAmount > 0
"
>
<ChargeVue
@updateChargeSel="(e) => updateChargeSel(e)"
@updateRechargeId="updateRechargeId"
@updateIsShow="updateIsShow"
v-if="listinfo.status == 'unpaid' || !listinfo.id"
></ChargeVue>
</view>
<!-- 支付方式 --> <!-- 支付方式 -->
<paymentMethodes <paymentMethodes
ref="paymentMethodref" ref="paymentMethodref"
@@ -125,14 +110,31 @@
:changeFreeenable="isBwc" :changeFreeenable="isBwc"
v-model="paymentmethod" v-model="paymentmethod"
v-if="listinfo.status == 'unpaid' || !listinfo.id" v-if="listinfo.status == 'unpaid' || !listinfo.id"
></paymentMethodes> >
<template #bottom>
<!-- 充值享优惠 -->
<view
v-if="
!showFreeDine &&
(listinfo.status == 'unpaid' || !listinfo.id) &&
cartStore.orderCostSummary.finalPayAmount > 0
"
>
<ChargeVue
@updateChargeSel="(e) => updateChargeSel(e)"
@updateRechargeId="updateRechargeId"
@updateIsShow="updateIsShow"
v-if="listinfo.status == 'unpaid' || !listinfo.id"
></ChargeVue>
</view>
</template>
</paymentMethodes>
<view class="fixedview"> <view class="fixedview">
<view <view
class="flex-between" class="flex-between"
v-if="listinfo.status == 'unpaid' || !listinfo.id" v-if="listinfo.status == 'unpaid' || !listinfo.id"
> >
<view class="fixedview_one flex-start"> <view class="fixedview_one flex-start">
<view class="fixedview_oneone">实付金额</view> <view class="fixedview_oneone">实付金额</view>
<view class="fixedview_onetow" v-if="rechargeItem.id"> <view class="fixedview_onetow" v-if="rechargeItem.id">
<text>¥</text> <text>¥</text>
@@ -1147,7 +1149,7 @@ async function init(opt) {
let res = await APIgetOrderById({ let res = await APIgetOrderById({
orderId: listinfo.id, orderId: listinfo.id,
}); });
if (res&&typeof res=='object') { if (res && typeof res == "object") {
setOrder(res); setOrder(res);
} }
} }
@@ -1155,11 +1157,11 @@ async function init(opt) {
const shopInfoRes = await APIusershopInfodetail({ const shopInfoRes = await APIusershopInfodetail({
shopId: options.shopId, shopId: options.shopId,
}); });
if (!isPayBefor()&&options.tableCode) { if (!isPayBefor() && options.tableCode) {
const res = await APIhistoryOrder({ const res = await APIhistoryOrder({
tableCode: options.tableCode || "", tableCode: options.tableCode || "",
}); });
if (res&&typeof res=='object') { if (res && typeof res == "object") {
setOrder(res); setOrder(res);
} }
} }
@@ -1693,14 +1695,13 @@ page {
width: 100%; width: 100%;
padding: 36rpx 36rpx 70rpx 36rpx; padding: 36rpx 36rpx 70rpx 36rpx;
background: #ffffff; background: #ffffff;
.fixedview_one { .fixedview_one {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
// align-items: flex-end; // align-items: flex-end;
.fixedview_oneone { .fixedview_oneone {
font-weight: 400; font-weight: 400;

File diff suppressed because it is too large Load Diff

3240
pages/product/index copy.vue Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff