Browse Source

提交

feature-1.0
LiLingxiao 4 years ago
parent
commit
65223b78bf
  1. 4
      main.js
  2. 12
      pages/profit/profit.vue
  3. 3
      pages/profit/profitEndDetails.vue
  4. 142
      pages/profit/profitEndOrder.vue
  5. 3
      pages/profit/profitInDetails.vue
  6. 220
      pages/profit/profitInOrder.vue
  7. 3
      pages/profit/profitPreDetails.vue

4
main.js

@ -2,9 +2,9 @@ import App from './App'
import store from './store/' import store from './store/'
// const baseURL = 'http://localhost:7010' // const baseURL = 'http://localhost:7010'
// const baseURL = 'http://81.69.47.31:7010' const baseURL = 'http://81.69.47.31:7010'
// const baseURL = 'http://bnyer.vaiwan.com' // const baseURL = 'http://bnyer.vaiwan.com'
const baseURL = 'http://rnjbgm.natappfree.cc' // const baseURL = 'http://rnjbgm.natappfree.cc'
Vue.prototype.$baseURL = baseURL; Vue.prototype.$baseURL = baseURL;

12
pages/profit/profit.vue

@ -97,12 +97,12 @@
</view> </view>
</view> </view>
<uni-list> <uni-list>
<uni-list-item title="曝光" link> <uni-list-item title="曝光" link @click="linkTo(0,0)">
<template v-slot:footer> <template v-slot:footer>
<view class="blue"> {{downloadAndInviteCountInfo.creatorProfitDownloadCount[0].downloadNum || 0}} </view> <view class="blue"> {{downloadAndInviteCountInfo.creatorProfitDownloadCount[0].downloadNum || 0}} </view>
</template> </template>
</uni-list-item> </uni-list-item>
<uni-list-item title="邀请" link> <uni-list-item title="邀请" link @click="linkTo(1,0)">
<template v-slot:footer> <template v-slot:footer>
<view class="blue"> [{{downloadAndInviteCountInfo.creatorProfitInviteCount[0].createTime || ''}}] {{downloadAndInviteCountInfo.creatorProfitInviteCount[0].inviteDownloadNum || 0}} </view> <view class="blue"> [{{downloadAndInviteCountInfo.creatorProfitInviteCount[0].createTime || ''}}] {{downloadAndInviteCountInfo.creatorProfitInviteCount[0].inviteDownloadNum || 0}} </view>
</template> </template>
@ -119,12 +119,12 @@
<!-- <view class="adver-mid"> 2022.06.05 2022.07.20 </view> --> <!-- <view class="adver-mid"> 2022.06.05 2022.07.20 </view> -->
</view> </view>
<uni-list> <uni-list>
<uni-list-item title="曝光" link> <uni-list-item title="曝光" link @click="linkTo(0,1)">
<template v-slot:footer> <template v-slot:footer>
<view class="blue"> ¥{{inProfitInfo.profit || 0}} </view> <view class="blue"> ¥{{inProfitInfo.profit || 0}} </view>
</template> </template>
</uni-list-item> </uni-list-item>
<uni-list-item title="邀请" link> <uni-list-item title="邀请" link @click="linkTo(1,1)">
<template v-slot:footer> <template v-slot:footer>
<view class="blue"> ¥{{inProfitInfo.inviteProfit || 0}} </view> <view class="blue"> ¥{{inProfitInfo.inviteProfit || 0}} </view>
</template> </template>
@ -159,12 +159,12 @@
</view> </view>
</view> </view>
<uni-list> <uni-list>
<uni-list-item title="曝光" link> <uni-list-item title="曝光" link @click="linkTo(0,2)">
<template v-slot:footer> <template v-slot:footer>
<view class="blue"> ¥{{endProfitInfo.profit || 0}} </view> <view class="blue"> ¥{{endProfitInfo.profit || 0}} </view>
</template> </template>
</uni-list-item> </uni-list-item>
<uni-list-item title="邀请" link> <uni-list-item title="邀请" link @click="linkTo(1,2)">
<template v-slot:footer> <template v-slot:footer>
<view class="blue"> ¥{{endProfitInfo.inviteProfit || 0}} </view> <view class="blue"> ¥{{endProfitInfo.inviteProfit || 0}} </view>
</template> </template>

3
pages/profit/profitEndDetails.vue

@ -171,6 +171,9 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.uni-list-item__icon-img{
border-radius: 8px;
}
.ivOver{ .ivOver{
width: 100%; width: 100%;
height:50px; height:50px;

142
pages/profit/profitEndOrder.vue

@ -1,7 +1,34 @@
<template> <template>
<view> <view>
<uni-group mode="card"> <view class="back-top"></view>
<uni-title type="h1" title="结算单号" align="left" />
<uni-group mode="card" class="card">
<view class="box">
<text class="title">结算单号:</text>
<text>{{ orderDetail.orderNo }}</text>
</view>
<view class="box">
<text class="title">结算平台:</text>
<text>{{ orderDetail.platform }}</text>
</view>
<view class="box">
<text class="title">应用:</text>
<text>{{ orderDetail.appType }}</text>
</view>
<view class="box">
<text class="title">收益类型:</text>
<text>{{ orderDetail.type }}</text>
</view>
<view class="box">
<text class="title">结算收入:</text>
<text style="color: red">¥{{ orderDetail.profit }}</text>
</view>
<view class="box">
<text class="title">转入时间:</text>
<text>{{ orderDetail.walletTime }}</text>
</view>
<!-- <uni-title type="h1" title="结算单号" align="left" />
<text>{{orderDetail.orderNo}}</text> <text>{{orderDetail.orderNo}}</text>
<uni-title type="h1" title="结算平台" align="left" /> <uni-title type="h1" title="结算平台" align="left" />
<text>{{orderDetail.platform}}</text> <text>{{orderDetail.platform}}</text>
@ -12,53 +39,76 @@
<uni-title type="h1" title="结算收入" align="left" /> <uni-title type="h1" title="结算收入" align="left" />
<text>{{orderDetail.profit}}</text> <text>{{orderDetail.profit}}</text>
<uni-title type="h1" title="转入时间" align="left" /> <uni-title type="h1" title="转入时间" align="left" />
<text>{{orderDetail.walletTime}}</text> <text>{{orderDetail.walletTime}}</text> -->
</uni-group> </uni-group>
</view> </view>
</template> </template>
<script> <script>
import { import { queryFrontEndAmtDetails } from "@/api/profit.js";
queryFrontEndAmtDetails, export default {
} from '@/api/profit.js' data() {
export default { return {
data() { orderDetail: {
return { id: 0,
orderDetail: { orderNo: "",
id: 0, platform: "",
orderNo: '', appType: "",
platform: '', type: "",
appType: '', profit: 0,
type: '', walletTime: "",
profit: 0, },
walletTime: '' };
} },
} onLoad: function (option) {
}, //optionobject
onLoad: function(option) { //optionobject this.orderDetail.id = option.id;
this.orderDetail.id = option.id //console.log('this.id',this.id)
//console.log('this.id',this.id) this.queryFrontEndAmtDetails();
this.queryFrontEndAmtDetails(); },
}, methods: {
methods: { //
async queryFrontEndAmtDetails() {
// const res = await queryFrontEndAmtDetails(this.orderDetail.id);
async queryFrontEndAmtDetails() { //console.log('res', res)
const res = await queryFrontEndAmtDetails(this.orderDetail.id) if (res.data.code === 200) {
//console.log('res', res) this.orderDetail = res.data.data;
if (res.data.code === 200) { } else {
this.orderDetail = res.data.data uni.showModal({
} else { content: "转入钱包收益详情数据加载失败!",
uni.showModal({ showCancel: false,
content: '转入钱包收益详情数据加载失败!', });
showCancel: false }
}); },
} },
}, };
}
}
</script> </script>
<style> <style>
.back-top {
width: 100%;
position: absolute;
height: 120px;
background: #416bdc;
}
.card {
width: 100%;
position: absolute;
}
.uni-group--card {
margin-top: 20px !important;
}
.title {
display: block;
width: 70px;
margin-right: 10px;
font-weight: bold;
}
.box {
display: flex;
margin-bottom: 20px;
}
.card view:first-child {
margin-top: 10px;
}
</style> </style>

3
pages/profit/profitInDetails.vue

@ -170,6 +170,9 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.uni-list-item__icon-img{
border-radius: 8px;
}
.ivOver { .ivOver {
width: 100%; width: 100%;
height: 50px; height: 50px;

220
pages/profit/profitInOrder.vue

@ -1,7 +1,50 @@
<template> <template>
<view> <view>
<uni-group mode="card"> <view class="back-top"></view>
<uni-title type="h1" title="结算单号" align="left" /> <uni-group mode="card" class="card">
<view class="box">
<text class="title">结算单号:</text>
<text>{{ orderDetail.orderNo }}</text>
</view>
<view class="box">
<text class="title">结算平台:</text>
<text>{{ orderDetail.platform }}</text>
</view>
<view class="box">
<text class="title">应用:</text>
<text>{{ orderDetail.appType }}</text>
</view>
<view class="box">
<text class="title">收益类型:</text>
<text>{{ orderDetail.type }}</text>
</view>
<view class="box">
<text class="title">结算时间:</text>
<text>{{ orderDetail.createTime }}</text>
</view>
<view class="box">
<text class="title">结算收入:</text>
<text style="color: red">¥{{ orderDetail.profit }}</text>
</view>
<view class="box">
<text class="title">下载次数:</text>
<text>{{ orderDetail.downloadNum }}</text>
</view>
<view class="border"></view>
<view class="box">
<text class="title">确认类型:</text>
<text>{{ orderDetail.confirmType }}</text>
</view>
<view class="box">
<text class="title">确认时间:</text>
<text>{{ orderDetail.confirmTime }}</text>
</view>
<view class="box">
<text class="title">确认状态:</text>
<text>{{ orderDetail.confirmStatus }}</text>
</view>
<!-- <uni-title type="h1" title="结算单号" align="left" />
<text>{{orderDetail.orderNo}}</text> <text>{{orderDetail.orderNo}}</text>
<uni-title type="h1" title="结算平台" align="left" /> <uni-title type="h1" title="结算平台" align="left" />
<text>{{orderDetail.platform}}</text> <text>{{orderDetail.platform}}</text>
@ -20,81 +63,112 @@
<uni-title type="h1" title="确认时间" align="left" /> <uni-title type="h1" title="确认时间" align="left" />
<text>{{orderDetail.confirmTime}}</text> <text>{{orderDetail.confirmTime}}</text>
<uni-title type="h1" title="确认状态" align="left" /> <uni-title type="h1" title="确认状态" align="left" />
<text>{{orderDetail.confirmStatus}}</text> <text>{{orderDetail.confirmStatus}}</text> -->
</uni-group> </uni-group>
</view> </view>
</template> </template>
<script> <script>
import { import {
queryFrontInAmtDetails, queryFrontInAmtDetails,
handleUpdateConfirmType handleUpdateConfirmType,
} from '@/api/profit.js' } from "@/api/profit.js";
export default { export default {
data() { data() {
return { return {
orderDetail: { orderDetail: {
id: 0, id: 0,
orderNo: '', orderNo: "",
platform: '', platform: "",
appType: '', appType: "",
type: '', type: "",
createTime: '', createTime: "",
profit: '', profit: "",
downloadNum: 0, downloadNum: 0,
confirmType: '', confirmType: "",
confirmTime: '', confirmTime: "",
confirmStatus: '' confirmStatus: "",
} },
} };
}, },
onLoad: function(option) { //optionobject onLoad: function (option) {
this.orderDetail.id = option.id //optionobject
//console.log('this.id',this.id) this.orderDetail.id = option.id;
this.queryFrontInAmtDetails(); //console.log('this.id',this.id)
}, this.queryFrontInAmtDetails();
methods: { },
methods: {
//
async queryFrontInAmtDetails() {
const res = await queryFrontInAmtDetails(this.orderDetail.id);
//console.log('res', res)
if (res.data.code === 200) {
this.orderDetail = res.data.data;
} else {
uni.showModal({
content: "已入账收益详情数据加载失败!",
showCancel: false,
});
}
},
// //
async queryFrontInAmtDetails() { handleUpdateConfirmType() {
const res = await queryFrontInAmtDetails(this.orderDetail.id) const param = {
//console.log('res', res) creatorId: this.orderDetail.creatorId,
if (res.data.code === 200) { id: this.orderDetail.id,
this.orderDetail = res.data.data };
} else { handleUpdateConfirmType(param).then((res) => {
uni.showModal({ console.log("res", res);
content: '已入账收益详情数据加载失败!', if (res.data.code === 200) {
showCancel: false uni.showToast({
}); title: "确认成功!",
} duration: 1500,
}, icon: "success",
});
// } else {
handleUpdateConfirmType(){ uni.showModal({
const param = { content: "确认失败!",
creatorId: this.orderDetail.creatorId, showCancel: false,
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> </script>
<style> <style>
.back-top {
width: 100%;
position: absolute;
height: 120px;
background: #416bdc;
}
.card {
width: 100%;
position: absolute;
}
.uni-group--card {
margin-top: 20px !important;
}
.title {
display: block;
width: 70px;
margin-right: 10px;
font-weight: bold;
}
.box {
display: flex;
margin-bottom: 20px;
}
.card view:first-child {
margin-top: 10px;
}
.border {
width: 100%;
height: 1px;
background: rgb(229, 229, 229);
margin-bottom: 20px;
}
</style> </style>

3
pages/profit/profitPreDetails.vue

@ -160,6 +160,9 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.uni-list-item__icon-img{
border-radius: 8px;
}
.ivOver{ .ivOver{
width: 100%; width: 100%;
height:50px; height:50px;

Loading…
Cancel
Save