|
@@ -2,7 +2,7 @@
|
|
|
<view class="goods-template">
|
|
|
<!-- 商品列表 -->
|
|
|
<view class="goods-list">
|
|
|
- <view v-for="(item, index) in shopOrderData" :key="index" class="goods-item clearfix">
|
|
|
+ <view v-for="(item, index) in list" :key="index" class="goods-item clearfix">
|
|
|
<view class="shoptitle">
|
|
|
<view v-if="item.shopPromotion" class="floor-item-act">
|
|
|
<view class="floor-tags" @click.stop="clickPopupShow(item.shopPromotion)">{{
|
|
@@ -38,6 +38,7 @@
|
|
|
"
|
|
|
>¥{{ pros.price | NumFormat }}</view
|
|
|
>
|
|
|
+ <view class="view-num right">x {{ pros.num }}</view>
|
|
|
</view>
|
|
|
<view class="floor-item-act">
|
|
|
<template v-if="pros.productPromotion">
|
|
@@ -69,30 +70,23 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
</view>
|
|
|
- <view class="product-view">
|
|
|
- <view class="view-num right">x {{ pros.num }}</view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class=" product-info">
|
|
|
+ <view class=" product-info clearfix">
|
|
|
<view class="product-view" v-if="pros.returnedNum > 0 || pros.actualCancelNum > 0">
|
|
|
- <view class="view-num">已退货/已取消</view>
|
|
|
- <view class="view-right">{{ pros.returnedNum }}/{{ pros.actualCancelNum }}</view>
|
|
|
+ <view class="view-num">已退货/已取消:<text class="text">{{ pros.returnedNum }}/{{ pros.actualCancelNum }}</text></view>
|
|
|
</view>
|
|
|
<view class="product-view" v-if="pros.svipPriceType != 1">
|
|
|
- <view class="view-num">折扣</view>
|
|
|
- <view class="view-right">{{ pros.discount == null ? '0' : pros.discount }}%</view>
|
|
|
+ <view class="view-num">折扣:<text class="text">{{ pros.discount == null ? '0' : pros.discount }}%</text></view>
|
|
|
</view>
|
|
|
<view class="product-view">
|
|
|
- <view class="view-num">税率</view> <view class="view-right">{{ pros.taxRate }}%</view>
|
|
|
+ <view class="view-num">税率:<text class="text">{{ pros.taxRate }}%</text></view>
|
|
|
</view>
|
|
|
<view class="product-view">
|
|
|
- <view class="view-num">折后单价</view>
|
|
|
- <view class="view-right">¥{{ pros.discountPrice | NumFormat }}</view>
|
|
|
+ <view class="view-num">折后单价:<text class="text">¥{{ pros.discountPrice | NumFormat }}</text></view>
|
|
|
</view>
|
|
|
<view class="product-view allPrice">
|
|
|
- <view class="view-num">合计</view>
|
|
|
- <view class="view-right">¥{{ pros.totalFee | NumFormat }}</view>
|
|
|
+ <view class="view-num">合计:<text class="text">¥{{ pros.totalFee | NumFormat }}</text></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -102,20 +96,35 @@
|
|
|
<view class="text">{{ item.note ? item.note : '' }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="goods-pros-b">
|
|
|
- <view class="count">共{{ item.itemCount }}件商品</view>
|
|
|
- <view class="sum">
|
|
|
- <view class="sum-none" v-if="item.promotionFullReduction > 0">
|
|
|
- <text class="money-sign">¥</text>
|
|
|
- <text class="money">{{
|
|
|
- (item.totalAmount + item.promotionFullReduction) | NumFormat
|
|
|
- }}</text>
|
|
|
- <text class="money-reduced"
|
|
|
- >减<text>¥{{ item.promotionFullReduction | NumFormat }}</text></text
|
|
|
- >
|
|
|
- </view>
|
|
|
- <view class="sum-money" :class="item.promotionFullReduction == 0 ? 'none' : ''">
|
|
|
- 商品总额:<text class="money">¥{{ item.totalAmount | NumFormat }}</text>
|
|
|
+ <view class="goods-pros-b clearfix">
|
|
|
+ <view class="pros-price-view" v-if="item.isHandelShow">
|
|
|
+ <view class="price-view-le">商品总额:</view>
|
|
|
+ <view class="price-view-ri">¥{{ item.totalAmount | NumFormat }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="pros-price-view" v-if="item.isHandelShow">
|
|
|
+ <view class="price-view-le">优惠:</view>
|
|
|
+ <view class="price-view-ri">¥{{ item.totalAmount | NumFormat }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="pros-price-view" v-if="item.isHandelShow">
|
|
|
+ <view class="price-view-le">余额抵扣:</view>
|
|
|
+ <view class="price-view-ri">¥{{ item.totalAmount | NumFormat }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="pros-price-view" v-if="item.isHandelShow">
|
|
|
+ <view class="price-view-le">应付金额:</view>
|
|
|
+ <view class="price-view-ri">¥{{ item.totalAmount | NumFormat }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="pros-price-view" v-if="item.isHandelShow">
|
|
|
+ <view class="price-view-le">已付金额:</view>
|
|
|
+ <view class="price-view-ri">¥{{ item.totalAmount | NumFormat }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="pros-price-view">
|
|
|
+ <view class="price-view-le">待付金额:</view>
|
|
|
+ <view class="price-view-ri red">¥{{ item.totalAmount | NumFormat }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="pros-price-btn">
|
|
|
+ <view class="btn" @click="handelShowDetails(item)">
|
|
|
+ {{ item.isHandelShow ? '收起' : '查看更多' }}
|
|
|
+ <text class="iconfont" :class="item.isHandelShow ? 'icon-xiangshangjiantou' : 'icon-xiangxiajiantou'"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -137,13 +146,12 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- initData: [],
|
|
|
- vipFlag: 0
|
|
|
+ list: [],
|
|
|
+ vipFlag: 0,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.initData = this.shopOrderData
|
|
|
- this.initGetStotage()
|
|
|
+ this.initGetStotage(this.shopOrderData)
|
|
|
},
|
|
|
filters: {
|
|
|
NumFormat(value) {
|
|
@@ -162,9 +170,16 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
- async initGetStotage() {
|
|
|
+ async initGetStotage(data) {
|
|
|
const userInfo = await this.$api.getStorage()
|
|
|
this.vipFlag = userInfo.vipFlag ? userInfo.vipFlag : 0
|
|
|
+ this.list = data.map((el,index)=>{
|
|
|
+ el.isHandelShow = false
|
|
|
+ return el
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handelShowDetails(item){
|
|
|
+ item.isHandelShow = !item.isHandelShow
|
|
|
},
|
|
|
goShophome(shop) {
|
|
|
if(shop.shopType === 2){
|
|
@@ -272,9 +287,9 @@ export default {
|
|
|
.productlist {
|
|
|
width: 100%;
|
|
|
height: auto;
|
|
|
- border-bottom: 2rpx solid #e1e1e1;
|
|
|
padding: 10rpx;
|
|
|
box-sizing: border-box;
|
|
|
+ border-bottom: 1px solid #E1E1E1;
|
|
|
}
|
|
|
.goods-pros-t {
|
|
|
display: flex;
|
|
@@ -321,12 +336,13 @@ export default {
|
|
|
overflow: hidden;
|
|
|
height: 44rpx;
|
|
|
line-height: 44rpx;
|
|
|
+ float: left;
|
|
|
+ width: 50%;
|
|
|
.view-num {
|
|
|
float: left;
|
|
|
- }
|
|
|
- .view-right {
|
|
|
- color: #666666;
|
|
|
- float: right;
|
|
|
+ .text{
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -465,62 +481,43 @@ export default {
|
|
|
}
|
|
|
.goods-pros-b {
|
|
|
width: 100%;
|
|
|
- height: 80rpx;
|
|
|
- margin-top: 12rpx;
|
|
|
+ padding-top: 12rpx;
|
|
|
float: left;
|
|
|
- .count {
|
|
|
- float: left;
|
|
|
- font-size: $font-size-26;
|
|
|
- line-height: 80rpx;
|
|
|
- color: $text-color;
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- .sum {
|
|
|
- width: 520rpx;
|
|
|
- float: right;
|
|
|
- .sum-none {
|
|
|
- width: 100%;
|
|
|
- height: 40rpx;
|
|
|
- line-height: 40rpx;
|
|
|
- color: $text-color;
|
|
|
+ .pros-price-view{
|
|
|
+ width: 100%;
|
|
|
+ height: 44rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ line-height: 44rpx;
|
|
|
+ .price-view-le{
|
|
|
float: left;
|
|
|
+ color: #999999;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+ .price-view-ri{
|
|
|
+ float: right;
|
|
|
+ color: #333333;
|
|
|
text-align: right;
|
|
|
- .money {
|
|
|
- font-size: $font-size-26;
|
|
|
- color: #999999;
|
|
|
- text-decoration: line-through;
|
|
|
- }
|
|
|
- .money-sign {
|
|
|
- font-size: $font-size-26;
|
|
|
- color: #999999;
|
|
|
- text-decoration: line-through;
|
|
|
- }
|
|
|
- .money-reduced {
|
|
|
- margin-left: 10rpx;
|
|
|
- font-size: $font-size-26;
|
|
|
- color: $color-system;
|
|
|
- .iconfont {
|
|
|
- font-size: $font-size-34;
|
|
|
- }
|
|
|
+ &.red{
|
|
|
+ color: #F94B4B;
|
|
|
}
|
|
|
}
|
|
|
- .sum-money {
|
|
|
- width: 100%;
|
|
|
- height: 40rpx;
|
|
|
- font-size: $font-size-28;
|
|
|
- line-height: 40rpx;
|
|
|
- color: $text-color;
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- &.none {
|
|
|
- height: 80rpx;
|
|
|
- line-height: 80rpx;
|
|
|
- }
|
|
|
- .money {
|
|
|
- color: #ff2a2a;
|
|
|
- font-size: $font-size-28;
|
|
|
+ }
|
|
|
+ .pros-price-btn{
|
|
|
+ width: 100%;
|
|
|
+ height: 48rpx;
|
|
|
+ .btn{
|
|
|
+ width: 168rpx;
|
|
|
+ height: 48rpx;
|
|
|
+ line-height: 46rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border: 2rpx solid #e1e1e1;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ text-align: center;
|
|
|
+ color: #b2b2b2;
|
|
|
+ margin: 0 auto;
|
|
|
+ font-size: $font-size-24;
|
|
|
+ .iconfont {
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|