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/'
// 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://rnjbgm.natappfree.cc'
// const baseURL = 'http://rnjbgm.natappfree.cc'
Vue.prototype.$baseURL = baseURL;

12
pages/profit/profit.vue

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

3
pages/profit/profitEndDetails.vue

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

142
pages/profit/profitEndOrder.vue

@ -1,7 +1,34 @@
<template>
<view>
<uni-group mode="card">
<uni-title type="h1" title="结算单号" align="left" />
<view>
<view class="back-top"></view>
<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>
<uni-title type="h1" title="结算平台" align="left" />
<text>{{orderDetail.platform}}</text>
@ -12,53 +39,76 @@
<uni-title type="h1" title="结算收入" align="left" />
<text>{{orderDetail.profit}}</text>
<uni-title type="h1" title="转入时间" align="left" />
<text>{{orderDetail.walletTime}}</text>
</uni-group>
</view>
<text>{{orderDetail.walletTime}}</text> -->
</uni-group>
</view>
</template>
<script>
import {
queryFrontEndAmtDetails,
} from '@/api/profit.js'
export default {
data() {
return {
orderDetail: {
id: 0,
orderNo: '',
platform: '',
appType: '',
type: '',
profit: 0,
walletTime: ''
}
}
},
onLoad: function(option) { //optionobject
this.orderDetail.id = option.id
//console.log('this.id',this.id)
this.queryFrontEndAmtDetails();
},
methods: {
//
async queryFrontEndAmtDetails() {
const res = await queryFrontEndAmtDetails(this.orderDetail.id)
//console.log('res', res)
if (res.data.code === 200) {
this.orderDetail = res.data.data
} else {
uni.showModal({
content: '转入钱包收益详情数据加载失败!',
showCancel: false
});
}
},
}
}
import { queryFrontEndAmtDetails } from "@/api/profit.js";
export default {
data() {
return {
orderDetail: {
id: 0,
orderNo: "",
platform: "",
appType: "",
type: "",
profit: 0,
walletTime: "",
},
};
},
onLoad: function (option) {
//optionobject
this.orderDetail.id = option.id;
//console.log('this.id',this.id)
this.queryFrontEndAmtDetails();
},
methods: {
//
async queryFrontEndAmtDetails() {
const res = await queryFrontEndAmtDetails(this.orderDetail.id);
//console.log('res', res)
if (res.data.code === 200) {
this.orderDetail = res.data.data;
} else {
uni.showModal({
content: "转入钱包收益详情数据加载失败!",
showCancel: false,
});
}
},
},
};
</script>
<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>

3
pages/profit/profitInDetails.vue

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

220
pages/profit/profitInOrder.vue

@ -1,7 +1,50 @@
<template>
<view>
<uni-group mode="card">
<uni-title type="h1" title="结算单号" align="left" />
<view>
<view class="back-top"></view>
<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>
<uni-title type="h1" title="结算平台" align="left" />
<text>{{orderDetail.platform}}</text>
@ -20,81 +63,112 @@
<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>
<text>{{orderDetail.confirmStatus}}</text> -->
</uni-group>
</view>
</template>
<script>
import {
queryFrontInAmtDetails,
handleUpdateConfirmType
} from '@/api/profit.js'
export default {
data() {
return {
orderDetail: {
id: 0,
orderNo: '',
platform: '',
appType: '',
type: '',
createTime: '',
profit: '',
downloadNum: 0,
confirmType: '',
confirmTime: '',
confirmStatus: ''
}
}
},
onLoad: function(option) { //optionobject
this.orderDetail.id = option.id
//console.log('this.id',this.id)
this.queryFrontInAmtDetails();
},
methods: {
import {
queryFrontInAmtDetails,
handleUpdateConfirmType,
} from "@/api/profit.js";
export default {
data() {
return {
orderDetail: {
id: 0,
orderNo: "",
platform: "",
appType: "",
type: "",
createTime: "",
profit: "",
downloadNum: 0,
confirmType: "",
confirmTime: "",
confirmStatus: "",
},
};
},
onLoad: function (option) {
//optionobject
this.orderDetail.id = option.id;
//console.log('this.id',this.id)
this.queryFrontInAmtDetails();
},
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() {
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
});
}
},
//
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
});
}
});
}
}
}
//
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>
.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>

3
pages/profit/profitPreDetails.vue

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

Loading…
Cancel
Save