}, this, "POST"); | }, this, "POST"); | ||||
}, | }, | ||||
fail: res => { | fail: res => { | ||||
this.getOpenid(res.code); | |||||
this.wxLogin(); | |||||
} | } | ||||
}) | }) | ||||
} | } |
</view> | </view> | ||||
<view class="msgGroup addressDetail"> | <view class="msgGroup addressDetail"> | ||||
<view class="msgTitle">详细地址:</view> | <view class="msgTitle">详细地址:</view> | ||||
<textarea class="msgInput addressTextarea" style="margin:0;padding:0;" bindinput="getAddressDetail" value="{{submitData.addressDetail}}"></textarea> | |||||
<textarea class="msgInput addressTextarea" style="margin:-1rpx;padding:1rpx;" bindinput="getAddressDetail" value="{{submitData.addressDetail}}"></textarea> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="saveAddress" bindtap="submitAddress">保存</view> | <view class="saveAddress" bindtap="submitAddress">保存</view> |
*/ | */ | ||||
data: { | data: { | ||||
imgUrl: app.globalData.urlStatic,//图片路径 | imgUrl: app.globalData.urlStatic,//图片路径 | ||||
ruleShow: false,//是否显示游戏玩法 | |||||
ruleShow: true,//是否显示游戏玩法 | |||||
ruleCloseShow: false,//是否显示游戏玩法关闭按钮 | ruleCloseShow: false,//是否显示游戏玩法关闭按钮 | ||||
clawTop:95,//爪子的top值 | clawTop:95,//爪子的top值 | ||||
clawLeft: 293,//爪子的left值 | clawLeft: 293,//爪子的left值 |
ctx.drawImage(this.data.rankNum[2], scale * 236, scale * 602, scale * 32, scale * 40); | ctx.drawImage(this.data.rankNum[2], scale * 236, scale * 602, scale * 32, scale * 40); | ||||
ctx.drawImage(this.data.rankNum[3], scale * 270, scale * 602, scale * 32, scale * 40); | ctx.drawImage(this.data.rankNum[3], scale * 270, scale * 602, scale * 32, scale * 40); | ||||
//二维码 | //二维码 | ||||
ctx.drawImage(this.data.qrCodeUrl, scale * 282, scale * 672, scale * 105, scale* 106); | |||||
ctx.drawImage(this.data.qrCodeUrl, scale * 282, scale * 672, scale * 105, scale* 105); | |||||
//绘制 | //绘制 | ||||
ctx.draw(false, setTimeout(() => { | ctx.draw(false, setTimeout(() => { | ||||
console.log(); | |||||
wx.canvasToTempFilePath({ | wx.canvasToTempFilePath({ | ||||
width:scale*444, | width:scale*444, | ||||
height: scale * 817, | height: scale * 817, | ||||
// width: scale*this.data.windowW, | |||||
// height: scale *this.data.windowH, | |||||
canvasId: 'myCanvas', | canvasId: 'myCanvas', | ||||
success: res => { | success: res => { | ||||
this.data.posterUrl.push(res.tempFilePath); | this.data.posterUrl.push(res.tempFilePath); | ||||
createQrcode: function () {//获取个人小程序分享码 | createQrcode: function () {//获取个人小程序分享码 | ||||
app.wxRequest(app.globalData.urlRoot + "wxInfo/getQrcode", {}, res => { | app.wxRequest(app.globalData.urlRoot + "wxInfo/getQrcode", {}, res => { | ||||
if (res.code = 200) { | if (res.code = 200) { | ||||
this.data.qrCodeUrl = res.data.qrcodeUrl; | |||||
this.setData({ | |||||
qrCodeUrl: res.data.qrcodeUrl | |||||
}) | |||||
} | } | ||||
this.cacheFun(); | this.cacheFun(); | ||||
}, this) | }, this) |
z-index: 2; | z-index: 2; | ||||
} | } | ||||
.canvasDraw{ | .canvasDraw{ | ||||
width:1776rpx; | |||||
height:3268rpx; | |||||
/* width:1776rpx; | |||||
height:3268rpx; */ | |||||
width:400%; | |||||
height:400%; | |||||
position: fixed; | position: fixed; | ||||
top: 0; | top: 0; | ||||
left: -1776rpx; | left: -1776rpx; |
"pathName": "pages/mobileVerification/mobileVerification", | "pathName": "pages/mobileVerification/mobileVerification", | ||||
"query": "" | "query": "" | ||||
}, | }, | ||||
{ | |||||
"id": -1, | |||||
"name": "用户协议与隐私政策", | |||||
"pathName": "pages/agreement/agreement", | |||||
"query": "" | |||||
} | |||||
{ | |||||
"id": -1, | |||||
"name": "用户协议与隐私政策", | |||||
"pathName": "pages/agreement/agreement", | |||||
"query": "" | |||||
} | |||||
] | ] | ||||
} | } | ||||
} | } |