You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.4 KiB
90 lines
2.4 KiB
|
4 years ago
|
<template>
|
||
|
|
<view>
|
||
|
|
<uni-group mode="card">
|
||
|
|
<uni-title type="h1" title="结算单号" align="left" />
|
||
|
|
<text>{{orderDetail.orderNo}}</text>
|
||
|
|
<uni-title type="h1" title="结算平台" align="left" />
|
||
|
|
<text>{{orderDetail.platform}}</text>
|
||
|
|
<uni-title type="h1" title="应用" align="left" />
|
||
|
|
<text>{{orderDetail.appType}}</text>
|
||
|
|
<uni-title type="h1" title="收益类型" align="left" />
|
||
|
|
<text>{{orderDetail.type}}</text>
|
||
|
|
<uni-title type="h1" title="结算时间" align="left" />
|
||
|
|
<text>{{orderDetail.createTime}}</text>
|
||
|
|
<uni-title type="h1" title="结算收入" align="left" />
|
||
|
|
<text>{{orderDetail.profit}}</text>
|
||
|
|
<uni-title type="h1" title="下载次数" align="left" />
|
||
|
|
<text>{{orderDetail.downloadNum}}</text>
|
||
|
|
<uni-title type="h1" title="确认类型" align="left" />
|
||
|
|
<text>{{orderDetail.confirmType}}</text>
|
||
|
|
<uni-title type="h1" title="确认时间" align="left" />
|
||
|
|
<text>{{orderDetail.confirmTime}}</text>
|
||
|
|
<uni-title type="h1" title="确认状态" align="left" />
|
||
|
|
<text>{{orderDetail.confirmStatus}}</text>
|
||
|
|
</uni-group>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import {
|
||
|
|
queryFrontInAmtDetails,
|
||
|
|
handleUpdateConfirmType
|
||
|
|
} from '@/api/profit.js'
|
||
|
|
export default {
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
id: 0,
|
||
|
|
orderDetail: {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数
|
||
|
|
this.id = option.id
|
||
|
|
//console.log('this.id',this.id)
|
||
|
|
this.queryFrontInAmtDetails(option.id);
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
|
||
|
|
// 查询指定艺术家已入账收益详情
|
||
|
|
async queryFrontInAmtDetails(id) {
|
||
|
|
const res = await queryFrontInAmtDetails(id)
|
||
|
|
console.log('res', res)
|
||
|
|
if (res.data.code === 200) {
|
||
|
|
this.orderDetail = res.data.data
|
||
|
|
} else {
|
||
|
|
uni.showModal({
|
||
|
|
content: '已入账收益详情数据加载失败!',
|
||
|
|
showCancel: false
|
||
|
|
});
|
||
|
|
}
|
||
|
|
},
|
||
|
|
|
||
|
|
// 艺术家手动确认收益
|
||
|
|
handleUpdateConfirmType(){
|
||
|
|
const param = {
|
||
|
|
creatorId: this.orderDetail.creatorId,
|
||
|
|
id: this.orderDetail.id
|
||
|
|
}
|
||
|
|
handleUpdateConfirmType(param).then(res =>{
|
||
|
|
console.log('res',res)
|
||
|
|
if(res.data.code === 200){
|
||
|
|
uni.showToast({
|
||
|
|
title: '确认成功!',
|
||
|
|
duration: 1500,
|
||
|
|
icon: 'success'
|
||
|
|
});
|
||
|
|
}else{
|
||
|
|
uni.showModal({
|
||
|
|
content: '确认失败!',
|
||
|
|
showCancel: false
|
||
|
|
});
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
|
||
|
|
</style>
|