fix: 修改参数

This commit is contained in:
whitechiina 2025-04-10 14:01:32 +08:00
parent b70de87d49
commit 387c73f9ac
4 changed files with 35 additions and 10 deletions

View File

@ -16,7 +16,11 @@
<view class="b-rx-commodity-item-commodity-infor-money"> <view class="b-rx-commodity-item-commodity-infor-money">
<view class="b-rx-commodity-item-commodity-infor-money-price"> <view class="b-rx-commodity-item-commodity-infor-money-price">
<text class="b-rx-commodity-item-commodity-infor-money-yang">x</text> <text class="b-rx-commodity-item-commodity-infor-money-yang">x</text>
<text class="b-rx-commodity-item-commodity-infor-money-amount">{{item['num']?item['num']:item['amount']}}</text> <view>
<text class="b-rx-commodity-item-commodity-infor-money-amount">
{{item['num']?item['num']:item['amount']}}
</text>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -42,6 +46,7 @@
</view> </view>
<view class="num" v-else-if="!item['original_price'] && BrandInfor['brand_id'] == 10"> <view class="num" v-else-if="!item['original_price'] && BrandInfor['brand_id'] == 10">
{{item['adj_pay'] * (item['num']?item['num']:item['amount'])}} {{item['adj_pay'] * (item['num']?item['num']:item['amount'])}}
<text v-if="item['add_price']">(+{{item['add_price']}})</text>
</view> </view>
</view> </view>
</view> </view>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="b-rx-sku-popup"> <view class="b-rx-sku-popup">
<u-popup :show="show" @close="show = false" round="20" closeable zIndex="20080"> <u-popup :show="show" @close="show = false" mode="bottom" round="20" closeable zIndex="20080" >
<view class="commodity-sku"> <view class="commodity-sku">
<!-- 商品图 --> <!-- 商品图 -->
<view class="commodity-sku-cover"> <view class="commodity-sku-cover">
@ -39,6 +39,7 @@
</view> </view>
</template> </template>
</view> </view>
<view style="height: 200rpx"></view>
<view class="commodity-sku-Infor"> <view class="commodity-sku-Infor">
<view class="commodity-sku-Infor-left"> <view class="commodity-sku-Infor-left">
<view class="commodity-sku-Infor-left-Price"> <view class="commodity-sku-Infor-left-Price">
@ -194,10 +195,17 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.b-rx-sku-popup {
overflow: hidden;
position: fixed;
z-index: 999;
}
// //
.commodity-sku { .commodity-sku {
height: 100vh;
overflow-y: scroll;
&-cover { &-cover {
// height: 560rpx; height: 560rpx;
height: auto; height: auto;
position: relative; position: relative;
@ -296,7 +304,9 @@
align-items: center; align-items: center;
padding: 32rpx; padding: 32rpx;
border-top: 1rpx solid rgba(102, 102, 102, 0.1); border-top: 1rpx solid rgba(102, 102, 102, 0.1);
position: fixed;
bottom: 0rpx;
background-color: #fff;
&-left { &-left {
&-Price { &-Price {
color: #FF780F; color: #FF780F;
@ -328,4 +338,8 @@
} }
} }
} }
.u-popup__content {
overflow-y: scroll !important;
}
</style> </style>

View File

@ -208,8 +208,8 @@
<view class="MDL-Cart-Popup-item-commodity-infor-money"> <view class="MDL-Cart-Popup-item-commodity-infor-money">
<view class="MDL-Cart-Popup-item-commodity-infor-money-price"> <view class="MDL-Cart-Popup-item-commodity-infor-money-price">
<text class="MDL-Cart-Popup-item-commodity-infor-money-yang"></text> <text class="MDL-Cart-Popup-item-commodity-infor-money-yang"></text>
<text class="MDL-Cart-Popup-item-commodity-infor-money-amount">{{(item['pay_price'] * item['num'])}}</text> <text class="MDL-Cart-Popup-item-commodity-infor-money-amount" v-if="item.pay_price">{{(item.pay_price * item.num)}}</text>
<!-- <text class="MDL-Cart-Popup-item-commodity-infor-money-amount">{{RetainDecimalPoint((item['pay_price'] * item['num']))}}</text> --> <text class="MDL-Cart-Popup-item-commodity-infor-money-amount" v-else>{{(item.adj_pay * item.num)}}</text>
</view> </view>
</view> </view>
</view> </view>

View File

@ -22,7 +22,8 @@
<view class="text-wrapper_1"> <view class="text-wrapper_1">
<text lines="1" class="text_7">¥</text> <text lines="1" class="text_7">¥</text>
<!-- <text lines="1" class="text_8">{{_amount(item['adj_pay'] * item['num'])}}</text> --> <!-- <text lines="1" class="text_8">{{_amount(item['adj_pay'] * item['num'])}}</text> -->
<text lines="1" class="text_8">{{item['adj_pay'] * item['num']}}</text> <text lines="1" class="text_8">{{__amount(item['bt_price'] * item['num'])}}</text>
<text lines="1" class="text_8 del">{{__amount(item['adj_pay'] * item['num'])}}</text>
</view> </view>
<text lines="1" class="text_9">×{{item['num']}}</text> <text lines="1" class="text_9">×{{item['num']}}</text>
</view> </view>
@ -282,6 +283,7 @@
getCart() { getCart() {
let products = []; let products = [];
this.shoptotalnum = 0;
// deepClone使 // deepClone使
let newobj = JSON.parse(JSON.stringify(this['GetCartList2'])); let newobj = JSON.parse(JSON.stringify(this['GetCartList2']));
for (let i = 0; i < newobj['length']; i++) { for (let i = 0; i < newobj['length']; i++) {
@ -655,6 +657,10 @@
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
line-height: 22rpx; line-height: 22rpx;
.del {
text-decoration: line-through;
padding-left: 20rpx;
}
} }
.text_7 { .text_7 {
@ -971,7 +977,7 @@
height: 12rpx; height: 12rpx;
border-radius: 50%; border-radius: 50%;
border: 3rpx solid #ffffff; border: 3rpx solid #ffffff;
background-color: var(--Checkboxborder); background-color: #FFBC0D;
left: 50%; left: 50%;
top: 50%; top: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);