Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 997 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 858 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 428 B |
Before Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.2 KiB |
@ -1,4 +1,6 @@ |
|||
{ |
|||
"navigationBarTitleText": "注册", |
|||
"usingComponents": {} |
|||
"usingComponents": { |
|||
"wux-picker": "../../dist/picker/index" |
|||
} |
|||
} |
@ -1,17 +1,145 @@ |
|||
<view class="container"> |
|||
<view class="card"> |
|||
<image class="bgimg" src="../../images/ig_woyaozhuce.png" mode="widthFix"/> |
|||
<view class="context2"> |
|||
<view class="context-title">欢迎使用北尚先锋</view> |
|||
<view class="context-name"> |
|||
<!-- <view wx:for="{{gridNameArr}}" wx:key="thiskey" wx:for-index="idx" wx:for-item="item"> |
|||
{{item}} |
|||
</view> --> |
|||
<view class="basic-info"> |
|||
<view class="list-item "> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title">姓名</view> |
|||
</view> |
|||
<view class="right"> |
|||
<input confirm-type="next" bindblur="bindRealNameInput" bindinput="bindRealNameInput" value="{{form.name}}" placeholder-class="placeholder-style" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="list-item gray "> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title">身份证号</view> |
|||
</view> |
|||
<view class="right"> |
|||
<input confirm-type="next" bindblur="bindRealIdcardInput" bindinput="bindRealIdcardInput" value="{{form.idCard}}" placeholder-class="placeholder-style" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="list-item "> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title">手机号码</view> |
|||
</view> |
|||
<view class="right"> |
|||
<input confirm-type="next" bindblur="bindRealMobileInput" bindinput="bindRealMobileInput" value="{{form.mobile}}" placeholder-class="placeholder-style" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="list-item gray"> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title">工作单位</view> |
|||
</view> |
|||
<view class="right"> |
|||
<input confirm-type="next" bindblur="bindWorkUnitInput" bindinput="bindWorkUnitInput" value="{{form.workUnit}}" placeholder-class="placeholder-style" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="list-item "> |
|||
<view class="left"> |
|||
<!-- <text class="must">*</text> --> |
|||
<view class="title">单位性质</view> |
|||
</view> |
|||
<view class="right" bind:tap="handleCLickShow"> |
|||
<view class="{{form.workType?'':' gray-font'}}" >{{form.workType?form.workType:'请选择'}}</view> |
|||
</view> |
|||
</view> |
|||
<view class="list-item" wx:if="{{form.workType == '其他'}}"> |
|||
<view class="left"> |
|||
<!-- <text class="must">*</text> --> |
|||
<view class="title">单位性质(其他)</view> |
|||
</view> |
|||
<view class="right" > |
|||
<input confirm-type="next" bindblur="bindWorkTypeTextInput" bindinput="bindWorkTypeTextInput" value="{{workTypeText}}" placeholder-class="placeholder-style" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="list-item gray"> |
|||
<view class="left"> |
|||
<!-- <text class="must">*</text> --> |
|||
<view class="title">所属行业</view> |
|||
</view> |
|||
<view class="right"> |
|||
<input confirm-type="next" bindblur="bindWorkIndustryInput" bindinput="bindWorkIndustryInput" value="{{form.workIndustry}}" placeholder-class="placeholder-style" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="list-item "> |
|||
<view class="left"> |
|||
<!-- <text class="must">*</text> --> |
|||
<view class="title">是否居住在市北</view> |
|||
</view> |
|||
<view class="right"> |
|||
<radio-group class="radio-group" bindchange="bindFlagshibeiChange"> |
|||
<radio checked="{{form.shibei == 1}}" value="1" class="radio" checked="true">是</radio> |
|||
<radio checked="{{form.shibei == 0}}" value="0" class="radio">否</radio> |
|||
</radio-group> |
|||
</view> |
|||
</view> |
|||
<view class="list-item gray" wx:if="{{form.shibei == '1'}}"> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title">报到的常住社区名称</view> |
|||
</view> |
|||
<picker mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange" |
|||
value="{{multiIndex}}" range="{{newArr}}" > |
|||
<view class="picker"> |
|||
<van-button type="primary" wx:if="{{changeFlag}}" > |
|||
{{newArr[0][multiIndex[0]]}},{{newArr[1][multiIndex[1]]}} |
|||
</van-button> |
|||
<van-button wx:else class=" gray-font"> |
|||
请选择 |
|||
</van-button> |
|||
</view> |
|||
</picker> |
|||
</view> |
|||
|
|||
<view class="list-item " wx:if="{{form.shibei == '1'}}"> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title">居住小区名称</view> |
|||
</view> |
|||
<view class="right"> |
|||
<input confirm-type="next" bindblur="bindHomeNameInput" bindinput="bindHomeNameInput" value="{{form.homeName}}" placeholder-class="placeholder-style" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="list-item " wx:if="{{form.shibei == '0'}}"> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title" style="text-overflow:ellipsis; white-space:nowrap; overflow:hidden;">单位报到联系社区名称</view> |
|||
</view> |
|||
<picker mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange" |
|||
value="{{multiIndex}}" range="{{newArr}}" > |
|||
<view class="picker"> |
|||
<van-button type="primary" wx:if="{{changeFlag}}" style="text-overflow:ellipsis; white-space:nowrap; overflow:hidden;margin-left: 20rpx;"> |
|||
{{newArr[0][multiIndex[0]]}},{{newArr[1][multiIndex[1]]}} |
|||
</van-button> |
|||
<van-button wx:else class=" gray-font"> |
|||
请选择 |
|||
</van-button> |
|||
</view> |
|||
</picker> |
|||
</view> |
|||
<view class="list-item "> |
|||
<view class="left"> |
|||
<text class="must">*</text> |
|||
<view class="title">是否为中共党员</view> |
|||
</view> |
|||
<view class="right"> |
|||
<radio-group class="radio-group" bindchange="bindFlagPartyChange"> |
|||
<radio checked="{{form.party == 1}}" value="1" class="radio" checked="true">是</radio> |
|||
<radio checked="{{form.party == 0}}" value="0" class="radio">否</radio> |
|||
</radio-group> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="buttons fixed"> |
|||
<button hover-class="hover-class" class="btn2" bindtap="navigateToIndex">进入首页</button> |
|||
<!-- <button hover-class="hover-class" class="btn2" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">进入首页</button> --> |
|||
</view> |
|||
</view> |
|||
<wux-picker cols="1" options="{{selectOption}}" value="{{form.workType}}" visible="{{selectedStatus}}" bind:confirm="pickerConfirm" controlled bind:cancel="pickerCancel"> |
|||
</wux-picker> |
|||
<modal hidden="{{!workTypeInput}}" title="请输入单位性质" confirm-text="提交" cancel-text="取消" bindcancel="cancelDlaog" bindconfirm="confirmDlaog"> |
|||
<!-- <input type='text'placeholder="请输入" /> --> |
|||
<input confirm-type="next" bindblur="bindWorkTypeTextInput" bindinput="bindWorkTypeTextInput" value="{{workTypeText}}" placeholder-class="placeholder-style" placeholder="请输入" auto-focus/> |
|||
</modal> |
@ -0,0 +1,115 @@ |
|||
//wgs84_to_gcj02.js文件
|
|||
|
|||
//地标 转 国测 常量
|
|||
var x_PI = (3.14159265358979324 * 3000.0) / 180.0; |
|||
var PI = 3.1415926535897932384626; |
|||
var a = 6378245.0; //卫星椭球坐标投影到平面地图坐标系的投影因子。
|
|||
var ee = 0.00669342162296594323; //椭球的偏心率。
|
|||
|
|||
|
|||
//判断是否在国内,在中国国内的经纬度才需要做偏移
|
|||
function out_of_china(lng, lat) { |
|||
return ( |
|||
lng < 72.004 || |
|||
lng > 137.8347 || |
|||
(lat < 0.8293 || lat > 55.8271 || false) |
|||
); |
|||
} |
|||
|
|||
//转化经度
|
|||
function transformlng(lng, lat) { |
|||
var ret = |
|||
300.0 + |
|||
lng + |
|||
2.0 * lat + |
|||
0.1 * lng * lng + |
|||
0.1 * lng * lat + |
|||
0.1 * Math.sqrt(Math.abs(lng)); |
|||
ret += |
|||
((20.0 * Math.sin(6.0 * lng * PI) + |
|||
20.0 * Math.sin(2.0 * lng * PI)) * |
|||
2.0) / |
|||
3.0; |
|||
ret += |
|||
((20.0 * Math.sin(lng * PI) + |
|||
40.0 * Math.sin((lng / 3.0) * PI)) * |
|||
2.0) / |
|||
3.0; |
|||
ret += |
|||
((150.0 * Math.sin((lng / 12.0) * PI) + |
|||
300.0 * Math.sin((lng / 30.0) * PI)) * |
|||
2.0) / |
|||
3.0; |
|||
return ret; |
|||
} |
|||
|
|||
//转化纬度
|
|||
function transformlat(lng, lat) { |
|||
var ret = |
|||
-100.0 + |
|||
2.0 * lng + |
|||
3.0 * lat + |
|||
0.2 * lat * lat + |
|||
0.1 * lng * lat + |
|||
0.2 * Math.sqrt(Math.abs(lng)); |
|||
ret += |
|||
((20.0 * Math.sin(6.0 * lng * PI) + |
|||
20.0 * Math.sin(2.0 * lng * PI)) * |
|||
2.0) / |
|||
3.0; |
|||
ret += |
|||
((20.0 * Math.sin(lat * PI) + |
|||
40.0 * Math.sin((lat / 3.0) * PI)) * |
|||
2.0) / |
|||
3.0; |
|||
ret += |
|||
((160.0 * Math.sin((lat / 12.0) * PI) + |
|||
320 * Math.sin((lat * PI) / 30.0)) * |
|||
2.0) / |
|||
3.0; |
|||
return ret; |
|||
} |
|||
|
|||
//wgs84 to gcj02 地球坐标系 转 火星坐标系
|
|||
export function wgs84_to_gcj02(lng, lat) { |
|||
if (out_of_china(lng, lat)) { |
|||
return [lng, lat]; |
|||
} else { |
|||
var dlat = transformlat(lng - 105.0, lat - 35.0); |
|||
var dlng = transformlng(lng - 105.0, lat - 35.0); |
|||
var radlat = (lat / 180.0) * PI; |
|||
var magic = Math.sin(radlat); |
|||
magic = 1 - ee * magic * magic; |
|||
var sqrtmagic = Math.sqrt(magic); |
|||
dlat = |
|||
(dlat * 180.0) / |
|||
(((a * (1 - ee)) / (magic * sqrtmagic)) * PI); |
|||
dlng = |
|||
(dlng * 180.0) / ((a / sqrtmagic) * Math.cos(radlat) * PI); |
|||
var mglat = lat + dlat; |
|||
var mglng = lng + dlng; |
|||
|
|||
return [mglng, mglat]; |
|||
} |
|||
} |
|||
|
|||
|
|||
//gcj02 to wgs84 火星坐标系 转 地球坐标系
|
|||
export function gcj02_to_wgs84(lng, lat) { |
|||
if (out_of_china(lng, lat)) { |
|||
return [lng, lat] |
|||
} |
|||
else { |
|||
var dlat = transformlat(lng - 105.0, lat - 35.0); |
|||
var dlng = transformlng(lng - 105.0, lat - 35.0); |
|||
var radlat = lat / 180.0 * PI; |
|||
var magic = Math.sin(radlat); |
|||
magic = 1 - ee * magic * magic; |
|||
var sqrtmagic = Math.sqrt(magic); |
|||
dlat = (dlat * 180.0) / ((a * (1 - ee)) / (magic * sqrtmagic) * PI); |
|||
dlng = (dlng * 180.0) / (a / sqrtmagic * Math.cos(radlat) * PI); |
|||
var mglat = lat + dlat; |
|||
var mglng = lng + dlng; |
|||
return [lng * 2 - mglng, lat * 2 - mglat] |
|||
} |
|||
} |