From a35ea7627adf09a029500497c47bf08acb14adaa Mon Sep 17 00:00:00 2001
From: penny <2500338766@qq.com>
Date: Sun, 3 Jul 2022 21:53:09 +0800
Subject: [PATCH] =?UTF-8?q?feature-img-1.0:=E4=BF=AE=E6=AD=A3=E6=88=91?=
=?UTF-8?q?=E7=9A=84=E6=94=B6=E8=97=8F=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/creator/imgDetail.vue | 3 ++-
pages/index/choiceness.vue | 8 ++++----
pages/userInfo/myCollection/myCollection.vue | 20 +++++++++++++-------
3 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/pages/creator/imgDetail.vue b/pages/creator/imgDetail.vue
index f4aa74b..883050b 100644
--- a/pages/creator/imgDetail.vue
+++ b/pages/creator/imgDetail.vue
@@ -82,9 +82,10 @@
// 图片详情
async getImgDetail(id) {
const res = await detailsTiktokImg(id)
+ console.log('res',res)
if (res.data.code === 200) {
this.detailMsg = res.data.data
- console.log('图片详情', this.detailMsg)
+ console.log('图片详情', res)
const result = await queryCreatorScanCodeById(this.detailMsg.creatorId)
if(result.data.code === 200){
this.scanCode = result.data.data.scanCode
diff --git a/pages/index/choiceness.vue b/pages/index/choiceness.vue
index 5ec8b4c..ce6cf06 100644
--- a/pages/index/choiceness.vue
+++ b/pages/index/choiceness.vue
@@ -7,7 +7,7 @@
热门作品
-->
-
+
+
+
+
@@ -48,7 +51,6 @@
userId: this.userInfo.id
})
if (res.data.code === 200) {
- console.log('图片结果为:',res)
for (let i = 0; i < res.data.data.length; i++) {
this.imgList = res.data.data
}
@@ -65,7 +67,7 @@
if (item.id) {
uni.setStorage({
key: 'detailId',
- data: item.id,
+ data: item.imgId,
success() {
console.log(111111)
uni.navigateTo({
@@ -76,11 +78,15 @@
}
},
},
- // onUnload() {
- // uni.switchTab({
- // url: '/pages/index/index'
- // })
- // },
+ onload(e) {
+ console.log("加载了广告");
+ },
+ onclose(e) {
+ console.log("关闭了广告: " + e.detail);
+ },
+ onerror(e) {
+ console.log("onerror: " + e.detail.errCode + " message:: " + e.detail.errMsg);
+ }
}