Browse Source

feature:1.0:提交

feature-1.0
Penny 3 years ago
parent
commit
31efd584fa
  1. 34
      api/index.js
  2. 4
      pages-userInfo/contact/contact.vue
  3. 241
      pages-userInfo/extends/extends.vue
  4. 81
      pages-userInfo/inviteLog/inviteLog.vue
  5. 4
      pages-userInfo/notice/notice.vue
  6. 2
      pages-userInfo/notice/noticeDetail.vue
  7. 22
      pages-userInfo/withdraw/withdraw.vue
  8. 16
      pages-userInfo/withdraw/withdrawDetail.vue
  9. 35
      pages.json
  10. 24
      pages/index/index.vue
  11. 695
      pages/index/material/imgDetail.vue
  12. 96
      pages/index/material/material.vue
  13. 293
      pages/index/upload/upload.vue
  14. 156
      pages/profit/profit.vue

34
api/index.js

@ -117,4 +117,38 @@ export function getYs(data) {
}) })
} }
// 获取艺术家当日上传次数
export function queryUploadNum(data) {
return request({
url: `${serviceTitle}${prefix}/getUploadNum`,
method: 'post',
data
})
}
// 查询图片详情
export function getImgDetails(imgId) {
return request({
url: `${serviceTitle}${prefix}/detailsTiktokImg/${imgId}`,
method: 'get'
})
}
// 置顶图片
export function topImg(id) {
return request({
url: `${serviceTitle}${prefix}/topImg/${id}`,
method: 'get'
})
}
// 修改艺术家图片标签
export function modifySign(data) {
return request({
url: `${serviceTitle}${prefix}/modifySign`,
method: 'post',
data
})
}

4
pages-userInfo/contact/contact.vue

@ -14,7 +14,7 @@
flex: 1; flex: 1;
} }
.img{ .img{
width: 100%; width: 750rpx;
height: 600px; height: 1200rpx;
} }
</style> </style>

241
pages-userInfo/extends/extends.vue

@ -1,180 +1,79 @@
<template> <template>
<view class="container"> <view class="back">
我是邀请更多页面 <view class="back-top"></view>
<view class="uni-radius back-con uni-shadow-sm">
<view class="">
<view class="back-con-top"> 邀请码 </view>
<view class="inviteCode">
{{userInfo.inviteCode}}
</view>
</view>
<view class="border"></view>
<view class="">
<view class="back-con-top"> 邀请链接 </view>
<view class="inviteUrl">
http://AFJIASD?code={{userInfo.inviteCode}}
</view>
<button class="">点击复制</button>
</view>
</view>
</view> </view>
</template> </template>
<script> <script>
// export default { export default {
// data() { data() {
// return { return {
// hotCreatorList: [], userInfo: {},
// isTarget: true,
// showChoiceness:false
// }
// },
// //
// onPullDownRefresh() {
// this.showChoiceness = false
// uni.stopPullDownRefresh()
// },
// created() {
// const userInfo = uni.getStorageSync('userInfo')
// if (!userInfo) {
// console.log('havent userInfo')
// this.getUserInfo()
// } else {
// console.log('have userInfo')
// }
// },
// onPageScroll(e) {
// // scrollTopeasy-loadimage
// if (e.scrollTop > 160) {
// this.showChoiceness = true
// // uni.redirectTo({
// // url: '../index/choiceness'
// // })
// }
// },
// methods: {
// //
// search(res) {
// if (res.value) {
// console.log('search', res.value)
// this.goCreatorDetail(res.value)
// } else {
// uni.showToast({
// title: '',
// icon: 'none'
// })
// }
// },
// //
// getUserInfo() {
// wx.login({
// force: true,
// success: res => {
// wx.getUserInfo({
// withCredentials: true,
// success: userInfo => {
// const params = {
// code: res.code,
// encryptedData: userInfo.encryptedData,
// iv: userInfo.iv
// }
// //
// console.log('params',params);
// loginWx(params).then(res => {
// if (res.data.code === 200) {
// uni.setStorage({
// key: 'userInfo',
// data: res.data.data.userInfo,
// })
// } else {
// uni.showToast({
// title: res.data.msg,
// icon: 'none'
// })
// }
// }).catch(res => {})
// console.log(`getUserInfo `, userInfo);
// },
// fail(userInfo) {
// console.log(`getUserInfo `);
// },
// });
// },
// fail(res) {
// console.log(`login `);
// },
// });
// },
// //
// handleScroll() {
// let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
// console.log(scrollTop)
// },
// },
// }
</script>
<style lang="less">
.container {
.top {
width: 100vw;
image {
width: 100vw;
height: 400rpx;
}
.uni-searchbar {
border: 1px solid #11A8FD;
margin: 0 40rpx;
border-radius: 16rpx;
padding: 0;
.uni-searchbar__box {
padding: 0;
border-radius: 16rpx !important;
}
}
>text {
font-weight: bold;
font-size: 14px;
display: block;
text-align: center;
padding-top: 40rpx;
padding-bottom: 20rpx;
}
.user-list {
display: flex;
justify-content: flex-start;
align-items: center;
overflow-x: auto;
.user-list-box {
width: 140rpx;
padding: 20rpx;
text-align: center;
image {
width: 100rpx;
height: 100rpx;
border-radius: 100rpx;
}
text {
font-size: 24rpx;
color: #1E1E1E;
text-align: center;
}
}
}
}
.middle {
text-align: center;
height: calc(100vh - 248rpx);
padding-top: 40rpx;
text {
font-weight: bold;
font-size: 14px;
display: block;
}
image {
width: 40rpx;
height: 40rpx;
} }
},
created() {
const userInfoSync = uni.getStorageSync('userInfo')
this.userInfo = userInfoSync
} }
} }
</script>
<style lang="scss">
.back {
width: 100%;
height: 320px;
position: relative;
}
.back-con {
width: 95%;
left: 50%;
top: 42%;
transform: translate(-50%, -50%);
background-color: white;
position: relative;
height: 440rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.back2 {
width: 100%;
}
.back-top {
width: 100%;
position: absolute;
height: 240rpx;
background: #416bdc;
}
.back-con-top {
font-size: 40rpx;
font-weight: 600;
margin: 40rpx 0 30rpx 0;
display: flex;
justify-content: center;
}
.border {
width: 95%;
height: 2rpx;
margin-top: 19rpx;
background-color: rgb(165, 165, 165);
}
</style> </style>

81
pages-userInfo/inviteLog/inviteLog.vue

@ -1,8 +1,8 @@
<template> <template>
<view class="container"> <view class="container">
<uni-list border-full v-for="(item,index) in inviteLogList" :key="index"> <uni-list border-full v-for="(item,index) in inviteLogList" :key="index">
<uni-list-item :title="item.invitedScanCode" :note="item.createTime" :thumb="item.img" thumb-size="lg" /> <uni-list-item :title="item.invitedScanCode" :note="item.createTime" :thumb="item.img" thumb-size="lg" />
</uni-list> </uni-list>
<view class="ivOver" v-if="flag">-----已经到底啦-----</view> <view class="ivOver" v-if="flag">-----已经到底啦-----</view>
</view> </view>
</template> </template>
@ -70,83 +70,12 @@
<style lang="scss"> <style lang="scss">
.ivOver{ .ivOver{
width: 100%; width: 100%;
height:50px; height:100rpx;
line-height: 50px; line-height: 100rpx;
text-align: center; text-align: center;
background: #fff; background: #fff;
font-size: 20rpx; font-size: 20rpx;
} }
.container {
.top {
width: 100vw;
image {
width: 100vw;
height: 400rpx;
}
.uni-searchbar {
border: 1px solid #11A8FD;
margin: 0 40rpx;
border-radius: 16rpx;
padding: 0;
.uni-searchbar__box {
padding: 0;
border-radius: 16rpx !important;
}
}
>text {
font-weight: bold;
font-size: 14px;
display: block;
text-align: center;
padding-top: 40rpx;
padding-bottom: 20rpx;
}
.user-list {
display: flex;
justify-content: flex-start;
align-items: center;
overflow-x: auto;
.user-list-box {
width: 140rpx;
padding: 20rpx;
text-align: center;
image {
width: 100rpx;
height: 100rpx;
border-radius: 100rpx;
}
text {
font-size: 24rpx;
color: #1E1E1E;
text-align: center;
}
}
}
}
.middle {
text-align: center;
height: calc(100vh - 248rpx);
padding-top: 40rpx;
text {
font-weight: bold;
font-size: 14px;
display: block;
}
image {
width: 40rpx;
height: 40rpx;
}
}
}
</style> </style>

4
pages-userInfo/notice/notice.vue

@ -76,8 +76,8 @@
<style lang="scss"> <style lang="scss">
.ivOver{ .ivOver{
width: 100%; width: 100%;
height:50px; height:100rpx;
line-height: 50px; line-height: 100rpx;
text-align: center; text-align: center;
background: #fff; background: #fff;
font-size: 20rpx; font-size: 20rpx;

2
pages-userInfo/notice/noticeDetail.vue

@ -57,6 +57,6 @@
<style> <style>
.bottom{ .bottom{
margin-top:20px; margin-top:40rpx;
} }
</style> </style>

22
pages-userInfo/withdraw/withdraw.vue

@ -123,19 +123,19 @@
<style lang="scss"> <style lang="scss">
.uni-list-item__icon-img { .uni-list-item__icon-img {
border-radius: 8px; border-radius: 16rpx;
} }
.ivOver{ .ivOver{
width: 100%; width: 100%;
height:50px; height:100rpx;
line-height: 50px; line-height: 100rpx;
text-align: center; text-align: center;
background: #fff; background: #fff;
font-size: 20rpx; font-size: 20rpx;
} }
.box { .box {
display: flex; display: flex;
padding-right: 8px; padding-right: 16rpx;
flex: 1; flex: 1;
color: #3b4144; color: #3b4144;
flex-direction: column; flex-direction: column;
@ -144,17 +144,17 @@
} }
.box-bot { .box-bot {
display: flex; display: flex;
margin-top: 5px; margin-top: 10rpx;
} }
.box-bot view { .box-bot view {
border-radius: 3px; border-radius: 6rpx;
border: 1px solid #4d6aff; border: 2rpx solid #4d6aff;
padding: 2px 5px; padding: 4rpx 10rpx;
margin-right: 5px; margin-right: 10rpx;
font-size: 12px; font-size: 24rpx;
} }
.uni-list-item__content-title { .uni-list-item__content-title {
font-size: 14px; font-size: 28rpx;
color: #3b4144; color: #3b4144;
overflow: hidden; overflow: hidden;
} }

16
pages-userInfo/withdraw/withdrawDetail.vue

@ -116,7 +116,7 @@
.back-top { .back-top {
width: 100%; width: 100%;
position: absolute; position: absolute;
height: 120px; height: 240rpx;
background: #416bdc; background: #416bdc;
} }
.card { .card {
@ -124,25 +124,25 @@
position: absolute; position: absolute;
} }
.uni-group--card { .uni-group--card {
margin-top: 20px !important; margin-top: 40rpx !important;
} }
.title { .title {
display: block; display: block;
width: 70px; width: 140rpx;
margin-right: 10px; margin-right: 20rpx;
font-weight: bold; font-weight: bold;
} }
.box { .box {
display: flex; display: flex;
margin-bottom: 20px; margin-bottom: 40rpx;
} }
.card view:first-child { .card view:first-child {
margin-top: 10px; margin-top: 20rpx;
} }
.border { .border {
width: 100%; width: 100%;
height: 1px; height: 2rpx;
background: rgb(229, 229, 229); background: rgb(229, 229, 229);
margin-bottom: 20px; margin-bottom: 40rpx;
} }
</style> </style>

35
pages.json

@ -17,7 +17,7 @@
{ {
"path": "pages/index/upload/upload", "path": "pages/index/upload/upload",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "上传图片",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
@ -29,6 +29,13 @@
} }
}, { }, {
"path": "pages/index/material/imgDetail",
"style": {
"navigationBarTitleText": "素材详情",
"enablePullDownRefresh": false
}
},{
"path": "pages/login/login", "path": "pages/login/login",
"style": { "style": {
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
@ -45,7 +52,7 @@
}, { }, {
"path": "pages/index/banner", "path": "pages/index/banner",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "banner",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
@ -96,12 +103,12 @@
"subPackages": [{ "subPackages": [{
"root": "pages-userInfo", "root": "pages-userInfo",
"pages": [{ "pages": [{
"path": "about/about", "path": "about/about",
"style": { "style": {
"navigationBarTitleText": "常见问题", "navigationBarTitleText": "常见问题",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "contact/contact", "path": "contact/contact",
"style": { "style": {
@ -144,7 +151,7 @@
} }
, { , {
"path": "withdraw/withdrawDetail", "path": "withdraw/withdrawDetail",
"style": { "style": {
"navigationBarTitleText": "提现详情", "navigationBarTitleText": "提现详情",
@ -168,11 +175,11 @@
"borderStyle": "black", "borderStyle": "black",
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8",
"list": [{ "list": [{
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"iconPath": "static/index-default.png", "iconPath": "static/index-default.png",
"selectedIconPath": "static/index-select.png", "selectedIconPath": "static/index-select.png",
"text": "首页" "text": "首页"
}, },
{ {
"pagePath": "pages/profit/profit", "pagePath": "pages/profit/profit",
"iconPath": "static/theme-default.png", "iconPath": "static/theme-default.png",

24
pages/index/index.vue

@ -4,7 +4,7 @@
<uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="banner" :current="current" :mode="mode" <uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="banner" :current="current" :mode="mode"
field="bannerName"> field="bannerName">
<swiper class="swiper-box" @change="changeSwiper" :current="swiperDotIndex" :autoplay="autoplay" <swiper class="swiper-box" @change="changeSwiper" :current="swiperDotIndex" :autoplay="autoplay"
:interval="interval" :duration="duration"> :interval="interval" :duration="duration" circular>
<swiper-item v-for="(item, index) in banner" :key="index"> <swiper-item v-for="(item, index) in banner" :key="index">
<view class="swiper-item" :class="'swiper-item' + 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> -->
@ -206,7 +206,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 10px 0; padding: 10rpx 0;
} }
.grid-item-box-row { .grid-item-box-row {
@ -218,11 +218,11 @@
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 10px 0; padding: 10rpx 0;
} }
.swiper-box { .swiper-box {
height: 150px; height: 260rpx;
} }
.swiper-item { .swiper-item {
@ -232,7 +232,7 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 200px; height: 290rpx;
color: #fff; color: #fff;
} }
@ -263,11 +263,11 @@
/* #endif */ /* #endif */
@media screen and (min-width: 500px) { @media screen and (min-width: 500rpx) {
.uni-swiper-dot-box { .uni-swiper-dot-box {
width: 400px; width: 400rpx;
margin: 0 auto; margin: 0 auto;
margin-top: 8px; margin-top: 8rpx;
} }
.image { .image {
@ -280,13 +280,13 @@
} }
.iconImage{ .iconImage{
width:3rem; width:90rpx;
height:3rem; height:90rpx;
} }
.listIconImage{ .listIconImage{
width:2rem; width:60rpx;
height:2rem; height:60rpx;
} }
</style> </style>

695
pages/index/material/imgDetail.vue

@ -1,31 +1,24 @@
<template> <template>
<view class="imgDetail"> <view class="imgDetail">
<image class="main-img" :src="detailMsg.imgUrl" mode=""></image> <image class="main-img" :src="detailMsg.imgUrl" :style="'width:'+imgWidth+';height:'+imgHeight+';margin-top:'+marginTop" mode=""></image>
<view class="toolbar"> <view class="toolbar" :style="'display:'+showOrmis">
<view class="toolbar-box"> <view class="toolbarLeft" @click=topImg>置顶</view>
<image v-if="detailMsg.isHot ==='0'" src="../../static/hot-not.png" mode=""></image> <view class="border"></view>
<image v-else src="../../static/hot-yes.png" mode=""></image> <view class="toolbarMid" @click="onOrOffHandler">{{upOrDown}}</view>
</view> <view class="border"></view>
<view class="toolbar-box" @click="download(detailMsg.imgUrl)"> <view class="toolbarRight" @click="changeSign">修改标签</view>
<image v-if="isDownload" src="../../static/download-select.png" mode=""></image> <view>
<image v-else src="../../static/download.png" mode=""></image> <uni-drawer ref="showRight" mode="right" :width="300">
<text>下载</text> <view class="close">
</view> <uni-group mode="card">
<view class="toolbar-box" @click="likeCollect('isLike')"> <view class="segmented-control">
<image v-if="isLike" src="../../static/like-select.png" mode=""></image> <view>标签列表(最多选择3个)</view>
<image v-else src="../../static/like.png" mode=""></image> <uni-data-checkbox mode="tag" multiple v-model="signListSelected" :localdata="signList" @change="selectedSign" max="3"></uni-data-checkbox>
<text>喜欢</text> </view>
</view> </uni-group>
<view class="toolbar-box" @click="likeCollect('isCollect')"> <button class="upLoadBtn" @click="modifySign">保存</button>
<image v-if="isCollect" src="../../static/collect-select.png" mode=""></image> </view>
<image v-else src="../../static/collect.png" mode=""></image> </uni-drawer>
<text>收藏</text>
</view>
<view class="toolbar-box share-box">
<button open-type="share">
<image src="../../static/share.png" mode=""></image>
<text>分享</text>
</button>
</view> </view>
</view> </view>
</view> </view>
@ -33,29 +26,25 @@
<script> <script>
import { import {
detailsTiktokImg, // getImgDetails,//
judgeTiktokLike, // onlineOrOfflineImg ,//
judgeTiktokCollect, // topImg, //
tiktokLike, // getSignList,//
tiktokUnLike, // modifySign //
tiktokCollect, // } from '@/api/index.js'
tiktokUnCollect, //
queryCreatorScanCodeById, //
insertOrUpdatePreAdProfit, ///广
insertOrUpdatePreInviteProfit, // /
checkUserCanDownload //
} from '@/api/creator.js'
export default { export default {
data() { data() {
return { return {
detailMsg: {}, // detailMsg: {}, //
userInfo: {}, // userInfo: {}, //
isDownload: false, // imgWidth: 0, //
isLike: false, // / imgHeight: 0, // ,
isCollect: false, // , marginTop: 0 ,//
scanCode: undefined, // showOrmis: 'none' ,//
canDownload: false // false upOrDown: '下',
showRight: false,
signListSelected:[],
signList:[],
} }
}, },
created() { created() {
@ -65,426 +54,260 @@
} else { } else {
this.getImgDetail(detailId) this.getImgDetail(detailId)
} }
}, this.getSignList();
onShareAppMessage(res) {
if (res.from === 'button') { //
console.log(res)
}
return {
title: '来看看艺术家[' + this.scanCode + ']精心准备的图片吧~',
path: `/pages/creator/imgDetail?id=${this.userInfo.id}`,
bgImgUrl: `${this.detailMsg.imgUrl}`
}
uni.showToast({
title: '分享成功',
icon: 'none'
})
}, },
methods: { methods: {
//
async getImgDetail(id) { //
const res = await detailsTiktokImg(id) modifySign(){
console.log('res', res) let that = this;
if (res.data.code === 200) { //
this.detailMsg = res.data.data const param = {
console.log('图片详情', res) imgId: that.detailMsg.id,
const result = await queryCreatorScanCodeById(this.detailMsg.creatorId) typeId: that.detailMsg.typeId,
if (result.data.code === 200) { signList: that.signListSelected
this.scanCode = result.data.data.scanCode }
} else { modifySign(param).then(res=>{
if (res.data.code === 200) {
uni.showToast({ uni.showToast({
title: '该艺术家不存在!', title:'修改标签成功!',
icon: 'none' duration: 1000,
success() {
that.$refs.showRight.close();
that.signListSelected = [];
}
}) })
}else{
uni.showModal({
content: '修改标签失败!',
showCancel: false
});
} }
uni.getStorage({ });
key: 'userInfo',
success: res => {
this.userInfo = res.data
console.log('userInfo', this.userInfo)
this.searchIsLike()
this.searchisCollect()
this.checkUserDownload()
}
})
} else {
uni.showToast({
title: '请输入艺术家代号',
icon: 'none'
})
}
}, },
// //
async searchIsLike() { async getSignList(){
const params = { const res = await getSignList({})
imgId: this.detailMsg.id,
userId: this.userInfo.id
}
console.log('params', this.detailMsg, params)
const res = await judgeTiktokLike(params)
if (res.data.code === 200) { if (res.data.code === 200) {
this.isLike = res.data.data for (let s of res.data.data) {
let signObject = {}
signObject.text = s.name
signObject.value = s.id
this.signList.push(signObject)
}
console.log('signList',this.signList)
} else { } else {
uni.showToast({ uni.showModal({
title: res.data.msg, content: '标签列表加载失败!',
icon: 'none' showCancel: false
}) });
} }
}, },
// //
async searchisCollect() { onOrOffHandler(){
const params = { if(this.detailMsg.status === '2'){
imgId: this.detailMsg.id, //
userId: this.userInfo.id this.changeStatus(this.detailMsg.id,'3')
} }else if(this.detailMsg.status === '3'){
const res = await judgeTiktokCollect(params) //
if (res.data.code === 200) { this.changeStatus(this.detailMsg.id,'2')
this.isCollect = res.data.data
} else {
uni.showToast({
title: res.data.msg,
icon: 'none'
})
} }
}, },
// / //
async likeCollect(val) { selectedSign(e){
const params = { let that = this;
imgId: this.detailMsg.id, that.signListSelected = e.detail.value;
userId: this.userInfo.id //console.log('that.signListSelected'+that.signListSelected);
} },
if (val === 'isLike') { //
this.isLike = !this.isLike topImg(){
console.log('this.isLike', this.isLike) //console.log('',this.detailMsg)
if (this.isLike) { topImg(this.detailMsg.id).then(res =>{
// if(res.data.code === 200){
console.log('点赞') uni.showToast({
const res = await tiktokLike(params) title:'置顶成功!',
if (res.data.code === 200) {} else { duration: 1000
uni.showToast({ })
title: res.data.msg, }else{
icon: 'none' uni.showModal({
}) content: "置顶图片失败!",
} showCancel: false,
} else { });
//
console.log('取消点赞')
const res = await tiktokUnLike(params)
if (res.data.code === 200) {} else {
uni.showToast({
title: res.data.msg,
icon: 'none'
})
}
}
} else if (val === 'isCollect') {
this.isCollect = !this.isCollect
if (this.isCollect) {
//
console.log('收藏')
const res = await tiktokCollect(params)
if (res.data.code === 200) {} else {
uni.showToast({
title: res.data.msg,
icon: 'none'
})
}
} else {
//
console.log('取消收藏')
const res = await tiktokUnCollect(params)
if (res.data.code === 200) {} else {
uni.showToast({
title: res.data.msg,
icon: 'none'
})
}
} }
} });
}, },
//广
async insertPreAdProfit() { //
const params = { changeSign(){
imgId: this.detailMsg.id, console.log('修改标签');
creatorId: this.detailMsg.creatorId, //
scanCode: this.scanCode, this.$refs.showRight.open();
userId: this.userInfo.id,
appType: '0',
platform: '0'
}
const res = await insertOrUpdatePreAdProfit(params);
if (res.data.code === 200) {
console.log("写入广告收益成功!")
this.adResult = res.data.code;
} else {
uni.showToast({
title: '图片下载失败!',
icon: 'none'
})
}
}, },
//
// changeStatus:function(id,status){
async insertPreInviteProfit() { const param = {
const params = { id: id,
imgId: this.detailMsg.id, status: status
creatorId: this.detailMsg.creatorId, }
scanCode: this.scanCode, onlineOrOfflineImg(param).then(res =>{
appType: '0', if (res.data.code === 200) {
platform: '0' uni.showToast({
} title: '修改成功!',
const res = await insertOrUpdatePreInviteProfit(params) duration: 1000,
if (res.data.code === 200) { success() {
console.log("写入邀请收益成功"); setTimeout(() => {
this.inviteResult = res.data.code; uni.redirectTo({
} else { url: '/pages/index/material/material'
uni.showToast({ });
title: '图片下载失败!', }, 1000)
icon: 'none'
}) }
} });
}else{
uni.showModal({
content: "上下架图片失败!",
showCancel: false,
});
}
});
}, },
//
// async getImgDetail(id) {
async checkUserDownload() { const res = await getImgDetails(id)
const params = {
userId: this.userInfo.id,
appType: '0',
platform: '0'
}
const res = await checkUserCanDownload(params);
if (res.data.code === 200) { if (res.data.code === 200) {
console.log("当日下载结果为", res.data.data) this.detailMsg = res.data.data
this.canDownload = res.data.data; console.log('图片详情', this.detailMsg)
//
if(this.detailMsg.typeId === 1){
this.imgWidth = 750 + 'rpx';
this.imgHeight = 750 + 'rpx';
this.marginTop = 250 + 'rpx';
}else if(this.detailMsg.typeId === 2){
this.imgWidth = 750 + 'rpx';
this.imgHeight = 100 + '%';
this.marginTop = 0 + 'rpx';
}else if(this.detailMsg.typeId === 3){
this.imgWidth = 750 + 'rpx';
this.imgHeight = 100 + '%';
this.marginTop = 0 + 'rpx';
}else if(this.detailMsg.typeId === 4){
this.marginTop = 300 + 'rpx';
this.imgWidth = 750 + 'rpx';
this.imgHeight = 600 + 'rpx';
}else if(this.detailMsg.typeId === 5){
this.imgWidth = 750 + 'rpx';
this.imgHeight = 750 + 'rpx';
this.marginTop = 250 + 'rpx';
}else if(this.detailMsg.typeId === 6){
this.imgWidth = 750 + 'rpx';
this.imgHeight = 750 + 'rpx';
this.marginTop = 250 + 'rpx';
}
///
//
if(this.detailMsg.status === "0"){
this.showOrmis = 'none';
//
}else if(this.detailMsg.status === "1"){
this.showOrmis = 'none';
//
}else if(this.detailMsg.status === "2"){
this.showOrmis = 'flex';
this.upOrDown = '下'
//
}else{
this.showOrmis = 'flex';
this.upOrDown = '上'
}
} else { } else {
uni.showToast({ uni.showModal({
title: '检查下载状态失败!', content: "获取图片详情数据失败!",
icon: 'none' showCancel: false,
})
}
},
//
download(url) {
let that = this;
if (this.canDownload != true) {
//
this.isDownload = true
uni.showLoading({
title: '正在保存图片...'
});
//
uni.getSetting({
success: (res) => {
//
if (!res.authSetting["scope.writePhotosAlbum"]) {
//
tt.authorize({
scope: "scope.album",
success: () => {
//
uni.downloadFile({
url,
success: (res) => {
console.log('下载路径', res)
if (res.statusCode === 200) {
uni.saveImageToPhotosAlbum({
//
filePath: res
.tempFilePath,
success: (res) => {
console.log(
'success',
res)
},
fail: (res) => {
console.log(
'fail',
res)
return uni
.showToast({
title: res
.errMsg,
icon: 'none'
});
},
complete: (res) => {
uni
.hideLoading();
if (res
.errMsg !==
"saveImageToPhotosAlbum:ok"
) {
return uni
.showToast({
title: "下载失败!",
icon: 'none'
});
} else {
return uni
.showToast({
title: "下载成功!",
icon: 'none',
success() {
that.insertPreAdProfit();
that.insertPreInviteProfit();
}
});
}
},
});
} else {
uni.showToast({
title: "下载失败!",
icon: 'none'
});
}
}
})
},
//
fail: () => {
uni.hideLoading();
uni.showModal({
title: "您已拒绝获取相册权限",
content: "是否进入权限管理,调整授权?",
success: (res) => {
if (res.confirm) {
//
uni.openSetting({
success: (
res) => {
console
.log(
res
.authSetting
);
},
});
} else if (res.cancel) {
return uni.showToast({
title: "已取消!",
icon: 'none'
});
}
},
});
},
});
} else {
//
uni.saveImageToPhotosAlbum({
filePath: url,
success: (res) => {
uni.hideLoading();
return uni.showToast({
title: "保存成功!",
icon: 'none'
});
},
fail: (res) => {
uni.hideLoading();
console.log(res.errMsg);
return uni.showToast({
title: res.errMsg,
icon: 'none'
});
},
//
complete: (res) => {
uni.hideLoading();
},
});
}
},
fail: (res) => {},
}); });
} else {
// canDownloadtrue
uni.showToast({
title: '当日下载次数已用完,请明日再来!',
icon: 'none'
})
} }
}
}, },
//
share() {
uni.showToast({
title: '分享',
icon: 'none'
})
},
}
} }
</script> </script>
<style lang="less"> <style lang="scss">
.imgDetail { .imgDetail{
height: 100vh; height:100%;
width: 100vw; width:750rpx;
overflow: hidden; overflow: hidden;
position: relative; background-color: black;
position: absolute;
.main-img { z-index: 0;
width: 100%;
height: 100%; .main-img {
} position: absolute;
z-index: 1;
.toolbar { }
width: 60px;
background-color: rgba(255, 255, 255, 0.2); .toolbar{
position: absolute; height: 100rpx;
bottom: 76px; width: 700rpx;
right: 10px; position: absolute;
border-radius: 60px; z-index: 2;
padding-top: 40rpx; border-radius: 20rpx;
background-color: #B3B3B3;
.share-box { margin-top: 1050rpx;
margin-left: 20rpx;
>button { display: flex;
line-height: 0 !important; justify-content: space-around;
padding: 0; align-items: center;
outline: none; opacity: 0.7;
background: none;
border: none;
.border {
width: 1rpx;
height: 30rpx;
background-color: black;
position: relative;
z-index: 2;
} }
>button::after { .toolbarLeft{
border: none; display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
width: 200rpx;
position: relative;
z-index: 2;
} }
}
.toolbarMid{
.toolbar-box { display: flex;
height: 60px; justify-content: center;
text-align: center; flex-direction: column;
margin-bottom: 40rpx; align-items: center;
width: 200rpx;
text { position: relative;
display: block; z-index: 2;
text-align: center;
line-height: 60rpx;
font-size: 12px;
} }
image { .toolbarRight{
width: 50rpx; display: flex;
height: 50rpx; justify-content: center;
margin: 0 auto; flex-direction: column;
align-items: center;
width: 200rpx;
position: relative;
z-index: 2;
} }
} }
}
.toolbar-box:first-child { .upLoadBtn{
line-height: 40rpx; width: 100%;
height: 40rpx; height: 60rpx;
} background-color: royalblue;
color: #ffffff;
} font-size: 30rpx;
line-height: 62rpx;
border-radius: 17rpx;
margin-top:100rpx;
} }
</style> </style>

96
pages/index/material/material.vue

@ -45,13 +45,8 @@
const userInfoSync = uni.getStorageSync("userInfo"); const userInfoSync = uni.getStorageSync("userInfo");
this.userInfo = userInfoSync; this.userInfo = userInfoSync;
this.queryListType(); this.queryListType();
uni.getSystemInfo({ this.imgWidth = 750/3-20 + 'rpx'
success: res => { this.imgHeight = 750/3-20 + 'rpx'
console.log(res)
this.imgWidth = res.windowWidth - 130 + 'rpx'
this.imgHeight = res.windowWidth - 130 + 'rpx'
}
})
}, },
// //
onPullDownRefresh(){ onPullDownRefresh(){
@ -75,7 +70,7 @@
methods: { methods: {
// //
targetDetail(item) { targetDetail(item) {
console.log('跳转', item) //console.log('', item)
if (item.id) { if (item.id) {
uni.setStorage({ uni.setStorage({
key: 'detailId', key: 'detailId',
@ -83,7 +78,13 @@
success() { success() {
console.log(111111) console.log(111111)
uni.navigateTo({ uni.navigateTo({
url: '../material/imgDetail' url: '/pages/index/material/imgDetail',
success:function(){
console.log('跳转成功!')
},
fail:function(){
console.log('跳转失败!')
}
}) })
} }
}) })
@ -95,7 +96,7 @@
that.flag = false; that.flag = false;
that.creatorImgList = []; that.creatorImgList = [];
that.status = e1.currentIndex; that.status = e1.currentIndex;
console.log('status',that.status) //console.log('status',that.status)
uni.showLoading({ uni.showLoading({
title: "加载中", title: "加载中",
mask: true, mask: true,
@ -105,7 +106,7 @@
creatorId: that.userInfo.id, creatorId: that.userInfo.id,
typeId: that.typeId, typeId: that.typeId,
pageSize: that.pageSize, pageSize: that.pageSize,
pageNum: 1, pageNum: that.pageNum,
status: that.status status: that.status
}; };
listTiktokImgIn(param).then(res => { listTiktokImgIn(param).then(res => {
@ -113,7 +114,7 @@
console.log('that.status',that.status); console.log('that.status',that.status);
if(res.data.code === 200){ if(res.data.code === 200){
that.creatorImgList.push(...res.data.rows) that.creatorImgList.push(...res.data.rows)
console.log('调用成功1!', that.creatorImgList); //console.log('1!', that.creatorImgList);
}else { }else {
uni.showModal({ uni.showModal({
content: "艺术家图片列表数据加载失败!", content: "艺术家图片列表数据加载失败!",
@ -132,7 +133,7 @@
that.flag = false; that.flag = false;
that.creatorImgList = []; that.creatorImgList = [];
that.typeId = that.typeIdList[e2.currentIndex]; that.typeId = that.typeIdList[e2.currentIndex];
console.log('typeId',that.typeId) //console.log('typeId',that.typeId)
uni.showLoading({ uni.showLoading({
title: "加载中", title: "加载中",
mask: true, mask: true,
@ -142,7 +143,7 @@
creatorId: that.userInfo.id, creatorId: that.userInfo.id,
typeId: that.typeId, typeId: that.typeId,
pageSize: that.pageSize, pageSize: that.pageSize,
pageNum: 1, pageNum: that.pageNum,
status: that.status status: that.status
}; };
listTiktokImgIn(param).then(res => { listTiktokImgIn(param).then(res => {
@ -150,7 +151,27 @@
console.log('that.status',that.status); console.log('that.status',that.status);
if(res.data.code === 200){ if(res.data.code === 200){
that.creatorImgList.push(...res.data.rows) that.creatorImgList.push(...res.data.rows)
console.log('调用成功2!', that.creatorImgList); console.log(that.creatorImgList)
//console.log('2!', that.creatorImgList);
if(that.typeId === 1){
that.imgWidth = 750/3-20 + 'rpx'
that.imgHeight = 750/3-20 + 'rpx'
}else if(that.typeId === 2){
that.imgWidth = 750/3-30 + 'rpx'
that.imgHeight = 750/3+60 + 'rpx'
}else if(that.typeId === 3){
that.imgWidth = 750/3-30 + 'rpx'
that.imgHeight = 750/3+60 + 'rpx'
}else if(that.typeId === 4){
that.imgWidth = 750/3+100 + 'rpx'
that.imgHeight = 750/3 + 'rpx'
}else if(that.typeId === 5){
that.imgWidth = 750/3-20 + 'rpx'
that.imgHeight = 750/3-20 + 'rpx'
}else if(that.typeId === 6){
that.imgWidth = 750/3-20 + 'rpx'
that.imgHeight = 750/3-20 + 'rpx'
}
}else { }else {
uni.showModal({ uni.showModal({
content: "艺术家图片列表数据加载失败!", content: "艺术家图片列表数据加载失败!",
@ -161,31 +182,7 @@
}, },
complete() { complete() {
uni.hideLoading(); uni.hideLoading();
uni.getSystemInfo({
success: res => {
console.log(res)
if(that.typeId === 1){
that.imgWidth = res.windowWidth - 130 + 'rpx'
that.imgHeight = res.windowWidth - 130 + 'rpx'
}else if(that.typeId === 2){
that.imgWidth = res.windowWidth - 130 + 'rpx'
that.imgHeight = res.windowWidth + 20 + 'rpx'
}else if(that.typeId === 3){
that.imgWidth = res.windowWidth - 130 + 'rpx'
that.imgHeight = res.windowWidth + 20 + 'rpx'
}else if(that.typeId === 4){
that.imgWidth = res.windowWidth - 60 + 'rpx'
that.imgHeight = res.windowWidth - 130 + 'rpx'
}else if(that.typeId === 5){
that.imgWidth = res.windowWidth - 130 + 'rpx'
that.imgHeight = res.windowWidth - 130 + 'rpx'
}else if(that.typeId === 6){
that.imgWidth = res.windowWidth - 130 + 'rpx'
that.imgHeight = res.windowWidth - 130 + 'rpx'
}
}
})
}, },
}); });
}, },
@ -238,30 +235,35 @@
} }
</script> </script>
<style lang="less"> <style lang="scss">
.choiceness { .choiceness {
padding-top: 20rpx; padding-top: 20rpx;
//width: 750rpx;
.choiceness-list { .choiceness-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: flex-first; justify-content: flex-start;
flex-direction: row; flex-direction: row;
width: 750rpx;
//border: 1rpx solid blue;
image { .img-box {
margin-top: 10rpx; margin-top: 10rpx;
margin-left: 10rpx; margin-left: 16rpx;
margin-right: 5rpx; //margin-right: 10rpx;
//margin:8rpx;
border-radius: 10rpx; border-radius: 10rpx;
//border: 1rpx solid red;
} }
} }
} }
.ivOver{ .ivOver{
width: 100%; width: 100%;
height:50px; height:50rpx;
line-height: 50px; line-height: 50rpx;
text-align: center; text-align: center;
background: #fff; background: #fff;
font-size: 20rpx; font-size: 20rpx;

293
pages/index/upload/upload.vue

@ -1,25 +1,306 @@
<template> <template>
<view> <view>
我是上传界面 <uni-section title="选择图片分类上传" type="circle" padding>
<view class="segmented-control">
<uni-segmented-control :current="typeCurrent" :values="typeList" :styleType="styleType"
:active-color="activeColor" @clickItem="onClickType" />
</view>
<uni-group mode="card">
<view class="example-body">
<uni-file-picker limit="9" title="最多选择9张图片"
file-extname="png,jpg,gif,jpeg" mode="grid"
file-mediatype="image" @success="successHandler"
@fail="failHandler" @delete="deleteHandler" autoUpload="false"
@select="selectHandler" :disabled="checkUpload"></uni-file-picker>
</view>
</uni-group>
<view class="uploadNum">今日还可上传次数<span class="uploadText">{{getUploadNum}}</span>,已上传次数<span class="uploadText">{{uploadedNum}}</span></view>
</uni-section>
<uni-section title="选择图片标签" subTitle="最多选择3个" type="circle" padding>
<uni-group mode="card">
<view class="segmented-control">
<view>标签列表</view>
<uni-data-checkbox mode="tag" multiple v-model="signListSelected" :localdata="signList" @change="selectedSign" max="3"></uni-data-checkbox>
</view>
</uni-group>
</uni-section>
<button class="upLoadBtn" size="default" :loading="loadingFlag" @click="saveImg" :disabled="checkUpload">点击上传</button>
</view> </view>
</template> </template>
<script> <script>
import { import {
getSignList getSignList,listType,insertTiktokImg,queryUploadNum
} from '@/api/index.js' } from '@/api/index.js'
import {
deleteFile,uploadBatch
} from '@/api/common.js'
export default { export default {
data() { data() {
return { return {
styleType: 'button',
activeColor: '#007aff',
typeCurrent: 0,
typeId: 1,
signList:[],
signObject:{},
typeList:[],
typeIdList:[],
loadingFlag: false,
imgList:[],
signListSelected:[],
userInfo:{},
uploadedNum: 0
}
},
created() {
this.getSignList();
this.getTypeList();
const userInfoSync = uni.getStorageSync("userInfo");
this.userInfo = userInfoSync;
this.queryUploadNum();
},
computed:{
//
getUploadNum(){
return 50 - this.uploadedNum
},
//
checkUpload(){
return this.uploadedNum >= 50? true:false;
} }
}, },
methods: { methods: {
} //
async getSignList(){
const res = await getSignList({})
if (res.data.code === 200) {
for (let s of res.data.data) {
let signObject = {}
signObject.text = s.name
signObject.value = s.id
this.signList.push(signObject)
}
console.log('signList',this.signList)
} else {
uni.showModal({
content: '标签列表加载失败!',
showCancel: false
});
}
},
//
async getTypeList(){
const res = await listType({})
if(res.data.code === 200){
for (let s of res.data.data) {
this.typeList.push(s.typeName);
this.typeIdList.push(s.id);
}
console.log('分类列表',this.typeList)
console.log('分类id列表',this.typeIdList)
}else{
uni.showModal({
content: '分类列表加载失败!',
showCancel: false
});
}
},
//
async queryUploadNum(){
const checkParam = {
creatorId: this.userInfo.id
}
const res = await queryUploadNum(checkParam);
console.log(res)
if(res.data.code === 200){
this.uploadedNum = res.data.data;
}else{
uni.showModal({
content: '获取艺术家上传次数失败!',
showCancel: false
});
}
},
//
onClickType(e2){
let that = this;
that.flag = false;
that.typeId = that.typeIdList[e2.currentIndex];
//console.log('typeId',that.typeId)
uni.showLoading({
title: "加载中",
mask: true,
complete() {
uni.hideLoading();
},
});
},
//
selectedSign(e){
let that = this;
that.signListSelected = e.detail.value;
//console.log('that.signListSelected'+that.signListSelected);
},
//
successHandler(e){
console.log('文件上传成功!'+e)
},
//
selectHandler(e){
console.log('选择了',e)
let that = this;
//
if(that.uploadedNum >=50){
uni.showModal({
content: "当日已达上传图片上限,请明日再来!",
showCancel: false
});
return;
}
that.uploadHandler(e.tempFilePaths)
},
//
failHandler(e){
console.log('文件上传失败!'+e)
},
//
deleteHandler(e){
console.log('文件删除',e.tempFile.url)
//
const param = {
url: e.tempFile.url
};
deleteFile(param).then(res =>{
if(res.data.code != 200){
uni.showModal({
content: "删除失败!",
showCancel: false
});
}
})
},
//
uploadHandler:function(e){
let that = this;
uni.showLoading({
title: "上传中"
});
console.log('上传文件:',e)
const tempFilePaths = e;
for (var i = 0; i < tempFilePaths.length; i++) {
//const tempFile = e.tempFiles[i];
uni.uploadFile({
url: 'http://48uu7a.natappfree.cc/file/upload',
name: 'file',
//url: 'http://localhost:7010/file/uploadBatch',
//name: 'files',
header:{
"Content-Type": "multipart/form-data"
},
filePath: tempFilePaths[i],
success:(uploadFileRes) => {
uni.hideLoading();
console.log('uploadFileRes',uploadFileRes);
const back = JSON.parse(uploadFileRes.data);
console.log("back",back)
if (back.code == 200) {
that.imgList.push(back.data);
}
//console.log('imgList',that.imgList);
},
fail:() => {
uni.hideLoading();
uni.showModal({
content: "上传失败,请联系客服!"
});
},
complete: function() {
uni.hideLoading();
}
});
}
},
//
saveImg(){
let that = this;
//
if(that.imgList.length === 0){
uni.showModal({
content: "请选择图片上传!",
showCancel: false,
});
return;
}
//
if(that.uploadedNum >=50){
uni.showModal({
content: "当日已达上传图片上限,请明日再来!",
showCancel: false
});
return;
}else{
const param = {
creatorId: that.userInfo.id,
imgUrl: that.imgList,
signList: that.signListSelected,
status: 0,
typeId: that.typeId
}
insertTiktokImg(param).then(res =>{
console.log('res',res)
if(res.data.code === 200){
uni.showToast({
title: '上传成功!',
duration: 2000,
success:function(){
setTimeout(function () {
//
that.imgList = []
that.signListSelected = []
that.typeId = 1
uni.reLaunch({
url: '../index'
});
}, 2000);
}
});
}else {
uni.showModal({
content: "艺术家图片上传失败!",
showCancel: false,
});
}
});
}
}
},
} }
</script> </script>
<style> <style lang="scss">
.upLoadBtn{
width: 750rpx;
height: 60rpx;
background-color: royalblue;
color: #ffffff;
font-size: 30rpx;
line-height: 62rpx;
border-radius: 17rpx;
margin-top:100rpx;
}
.uploadNum{
font-size: 25rpx;
.uploadText{
color:red;
}
}
</style> </style>

156
pages/profit/profit.vue

@ -52,15 +52,6 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <uni-section class="back-bot" title="昨日收益" type="line">
<uni-group mode="card">
<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>
<view class="back2"> <view class="back2">
<view class="uni-radius back-con2 uni-shadow-sm"> <view class="uni-radius back-con2 uni-shadow-sm">
@ -130,25 +121,6 @@
</template> </template>
</uni-list-item> </uni-list-item>
</uni-list> </uni-list>
<!-- <view class="adver">
<view class="adver-top">
<view class="circular"></view>
<view class="adver-top-text"> 订单: </view>
</view>
<view class="adver-mid"> 会员订单及时入账T+7即可提现 </view>
</view>
<uni-list>
<uni-list-item title="会员" link>
<template v-slot:footer>
<view class="blue"> ¥ 0</view>
</template>
</uni-list-item>
<uni-list-item title="邀请" link>
<template v-slot:footer>
<view class="blue"> ¥ 0 </view>
</template>
</uni-list-item>
</uni-list> -->
</view> </view>
<!-- 已转入钱包 --> <!-- 已转入钱包 -->
<view v-show="active == 4"> <view v-show="active == 4">
@ -170,137 +142,11 @@
</template> </template>
</uni-list-item> </uni-list-item>
</uni-list> </uni-list>
<!-- <view class="adver">
<view class="adver-top">
<view class="circular"></view>
<view class="adver-top-text"> 订单: </view>
</view>
</view>
<uni-list>
<uni-list-item title="会员" link>
<template v-slot:footer>
<view class="blue"> ¥ 0 </view>
</template>
</uni-list-item>
<uni-list-item title="邀请" link>
<template v-slot:footer>
<view class="blue"> ¥ 0 </view>
</template>
</uni-list-item>
</uni-list> -->
</view>
<!-- <view class="back-con-mid">
<view class="back-con-mid-left">
广告收益
<view class="top-text">
¥ {{ profitInfo.yesterdayAdProfit }}
</view>
</view> </view>
<view class="border"></view>
<view class="back-con-mid-right">
邀请收益
<view class="top-text">
¥ {{ profitInfo.yesterdayInviteProfit }}
</view>
</view>
</view> -->
</view> </view>
</view> </view>
<!-- <uni-section class="back-bot" title="昨日收益" type="line">
<uni-group mode="card">
<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>
</view> </view>
<!-- <view class="middle">
<uni-section title="收益明细" type="line">
<uni-group mode="card">
<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> -->
</view> </view>
</template> </template>
@ -576,7 +422,7 @@ export default {
.back-con-bot { .back-con-bot {
width: 100%; width: 100%;
height: 80px; height: 150rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;

Loading…
Cancel
Save