// pages/registConfirm/registConfirm.js
var app=getApp();
Page({
data:{
mobile:'',
password:'',
inviteCode:'',
checkCode:'',
buttonText:'获取中',
disabled:false,
new_text:''
},
getEvrCode:function(){
console.log('按钮')
var that=this;
var mobile=that.data.mobile;
console.log(mobile);
app.getVerCode(mobile,function(success){
console.log(success);
if(success.data.success=="true"){
console.log('短信发送成功');
var time=function(waitTime){
if(waitTime<=0){
that.setData({
disabled:false,
buttonText:'获取中',
buttonText:'重新获取',
new_text:''
})
}else{
that.setData({
disabled:true,
buttonText:waitTime+'s后重发',
new_text:'new_style'
})
setTimeout(function(){
waitTime--;
time(waitTime);
},1000)
}
}
time(60);
}else{
wx.showModal({
content:success.data.error.msg,
showCancel:false
})
}
})
},
getCheckCode:function(event){
var that=this;
var checkCode=event.detail.value;
that.setData({
checkCode:checkCode
})
},
//完成注册
registSuccess:function(){
var that=this;
var mobile=that.data.mobile;
var password=that.data.password;
var inviteCode=that.data.inviteCode;
var checkCode=that.data.checkCode
app.registSuccess(mobile,password,inviteCode,checkCode,function(success){
console.log(success);
if(success.data.success=="true"){
wx.navigateBack({
delta: 1, // 回退前 delta(默认为1) 页面
success: function(res){
// success
}
})
}else{
if(success.data.error.code==4122){
wx.showModal({
content:'验证码不能为空',
showCancel:false
})
}else{
wx.showModal({
content:success.data.error.msg,
showCancel:false
})
}
}
})
},
onLoad:function(options){
// 页面初始化 options为页面跳转所带来的参数
// console.log(options.mobile,options.password,options.inviteCode)
var that=this;
that.setData({
mobile:options.mobile,
password:options.password,
inviteCode:options.inviteCode || ''
})
var time=function(waitTime){
if(waitTime<=0){
that.setData({
disabled:false,
buttonText:'获取中',
buttonText:'重新获取',
new_text:''
})
}else{
that.setData({
disabled:true,
buttonText:waitTime+'s后重发',
new_text:'new_style'
})
setTimeout(function(){
waitTime--;
time(waitTime);
},1000)
}
}
app.getVerCode(options.mobile,function(success){
console.log(success);
if(success.data.success=="true"){
time(60)
}else{
that.setData({
buttonText:'重新获取'
})
}
})
}
})
没有合适的资源?快使用搜索试试~ 我知道了~
基于JAVA开发的建材类展示小程序
共88个文件
png:27个
js:17个
wxss:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 174 浏览量
2024-03-27
16:41:27
上传
评论
收藏 118KB ZIP 举报
温馨提示
基于JAVA开发的建材类展示小程序
资源推荐
资源详情
资源评论
收起资源包目录
基于JAVA开发的建材类展示小程序.zip (88个子文件)
基于JAVA开发的建材类展示小程序
pages
toLogin
toLogin.wxss 1KB
toLogin.wxml 1KB
toLogin.json 42B
toLogin.js 2KB
auxStore
auxGoods
auxGoods.js 4KB
auxGoods.json 173B
auxGoods.wxml 2KB
auxGoods.wxss 3KB
cityChoose
cityChoose.js 1KB
cityChoose.wxss 515B
cityChoose.json 134B
cityChoose.wxml 622B
goods_item
goods_item.wxss 666B
goods_item.wxml 838B
goods_item.json 134B
goods_item.js 1013B
userNav
myAccount
myAccount.js 687B
myAccount.wxml 214B
myAccount.json 48B
myAccount.wxss 211B
userCenter
userCenter.wxml 3KB
userCenter.json 48B
userCenter.wxss 4KB
userCenter.js 2KB
forgetPassw
forgetPassw.wxml 90B
forgetPassw.wxss 40B
forgetPassw.js 345B
forgetPassw.json 2B
mainStore
mainStore.js 341B
mainStore.wxss 36B
mainStore.wxml 82B
mainStore.json 2B
toRegister
toRegister.js 4KB
toRegister.wxss 1KB
toRegister.wxml 2KB
toRegister.json 128B
userAgreement
userAgreement.json 48B
userAgreement.wxml 20KB
userAgreement.js 349B
userAgreement.wxss 386B
logs
logs.json 54B
logs.js 287B
logs.wxml 188B
logs.wxss 106B
shopCart
shopCart.wxss 34B
shopCart.json 2B
shopCart.wxml 78B
shopCart.js 339B
registConfirm
registConfirm.wxml 883B
registConfirm.js 4KB
registConfirm.json 2B
registConfirm.wxss 1KB
.json 2B
app.json 1KB
app.js 2KB
.wxml 32B
utils
service.js 758B
util.js 460B
app.wxss 102B
.js 316B
.wxss 11B
images
auxStore_pressed.png 2KB
user_nolog.png 14KB
icon_02.png 2KB
userCenter_pressed.png 2KB
banner.png 6KB
cata_water.png 2KB
cata_zhuanqu.png 1009B
icon_01.png 1KB
mainStore_pressed.png 2KB
icon_05.png 2KB
userCenter.png 16KB
arrow_down.png 379B
cata_dian.png 2KB
shopCart.png 15KB
icon_03.png 1KB
auxStore.png 2KB
mainStore.png 15KB
cata_wujin.png 2KB
cata_ni.png 2KB
cata_mu.png 2KB
user_passw.png 458B
cata_oil.png 1KB
icon_04.png 2KB
shopCart_pressed.png 2KB
user_phonenum.png 428B
order_manager.png 1KB
user_photo.png 3KB
共 88 条
- 1
资源评论
依然风yrlf
- 粉丝: 798
- 资源: 2959
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功