From 1494fa681b915a145d5ba20ed5a6f961230d4da2 Mon Sep 17 00:00:00 2001 From: GL <954534408@qq.com> Date: Mon, 18 Jan 2021 11:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E7=94=9F=E5=91=BD?= =?UTF-8?q?=E5=91=A8=E6=9C=9Fonlaunch=3D>onshow=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 8 ++++++-- pages/radetail/index.wxml | 2 +- pages/shareFriend/shareFriend.js | 2 ++ pages/shareFriend/shareFriend.json | 3 ++- pages/shareFriend/shareFriend.wxss | 1 - 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index f8d4bc5..534f3f5 100644 --- a/app.js +++ b/app.js @@ -6,11 +6,15 @@ App({ newArr:[],//存放分享二维进入消息信息 }, onLaunch: function(options) { + + }, + + onShow:function(options){ var that = this; - if(options.query.scene){ + if (options.query.scene) { that.globalData.newArr = decodeURIComponent(options.query.scene).split(":"); } - console.log(that.globalData.newArr,"我是app.js") + console.log(that.globalData.newArr, "我是app.js") that.globalData.sceneAddress = options.scene; /** diff --git a/pages/radetail/index.wxml b/pages/radetail/index.wxml index 1a0f00a..fc6166f 100644 --- a/pages/radetail/index.wxml +++ b/pages/radetail/index.wxml @@ -22,7 +22,7 @@ {{data.subTitle}} 活动说明 - {{data.detail}} + {{data.detail}} 1、活动人数:{{data.personLimit}}人 diff --git a/pages/shareFriend/shareFriend.js b/pages/shareFriend/shareFriend.js index 909bed9..46db3df 100644 --- a/pages/shareFriend/shareFriend.js +++ b/pages/shareFriend/shareFriend.js @@ -64,6 +64,8 @@ Page({ this.getQrcodeFx(ctx, scale) this.getMallInfo(ctx, scale) this.getUserInfo(ctx, scale) + ctx.setFillStyle("#fff"); + ctx.fillRect(0, 0, this.data.windowWidth, this.data.windowHeight); this.drawNormalText(ctx, " 向您推荐", 70 * scale, 35 * scale, 16 * scale, "#848484", "left", "middle", scale); this.drawNormalText(ctx, "长按二维码识别", 180 * scale, 360 * scale, 16 * scale, "#000", "left", "middle") this.drawNormalText(ctx, "尽享更多优惠活动!", 170 * scale, 390 * scale, 16 * scale, "#000", "left", "middle") diff --git a/pages/shareFriend/shareFriend.json b/pages/shareFriend/shareFriend.json index da7b5c8..5f9c941 100644 --- a/pages/shareFriend/shareFriend.json +++ b/pages/shareFriend/shareFriend.json @@ -1,5 +1,6 @@ { + "navigationBarTitleText": "分享好友", "usingComponents": { - "navbar": "../../../../components/navbar/navbar" + "navbar": "../../components/navbar/navbar" } } \ No newline at end of file diff --git a/pages/shareFriend/shareFriend.wxss b/pages/shareFriend/shareFriend.wxss index 75f4844..9fe482a 100644 --- a/pages/shareFriend/shareFriend.wxss +++ b/pages/shareFriend/shareFriend.wxss @@ -39,4 +39,3 @@ button::after{ border: none; } margin-top: 30rpx; font-size: 32rpx; } -/* pages/shareFriend/shareFriend.wxss */ \ No newline at end of file