mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
关闭身份证验证
This commit is contained in:
parent
fa561f19c3
commit
d6ecc4611f
@ -3,7 +3,7 @@
|
||||
<form>
|
||||
<view class="cu-form-group margin-top">
|
||||
<view class="title">手机号</view>
|
||||
<input placeholder="请输入手机号" type="number" name="input" v-model="phone"></input>
|
||||
<input placeholder="请输入手机号" type="number" disabled="disabled" name="input" v-model="phone"></input>
|
||||
<button class="cu-btn bg-green" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber">获取手机号</button>
|
||||
|
||||
</view>
|
||||
|
||||
@ -20,10 +20,10 @@
|
||||
<view class="title">姓名</view>
|
||||
<input v-model="appUserName" required label="姓名" clearable placeholder="请输入名称" name="appUserName"></input>
|
||||
</view>
|
||||
<view class="cu-form-group">
|
||||
<!-- <view class="cu-form-group">
|
||||
<view class="title">身份证</view>
|
||||
<input v-model="idCard" required label="身份证" clearable placeholder="请输入身份证" name="idCard"></input>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="cu-form-group">
|
||||
<view class="title">密码</view>
|
||||
<input v-model="password" required type="password" label="密码" clearable placeholder="请输入密码"></input>
|
||||
@ -91,18 +91,18 @@
|
||||
*/
|
||||
onLoad: function(options) {
|
||||
let _that = this;
|
||||
let _location = context.getLocation();
|
||||
let _currentLocation = context.getCurrentLocation();
|
||||
//let _location = context.getLocation();
|
||||
//let _currentLocation = context.getCurrentLocation();
|
||||
|
||||
let _areaName = _currentLocation.city + _currentLocation.district;
|
||||
let _areaCode = _currentLocation.adcode;
|
||||
//let _areaName = _currentLocation.city + _currentLocation.district;
|
||||
//let _areaCode = _currentLocation.adcode;
|
||||
//加载省份
|
||||
context._loadArea('', '', function(_areaList) {
|
||||
_that.areaList = _areaList;
|
||||
_that.communityName = _location;
|
||||
_that.areaCode = _areaCode;
|
||||
_that.areaName = _areaName;
|
||||
});
|
||||
// context._loadArea('', '', function(_areaList) {
|
||||
// _that.areaList = _areaList;
|
||||
// _that.communityName = _location;
|
||||
// _that.areaCode = _areaCode;
|
||||
// _that.areaName = _areaName;
|
||||
// });
|
||||
},
|
||||
|
||||
/**
|
||||
@ -110,11 +110,11 @@
|
||||
*/
|
||||
onShow: function() {
|
||||
if (this.areaCode == '' || this.areaCode == undefined) {
|
||||
let _currentLocation = context.getCurrentLocation();
|
||||
let _areaName = _currentLocation.city + _currentLocation.district;
|
||||
let _areaCode = _currentLocation.adcode;
|
||||
this.areaCode = _areaCode;
|
||||
this.areaName = _areaName;
|
||||
// let _currentLocation = context.getCurrentLocation();
|
||||
// let _areaName = _currentLocation.city + _currentLocation.district;
|
||||
// let _areaCode = _currentLocation.adcode;
|
||||
// this.areaCode = _areaCode;
|
||||
// this.areaName = _areaName;
|
||||
|
||||
} else {
|
||||
let community = uni.getStorageSync("_selectCommunity");
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
</view>
|
||||
<view class="cu-form-group">
|
||||
<view class="title">手机号</view>
|
||||
<input v-model="link" required label="手机号" readonly="true" clearable placeholder="请输入手机号"></input>
|
||||
<input v-model="link" required label="手机号" disabled="disabled" clearable placeholder="请输入手机号"></input>
|
||||
<button class="cu-btn bg-green" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber">获取手机号</button>
|
||||
</view>
|
||||
<view class="padding flex flex-direction margin-top">
|
||||
@ -104,6 +104,7 @@
|
||||
uni.login({
|
||||
success: (res) => {
|
||||
console.log("login", res);
|
||||
_that.wxLogin(res.code);
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -150,7 +151,11 @@
|
||||
decryptData: e.detail.encryptedData,
|
||||
},
|
||||
success: function(res) {
|
||||
_that.link = res.data.photo;
|
||||
let _json = res.data;
|
||||
console.log('日志',_json)
|
||||
if(_json.code == 0){
|
||||
_that.link = _json.data.phoneNumber;
|
||||
}
|
||||
},
|
||||
fail: function(error) {}
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<view><form><view class="cu-form-group margin-top"><view class="title">手机号</view><input placeholder="请输入手机号" type="number" name="input" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><button class="cu-btn bg-green" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">获取手机号</button></view></form><view class="padding flex flex-direction"><button data-event-opts="{{[['tap',[['_doChangePhoto']]]]}}" class="cu-btn bg-green lg" bindtap="__e">提交</button></view></view>
|
||||
<view><form><view class="cu-form-group margin-top"><view class="title">手机号</view><input placeholder="请输入手机号" type="number" disabled="disabled" name="input" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><button class="cu-btn bg-green" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">获取手机号</button></view></form><view class="padding flex flex-direction"><button data-event-opts="{{[['tap',[['_doChangePhoto']]]]}}" class="cu-btn bg-green lg" bindtap="__e">提交</button></view></view>
|
||||
@ -227,18 +227,18 @@ var constant = context.constant;var pickerAddress = function pickerAddress() {Pr
|
||||
*/
|
||||
onLoad: function onLoad(options) {
|
||||
var _that = this;
|
||||
var _location = context.getLocation();
|
||||
var _currentLocation = context.getCurrentLocation();
|
||||
//let _location = context.getLocation();
|
||||
//let _currentLocation = context.getCurrentLocation();
|
||||
|
||||
var _areaName = _currentLocation.city + _currentLocation.district;
|
||||
var _areaCode = _currentLocation.adcode;
|
||||
//let _areaName = _currentLocation.city + _currentLocation.district;
|
||||
//let _areaCode = _currentLocation.adcode;
|
||||
//加载省份
|
||||
context._loadArea('', '', function (_areaList) {
|
||||
_that.areaList = _areaList;
|
||||
_that.communityName = _location;
|
||||
_that.areaCode = _areaCode;
|
||||
_that.areaName = _areaName;
|
||||
});
|
||||
// context._loadArea('', '', function(_areaList) {
|
||||
// _that.areaList = _areaList;
|
||||
// _that.communityName = _location;
|
||||
// _that.areaCode = _areaCode;
|
||||
// _that.areaName = _areaName;
|
||||
// });
|
||||
},
|
||||
|
||||
/**
|
||||
@ -246,11 +246,11 @@ var constant = context.constant;var pickerAddress = function pickerAddress() {Pr
|
||||
*/
|
||||
onShow: function onShow() {
|
||||
if (this.areaCode == '' || this.areaCode == undefined) {
|
||||
var _currentLocation = context.getCurrentLocation();
|
||||
var _areaName = _currentLocation.city + _currentLocation.district;
|
||||
var _areaCode = _currentLocation.adcode;
|
||||
this.areaCode = _areaCode;
|
||||
this.areaName = _areaName;
|
||||
// let _currentLocation = context.getCurrentLocation();
|
||||
// let _areaName = _currentLocation.city + _currentLocation.district;
|
||||
// let _areaCode = _currentLocation.adcode;
|
||||
// this.areaCode = _areaCode;
|
||||
// this.areaName = _areaName;
|
||||
|
||||
} else {
|
||||
var community = uni.getStorageSync("_selectCommunity");
|
||||
|
||||
@ -1 +1 @@
|
||||
<view><view class="block__title">选择小区</view><view class="cu-form-group arrow"><view class="title">市/区</view><picker-address bind:change="__e" vue-id="9a676040-1" data-event-opts="{{[['^change',[['change']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">{{areaName}}</picker-address><text class="cuIcon-right"></text></view><view data-event-opts="{{[['tap',[['chooseCommunity',['$event']]]]]}}" class="cu-form-group" bindtap="__e"><view class="title">小区名称</view><input required="{{true}}" readonly="{{true}}" label="小区名称" placeholder="请选择小区" name="communityName" icon="arrow" data-event-opts="{{[['input',[['__set_model',['','communityName','$event',[]]]]]]}}" value="{{communityName}}" bindinput="__e"/><text class="cuIcon-right"></text></view><view class="block__title">业主信息</view><view class="cu-form-group"><view class="title">姓名</view><input required="{{true}}" label="姓名" clearable="{{true}}" placeholder="请输入名称" name="appUserName" data-event-opts="{{[['input',[['__set_model',['','appUserName','$event',[]]]]]]}}" value="{{appUserName}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">身份证</view><input required="{{true}}" label="身份证" clearable="{{true}}" placeholder="请输入身份证" name="idCard" data-event-opts="{{[['input',[['__set_model',['','idCard','$event',[]]]]]]}}" value="{{idCard}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">密码</view><input required="{{true}}" type="password" label="密码" clearable="{{true}}" placeholder="请输入密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">确认密码</view><input required="{{true}}" type="password" label="确认密码" clearable="{{true}}" placeholder="请输入确认密码" data-event-opts="{{[['input',[['__set_model',['','rePassword','$event',[]]]]]]}}" value="{{rePassword}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">手机号</view><input required="{{true}}" label="手机号" clearable="{{true}}" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','link','$event',[]]]]]]}}" value="{{link}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">验证码</view><input placeholder="请输入短信验证码" name="input" data-event-opts="{{[['input',[['__set_model',['','msgCode','$event',[]]]]]]}}" value="{{msgCode}}" bindinput="__e"/><button class="cu-btn bg-green shadow" disabled="{{btnDisabled}}" data-event-opts="{{[['tap',[['sendMsgCode']]]]}}" bindtap="__e">{{btnValue}}</button></view><view class="padding flex flex-direction margin-top"><button data-event-opts="{{[['tap',[['_doRegister']]]]}}" class="cu-btn bg-green lg" bindtap="__e">绑定</button></view></view>
|
||||
<view><view class="block__title">选择小区</view><view class="cu-form-group arrow"><view class="title">市/区</view><picker-address bind:change="__e" vue-id="9a676040-1" data-event-opts="{{[['^change',[['change']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">{{areaName}}</picker-address><text class="cuIcon-right"></text></view><view data-event-opts="{{[['tap',[['chooseCommunity',['$event']]]]]}}" class="cu-form-group" bindtap="__e"><view class="title">小区名称</view><input required="{{true}}" readonly="{{true}}" label="小区名称" placeholder="请选择小区" name="communityName" icon="arrow" data-event-opts="{{[['input',[['__set_model',['','communityName','$event',[]]]]]]}}" value="{{communityName}}" bindinput="__e"/><text class="cuIcon-right"></text></view><view class="block__title">业主信息</view><view class="cu-form-group"><view class="title">姓名</view><input required="{{true}}" label="姓名" clearable="{{true}}" placeholder="请输入名称" name="appUserName" data-event-opts="{{[['input',[['__set_model',['','appUserName','$event',[]]]]]]}}" value="{{appUserName}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">密码</view><input required="{{true}}" type="password" label="密码" clearable="{{true}}" placeholder="请输入密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">确认密码</view><input required="{{true}}" type="password" label="确认密码" clearable="{{true}}" placeholder="请输入确认密码" data-event-opts="{{[['input',[['__set_model',['','rePassword','$event',[]]]]]]}}" value="{{rePassword}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">手机号</view><input required="{{true}}" label="手机号" clearable="{{true}}" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','link','$event',[]]]]]]}}" value="{{link}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">验证码</view><input placeholder="请输入短信验证码" name="input" data-event-opts="{{[['input',[['__set_model',['','msgCode','$event',[]]]]]]}}" value="{{msgCode}}" bindinput="__e"/><button class="cu-btn bg-green shadow" disabled="{{btnDisabled}}" data-event-opts="{{[['tap',[['sendMsgCode']]]]}}" bindtap="__e">{{btnValue}}</button></view><view class="padding flex flex-direction margin-top"><button data-event-opts="{{[['tap',[['_doRegister']]]]}}" class="cu-btn bg-green lg" bindtap="__e">绑定</button></view></view>
|
||||
@ -240,6 +240,7 @@ var constant = context.constant;var pickerAddress = function pickerAddress() {Pr
|
||||
uni.login({
|
||||
success: function success(res) {
|
||||
console.log("login", res);
|
||||
_that.wxLogin(res.code);
|
||||
} });
|
||||
|
||||
},
|
||||
@ -286,7 +287,11 @@ var constant = context.constant;var pickerAddress = function pickerAddress() {Pr
|
||||
decryptData: e.detail.encryptedData },
|
||||
|
||||
success: function success(res) {
|
||||
_that.link = res.data.photo;
|
||||
var _json = res.data;
|
||||
console.log('日志', _json);
|
||||
if (_json.code == 0) {
|
||||
_that.link = _json.data.phoneNumber;
|
||||
}
|
||||
},
|
||||
fail: function fail(error) {} });
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
<view><view class="block__title">选择小区</view><view class="cu-form-group arrow"><view class="title">市/区</view><picker-address bind:change="__e" vue-id="228ad440-1" data-event-opts="{{[['^change',[['change']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">{{areaName}}</picker-address><text class="cuIcon-right"></text></view><view data-event-opts="{{[['tap',[['chooseCommunity',['$event']]]]]}}" class="cu-form-group" bindtap="__e"><view class="title">小区名称</view><input required="{{true}}" readonly="{{true}}" label="小区名称" placeholder="请选择小区" name="communityName" icon="arrow" data-event-opts="{{[['input',[['__set_model',['','communityName','$event',[]]]]]]}}" value="{{communityName}}" bindinput="__e"/><text class="cuIcon-right"></text></view><view class="block__title">业主信息</view><view class="cu-form-group"><view class="title">姓名</view><input required="{{true}}" label="姓名" clearable="{{true}}" placeholder="请输入名称" name="appUserName" data-event-opts="{{[['input',[['__set_model',['','appUserName','$event',[]]]]]]}}" value="{{appUserName}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">身份证</view><input required="{{true}}" label="身份证" clearable="{{true}}" placeholder="请输入身份证" name="idCard" data-event-opts="{{[['input',[['__set_model',['','idCard','$event',[]]]]]]}}" value="{{idCard}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">密码</view><input required="{{true}}" type="password" label="密码" clearable="{{true}}" placeholder="请输入密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">确认密码</view><input required="{{true}}" type="password" label="确认密码" clearable="{{true}}" placeholder="请输入确认密码" data-event-opts="{{[['input',[['__set_model',['','rePassword','$event',[]]]]]]}}" value="{{rePassword}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">手机号</view><input required="{{true}}" label="手机号" readonly="true" clearable="{{true}}" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','link','$event',[]]]]]]}}" value="{{link}}" bindinput="__e"/><button class="cu-btn bg-green" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">获取手机号</button></view><view class="padding flex flex-direction margin-top"><button data-event-opts="{{[['tap',[['_doRegister']]]]}}" class="cu-btn bg-green lg" bindtap="__e">绑定</button></view></view>
|
||||
<view><view class="block__title">选择小区</view><view class="cu-form-group arrow"><view class="title">市/区</view><picker-address bind:change="__e" vue-id="228ad440-1" data-event-opts="{{[['^change',[['change']]]]}}" bind:__l="__l" vue-slots="{{['default']}}">{{areaName}}</picker-address><text class="cuIcon-right"></text></view><view data-event-opts="{{[['tap',[['chooseCommunity',['$event']]]]]}}" class="cu-form-group" bindtap="__e"><view class="title">小区名称</view><input required="{{true}}" readonly="{{true}}" label="小区名称" placeholder="请选择小区" name="communityName" icon="arrow" data-event-opts="{{[['input',[['__set_model',['','communityName','$event',[]]]]]]}}" value="{{communityName}}" bindinput="__e"/><text class="cuIcon-right"></text></view><view class="block__title">业主信息</view><view class="cu-form-group"><view class="title">姓名</view><input required="{{true}}" label="姓名" clearable="{{true}}" placeholder="请输入名称" name="appUserName" data-event-opts="{{[['input',[['__set_model',['','appUserName','$event',[]]]]]]}}" value="{{appUserName}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">身份证</view><input required="{{true}}" label="身份证" clearable="{{true}}" placeholder="请输入身份证" name="idCard" data-event-opts="{{[['input',[['__set_model',['','idCard','$event',[]]]]]]}}" value="{{idCard}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">密码</view><input required="{{true}}" type="password" label="密码" clearable="{{true}}" placeholder="请输入密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" value="{{password}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">确认密码</view><input required="{{true}}" type="password" label="确认密码" clearable="{{true}}" placeholder="请输入确认密码" data-event-opts="{{[['input',[['__set_model',['','rePassword','$event',[]]]]]]}}" value="{{rePassword}}" bindinput="__e"/></view><view class="cu-form-group"><view class="title">手机号</view><input required="{{true}}" label="手机号" disabled="disabled" clearable="{{true}}" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','link','$event',[]]]]]]}}" value="{{link}}" bindinput="__e"/><button class="cu-btn bg-green" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['onGetPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">获取手机号</button></view><view class="padding flex flex-direction margin-top"><button data-event-opts="{{[['tap',[['_doRegister']]]]}}" class="cu-btn bg-green lg" bindtap="__e">绑定</button></view></view>
|
||||
Loading…
Reference in New Issue
Block a user