19 changed files with 1040 additions and 115 deletions
@ -1,36 +0,0 @@ |
|||||
# bnyer-cloud-hub |
|
||||
|
|
||||
#### Description |
|
||||
节点hub微信小程序端 |
|
||||
|
|
||||
#### Software Architecture |
|
||||
Software architecture description |
|
||||
|
|
||||
#### Installation |
|
||||
|
|
||||
1. xxxx |
|
||||
2. xxxx |
|
||||
3. xxxx |
|
||||
|
|
||||
#### Instructions |
|
||||
|
|
||||
1. xxxx |
|
||||
2. xxxx |
|
||||
3. xxxx |
|
||||
|
|
||||
#### Contribution |
|
||||
|
|
||||
1. Fork the repository |
|
||||
2. Create Feat_xxx branch |
|
||||
3. Commit your code |
|
||||
4. Create Pull Request |
|
||||
|
|
||||
|
|
||||
#### Gitee Feature |
|
||||
|
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md |
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com) |
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) |
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp) |
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) |
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) |
|
||||
@ -0,0 +1,22 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
我是banner页面 |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,118 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="uni-padding-wrap uni-common-mt"> |
||||
|
<uni-segmented-control :current="typeId" :values="items" :style-type="styleType" :active-color="activeColor" |
||||
|
@clickItem="onClickItem" /> |
||||
|
</view> |
||||
|
<view class="content"> |
||||
|
<view v-if="typeId === 0"> |
||||
|
<uni-list border-full v-for="(item,index) in endProfitList" :key="index"> |
||||
|
<uni-list-item showArrow clickable :title="item.walletTime+'@'+item.scanCode" |
||||
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
||||
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
||||
|
</uni-list> |
||||
|
</view> |
||||
|
<view v-if="typeId === 1"> |
||||
|
<uni-list border-full v-for="(item,index) in endProfitList" :key="index"> |
||||
|
<uni-list-item showArrow clickable :title="item.walletTime+'@'+item.scanCode" |
||||
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
||||
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
||||
|
</uni-list> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
queryFrontEndProfitAmt |
||||
|
} from '@/api/profit.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
items: ['广告', '邀请'], |
||||
|
typeId: 0, |
||||
|
activeColor: '#007aff', |
||||
|
styleType: 'text', |
||||
|
endProfitList: [], |
||||
|
userInfo: {} |
||||
|
} |
||||
|
}, |
||||
|
created(){ |
||||
|
const userInfoSync = uni.getStorageSync('userInfo') |
||||
|
this.userInfo = userInfoSync |
||||
|
const typeProfitId = uni.getStorageSync('typeId') |
||||
|
this.typeId = typeProfitId |
||||
|
const param = { |
||||
|
creatorId: userInfoSync.id, |
||||
|
type: typeProfitId |
||||
|
} |
||||
|
if (typeProfitId) { |
||||
|
this.queryFrontEndProfitAmt(param) |
||||
|
} else { |
||||
|
this.queryFrontEndProfitAmt(param) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
// 查询指定艺术家转入钱包收益列表 |
||||
|
async queryFrontEndProfitAmt(param) { |
||||
|
const res = await queryFrontEndProfitAmt(param) |
||||
|
if (res.data.code === 200) { |
||||
|
this.endProfitList = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '转入钱包列表数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
onClickItem(e) { |
||||
|
let that = this |
||||
|
if (that.typeId !== e.currentIndex) { |
||||
|
that.typeId = e.currentIndex |
||||
|
uni.showLoading({ |
||||
|
title: '加载中', |
||||
|
mask: true, |
||||
|
success() { |
||||
|
// 查询指定艺术家转入钱包收益列表 |
||||
|
const param = { |
||||
|
creatorId: that.userInfo.id, |
||||
|
type: that.typeId |
||||
|
} |
||||
|
queryFrontEndProfitAmt(param).then(res => { |
||||
|
console.log('res',res) |
||||
|
if (res.data.code === 200) { |
||||
|
that.endProfitList = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '转入钱包列表数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
complete() { |
||||
|
uni.hideLoading(); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
targetToOrder(id) { |
||||
|
console.log('id', id) |
||||
|
if (id) { |
||||
|
uni.navigateTo({ |
||||
|
url: '../profit/profitEndOrder?id=' + id |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,57 @@ |
|||||
|
<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.profit}}</text> |
||||
|
<uni-title type="h1" title="转入时间" align="left" /> |
||||
|
<text>{{orderDetail.walletTime}}</text> |
||||
|
</uni-group> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
queryFrontEndAmtDetails, |
||||
|
} 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.queryFrontEndAmtDetails(option.id); |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
// 查询指定艺术家转入钱包收益详情 |
||||
|
async queryFrontEndAmtDetails(id) { |
||||
|
const res = await queryFrontEndAmtDetails(id) |
||||
|
console.log('res', res) |
||||
|
if (res.data.code === 200) { |
||||
|
this.orderDetail = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '转入钱包收益详情数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,117 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="uni-padding-wrap uni-common-mt"> |
||||
|
<uni-segmented-control :current="typeId" :values="items" :style-type="styleType" :active-color="activeColor" |
||||
|
@clickItem="onClickItem" /> |
||||
|
</view> |
||||
|
<view class="content"> |
||||
|
<view v-if="typeId === 0"> |
||||
|
<uni-list border-full v-for="(item,index) in inProfitList" :key="index"> |
||||
|
<uni-list-item showArrow clickable :title="item.createTime+'@'+item.scanCode" |
||||
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
||||
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
||||
|
</uni-list> |
||||
|
</view> |
||||
|
<view v-if="typeId === 1"> |
||||
|
<uni-list border-full v-for="(item,index) in inProfitList" :key="index"> |
||||
|
<uni-list-item showArrow clickable :title="item.createTime+'@'+item.scanCode" |
||||
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
||||
|
:rightText="'¥'+item.profit" @click="targetToOrder(item.id)" /> |
||||
|
</uni-list> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
queryFrontInProfitAmt |
||||
|
} from '@/api/profit.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
items: ['广告', '邀请'], |
||||
|
typeId: 0, |
||||
|
activeColor: '#007aff', |
||||
|
styleType: 'text', |
||||
|
inProfitList: [], |
||||
|
userInfo: {} |
||||
|
} |
||||
|
}, |
||||
|
created() { |
||||
|
const userInfoSync = uni.getStorageSync('userInfo') |
||||
|
this.userInfo = userInfoSync |
||||
|
const typeProfitId = uni.getStorageSync('typeId') |
||||
|
this.typeId = typeProfitId |
||||
|
const param = { |
||||
|
creatorId: userInfoSync.id, |
||||
|
type: typeProfitId |
||||
|
} |
||||
|
if (typeProfitId) { |
||||
|
this.queryFrontInProfitAmt(param) |
||||
|
} else { |
||||
|
this.queryFrontInProfitAmt(param) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
// 查询指定艺术家已入账收益列表 |
||||
|
async queryFrontInProfitAmt(param) { |
||||
|
const res = await queryFrontInProfitAmt(param) |
||||
|
if (res.data.code === 200) { |
||||
|
this.inProfitList = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '已入账列表数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
onClickItem(e) { |
||||
|
let that = this |
||||
|
if (that.typeId !== e.currentIndex) { |
||||
|
that.typeId = e.currentIndex |
||||
|
uni.showLoading({ |
||||
|
title: '加载中', |
||||
|
mask: true, |
||||
|
success() { |
||||
|
// 查询指定艺术家已入账收益列表 |
||||
|
const param = { |
||||
|
creatorId: that.userInfo.id, |
||||
|
type: that.typeId |
||||
|
} |
||||
|
queryFrontInProfitAmt(param).then(res => { |
||||
|
if (res.data.code === 200) { |
||||
|
that.inProfitList = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '已入账列表数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
complete() { |
||||
|
uni.hideLoading(); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
targetToOrder(id) { |
||||
|
console.log('id', id) |
||||
|
if (id) { |
||||
|
uni.navigateTo({ |
||||
|
url: '../profit/profitInOrder?id=' + id |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
||||
@ -0,0 +1,89 @@ |
|||||
|
<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> |
||||
@ -0,0 +1,107 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="uni-padding-wrap uni-common-mt"> |
||||
|
<uni-segmented-control :current="typeId" :values="items" :style-type="styleType" :active-color="activeColor" |
||||
|
@clickItem="onClickItem" /> |
||||
|
</view> |
||||
|
<view class="content"> |
||||
|
<view v-if="typeId === 0"> |
||||
|
<uni-list border-full v-for="(item,index) in preProfitList" :key="index"> |
||||
|
<uni-list-item :title="item.createTime+'@'+item.scanCode" |
||||
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
||||
|
:rightText="item.downloadNum+'次'" /> |
||||
|
</uni-list> |
||||
|
</view> |
||||
|
<view v-if="typeId === 1"> |
||||
|
<uni-list border-full v-for="(item,index) in preProfitList" :key="index"> |
||||
|
<uni-list-item :title="item.createTime+'@'+item.scanCode" |
||||
|
:note="item.appType+'&'+item.platform+'&'+item.type" :thumb="item.url" thumb-size="lg" |
||||
|
:rightText="item.downloadNum+'次'" /> |
||||
|
</uni-list> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
queryFrontPreProfit |
||||
|
} from '@/api/profit.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
preProfitList: [], |
||||
|
items: ['广告', '邀请'], |
||||
|
typeId: 0, |
||||
|
activeColor: '#007aff', |
||||
|
styleType: 'text', |
||||
|
userInfo: {} |
||||
|
} |
||||
|
}, |
||||
|
created() { |
||||
|
const userInfoSync = uni.getStorageSync('userInfo') |
||||
|
this.userInfo = userInfoSync |
||||
|
const typeProfitId = uni.getStorageSync('typeId') |
||||
|
this.typeId = typeProfitId |
||||
|
const param = { |
||||
|
creatorId: userInfoSync.id, |
||||
|
type: typeProfitId |
||||
|
} |
||||
|
if (typeProfitId) { |
||||
|
this.queryFrontPreProfit(param) |
||||
|
} else { |
||||
|
this.queryFrontPreProfit(param) |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
onClickItem(e) { |
||||
|
let that = this |
||||
|
if (that.typeId !== e.currentIndex) { |
||||
|
that.typeId = e.currentIndex |
||||
|
uni.showLoading({ |
||||
|
title: '加载中', |
||||
|
mask: true, |
||||
|
success() { |
||||
|
// 查询即将入账邀请收益列表 |
||||
|
const param = { |
||||
|
creatorId: that.userInfo.id, |
||||
|
type: that.typeId |
||||
|
} |
||||
|
queryFrontPreProfit(param).then(res => { |
||||
|
if (res.data.code === 200) { |
||||
|
that.preProfitList = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '即将到账列表数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
complete() { |
||||
|
uni.hideLoading(); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
// 查询即将入账邀请收益列表 |
||||
|
async queryFrontPreProfit(param) { |
||||
|
const res = await queryFrontPreProfit(param) |
||||
|
if (res.data.code === 200) { |
||||
|
this.preProfitList = res.data.data |
||||
|
} else { |
||||
|
uni.showModal({ |
||||
|
content: '即将到账列表数据加载失败!', |
||||
|
showCancel: false |
||||
|
}); |
||||
|
} |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
|
||||
|
</style> |
||||
Loading…
Reference in new issue