if(res.code==200){ | if(res.code==200){ | ||||
this.data.picturlList[this.data.picturlCurrent]['awardState'] = -1; | this.data.picturlList[this.data.picturlCurrent]['awardState'] = -1; | ||||
this.setData({ | this.setData({ | ||||
getReward:res.data | |||||
getReward:res.data, | |||||
picturlList: this.data.picturlList | |||||
}) | }) | ||||
if (res.data.needAddress != 0 && !this.data.isAddress){ | if (res.data.needAddress != 0 && !this.data.isAddress){ | ||||
this.setData({ | this.setData({ | ||||
tipWindow: 2 | tipWindow: 2 | ||||
}) | }) | ||||
} else if (res.data.needAddress == 0){ | |||||
this.setData({ | |||||
tipWindow: 1 | |||||
}) | |||||
} | } | ||||
}else{ | }else{ | ||||
wx.showToast({ | wx.showToast({ | ||||
}) | }) | ||||
app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); | app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); | ||||
} | } | ||||
}, | |||||
closeWindow:function(){// | |||||
this.setData({ | |||||
tipWindow:0 | |||||
}) | |||||
} | } | ||||
}) | }) |
</view> | </view> | ||||
<view class="mask" wx:if="{{maskShow}}"> | <view class="mask" wx:if="{{maskShow}}"> | ||||
<view class="taskBox" wx:if="{{taskShow}}"> | <view class="taskBox" wx:if="{{taskShow}}"> | ||||
<text wx:if="{{!isSign}}" class="closeBtn" style="right:-35rpx;top:-50rpx;" bindtap="hiddenTask"></text> | |||||
<image wx:if="{{!isSign}}" class="gameRuleClose" bindtap="hiddenTask" style="top:-40rpx;right:-40rpx;" src="{{imgUrl+'/star/closebtn.png'}}"></image> | |||||
<view class="title">今日任务</view> | <view class="title">今日任务</view> | ||||
<view class="contentBox"> | <view class="contentBox"> | ||||
<view class="name" wx:if="{{!isSign}}">{{taskName}}</view> | <view class="name" wx:if="{{!isSign}}">{{taskName}}</view> |
} | } | ||||
.ranksType1{ | .ranksType1{ | ||||
color: #FE820C; | color: #FE820C; | ||||
border: 1rpx solid #FE820C; | |||||
border: 2rpx solid #FE820C; | |||||
} | } | ||||
.ranksType2{ | .ranksType2{ | ||||
color: black; | color: black; | ||||
border: 1rpx solid #658DE9; | |||||
border: 2rpx solid #658DE9; | |||||
} | } | ||||
.ranksType3{ | .ranksType3{ | ||||
color: black; | color: black; | ||||
border: 1rpx solid black; | |||||
border: 2rpx solid black; | |||||
} | } | ||||
.userMsg{ | .userMsg{ | ||||
padding-top: 108rpx; | padding-top: 108rpx; | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
.selectSiteGroup{ | .selectSiteGroup{ | ||||
border: 1rpx solid #B4B4B4; | |||||
border: 2rpx solid #B4B4B4; | |||||
margin: 0 auto; | margin: 0 auto; | ||||
width:652rpx; | width:652rpx; | ||||
height:65rpx; | height:65rpx; |
maskShow: false, | maskShow: false, | ||||
mydata:[],//我的数据 | mydata:[],//我的数据 | ||||
isbtn:true,//防重复点击 | isbtn:true,//防重复点击 | ||||
vCodeImg:null | |||||
}, | }, | ||||
/** | /** | ||||
* 切换车主非车主 | * 切换车主非车主 | ||||
el: 'canvas', | el: 'canvas', | ||||
width: windowScale*205, | width: windowScale*205, | ||||
height: windowScale*51, | height: windowScale*51, | ||||
createCodeImg: "" | |||||
createCodeImg: "", | |||||
callUrl:{ | |||||
that:this, | |||||
obj:this.changeVode | |||||
} | |||||
}); | }); | ||||
} | } | ||||
}) | }) | ||||
} | } | ||||
}, this); | }, this); | ||||
}, | }, | ||||
changeVode:function(e){ | |||||
this.setData({ | |||||
vCodeImg: e.tempFilePath | |||||
}) | |||||
}, | |||||
/** | /** | ||||
* 刷新验证码 | * 刷新验证码 | ||||
*/ | */ |
<input name="VIN" placeholder="请输入车牌号/VIN号" placeholder-style="font-size:23rpx;" /> | <input name="VIN" placeholder="请输入车牌号/VIN号" placeholder-style="font-size:23rpx;" /> | ||||
<input name="code" placeholder="请输入验证码" placeholder-style="font-size:23rpx;" style="padding-right:300rpx;" /> | <input name="code" placeholder="请输入验证码" placeholder-style="font-size:23rpx;" style="padding-right:300rpx;" /> | ||||
<view class="VcodeBox"> | <view class="VcodeBox"> | ||||
<view class="VcodeGroup"> | |||||
<canvas class="canvasSty" canvas-id="canvas" bindtap="vCodeRefresh"></canvas> | |||||
</view> | |||||
<!-- <view class="VcodeGroup"> --> | |||||
<image bindtap="vCodeRefresh" class="VcodeImg" src="{{vCodeImg}}"></image> | |||||
<canvas class="canvasSty" canvas-id="canvas"></canvas> | |||||
<!-- </view> --> | |||||
</view> | </view> | ||||
<view class="tipTxt">VIN示意图</view> | <view class="tipTxt">VIN示意图</view> | ||||
<image class="license" src="{{imgUrl+'/star/scout/register/card.png'}}"></image> | <image class="license" src="{{imgUrl+'/star/scout/register/card.png'}}"></image> | ||||
<button class="submitBtn" style="padding:0;" formType="submit">提交</button> | |||||
<button class="submitBtn" style="padding:0;margin:20rpx auto 0;min-height:0;" formType="submit">提交</button> | |||||
<view class="reminder">温馨提示:您填写的信息将同步至东风启辰服务号,以便改善我们的产品,更好的为您提供优质的服务。</view> | <view class="reminder">温馨提示:您填写的信息将同步至东风启辰服务号,以便改善我们的产品,更好的为您提供优质的服务。</view> | ||||
</view> | </view> | ||||
</form> | </form> |
} | } | ||||
.Vehicle{ | .Vehicle{ | ||||
position: relative; | position: relative; | ||||
width: 100%; | |||||
height: 100%; | |||||
} | } | ||||
.Vehicle>input{ | .Vehicle>input{ | ||||
width: 675rpx; | width: 675rpx; | ||||
.Vehicle>.submitBtn{ | .Vehicle>.submitBtn{ | ||||
width: 675rpx; | width: 675rpx; | ||||
height: 70rpx; | height: 70rpx; | ||||
line-height: 70rpx; | |||||
background-color: #2a558d; | background-color: #2a558d; | ||||
color: #ffffff; | color: #ffffff; | ||||
font-size: 28rpx; | font-size: 28rpx; | ||||
width:205rpx; | width:205rpx; | ||||
height:51rpx; | height:51rpx; | ||||
position:absolute; | position:absolute; | ||||
left:0;top:0; | |||||
text-align: center; | |||||
left:2000px; | |||||
top:0; | |||||
z-index:9999; | z-index:9999; | ||||
opacity: 0; | |||||
} | |||||
.VcodeImg{ | |||||
width:205rpx; | |||||
height:51rpx; | |||||
position:absolute; | |||||
left:0; | |||||
top:0; | |||||
} | } |
this.ctx.arc(this.randomNum(0, this.options.width), this.randomNum(0, this.options.height), 1, 0, 2 * Math.PI); | this.ctx.arc(this.randomNum(0, this.options.width), this.randomNum(0, this.options.height), 1, 0, 2 * Math.PI); | ||||
this.ctx.fill(); | this.ctx.fill(); | ||||
} | } | ||||
this.ctx.draw(); | |||||
this.ctx.draw(false, setTimeout(() => { | |||||
// this.ctx.vCodeImg | |||||
wx.canvasToTempFilePath({ | |||||
width: this.options.width, | |||||
height: this.options.height, | |||||
canvasId: this.options.el, | |||||
success: res => { | |||||
var callUrl = this.options.callUrl; | |||||
if (callUrl) { | |||||
if (callUrl.that && callUrl.obj) { | |||||
callUrl['obj'].call(callUrl.that,res); | |||||
} | |||||
} | |||||
} | |||||
}) | |||||
}),200); | |||||
} | } | ||||
validate(code) { | validate(code) { | ||||
var code = code.toLowerCase(); | var code = code.toLowerCase(); |