Loading app.json +8 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,8 @@ "pages/demo/wallpaper/wallpaper", "pages/demo/login/login", "pages/demo/set/set", "pages/signup/signup" "pages/signup/signup", "pages/uploadcard/uploadcard" ], "subpackages": [ { Loading Loading @@ -123,7 +124,12 @@ "van-cell-group": "/vantPackage/cell-group/index", "van-popup": "/vantPackage/popup/index", "van-picker": "/vantPackage/picker/index", "van-field": "/vantPackage/field/index" "van-field": "/vantPackage/field/index", "van-row": "/vantPackage/row/index", "van-col": "/vantPackage/col/index", "van-nav-bar": "/vantPackage/nav-bar/index", "van-toast": "/vantPackage/toast/index" }, "tabBar": { "color": "#aaaaaa", Loading pages/document/subsign/subsign.js +61 −4 Original line number Diff line number Diff line Loading @@ -7,17 +7,27 @@ Page({ data: { isShow:false, isShowStudy:false, isShowHomework:false, isShowZige:false, isShowPeixun:false, fromDate:{ username:'', //姓名 gender:'', //性别 card:'', //身份证号 studyhigh:'', //文化程度 phone:'', //手机号 company:'' //单位名称 company:'', //单位名称 homework:'', //作业类别 zige:'', //资格类型 peixun:'', //培训类型 beizhu:'' //备注 }, popup:{ genderText:'请选择性别', studyText:'请选择您的文化程度', genderText:'点击选择性别', studyText:'点击选择您的文化程度', homeworkText:'点击选择作业类别', zigeTypeText:'点击选择资格类型', peixunTypeText:'点击选择培训类型', }, columns: [ { text: '男', type:0 }, Loading @@ -30,6 +40,22 @@ Page({ {text:'专科',index:3}, {text:'本科',index:4}, {text:'研究生及以上',index:5}, ], columnsHomework:[ {text:'电工作业',index:0}, {text:'焊接与热切割作业',index:1}, {text:'高处作业',index:2}, {text:'制冷与空调作业',index:3}, {text:'金属与非金属矿山作业',index:4}, {text:'危险化学品作业',index:5}, ], columnsZige:[ {text:'职业资格',index:0} ], columnsPeixun:[ {text:'新办',index:0}, {text:'复审',index:1}, {text:'换证',index:2}, ] }, Loading @@ -39,19 +65,50 @@ Page({ onDisplayStudy(){ this.setData({isShowStudy:true}) }, onDisplayHomework(){ this.setData({isShowHomework:true}) }, onDisplayZigeType(){ this.setData({isShowZige:true}) }, onDisplayPeixunType(){ this.setData({isShowPeixun:true}) }, onClose() { this.setData({ isShow: false }); }, onCloseStudy(){ this.setData({isShowStudy:false}) }, onCloseHomework(){ this.setData({isShowHomework:false}) }, onCloseZige(){ this.setData({isShowZige:false}) }, onClosePeixun(){ this.setData({isShowPeixun:false}) }, onConfirm(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.gender"]:value.type,["popup.genderText"]:value.text,isShow:false}) }, onConfirmStudy(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.studyhigh"]:value.type,["popup.studyText"]:value.text,isShowStudy:false}) this.setData({["fromDate.studyhigh"]:value.index,["popup.studyText"]:value.text,isShowStudy:false}) }, onConfirmHomework(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.homework"]:value.index,["popup.homeworkText"]:value.text,isShowHomework:false}) }, onConfirmPeixun(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.peixun"]:value.index,["popup.peixunTypeText"]:value.text,isShowPeixun:false}) }, onConfirmZige(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.zige"]:value.index,["popup.zigeTypeText"]:value.text,isShowZige:false}) }, /** * 生命周期函数--监听页面加载 Loading pages/document/subsign/subsign.scss +35 −1 Original line number Diff line number Diff line .box{ width: 96%; width: 100%; margin: 2% auto 0; .field-index--van-field{ padding: 0; } .txt{ font-size: 22rpx; font-family: Arial, Helvetica, sans-serif; color: black; font-weight: 600; .req{ font-weight: initial; color: red; } } } .placeholder,.van-field__placeholder,.van-field__control{ font-size: 22rpx !important; color: #cdced1 !important ; } .price{ width: 96%; margin:2% auto 0; box-sizing: border-box; text-align: right; .tit{ font-family:Arial, Helvetica, sans-serif; font-size: 22rpx; color: black; text-align: right; padding-right: 20rpx; } .pri{ font-size: 22rpx; font-family: Arial, Helvetica, sans-serif; color: brown; } } No newline at end of file pages/document/subsign/subsign.wxml +55 −10 Original line number Diff line number Diff line Loading @@ -6,24 +6,57 @@ <view class="box"> <van-cell-group> <van-cell center> <view slot="title"><text>*</text><text>姓名</text></view> <van-field model:value="{{ fromDate.username }}" placeholder="请输入用户名" input-align="right" border="{{ false }}" /> <view slot="title" class="txt"><text class="req">* </text><text>姓名</text></view> <van-field model:value="{{ fromDate.username }}" placeholder-style="place" custom-style="placeholder" placeholder="请输入用户名" input-align="right" border="{{ false }}" /> </van-cell> <van-cell center is-link value="{{popup.genderText}}" bind:click="onDisplay"> <view slot="title"><text>*</text><text>性别</text></view> <van-cell center value="{{popup.genderText}}" bind:click="onDisplay" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>性别</text></view> </van-cell> <van-cell center> <view slot="title"><text>*</text><text>身份证号</text></view> <view slot="title" class="txt"><text class="req">* </text><text>身份证号</text></view> <van-field model:value="{{ fromDate.card }}" placeholder="请输入您的身份证号" input-align="right" border="{{ false }}" /> </van-cell> <van-cell center is-link value="{{popup.studyText}}" bind:click="onDisplayStudy"> <view slot="title"><text>文化程度</text></view> <van-cell center value="{{popup.studyText}}" bind:click="onDisplayStudy" value-class="placeholder"> <view slot="title" class="txt"><text>文化程度</text></view> </van-cell> <van-cell center> <view slot="title"><text>*</text><text>手机号</text></view> <view slot="title" class="txt"><text class="req">* </text><text>手机号</text></view> <van-field model:value="{{ fromDate.phone }}" placeholder="请输入您的手机号" input-align="right" border="{{ false }}" /> </van-cell> <van-cell center> <view slot="title" class="txt"><text>单位名称</text></view> <van-field model:value="{{ fromDate.company }}" placeholder="请输入您的单位名称" input-align="right" border="{{ false }}" /> </van-cell> </van-cell-group> </view> <view class="box"> <van-cell-group> <van-cell center value="{{popup.homeworkText}}" bind:click="onDisplayHomework" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>作业类别</text></view> </van-cell> <van-cell center value="{{popup.zigeTypeText}}" bind:click="onDisplayZigeType" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>资格类型</text></view> </van-cell> <van-cell center value="{{popup.peixunTypeText}}" bind:click="onDisplayPeixunType" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>培训类型</text></view> </van-cell> <van-cell center> <view slot="title" class="txt"><text>留言</text></view> <van-field placeholder-style="placeholder" value="{{ fromDate.beizhu }}" type="textarea" show-word-limit placeholder="请输入备注信息" autosize input-align="right" maxlength="100" border="{{ false }}" /> </van-cell> </van-cell-group> <view class="price"><text class="tit">培训费用</text><text class="pri">¥812元</text></view> <view class="price"><text class="tit">审核后需支付费用</text><text class="pri">¥812元</text></view> <view class="price"><van-button type="default" block color="#1989fa">下一步,上传资料</van-button></view> </view> </ui-sys> <van-popup show="{{ isShow }}" bind:close="onClose" position="bottom" round> Loading @@ -32,3 +65,15 @@ <van-popup show="{{ isShowStudy }}" bind:close="onCloseStudy" position="bottom" round> <van-picker columns="{{ columnsStudy }}" bind:cancel="onCloseStudy" bind:confirm="onConfirmStudy" show-toolbar /> </van-popup> <!-- 作业类别 --> <van-popup show="{{ isShowHomework }}" bind:close="onCloseHomework" position="bottom" round> <van-picker columns="{{ columnsHomework }}" bind:cancel="onCloseHomework" bind:confirm="onConfirmHomework" show-toolbar /> </van-popup> <!-- 资格类型 --> <van-popup show="{{ isShowZige }}" bind:close="onCloseZige" position="bottom" round> <van-picker columns="{{ columnsZige }}" bind:cancel="onCloseZige" bind:confirm="onConfirmZige" show-toolbar /> </van-popup> <!-- 培训类型 --> <van-popup show="{{ isShowStudy }}" bind:close="onClosePeixun" position="bottom" round> <van-picker columns="{{ columnsPeixun }}" bind:cancel="onClosePeixun" bind:confirm="onConfirmPeixun" show-toolbar /> </van-popup> No newline at end of file pages/signup/signup.wxml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ <text slot="center">{{isperson}}</text> </ui-navbar> <ui-modal show="{{true}}" showCancel="{{false}}" title="报名需知"> <scroll-view scroll-y="true" style="height: 300rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-into-view="{{toView}}" scroll-top="{{scrollTop}}"> <scroll-view scroll-y="true" style="height: 300rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" scroll-into-view="{{toView}}" scroll-top="{{scrollTop}}"> <view id="demo1" class="scroll-view-item"> <text>特种作业人员操作证办理办事指南 一、特种作业操作证的办理 Loading Loading
app.json +8 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,8 @@ "pages/demo/wallpaper/wallpaper", "pages/demo/login/login", "pages/demo/set/set", "pages/signup/signup" "pages/signup/signup", "pages/uploadcard/uploadcard" ], "subpackages": [ { Loading Loading @@ -123,7 +124,12 @@ "van-cell-group": "/vantPackage/cell-group/index", "van-popup": "/vantPackage/popup/index", "van-picker": "/vantPackage/picker/index", "van-field": "/vantPackage/field/index" "van-field": "/vantPackage/field/index", "van-row": "/vantPackage/row/index", "van-col": "/vantPackage/col/index", "van-nav-bar": "/vantPackage/nav-bar/index", "van-toast": "/vantPackage/toast/index" }, "tabBar": { "color": "#aaaaaa", Loading
pages/document/subsign/subsign.js +61 −4 Original line number Diff line number Diff line Loading @@ -7,17 +7,27 @@ Page({ data: { isShow:false, isShowStudy:false, isShowHomework:false, isShowZige:false, isShowPeixun:false, fromDate:{ username:'', //姓名 gender:'', //性别 card:'', //身份证号 studyhigh:'', //文化程度 phone:'', //手机号 company:'' //单位名称 company:'', //单位名称 homework:'', //作业类别 zige:'', //资格类型 peixun:'', //培训类型 beizhu:'' //备注 }, popup:{ genderText:'请选择性别', studyText:'请选择您的文化程度', genderText:'点击选择性别', studyText:'点击选择您的文化程度', homeworkText:'点击选择作业类别', zigeTypeText:'点击选择资格类型', peixunTypeText:'点击选择培训类型', }, columns: [ { text: '男', type:0 }, Loading @@ -30,6 +40,22 @@ Page({ {text:'专科',index:3}, {text:'本科',index:4}, {text:'研究生及以上',index:5}, ], columnsHomework:[ {text:'电工作业',index:0}, {text:'焊接与热切割作业',index:1}, {text:'高处作业',index:2}, {text:'制冷与空调作业',index:3}, {text:'金属与非金属矿山作业',index:4}, {text:'危险化学品作业',index:5}, ], columnsZige:[ {text:'职业资格',index:0} ], columnsPeixun:[ {text:'新办',index:0}, {text:'复审',index:1}, {text:'换证',index:2}, ] }, Loading @@ -39,19 +65,50 @@ Page({ onDisplayStudy(){ this.setData({isShowStudy:true}) }, onDisplayHomework(){ this.setData({isShowHomework:true}) }, onDisplayZigeType(){ this.setData({isShowZige:true}) }, onDisplayPeixunType(){ this.setData({isShowPeixun:true}) }, onClose() { this.setData({ isShow: false }); }, onCloseStudy(){ this.setData({isShowStudy:false}) }, onCloseHomework(){ this.setData({isShowHomework:false}) }, onCloseZige(){ this.setData({isShowZige:false}) }, onClosePeixun(){ this.setData({isShowPeixun:false}) }, onConfirm(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.gender"]:value.type,["popup.genderText"]:value.text,isShow:false}) }, onConfirmStudy(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.studyhigh"]:value.type,["popup.studyText"]:value.text,isShowStudy:false}) this.setData({["fromDate.studyhigh"]:value.index,["popup.studyText"]:value.text,isShowStudy:false}) }, onConfirmHomework(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.homework"]:value.index,["popup.homeworkText"]:value.text,isShowHomework:false}) }, onConfirmPeixun(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.peixun"]:value.index,["popup.peixunTypeText"]:value.text,isShowPeixun:false}) }, onConfirmZige(event){ const { picker, value, index } = event.detail; this.setData({["fromDate.zige"]:value.index,["popup.zigeTypeText"]:value.text,isShowZige:false}) }, /** * 生命周期函数--监听页面加载 Loading
pages/document/subsign/subsign.scss +35 −1 Original line number Diff line number Diff line .box{ width: 96%; width: 100%; margin: 2% auto 0; .field-index--van-field{ padding: 0; } .txt{ font-size: 22rpx; font-family: Arial, Helvetica, sans-serif; color: black; font-weight: 600; .req{ font-weight: initial; color: red; } } } .placeholder,.van-field__placeholder,.van-field__control{ font-size: 22rpx !important; color: #cdced1 !important ; } .price{ width: 96%; margin:2% auto 0; box-sizing: border-box; text-align: right; .tit{ font-family:Arial, Helvetica, sans-serif; font-size: 22rpx; color: black; text-align: right; padding-right: 20rpx; } .pri{ font-size: 22rpx; font-family: Arial, Helvetica, sans-serif; color: brown; } } No newline at end of file
pages/document/subsign/subsign.wxml +55 −10 Original line number Diff line number Diff line Loading @@ -6,24 +6,57 @@ <view class="box"> <van-cell-group> <van-cell center> <view slot="title"><text>*</text><text>姓名</text></view> <van-field model:value="{{ fromDate.username }}" placeholder="请输入用户名" input-align="right" border="{{ false }}" /> <view slot="title" class="txt"><text class="req">* </text><text>姓名</text></view> <van-field model:value="{{ fromDate.username }}" placeholder-style="place" custom-style="placeholder" placeholder="请输入用户名" input-align="right" border="{{ false }}" /> </van-cell> <van-cell center is-link value="{{popup.genderText}}" bind:click="onDisplay"> <view slot="title"><text>*</text><text>性别</text></view> <van-cell center value="{{popup.genderText}}" bind:click="onDisplay" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>性别</text></view> </van-cell> <van-cell center> <view slot="title"><text>*</text><text>身份证号</text></view> <view slot="title" class="txt"><text class="req">* </text><text>身份证号</text></view> <van-field model:value="{{ fromDate.card }}" placeholder="请输入您的身份证号" input-align="right" border="{{ false }}" /> </van-cell> <van-cell center is-link value="{{popup.studyText}}" bind:click="onDisplayStudy"> <view slot="title"><text>文化程度</text></view> <van-cell center value="{{popup.studyText}}" bind:click="onDisplayStudy" value-class="placeholder"> <view slot="title" class="txt"><text>文化程度</text></view> </van-cell> <van-cell center> <view slot="title"><text>*</text><text>手机号</text></view> <view slot="title" class="txt"><text class="req">* </text><text>手机号</text></view> <van-field model:value="{{ fromDate.phone }}" placeholder="请输入您的手机号" input-align="right" border="{{ false }}" /> </van-cell> <van-cell center> <view slot="title" class="txt"><text>单位名称</text></view> <van-field model:value="{{ fromDate.company }}" placeholder="请输入您的单位名称" input-align="right" border="{{ false }}" /> </van-cell> </van-cell-group> </view> <view class="box"> <van-cell-group> <van-cell center value="{{popup.homeworkText}}" bind:click="onDisplayHomework" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>作业类别</text></view> </van-cell> <van-cell center value="{{popup.zigeTypeText}}" bind:click="onDisplayZigeType" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>资格类型</text></view> </van-cell> <van-cell center value="{{popup.peixunTypeText}}" bind:click="onDisplayPeixunType" value-class="placeholder"> <view slot="title" class="txt"><text class="req">* </text><text>培训类型</text></view> </van-cell> <van-cell center> <view slot="title" class="txt"><text>留言</text></view> <van-field placeholder-style="placeholder" value="{{ fromDate.beizhu }}" type="textarea" show-word-limit placeholder="请输入备注信息" autosize input-align="right" maxlength="100" border="{{ false }}" /> </van-cell> </van-cell-group> <view class="price"><text class="tit">培训费用</text><text class="pri">¥812元</text></view> <view class="price"><text class="tit">审核后需支付费用</text><text class="pri">¥812元</text></view> <view class="price"><van-button type="default" block color="#1989fa">下一步,上传资料</van-button></view> </view> </ui-sys> <van-popup show="{{ isShow }}" bind:close="onClose" position="bottom" round> Loading @@ -32,3 +65,15 @@ <van-popup show="{{ isShowStudy }}" bind:close="onCloseStudy" position="bottom" round> <van-picker columns="{{ columnsStudy }}" bind:cancel="onCloseStudy" bind:confirm="onConfirmStudy" show-toolbar /> </van-popup> <!-- 作业类别 --> <van-popup show="{{ isShowHomework }}" bind:close="onCloseHomework" position="bottom" round> <van-picker columns="{{ columnsHomework }}" bind:cancel="onCloseHomework" bind:confirm="onConfirmHomework" show-toolbar /> </van-popup> <!-- 资格类型 --> <van-popup show="{{ isShowZige }}" bind:close="onCloseZige" position="bottom" round> <van-picker columns="{{ columnsZige }}" bind:cancel="onCloseZige" bind:confirm="onConfirmZige" show-toolbar /> </van-popup> <!-- 培训类型 --> <van-popup show="{{ isShowStudy }}" bind:close="onClosePeixun" position="bottom" round> <van-picker columns="{{ columnsPeixun }}" bind:cancel="onClosePeixun" bind:confirm="onConfirmPeixun" show-toolbar /> </van-popup> No newline at end of file
pages/signup/signup.wxml +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ <text slot="center">{{isperson}}</text> </ui-navbar> <ui-modal show="{{true}}" showCancel="{{false}}" title="报名需知"> <scroll-view scroll-y="true" style="height: 300rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-into-view="{{toView}}" scroll-top="{{scrollTop}}"> <scroll-view scroll-y="true" style="height: 300rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" scroll-into-view="{{toView}}" scroll-top="{{scrollTop}}"> <view id="demo1" class="scroll-view-item"> <text>特种作业人员操作证办理办事指南 一、特种作业操作证的办理 Loading