|
|
@@ -6,7 +6,7 @@
|
|
|
<view class="tixian">
|
|
|
<view class="value" style="margin-bottom: 50rpx;">
|
|
|
<text>总应收</text>
|
|
|
- <text class="text-price">{{shopData.totalFunkPrice}}</text>
|
|
|
+ <text class="text-price">{{shopData.charge}}</text>
|
|
|
</view>
|
|
|
<view class="flex justify-center align-center">
|
|
|
<view class="cu-btn btn round" style="padding: 24rpx 50rpx;" hover-class="hoverClass1"
|
|
|
@@ -18,7 +18,7 @@
|
|
|
<view style="display: flex;justify-content: flex-start;">
|
|
|
<view class="value">
|
|
|
<text>余额</text>
|
|
|
- <text class="text-price">{{$digital.floatSub(shopData.withdrawTotalPrice,shopData.totalPointValue)}}</text>
|
|
|
+ <text class="text-price">{{shopData.balance}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -51,7 +51,7 @@
|
|
|
<view class="area2 area-padding">
|
|
|
<text>折扣</text>
|
|
|
</view>
|
|
|
- <view class="area3 area-padding u-text-right u-p-r-20">
|
|
|
+ <view class="area3 area-padding text-center">
|
|
|
<text>价值</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -62,7 +62,7 @@
|
|
|
<view class="area2 area-padding">
|
|
|
<text>积分</text>
|
|
|
</view>
|
|
|
- <view class="area3 area-padding u-text-right u-p-r-20">
|
|
|
+ <view class="area3 area-padding ">
|
|
|
<text>价值</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -70,48 +70,49 @@
|
|
|
:down="downOption" :up="upOption">
|
|
|
<view @click="$jump('/pages/bill/billDetail?billDetail='+JSON.stringify(item)+'¤t='+current)"
|
|
|
class="item" hover-class="hoverClass" v-for="(item,index) in list" :key="index">
|
|
|
- <block v-if="current==1">
|
|
|
+ <block v-if="current==0">
|
|
|
<view class="area1">
|
|
|
<view class="item-padding">
|
|
|
- <image :src="item.channelLogo" mode="aspectFit"></image>
|
|
|
- <view class="">
|
|
|
- <text>{{item.channelName}}</text>
|
|
|
- <text>{{item.jsTime}}</text>
|
|
|
+ <image style="border-radius: 50%;"
|
|
|
+ :src="item.avatar?item.avatar:'/static/icon/avatar.png'" mode="aspectFit">
|
|
|
+ </image>
|
|
|
+ <view class="margin-left-10">
|
|
|
+ <text>{{item.nickName || '用户支付'}}</text>
|
|
|
+ <text>{{item.createTime}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="area2 text-area ">
|
|
|
+ <view class="area2 text-area" style="width: 15%;">
|
|
|
<view class="item-padding">
|
|
|
- <image style="width: 35rpx;height: 35rpx;margin-bottom: -5rpx;"
|
|
|
- src="@/static/icon/points-value.png"></image>
|
|
|
- <text style="font-size: 32rpx;margin-left: 10rpx;color: #F39248;">+{{item.point || 0}}</text>
|
|
|
+ <text>{{item.discount==-1 || item.discount==0?'无折扣':item.discount +'折'}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="area3 text-area ">
|
|
|
- <view class="item-padding" style="font-size: 34rpx;color: #000;">¥{{item.pointValue || 0}}</view>
|
|
|
+ <view class="area3 text-area u-p-r-20" style="width: 30%;">
|
|
|
+ <view class="item-padding"
|
|
|
+ style="flex:1;text-align: right;font-size: 34rpx;color: #F39248;">
|
|
|
+ +¥{{item.price || 0}}</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
- <block v-if="current==0">
|
|
|
+
|
|
|
+ <block v-if="current==1">
|
|
|
<view class="area1">
|
|
|
<view class="item-padding">
|
|
|
- <image style="border-radius: 50%;"
|
|
|
- :src="item.userAvator?item.userAvator:'/static/icon/avatar.png'" mode="aspectFit">
|
|
|
- </image>
|
|
|
- <view class="margin-left-10">
|
|
|
- <text>{{item.userName || '用户支付'}}</text>
|
|
|
- <text>{{item.updateTime}}</text>
|
|
|
+ <image :src="item.channelLogo" mode="aspectFit"></image>
|
|
|
+ <view class="">
|
|
|
+ <text>{{item.channelName}}</text>
|
|
|
+ <text>{{item.createTime}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="area2 text-area" style="width: 15%;">
|
|
|
+ <view class="area2 text-area ">
|
|
|
<view class="item-padding">
|
|
|
- <text>{{item.subsidy==1?'无折扣':$digital.floatMul(item.subsidy , 10) +'折'}}</text>
|
|
|
+ <image style="width: 35rpx;height: 35rpx;margin-bottom: -5rpx;"
|
|
|
+ src="@/static/icon/points-value.png"></image>
|
|
|
+ <text style="font-size: 32rpx;margin-left: 10rpx;color: #F39248;">+{{item.price || 0}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="area3 text-area u-p-r-20" style="width: 30%;">
|
|
|
- <view class="item-padding"
|
|
|
- style="flex:1;text-align: right;font-size: 34rpx;color: #F39248;">
|
|
|
- +¥{{item.realPayAmount || 0}}</view>
|
|
|
+ <view class="area3 text-area ">
|
|
|
+ <view class="item-padding" style="font-size: 34rpx;color: #000;">¥{{item.price || 0}}</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
@@ -155,6 +156,7 @@
|
|
|
month: true,
|
|
|
},
|
|
|
defaultTime: '',
|
|
|
+
|
|
|
shopData: {},
|
|
|
height: '',
|
|
|
}
|
|
|
@@ -164,7 +166,6 @@
|
|
|
this.shopDetail()
|
|
|
},
|
|
|
onReady() {
|
|
|
- this.defaultTime = this.$dateTime.format(new Date(), 'YYYY-mm')
|
|
|
this.getElInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -174,9 +175,9 @@
|
|
|
},
|
|
|
async shopDetail() {
|
|
|
let params = {
|
|
|
- id: this.vuex_shopId
|
|
|
+ shopId: this.vuex_shopId
|
|
|
}
|
|
|
- let res = await this.$api.shop.detail(params)
|
|
|
+ let res = await this.$api.shop.shopBillsInfo(params)
|
|
|
this.shopData = res.data
|
|
|
},
|
|
|
async shop() {
|
|
|
@@ -193,26 +194,27 @@
|
|
|
return
|
|
|
}
|
|
|
let params = {
|
|
|
- shopId: this.vuex_shopId,
|
|
|
+ receiveId: this.vuex_shopId,
|
|
|
current: mescroll.num,
|
|
|
size: mescroll.size,
|
|
|
+ paystatus:this.$global.PAY_STATUS.SUCCESS
|
|
|
}
|
|
|
if (this.defaultTime) {
|
|
|
- params.monthTime = this.defaultTime
|
|
|
+ params.createTime = this.$dateTime.format(new Date(this.defaultTime))
|
|
|
} else {
|
|
|
- params.monthTime = this.$dateTime.format(new Date(), 'YYYY-mm')
|
|
|
+ params.createTime = this.$dateTime.format(new Date())
|
|
|
}
|
|
|
try {
|
|
|
- if (this.current == 1) {
|
|
|
- this.$api.shop.yingshouPage(params).then(res => {
|
|
|
+ if (this.current == 0) {
|
|
|
+ this.$api.bills.list(params).then(res => {
|
|
|
let data = res.data.records
|
|
|
let total = res.data.total
|
|
|
mescroll.endBySize(data.length, total);
|
|
|
if (mescroll.num == 1) this.list = []; //如果是第一页需手动制空列表
|
|
|
this.list = this.list.concat(data); //追加新数据
|
|
|
})
|
|
|
- } else if (this.current == 0) {
|
|
|
- this.$api.shop.remainDetailPage(params).then(res => {
|
|
|
+ } else if (this.current == 1) {
|
|
|
+ this.$api.pointBills.list(params).then(res => {
|
|
|
let data = res.data.records
|
|
|
let total = res.data.total
|
|
|
mescroll.endBySize(data.length, total);
|