fix: 修改参数
This commit is contained in:
parent
b70de87d49
commit
387c73f9ac
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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++) {
|
||||||
|
|
@ -654,7 +656,11 @@
|
||||||
font-family: PingFang-SC-Medium;
|
font-family: PingFang-SC-Medium;
|
||||||
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 {
|
||||||
|
|
@ -963,7 +969,7 @@
|
||||||
border-color: var(--Checkboxborder) !important;
|
border-color: var(--Checkboxborder) !important;
|
||||||
padding: 5rpx;
|
padding: 5rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -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%);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue