|
@@ -33,26 +33,51 @@
|
|
</view>
|
|
</view>
|
|
<view class="list_2">
|
|
<view class="list_2">
|
|
<view class="goods" v-for="(tag,indexs) in item.goods" :key="indexs">
|
|
<view class="goods" v-for="(tag,indexs) in item.goods" :key="indexs">
|
|
- <view class="url">
|
|
|
|
- <image class="image"
|
|
|
|
- :src="tag.goods.file&&tag.goods.file.length>0?tag.goods.file[0].url:''"
|
|
|
|
- mode=""></image>
|
|
|
|
- </view>
|
|
|
|
- <view class="goodsname">
|
|
|
|
- {{tag.goods.name}}
|
|
|
|
- <view class="specs">
|
|
|
|
- {{tag.name}}
|
|
|
|
|
|
+ <view class="goods_1">
|
|
|
|
+ <view class="url">
|
|
|
|
+ <image class="image"
|
|
|
|
+ :src="tag.goods.file&&tag.goods.file.length>0?tag.goods.file[0].url:''"
|
|
|
|
+ mode=""></image>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="goodsother">
|
|
|
|
- <view v-if="info.type=='0'" class="price">
|
|
|
|
- ¥{{tag.price}}
|
|
|
|
|
|
+ <view class="goodsname">
|
|
|
|
+ {{tag.goods.name}}
|
|
|
|
+ <view class="specs">
|
|
|
|
+ {{tag.name}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view v-else class="price">
|
|
|
|
- ¥{{tag.group_config.money}}
|
|
|
|
|
|
+ <view class="goodsother">
|
|
|
|
+ <view v-if="info.type=='0'" class="price">
|
|
|
|
+ ¥{{tag.price}}
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else class="price">
|
|
|
|
+ ¥{{tag.group_config.money}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="num">
|
|
|
|
+ ×{{tag.buy_num}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="num">
|
|
|
|
- ×{{tag.buy_num}}
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class="goods_2" v-if="tag.gift.length>0">赠品</view>
|
|
|
|
+ <view class="goods_3" v-if="tag.gift.length>0"
|
|
|
|
+ v-for="(tags,indexx) in tag.gift" :key="indexx">
|
|
|
|
+ <view class="left">
|
|
|
|
+ <view class="name">
|
|
|
|
+ {{tags.goods_name}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="Spec">
|
|
|
|
+ 规格:{{tags.spec_name}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="Spec">
|
|
|
|
+ 说明:{{tags.desc}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="right">
|
|
|
|
+ <view class="price">
|
|
|
|
+ ¥{{tags.money||0}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="num">
|
|
|
|
+ ×{{tags.num}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -190,9 +215,9 @@
|
|
// 优惠劵相减
|
|
// 优惠劵相减
|
|
total = that.$minus(total, discount_detail);
|
|
total = that.$minus(total, discount_detail);
|
|
}
|
|
}
|
|
- if (res.data?.act) {
|
|
|
|
|
|
+ if (res.data?.total_detail?.act) {
|
|
let act_total = 0;
|
|
let act_total = 0;
|
|
- for (let val of res.data.act) act_total = that.$plus(act_total, val.discount)
|
|
|
|
|
|
+ for (let val of res.data.total_detail.act) act_total = that.$plus(act_total, val.discount)
|
|
// 活动相减
|
|
// 活动相减
|
|
total = that.$minus(total, act_total);
|
|
total = that.$minus(total, act_total);
|
|
}
|
|
}
|
|
@@ -297,38 +322,66 @@
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
|
|
.goods {
|
|
.goods {
|
|
- display: flex;
|
|
|
|
border-bottom: 1px dashed #f1f1f1;
|
|
border-bottom: 1px dashed #f1f1f1;
|
|
padding: 2vw 0;
|
|
padding: 2vw 0;
|
|
|
|
|
|
- .url {
|
|
|
|
- width: 20vw;
|
|
|
|
|
|
+ .goods_1 {
|
|
|
|
+ display: flex;
|
|
|
|
+
|
|
|
|
+ .url {
|
|
|
|
+ width: 20vw;
|
|
|
|
|
|
- .image {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 20vw;
|
|
|
|
- border-radius: 5px;
|
|
|
|
|
|
+ .image {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 20vw;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- .goodsname {
|
|
|
|
- display: flex;
|
|
|
|
- flex-direction: column;
|
|
|
|
- width: 60vw;
|
|
|
|
- padding: 0 2vw;
|
|
|
|
- font-size: 16px;
|
|
|
|
-
|
|
|
|
- .specs {
|
|
|
|
- color: var(--f85Color);
|
|
|
|
- font-size: var(--font12Size);
|
|
|
|
|
|
+ .goodsname {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ width: 60vw;
|
|
|
|
+ padding: 0 2vw;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+
|
|
|
|
+ .specs {
|
|
|
|
+ color: var(--f85Color);
|
|
|
|
+ font-size: var(--font12Size);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .goodsother {
|
|
|
|
+ width: 15vw;
|
|
|
|
+ text-align: right;
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ .goods_2 {
|
|
|
|
+ padding: 0 1vw 1vw 0;
|
|
|
|
+ font-size: var(--font14Size);
|
|
}
|
|
}
|
|
|
|
|
|
- .goodsother {
|
|
|
|
- width: 15vw;
|
|
|
|
- text-align: right;
|
|
|
|
|
|
+ .goods_3 {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ border: 1px solid var(--fcColor);
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ margin: 0 0 1vw 0;
|
|
|
|
+ padding: 1vw;
|
|
|
|
+
|
|
|
|
+ .left {
|
|
|
|
+ .name {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .Spec {
|
|
|
|
+ font-size: var(--font12Size);
|
|
|
|
+ color: var(--f85Color);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|