| xqd
@@ -3,23 +3,24 @@
|
|
|
<view @click="turnOn">
|
|
|
<slot name="btn"></slot>
|
|
|
</view>
|
|
|
- <u-popup v-model="newValue" mode="bottom" border-radius="14" :safeAreaInsetBottom="true" @close="close">
|
|
|
- <view class="u-model" @touchmove.stop.prevent>
|
|
|
+ <u-popup v-model="newValue" :custom-style="!is_yushou?is_yu:is_shou" :mask="is_yushou" mode="bottom" border-radius="14" :safeAreaInsetBottom="true" @close="close">
|
|
|
+ <view class="u-model" @touchmove.stop.prevent :style="!is_yushou?'position:fixed;bottom:0;background:#fff':''">
|
|
|
<view class="u-top dir-left-nowrap u-border-box">
|
|
|
<view class="u-pic u-border-box" @click="clickImg(imgUrl)">
|
|
|
<image class="u-img" :src="imgUrl"></image>
|
|
|
</view>
|
|
|
<view class="u-info">
|
|
|
<view :class="['cross-center', 'dir-left-nowrap', themeObject.color]">
|
|
|
- <view class="dir-left-nowrap">
|
|
|
- <slot name="priceBefore"></slot>
|
|
|
- <view class="u-price">
|
|
|
- <app-price v-if="is_show_price" :theme="themeObject.theme"
|
|
|
+ <view class="">
|
|
|
+ <slot name="priceBefore"></slot>
|
|
|
+ <text v-if="!is_yushou" style="font-size: 24rpx;" :class="theme+ '-m-text ' + theme">定金¥{{attr_deposit}}抵¥{{attr_swell_deposit}}</text>
|
|
|
+ <view class="u-price" style="display: flex;align-items: center;">
|
|
|
+ <app-price v-if="is_show_price" style="margin-right: 12rpx;" :theme="themeObject.theme"
|
|
|
:userTheme="themeObject.userTheme" :sign="sign" :price="sellPrice"
|
|
|
- :default-price="goods.price"></app-price>
|
|
|
+ :default-price="goods.price"></app-price>
|
|
|
+ <app-member-mark v-if="goods.level_show === 1" :theme="themeObject"></app-member-mark>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <app-member-mark v-if="goods.level_show === 1" :theme="themeObject"></app-member-mark>
|
|
|
</view>
|
|
|
<view class="u-stock">库存:{{stock}}</view>
|
|
|
</view>
|
| xqd
@@ -79,7 +80,7 @@
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
- <view class="u-bottom dir-left-nowrap">
|
|
|
+ <view class="u-bottom dir-left-nowrap" v-if="is_yushou">
|
|
|
<view v-if="is_show_left && (goods.type === 'goods' || is_must_left)" class="box-grow-1"
|
|
|
:class="cartClass" @click="leftSubmit">
|
|
|
<slot name="left_slot"></slot>
|
| xqd
@@ -109,7 +110,9 @@
|
|
|
|
|
|
export default {
|
|
|
name: "u-attr",
|
|
|
- props: {
|
|
|
+ props: {
|
|
|
+ attr_swell_deposit: String,
|
|
|
+ attr_deposit: String,
|
|
|
value: {
|
|
|
type: Boolean
|
|
|
},
|
| xqd
@@ -165,7 +168,12 @@
|
|
|
is_gift: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ is_yushou: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ },
|
|
|
+ height:Number
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
| xqd
@@ -178,7 +186,13 @@
|
|
|
serviceId: null, //碎屏险ID
|
|
|
card_id: null,
|
|
|
screenDescription: '',
|
|
|
- shopgoods: {}
|
|
|
+ shopgoods: {},
|
|
|
+ is_yu:{
|
|
|
+ marginBottom:'110rpx'
|
|
|
+ },
|
|
|
+ is_shou:{
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
| xqd
@@ -615,7 +629,7 @@
|
|
|
if (!this.goods) return;
|
|
|
return this.$utils.deepClone(this.goods.attr);
|
|
|
},
|
|
|
- cartClass: function() {
|
|
|
+ cartClass: function() {
|
|
|
console.log(this.themeObject)
|
|
|
if (!this.$slots.left_slot) {
|
|
|
if (this.themeObject.theme === 'a' || this.themeObject.theme === 'b' || this.themeObject.theme ===
|
| xqd
@@ -697,7 +711,7 @@
|
|
|
.u-info {
|
|
|
width: 424upx;
|
|
|
height: 136upx;
|
|
|
- padding: 45upx 0 0 24upx;
|
|
|
+ padding: 10upx 0 0 24upx;
|
|
|
}
|
|
|
|
|
|
.u-scroll-view {
|