|
@@ -31,7 +31,7 @@
|
|
<view v-for="(item,index) in dataList" :key="item.id" class="item u-flex">
|
|
<view v-for="(item,index) in dataList" :key="item.id" class="item u-flex">
|
|
<u-checkbox v-if="serialType==0" shape="circle" activeColor="#ED0000" :key="index"
|
|
<u-checkbox v-if="serialType==0" shape="circle" activeColor="#ED0000" :key="index"
|
|
:name="item.name" :checked="item.checked" @change="toggleCheck(index)" class="checkbox" />
|
|
:name="item.name" :checked="item.checked" @change="toggleCheck(index)" class="checkbox" />
|
|
- <view class="item-box">
|
|
|
|
|
|
+ <view :class="['item-box',serialType==0 ? 'item-box-shadow':'']">
|
|
<view class="text u-flex u-row-between text-order">
|
|
<view class="text u-flex u-row-between text-order">
|
|
<view class="name">订单号:{{item.orderId}}</view>
|
|
<view class="name">订单号:{{item.orderId}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -46,6 +46,12 @@
|
|
<view class="name">核销数量:{{ item.wipeNum }}</view>
|
|
<view class="name">核销数量:{{ item.wipeNum }}</view>
|
|
<view class="withdrawTotal">获得佣金:<text class="num"> ¥ {{item.totalPrice}}</text></view>
|
|
<view class="withdrawTotal">获得佣金:<text class="num"> ¥ {{item.totalPrice}}</text></view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-if="serialType!=0" class="text u-flex u-row-between text-perform">
|
|
|
|
+ <view class="name">提现时间:{{ item.createTime }}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="serialType==1" class="text u-flex u-row-between text-perform">
|
|
|
|
+ <view class="name">到账时间:{{ item.receivedTime }}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-checkbox-group>
|
|
</u-checkbox-group>
|
|
@@ -74,6 +80,19 @@
|
|
<view class="btn" v-else>确定</view>
|
|
<view class="btn" v-else>确定</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="cart-bottom" v-else-if="dataList.length>0">
|
|
|
|
+ <view class="inner u-flex u-row-between">
|
|
|
|
+ <view class="left u-flex">
|
|
|
|
+ <view class="checkbox" style="padding: 10px;"></view>
|
|
|
|
+ <view class="total-price-wrap u-flex" style="display: flex;flex-direction: column;align-items: flex-start;">
|
|
|
|
+ <view class="total">笔数:共{{dataList.length}}笔</view>
|
|
|
|
+ <view class="totalPrice u-flex">
|
|
|
|
+ 合计佣金: <text class="num"> {{ totalPriceAll }}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -82,6 +101,7 @@
|
|
import {
|
|
import {
|
|
navigateTo
|
|
navigateTo
|
|
} from "@/utils/util.js"
|
|
} from "@/utils/util.js"
|
|
|
|
+ import { Decimal } from 'decimal.js';//引入
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -123,6 +143,7 @@
|
|
}],
|
|
}],
|
|
// 购物车列表
|
|
// 购物车列表
|
|
dataList: [],
|
|
dataList: [],
|
|
|
|
+ totalPriceAll: null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -158,6 +179,15 @@
|
|
this.statusBarHeight = getApp().globalData.statusBarHeight
|
|
this.statusBarHeight = getApp().globalData.statusBarHeight
|
|
this.$refs.customScrollList.refresh()
|
|
this.$refs.customScrollList.refresh()
|
|
},
|
|
},
|
|
|
|
+ watch:{
|
|
|
|
+ dataList(){
|
|
|
|
+ let totalPriceAll = 0
|
|
|
|
+ this.dataList.forEach((item,index)=>{
|
|
|
|
+ totalPriceAll = new Decimal(totalPriceAll).add(new Decimal(item.totalPrice))
|
|
|
|
+ })
|
|
|
|
+ this.totalPriceAll = totalPriceAll
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
/**
|
|
/**
|
|
* @author ygh
|
|
* @author ygh
|
|
@@ -209,6 +239,7 @@
|
|
}[item.status] || ''
|
|
}[item.status] || ''
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ this.totalPriceAll = res.data.realPrice
|
|
}else {
|
|
}else {
|
|
this.dataList = []
|
|
this.dataList = []
|
|
}
|
|
}
|
|
@@ -558,12 +589,15 @@
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
padding-left: 18rpx;
|
|
padding-left: 18rpx;
|
|
margin-bottom: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
|
|
+ box-sizing: border-box;
|
|
.item-box {
|
|
.item-box {
|
|
width: 100%;
|
|
width: 100%;
|
|
- box-shadow: -6rpx 0rpx 20rpx -18rpx rgba(0,0,0,0.5);
|
|
|
|
padding: 10rpx 10rpx 15rpx;
|
|
padding: 10rpx 10rpx 15rpx;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ }
|
|
|
|
+ .item-box-shadow {
|
|
|
|
+ box-shadow: -6rpx 0rpx 20rpx -18rpx rgba(0,0,0,0.5);
|
|
}
|
|
}
|
|
-
|
|
|
|
.text{
|
|
.text{
|
|
flex: 1;
|
|
flex: 1;
|
|
color: #999;
|
|
color: #999;
|