@@ -6,11 +6,15 @@ App({ | |||||
newArr:[],//存放分享二维进入消息信息 | newArr:[],//存放分享二维进入消息信息 | ||||
}, | }, | ||||
onLaunch: function(options) { | onLaunch: function(options) { | ||||
}, | |||||
onShow:function(options){ | |||||
var that = this; | var that = this; | ||||
if(options.query.scene){ | |||||
if (options.query.scene) { | |||||
that.globalData.newArr = decodeURIComponent(options.query.scene).split(":"); | 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; | that.globalData.sceneAddress = options.scene; | ||||
/** | /** | ||||
@@ -22,7 +22,7 @@ | |||||
<text class='txt002'>{{data.subTitle}}</text> | <text class='txt002'>{{data.subTitle}}</text> | ||||
<view class="proct" > | <view class="proct" > | ||||
<text>活动说明</text> | <text>活动说明</text> | ||||
<view class='detail' wx:if="{{data.type == 1}}">{{data.detail}}</view> | |||||
<text class='detail' wx:if="{{data.type == 1}}">{{data.detail}}</text> | |||||
</view> | </view> | ||||
<view class='num'> | <view class='num'> | ||||
<view class='member'>1、活动人数:{{data.personLimit}}人</view> | <view class='member'>1、活动人数:{{data.personLimit}}人</view> | ||||
@@ -64,6 +64,8 @@ Page({ | |||||
this.getQrcodeFx(ctx, scale) | this.getQrcodeFx(ctx, scale) | ||||
this.getMallInfo(ctx, scale) | this.getMallInfo(ctx, scale) | ||||
this.getUserInfo(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, " 向您推荐", 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, "长按二维码识别", 180 * scale, 360 * scale, 16 * scale, "#000", "left", "middle") | ||||
this.drawNormalText(ctx, "尽享更多优惠活动!", 170 * scale, 390 * scale, 16 * scale, "#000", "left", "middle") | this.drawNormalText(ctx, "尽享更多优惠活动!", 170 * scale, 390 * scale, 16 * scale, "#000", "left", "middle") | ||||
@@ -1,5 +1,6 @@ | |||||
{ | { | ||||
"navigationBarTitleText": "分享好友", | |||||
"usingComponents": { | "usingComponents": { | ||||
"navbar": "../../../../components/navbar/navbar" | |||||
"navbar": "../../components/navbar/navbar" | |||||
} | } | ||||
} | } |
@@ -39,4 +39,3 @@ button::after{ border: none; } | |||||
margin-top: 30rpx; | margin-top: 30rpx; | ||||
font-size: 32rpx; | font-size: 32rpx; | ||||
} | } | ||||
/* pages/shareFriend/shareFriend.wxss */ |