From 849b0ee66b6919844f61185a47885fc2c377550b Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Fri, 10 May 2024 16:02:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=82=80=E8=AF=B7=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext.json | 2 +- pages/invite/index.vue | 54 +++++++++++++++++++++++++----------------- 2 files changed, 33 insertions(+), 23 deletions(-) diff --git a/ext.json b/ext.json index d1f4139..f2b22b7 100644 --- a/ext.json +++ b/ext.json @@ -1,6 +1,6 @@ { "extEnable": true, - "extAppid": "wxa3127ed5c3542a28", + "extAppid": "wx9f7e94fe11dc0c23", "ext": { "store_id": 10048 } diff --git a/pages/invite/index.vue b/pages/invite/index.vue index 697066e..717a3e3 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -71,9 +71,9 @@ - - - {{userInfo.user_id}} + + 取消 保存到相册 @@ -95,6 +95,7 @@ export default { data() { return { + qrcode1: "", qrcode: "", userInfo: {}, backgroundBg: { @@ -161,21 +162,24 @@ success: function(res) { // 在H5平台下,tempFilePath 为 base64 console.log(res.tempFilePath) - uni.saveImageToPhotosAlbum({ - filePath: res.tempFilePath, - success(data) { - that.$success('保存成功') - }, - fail(err) { - if (err.errMsg === - 'saveImageToPhotosAlbum:fail auth deny' - ) { - that.$toast( - '请允许访问相册后重试 (右上角菜单 - 设置 - 相册)', - 3000) - } - } - }) + that.qrcode1 = res.tempFilePath; + that.isPopup = true; + ctx.clearRect(0,0,702,1248); + // uni.saveImageToPhotosAlbum({ + // filePath: res.tempFilePath, + // success(data) { + // that.$success('保存成功') + // }, + // fail(err) { + // if (err.errMsg === + // 'saveImageToPhotosAlbum:fail auth deny' + // ) { + // that.$toast( + // '请允许访问相册后重试 (右上角菜单 - 设置 - 相册)', + // 3000) + // } + // } + // }) } }) @@ -230,8 +234,8 @@ } = await newFunApi.InviteUserPoster({}); if (status == 200) { console.log(data) - this.isPopup = true; - this.qrcode = data.imageUrl + this.qrcode = data.imageUrl; + this.createImge(); } }, download(type) { @@ -243,7 +247,8 @@ uni.showLoading({ title: '加载中' }) - this.createImge(); + app.onSaveImage(app.qrcode1) + // this.createImge(); } return; uni.showLoading({ @@ -331,7 +336,12 @@ url: "/pages/news/user/withdrawal?balance=" + this.userInfo.withdrawal_money }) } else if (index == 3) { - this.InviteUserPoster(); + if(!this.qrcode1){ + this.InviteUserPoster(); + }else{ + this.isPopup = true; + } + } else if (index == 4) { uni.navigateTo({ url: "/pages/invite/rule" From e877b1f29138290d280c08b1fc032065c1d81f9f Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Fri, 10 May 2024 16:18:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/list.vue | 138 +++++++++++++++++++++++-------------------- 1 file changed, 74 insertions(+), 64 deletions(-) diff --git a/pages/goods/list.vue b/pages/goods/list.vue index a45c3a9..ee13290 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -3,68 +3,70 @@ - - - - - - - - - - - 综合 - - - 销量 - - - 价格 - - - - - - + + + + + + + 综合 + + + 销量 + + + 价格 + + + + + + + + + + + 类型 + + + - - - - 类型 - - - - + @@ -372,9 +374,10 @@ this.keyName2 = item.name } } - this.list.data = [] this.$refs.uWaterfall1.clear(); - this.getGoodsList() + this.list.data = [] + this.list = [] + this.mescroll.resetUpScroll() }, /** * 上拉加载的回调 (页面初始化时也会执行一次) @@ -542,7 +545,18 @@ ::v-deep .u-empty { padding: 100rpx 0; } - + .head{ + width: 100%; + overflow: hidden; + background-color: #fff; + position: fixed; + z-index: 99; + width: 100%; + left: 0; + } + .blank{ + height: 416rpx; + } // 页面头部 .header { background-color: #fff; @@ -572,12 +586,8 @@ // 排序组件 .store-sort { - position: sticky; - top: var(--window-top); - background-color: #fff; color: #000; - z-index: 99; - + width: 100%; .store-box { display: flex; padding: 20rpx 0;