From f8f588e50467dedea84ec90cbf88949fa01d3b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98=E2=80=98?= Date: Thu, 23 Mar 2023 13:44:13 +0800 Subject: [PATCH] =?UTF-8?q?feature-tiktok-1.0:=E5=AE=8C=E5=96=84=E6=B8=85?= =?UTF-8?q?=E7=90=86=E7=BC=93=E5=AD=98=E6=96=B9=E6=B3=95=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=AD=94=E7=96=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/creator/imgDetail.vue | 33 +++++----- pages/userInfo/question/question.vue | 69 +++----------------- pages/userInfo/setting/setting.vue | 96 +++++++++++++--------------- 3 files changed, 70 insertions(+), 128 deletions(-) diff --git a/pages/creator/imgDetail.vue b/pages/creator/imgDetail.vue index b2c5a06..a72a6ec 100644 --- a/pages/creator/imgDetail.vue +++ b/pages/creator/imgDetail.vue @@ -81,17 +81,18 @@ } }, onShareAppMessage(res) { + let that = this; if (res.from === 'button') { // 来自页面内分享按钮 - // console.log(res) + console.log(res) } uni.showToast({ title: '分享成功', - icon: 'none' + icon: 'none', }) return { - title: '来看看艺术家[' + this.scanCode + ']精心准备的图片吧~', - path: `/pages/creator/imgDetail?id=${this.detailMsg.id}`, - bgImgUrl: `${this.detailMsg.imgUrl}` + title: '来看看艺术家[' + that.scanCode + ']精心准备的图片吧~', + path: `/pages/creator/imgDetail?id=${that.detailMsg.id}`, + bgImgUrl: `${that.detailMsg.imgUrl}` } }, methods: { @@ -351,18 +352,19 @@ }, //写入图片广告收益 async insertPreAdProfit(token) { + let that = this; const params = { - imgId: this.detailMsg.id, - creatorId: this.detailMsg.creatorId, - scanCode: this.scanCode, - userId: this.userInfo.id, + imgId: that.detailMsg.id, + creatorId: that.detailMsg.creatorId, + scanCode: that.scanCode, + userId: that.userInfo.id, appType: '0', platform: '0' } const res = await insertOrUpdatePreAdProfit(params, token); if (res.data.code === 200) { console.log("写入广告收益成功!") - this.adResult = res.data.code; + that.adResult = res.data.code; } else { uni.showToast({ title: '图片下载失败!', @@ -373,17 +375,18 @@ //写入图片邀请收益 async insertPreInviteProfit(token) { + let that = this; const params = { - imgId: this.detailMsg.id, - creatorId: this.detailMsg.creatorId, - scanCode: this.scanCode, + imgId: that.detailMsg.id, + creatorId: that.detailMsg.creatorId, + scanCode: that.scanCode, appType: '0', platform: '0' } const res = await insertOrUpdatePreInviteProfit(params, token) if (res.data.code === 200) { // console.log("写入邀请收益成功"); - this.inviteResult = res.data.code; + that.inviteResult = res.data.code; } else { uni.showToast({ title: '图片下载失败!', @@ -424,7 +427,7 @@ let that = this; if (that.canDownload !== true) { //满足可下载条件 - this.isDownload = true + that.isDownload = true uni.showLoading({ title: '正在保存图片...' }); diff --git a/pages/userInfo/question/question.vue b/pages/userInfo/question/question.vue index 2372903..e135641 100644 --- a/pages/userInfo/question/question.vue +++ b/pages/userInfo/question/question.vue @@ -3,78 +3,27 @@ 欢迎使用节点壁纸 - + - 是一款用户看广告+付费解锁资源下载,创作者可享受广告收益+现金收益的产品,平台历经一年的发展和摸索全新打造的优质变现小程序。它可以帮助优质创作者留存自己的粉丝用户,加强粉丝粘性和产生持续收益,目前在微信、抖音、快手端上线。 + 问题偶有发生,是宿主程序 (非小程序) 接口兼容性问题造成,图片被设置成了最早的日期。可打开相册,并翻到最后一页,尝试查找刚才已下载的图片。 - + - 通过小程序分享或点击链接进行申请注册,后台进行审核。 + 问题偶有发生,且多见于网络环境差的情况,请尝试在WiFi环境或网络稳定的地方下载 - + - 1.点击上传素材,请注意区分素材类型(素材为原创可选择第二个入口,请自我甄别) -2.选择对应的素材类型,进行上传,添加好该素材对应的标签。 -3.上传后,后台工作人员会自动审核,可在「素材管理」页面查看审核状态 + 本小程序仅提供现今最为通用的视频格式动态壁纸,因手机型号及版本多样化,对动态视频的支特不尽相同,此问题偶有出现在oppo/vivo部分的机型,如遇此问题,可尝试使用其他机型下载。 - + - 可在后台的首页点击头像/GIF动图/手机壁纸等按钮查看。 + 基于小程序的权限框架原因,本小程序无法直接设置手机动态壁纸,壁纸下载储存本地后,安卓部分机型可直接在手机设置里进行,不能设置的机型可下载第三方软件进行设置,苹果手机可用第三方软件转换成实况视频即可进行设置。 - - - 1.广告总收益的80%分配给创作者,10%奖励给邀请人(不侵占创作者的收益),另外10%分配给平台。 -2.用户开通会员分成收益40%,10%奖励给邀请人(不侵占创作者的收益),另外50%分配给平台,另外如果用户连续包月且未退订便可得到长期分成 - -广告收益:抖音正常结算付款是每月10号前出上个月结算单,最晚30个自然日完成支付,节点壁纸付款时间取决于抖音付款到账时间。基于平台属性快手/微信端广告收益付款时间与抖音保持一致。 - -订单收益:用户支付的会员费属于及时入账,T+7转入钱包即可自主提现。 - - - - - 1.用户观看广告完成后下载图片 -2.用户开通平台会员 -3.创作者的邀请分成 - - - - - 不同小程序广告单价取决于宿主平台的ECPM,每天发布的单价不一样,并非固定价格。目前可观察到的是抖音单次广告价格在0.07-0.15元之间,快手单次价格在0.02-0.05元之间,微信单次价格在0.02-0.1之间。 (具体以当日结算为准) - - - - - 在[我的]-[钱包]·提现菜单,可自主提现至您的微信、支付宝等。节点壁纸按结算付款规则将收益转入您的钱包,请知晓相关规则说明。 - - - - - 6.5%提现手续费由三方提现通道收取,用于税票成本,对创作者而言是合法合规挣取个人收益的重要途径,遵守国家相关法律法规是企业和个人应尽的义务!通过此类方式提现,不影响创作者个人个税计算,不涉及偷逃个税。相关细则请查阅[钱包]-[提现]中规则说明! - - - - - 每天9:00-23:00内1个小时之间素材均会审核,平常上半个小时内都可审核完成。 -针对部分素材亩核认为不合理的可及时咨询在线客服。 - - - - - 每天9:00-23:00内1个小时之间素材均会审核,平常上半个小时内都可审核完成。 - 针对部分素材亩核认为不合理的可及时咨询在线客服。 - - - - - 每天9:00-23:00内1个小时之间素材均会审核,平常上半个小时内都可审核完成。 - 针对部分素材亩核认为不合理的可及时咨询在线客服。 - - + diff --git a/pages/userInfo/setting/setting.vue b/pages/userInfo/setting/setting.vue index bbba3ef..57f1347 100644 --- a/pages/userInfo/setting/setting.vue +++ b/pages/userInfo/setting/setting.vue @@ -47,23 +47,6 @@ // console.log('have userInfo') // } }, - // // 下拉刷新 - // onPullDownRefresh() { - // this.pageNum = 1 - // this.inviteLogList = [] - // this.getInviteLog(); - // uni.stopPullDownRefresh() - // }, - // // 上划加载更多 - // onReachBottom() { - // if (this.inviteLogList.length > this.pageSize*this.pageNum-1) { - // this.flag = false; - // this.pageNum += 1 - // this.getInviteLog(); - // }else{ - // this.flag = true; - // } - // }, methods: { //清除缓存 clearCache() { @@ -74,46 +57,53 @@ showCancel: true, success: function(ress){ if(ress.confirm){ - + uni.removeStorageSync('atlas_current'); + uni.removeStorageSync('atlas_detailId'); + uni.removeStorageSync('detailId'); + uni.showToast({ + title: '清除成功!', + duration: 2000 + }); } } }); - } }, - //注销 - logoutUser(){ - let that = this; - uni.showModal({ - title: "提示", - content: "确定注销吗!", - showCancel: true, - success: function(ress){ - if(ress.confirm){ - logout().then(res => { - if (res.data.code === 200) { - uni.reLaunch({ - url: '/pages/index/index', - success() { - uni.clearStorage(); - uni.showToast({ - title: '注销成功!', - duration: 2000 - }); - } - }); - } else { - uni.showModal({ - content: "注销失败,请联系管理员!", - showCancel: false, - }); - } - }); - } - } - }); - } - } - } + + //注销 + logoutUser(){ + let that = this; + uni.showModal({ + title: "提示", + content: "确定注销吗!", + showCancel: true, + success: function(ress){ + if(ress.confirm){ + logout().then(res => { + if (res.data.code === 200) { + uni.reLaunch({ + url: '/pages/index/index', + success() { + uni.clearStorage(); + uni.showToast({ + title: '注销成功!', + duration: 2000 + }); + } + }); + } else { + uni.showModal({ + content: "注销失败,请联系管理员!", + showCancel: false, + }); + } + }); + } + } + }); + } + } + } +