Browse Source

feature-hub-1.0: subpackages finish

feature-1.0
chengkun 4 years ago
parent
commit
47ed709df8
  1. 36
      README.en.md
  2. 9
      api/profit.js
  3. 163
      package-lock.json
  4. 0
      pages-userInfo/about/about.vue
  5. 0
      pages-userInfo/contact/contact.vue
  6. 0
      pages-userInfo/extends/extends.vue
  7. 0
      pages-userInfo/inviteLog/inviteLog.vue
  8. 0
      pages-userInfo/notice/notice.vue
  9. 0
      pages-userInfo/withdraw/withdraw.vue
  10. 165
      pages.json
  11. 22
      pages/index/banner.vue
  12. 55
      pages/index/index.vue
  13. 203
      pages/profit/profit.vue
  14. 118
      pages/profit/profitEndDetails.vue
  15. 57
      pages/profit/profitEndOrder.vue
  16. 117
      pages/profit/profitInDetails.vue
  17. 89
      pages/profit/profitInOrder.vue
  18. 107
      pages/profit/profitPreDetails.vue
  19. 14
      pages/userInfo/userInfo.vue

36
README.en.md

@ -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/)

9
api/profit.js

@ -74,3 +74,12 @@ export function queryFrontProfitInfo(creatorId) {
})
}
// 查询指定艺术家转入钱包收益详情
export function queryFrontEndAmtDetails(id) {
return request({
url: `${serviceTitle}${prefix}/queryFrontEndAmtDetails/${id}`,
method: 'get'
})
}

163
package-lock.json

@ -1,6 +1,167 @@
{
"name": "bnyer-cloud-hub",
"lockfileVersion": 2,
"requires": true,
"lockfileVersion": 1,
"packages": {
"": {
"dependencies": {
"axios": "^0.26.1",
"js-md5": "^0.7.3",
"qs": "^6.10.3",
"vue-router": "^4.0.14",
"vuex": "^4.0.2"
}
},
"node_modules/@vue/devtools-api": {
"version": "6.2.0",
"resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.2.0.tgz",
"integrity": "sha512-pF1G4wky+hkifDiZSWn8xfuLOJI1ZXtuambpBEYaf7Xaf6zC/pM29rvAGpd3qaGXnr4BAXU1Pxz/VfvBGwexGA=="
},
"node_modules/axios": {
"version": "0.26.1",
"resolved": "https://registry.npmmirror.com/axios/-/axios-0.26.1.tgz",
"integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==",
"dependencies": {
"follow-redirects": "^1.14.8"
}
},
"node_modules/call-bind": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.2.tgz",
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
"dependencies": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/follow-redirects": {
"version": "1.15.1",
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.1.tgz",
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz",
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
},
"node_modules/get-intrinsic": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.1.2.tgz",
"integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==",
"dependencies": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.3"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/has": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/has/-/has-1.0.3.tgz",
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
"dependencies": {
"function-bind": "^1.1.1"
},
"engines": {
"node": ">= 0.4.0"
}
},
"node_modules/has-symbols": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz",
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/js-md5": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz",
"integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
},
"node_modules/object-inspect": {
"version": "1.12.2",
"resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.12.2.tgz",
"integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/qs": {
"version": "6.11.0",
"resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz",
"integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
"dependencies": {
"side-channel": "^1.0.4"
},
"engines": {
"node": ">=0.6"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel": {
"version": "1.0.4",
"resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz",
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
"dependencies": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
"object-inspect": "^1.9.0"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/vue-router": {
"version": "4.0.16",
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.0.16.tgz",
"integrity": "sha512-JcO7cb8QJLBWE+DfxGUL3xUDOae/8nhM1KVdnudadTAORbuxIC/xAydC5Zr/VLHUDQi1ppuTF5/rjBGzgzrJNA==",
"dependencies": {
"@vue/devtools-api": "^6.0.0"
},
"funding": {
"url": "https://github.com/sponsors/posva"
},
"peerDependencies": {
"vue": "^3.2.0"
}
},
"node_modules/vuex": {
"version": "4.0.2",
"resolved": "https://registry.npmmirror.com/vuex/-/vuex-4.0.2.tgz",
"integrity": "sha512-M6r8uxELjZIK8kTKDGgZTYX/ahzblnzC4isU1tpmEuOIIKmV+TRdc+H4s8ds2NuZ7wpUTdGRzJRtoj+lI+pc0Q==",
"dependencies": {
"@vue/devtools-api": "^6.0.0-beta.11"
},
"peerDependencies": {
"vue": "^3.0.2"
}
}
},
"dependencies": {
"@vue/devtools-api": {
"version": "6.2.0",

0
pages/userInfo/about/about.vue → pages-userInfo/about/about.vue

0
pages/userInfo/contact/contact.vue → pages-userInfo/contact/contact.vue

0
pages/userInfo/extends/extends.vue → pages-userInfo/extends/extends.vue

0
pages/userInfo/inviteLog/inviteLog.vue → pages-userInfo/inviteLog/inviteLog.vue

0
pages/userInfo/notice/notice.vue → pages-userInfo/notice/notice.vue

0
pages/userInfo/withdraw/withdraw.vue → pages-userInfo/withdraw/withdraw.vue

165
pages.json

@ -14,55 +14,7 @@
"enablePullDownRefresh": true
}
},
{
"path": "pages/userInfo/userInfo",
"style": {
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false
}
},{
"path": "pages/userInfo/about/about",
"style": {
"navigationBarTitleText": "关于",
"enablePullDownRefresh": false
}
},
{
"path": "pages/userInfo/contact/contact",
"style": {
"navigationBarTitleText": "联系我们",
"enablePullDownRefresh": false
}
},
{
"path": "pages/userInfo/extends/extends",
"style": {
"navigationBarTitleText": "邀请更多",
"enablePullDownRefresh": false
}
},
{
"path": "pages/userInfo/inviteLog/inviteLog",
"style": {
"navigationBarTitleText": "邀请记录",
"enablePullDownRefresh": false
}
},
{
"path": "pages/userInfo/notice/notice",
"style": {
"navigationBarTitleText": "系统公告",
"enablePullDownRefresh": false
}
},
{
"path": "pages/userInfo/withdraw/withdraw",
"style": {
"navigationBarTitleText": "提现记录",
"enablePullDownRefresh": false
}
}
,{
{
"path" : "pages/index/upload/upload",
"style" :
{
@ -84,7 +36,7 @@
"path" : "pages/login/login",
"style" :
{
"navigationBarTitleText": "",
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
@ -92,13 +44,120 @@
,{
"path" : "pages/register/register",
"style" :
{
"navigationBarTitleText": "注册",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/index/banner",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitPreDetails",
"style" :
{
"navigationBarTitleText": "即将入账详情",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitInDetails",
"style" :
{
"navigationBarTitleText": "已入账详情",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitInOrder",
"style" :
{
"navigationBarTitleText": "收益结算单",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitEndDetails",
"style" :
{
"navigationBarTitleText": "转入钱包详情",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/profit/profitEndOrder",
"style" :
{
"navigationBarTitleText": "转入钱包结算单",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/userInfo/userInfo",
"style" :
{
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false
}
}
],
"subPackages": [{
"root": "pages-userInfo",
"pages":[{
"path":"about/about",
"style":{
"navigationBarTitleText": "关于节点",
"enablePullDownRefresh": false
}
},
{
"path":"contact/contact",
"style":{
"navigationBarTitleText": "联系我们",
"enablePullDownRefresh": false
}
},
{
"path":"extends/extends",
"style":{
"navigationBarTitleText": "邀请更多人",
"enablePullDownRefresh": false
}
},
{
"path":"inviteLog/inviteLog",
"style":{
"navigationBarTitleText": "邀请记录",
"enablePullDownRefresh": false
}
},{
"path":"notice/notice",
"style":{
"navigationBarTitleText": "通知公告",
"enablePullDownRefresh": false
}
},
{
"path":"withdraw/withdraw",
"style":{
"navigationBarTitleText": "提现记录",
"enablePullDownRefresh": false
}
}]
}],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "bnyer",
@ -116,15 +175,15 @@
"iconPath": "static/index-default.png",
"selectedIconPath": "static/index-select.png",
"text": "首页"
},
{
},
{
"pagePath": "pages/profit/profit",
"iconPath": "static/theme-default.png",
"selectedIconPath": "static/theme-select.png",
"text": "收益"
},
{
"pagePath": "pages/userInfo/userInfo",
"pagePath": "pages/userInfo/userInfo",
"iconPath": "static/mine-default.png",
"selectedIconPath": "static/mine-select.png",
"text": "我的"

22
pages/index/banner.vue

@ -0,0 +1,22 @@
<template>
<view>
我是banner页面
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>

55
pages/index/index.vue

@ -1,13 +1,14 @@
<template>
<view class="container">
<view class="top">
<uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="info" :current="current" :mode="mode"
field="content">
<uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="banner" :current="current" :mode="mode"
field="bannerName">
<swiper class="swiper-box" @change="changeSwiper" :current="swiperDotIndex" :autoplay="autoplay"
:interval="interval" :duration="duration">
<swiper-item v-for="(item, index) in 3" :key="index">
<swiper-item v-for="(item, index) in banner" :key="index">
<view class="swiper-item" :class="'swiper-item' + index">
<text style="color: #fff; font-size: 32px;">{{index+1}}</text>
<!-- <text style="color: #fff; font-size: 32px;">{{index+1}}</text> -->
<image class="img" @click="linkTo(item)" :src="item.bannerImg"></image>
</view>
</swiper-item>
</swiper>
@ -46,18 +47,13 @@
<script>
import {
queryCreatorTypeImgNum
queryCreatorTypeImgNum,
listBanner
} from '@/api/index.js'
export default {
data() {
return {
info: [{
content: '内容 A'
}, {
content: '内容 B'
}, {
content: '内容 C'
}],
banner:[],
current: 0,
mode: 'nav',
swiperDotIndex: 0,
@ -104,9 +100,14 @@
}
]
};
},
},
created(){
},
onLoad(){
this.queryCreatorTypeImgNum();
this.getBanner();
},
methods: {
changeSwiper(e){
@ -124,7 +125,30 @@
this.swiperDotIndex = e
console.log('this.swiperDotIndex', this.swiperDotIndex)
},
// banner
linkTo(item) {
if (item.id) {
uni.navigateTo({
url: '../index/banner'
});
}
},
// banner
async getBanner() {
const res = await listBanner()
if (res.data.code === 200) {
this.banner = res.data.data
console.log('banner',this.banner)
} else {
uni.showModal({
content: 'banner加载失败!',
showCancel: false
});
}
},
//
async queryCreatorTypeImgNum() {
const userInfo = uni.getStorageSync('userInfo')
if (!userInfo) {
@ -158,6 +182,11 @@
.container{
font-family:Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;
}
.img {
position: absolute;
width: 100%;
height: 100%;
}
.grid-item-box {
flex: 1;
// position: relative;

203
pages/profit/profit.vue

@ -3,14 +3,70 @@
<view class="top">
<uni-section title="昨日收益" type="line">
<uni-group mode="card">
<view>啦啦啦</view>
<view>广告收益:{{profitInfo.yesterdayAdProfit}}</view>
<view>邀请收益:{{profitInfo.yesterdayInviteProfit}}</view>
<view>总收益:{{profitInfo.totalProfit}}</view>
<view>上月收益:{{profitInfo.lastMonthProfit}}</view>
<view>当月收益:{{profitInfo.thisMonthProfit}}</view>
</uni-group>
</uni-section>
</view>
<view class="middle">
<uni-section title="收益明细" type="line">
<uni-group mode="card">
<view>啦啦啦</view>
<uni-segmented-control :current="current" :values="items" :style-type="styleType"
:active-color="activeColor" @clickItem="onClickItem" />
<view class="content">
<view v-if="current === 0">
<uni-collapse>
<uni-collapse-item title="广告" :show-animation="true">
<view class="content"
v-for="(item,index) in downloadAndInviteCountInfo.creatorProfitDownloadCount"
:key="index">
<text class="text" @click="linkTo(0,0)">日期:{{item.createTime}}---</text>
<text class="text">次数:{{item.downloadNum}}</text>
</view>
</uni-collapse-item>
<uni-collapse-item title="邀请" :show-animation="true">
<view class="content"
v-for="(item,index) in downloadAndInviteCountInfo.creatorProfitInviteCount"
:key="index">
<text class="text" @click="linkTo(1,0)">日期:{{item.createTime}}---</text>
<text class="text">次数:{{item.inviteDownloadNum}}</text>
</view>
</uni-collapse-item>
</uni-collapse>
</view>
<view v-if="current === 1">
<uni-collapse>
<uni-collapse-item title="广告" :show-animation="true">
<view class="content">
<text class="text" @click="linkTo(0,1)">额度:{{inProfitInfo.profit}}</text>
</view>
</uni-collapse-item>
<uni-collapse-item title="邀请" :show-animation="true">
<view class="content">
<text class="text" @click="linkTo(1,1)">额度:{{inProfitInfo.inviteProfit}}</text>
</view>
</uni-collapse-item>
</uni-collapse>
</view>
<view v-if="current === 2">
<uni-collapse>
<uni-collapse-item title="广告" :show-animation="true">
<view class="content">
<text class="text" @click="linkTo(0,2)">额度:{{endProfitInfo.profit}}</text>
</view>
</uni-collapse-item>
<uni-collapse-item title="邀请" :show-animation="true">
<view class="content">
<text class="text" @click="linkTo(1,2)">额度:{{endProfitInfo.inviteProfit}}</text>
</view>
</uni-collapse-item>
</uni-collapse>
</view>
</view>
</uni-group>
</uni-section>
</view>
@ -19,13 +75,31 @@
<script>
import {
queryFrontProfitInfo
queryFrontProfitInfo, //
queryFrontPreDownloadAndInviteCount, //广
queryFrontPreProfit, //
queryFrontInOrOutAmt, ///
} from '@/api/profit.js'
export default {
data() {
return {
nvueWidth: 730,
list: ['美團外賣', '支付助手', '廣告助手', '上傳圖片', '消息通知', '我的信息', '我的短信', '我的頭像']
profitInfo: {
yesterdayAdProfit: 0,
yesterdayInviteProfit: 0,
totalProfit: 0,
lastMonthProfit: 0,
thisMonthProfit: 0
},
downloadAndInviteCountInfo: {},
profitList: [],
items: ['即将入账', '已入账', '已转入钱包'],
current: 0,
activeColor: '#007aff',
styleType: 'text',
inProfitInfo: {},
endProfitInfo: {},
userInfo: {},
}
},
//
@ -33,11 +107,121 @@
uni.stopPullDownRefresh()
},
created() {
const userInfoSync = uni.getStorageSync('userInfo')
this.userInfo = userInfoSync
this.queryFrontProfitInfo(userInfoSync.id);
this.queryFrontPreDownloadAndInviteCount(userInfoSync.id)
const paramIn = {
creatorId: userInfoSync.id,
status: '1'
}
this.queryFrontInAmt(paramIn)
const paramEnd = {
creatorId: userInfoSync.id,
status: '2'
}
this.queryFrontEndAmt(paramEnd)
},
methods: {
//
async queryFrontProfitInfo(id) {
const res = await queryFrontProfitInfo(id)
//console.log('res', res)
if (res.data.code === 200) {
this.profitInfo = res.data.data
//console.log('profitInfo', this.profitInfo)
} else {
uni.showModal({
content: '收益统计加载失败!',
showCancel: false
});
}
},
// 广
async queryFrontPreDownloadAndInviteCount(id) {
const res = await queryFrontPreDownloadAndInviteCount(id)
//console.log('res', res)
if (res.data.code === 200) {
this.downloadAndInviteCountInfo = res.data.data
//console.log('downloadAndInviteCountInfo', this.downloadAndInviteCountInfo)
} else {
uni.showModal({
content: '收益统计次数加载失败!',
showCancel: false
});
}
},
//
async queryFrontInAmt(param) {
const res = await queryFrontInOrOutAmt(param)
console.log('InAmt', res)
if (res.data.code === 200) {
this.inProfitInfo = res.data.data
} else {
uni.showModal({
content: '已入账收益加载失败!',
showCancel: false
});
}
},
//
async queryFrontEndAmt(param) {
const res = await queryFrontInOrOutAmt(param)
console.log('endAmt', res)
if (res.data.code === 200) {
this.endProfitInfo = res.data.data
} else {
uni.showModal({
content: '转入钱包收益加载失败!',
showCancel: false
});
}
},
// (status:0->;1->;2->)
linkTo(typeId, status) {
if (status === 0) {
uni.setStorage({
key: 'typeId',
data: typeId,
success() {
uni.navigateTo({
url: '../profit/profitPreDetails'
})
}
})
} else if (status === 1) {
uni.setStorage({
key: 'typeId',
data: typeId,
success() {
uni.navigateTo({
url: '../profit/profitInDetails'
})
}
})
} else {
uni.setStorage({
key: 'typeId',
data: typeId,
success() {
uni.navigateTo({
url: '../profit/profitEndDetails'
})
}
})
}
},
onClickItem(e) {
if (this.current !== e.currentIndex) {
this.current = e.currentIndex
}
},
},
}
</script>
@ -46,4 +230,13 @@
.container {
font-family: Franklin Gothic Medium, Arial Narrow, Arial, sans-serif;
}
.uni-padding-wrap {
// width: 750rpx;
padding: 0px 30px;
}
.uni-common-mt {
margin-top: 30px;
}
</style>

118
pages/profit/profitEndDetails.vue

@ -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>

57
pages/profit/profitEndOrder.vue

@ -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) { //optionobject
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>

117
pages/profit/profitInDetails.vue

@ -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>

89
pages/profit/profitInOrder.vue

@ -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) { //optionobject
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>

107
pages/profit/profitPreDetails.vue

@ -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>

14
pages/userInfo/userInfo.vue

@ -7,7 +7,7 @@
<view class="my-message">
<view class="left">
<image :src="userInfo.img" mode=""></image>
</view>
</view>
<view class="right">
{{userInfo.name}}
</view>
@ -41,27 +41,27 @@
data() {
return {
list:[{
url: '/pages/userInfo/about/about',
url: '/pages-userInfo/about/about',
title: '关于节点',
img: ''
},{
url: '/pages/userInfo/contact/contact',
url: '/pages-userInfo/contact/contact',
title: '联系我们',
img: ''
},{
url: '/pages/userInfo/extends/extends',
url: '/pages-userInfo/extends/extends',
title: '邀请他人',
img: ''
},{
url: '/pages/userInfo/inviteLog/inviteLog',
url: '/pages-userInfo/inviteLog/inviteLog',
title: '邀请记录',
img: ''
},{
url: '/pages/userInfo/notice/notice',
url: '/pages-userInfo/notice/notice',
title: '通知公告',
img: ''
},{
url: '/pages/userInfo/withdraw/withdraw',
url: '/pages-userInfo/withdraw/withdraw',
title: '提现记录',
img: ''
}],

Loading…
Cancel
Save