diff --git a/miniprogram/pages/login/login.js b/miniprogram/pages/login/login.js index eea83c7..c813b41 100755 --- a/miniprogram/pages/login/login.js +++ b/miniprogram/pages/login/login.js @@ -102,7 +102,7 @@ Page({ wx.showToast({ title: '请确认账号密码是否正确或联系管理员!', icon: 'none', - duration: 3000 + duration: 3500 }); }else { wx.setStorageSync('token', res.data.token); diff --git a/miniprogram/pages/login/login.wxss b/miniprogram/pages/login/login.wxss index b8ebac4..e887911 100755 --- a/miniprogram/pages/login/login.wxss +++ b/miniprogram/pages/login/login.wxss @@ -1,36 +1,37 @@ page { width: 100%; height: 100vh; - } - .main-bg { +} + +.main-bg { width: 100%; height: 100%; - background:#fff; + background: #fff; position: relative; - } - - .header .header-bg { - width: 100%; - height: 100%; - /* position: absolute; +} + +.header .header-bg { + width: 100%; + height: 100%; + /* position: absolute; z-index: 10; left: 0; top: 0; */ - position: absolute; - height: 100%; - z-index: -999; - } - - .main-bg image{ + position: absolute; + height: 100%; + z-index: -999; +} + +.main-bg image { width: 100%; height: 100%; object-fit: cover; position: absolute; left: 0; top: 0; - } - - .login-top{ +} + +.login-top { width: 100%; height: 310rpx; z-index: 100; @@ -39,51 +40,54 @@ page { display: flex; justify-content: center; align-items: center; - } - .login-top .picture{ +} + +.login-top .picture { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; - } - - .login-top .picture .picture-bg{ +} + +.login-top .picture .picture-bg { width: 160rpx; height: 160rpx; position: relative; display: flex; align-items: center; justify-content: center; - } - - .data-name{ +} + +.data-name { width: 96rpx; height: 36rpx; text-align: center; position: relative; left: 85rpx; top: -22rpx; - } - .data-name image{ +} + +.data-name image { width: 100%; height: 100%; object-fit: cover; position: absolute; left: 0; top: 0; - } - .data-name .name{ - font-size:24rpx; - font-family:PingFang SC; - font-weight:500; +} + +.data-name .name { + font-size: 24rpx; + font-family: PingFang SC; + font-weight: 500; position: relative; - color:rgba(255,255,255,1); - } - - - .login-bottom{ + color: rgba(255, 255, 255, 1); +} + + +.login-bottom { width: 100%; height: 570rpx; z-index: 100; @@ -93,73 +97,80 @@ page { justify-content: center; align-items: center; top: 127rpx; - } - .login-bottom .info{ +} + +.login-bottom .info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; - } - - .login-bottom .info .info-bg{ +} + +.login-bottom .info .info-bg { width: 640rpx; height: 520rpx; position: relative; - background:rgba(255,255,255,1); - box-shadow:0px 8px 10px 0px rgba(33,155,138,0.22); + background: rgba(255, 255, 255, 1); + box-shadow: 0px 8px 10px 0px rgba(33, 155, 138, 0.22); border-radius: 24rpx; - } - .login-bottom .info .info-bg .name{ - width:560rpx; - height:88rpx; - background:rgba(248,248,248,1); - border-radius:44rpx; +} + +.login-bottom .info .info-bg .name { + width: 560rpx; + height: 88rpx; + background: rgba(248, 248, 248, 1); + border-radius: 44rpx; position: relative; margin-top: 97rpx; left: 39rpx; - } - .name-pw-bg{ +} + +.name-pw-bg { width: 34rpx; height: 34rpx; float: left; position: absolute; left: 41rpx; margin-top: 27rpx; - } - .info-input{ +} + +.info-input { float: left; width: 395rpx; height: 100%; position: absolute; - margin-left: 107rpx; - } - .info-input input{ - margin-top: 15rpx; - font-size:30rpx; - } - .login-bottom .info .info-bg .password{ - width:560rpx; - height:88rpx; - background:rgba(248,248,248,1); - border-radius:44rpx; + margin-left: 100rpx; + text-align: center; +} + +.info-input input { + margin-top: 20rpx; + font-size: 30rpx; +} + +.login-bottom .info .info-bg .password { + width: 560rpx; + height: 88rpx; + background: rgba(248, 248, 248, 1); + border-radius: 44rpx; position: relative; margin-top: 29rpx; left: 39rpx; - } - - .login-bottom .info .info-bg .login{ - width:560rpx; - height:88rpx; - background:#f5071ad6; - border-radius:44rpx; +} + +.login-bottom .info .info-bg .login { + width: 560rpx; + height: 88rpx; + background: #f5071ad6; + border-radius: 44rpx; position: relative; margin-top: 50rpx; left: 39rpx; text-align: center; line-height: 88rpx; - font-size:36rpx; - font-family:PingFang SC; - font-weight:500; - color:rgba(255,255,255,1); - } \ No newline at end of file + font-size: 36rpx; + font-family: PingFang SC; + font-weight: 500; + color: rgba(255, 255, 255, 1); +} \ No newline at end of file diff --git a/miniprogram/pages/my/my.wxml b/miniprogram/pages/my/my.wxml index c76a077..993d35c 100644 --- a/miniprogram/pages/my/my.wxml +++ b/miniprogram/pages/my/my.wxml @@ -39,7 +39,7 @@ 修改密码 前往修改密码 - + diff --git a/miniprogram/pages/my/my.wxss b/miniprogram/pages/my/my.wxss index 87a1bc4..1760e9b 100644 --- a/miniprogram/pages/my/my.wxss +++ b/miniprogram/pages/my/my.wxss @@ -226,7 +226,6 @@ page { border-radius: 16rpx; display: flex; padding: 15rpx 30rpx; - margin: 20rpx 0rpx 0rpx; justify-content: space-between; } diff --git a/miniprogram/subpages/checkIn/pages/checkIn/register/register.js b/miniprogram/subpages/checkIn/pages/checkIn/register/register.js index 86f9075..f956f23 100644 --- a/miniprogram/subpages/checkIn/pages/checkIn/register/register.js +++ b/miniprogram/subpages/checkIn/pages/checkIn/register/register.js @@ -7,6 +7,7 @@ Page({ */ data: { look: true, + status:0, //审核状态 informFlag: false, selectOption: [{ label: '机关企事业单位', @@ -48,6 +49,8 @@ Page({ idCard: '', mobile: '', homeName: '', //居住小区名称 + villageName: '', //居住小区名称 + hobbies: '', // 服务意向 workUnit: '', //工作单位 workType: '', //单位性质 workIndustry: '', //所属行业 @@ -90,7 +93,7 @@ Page({ workType, workIndustry, hobbies, - shibei + shibei, } = JSON.parse(wx.getStorageSync('userInfo')) this.setData({ 'form.name': realName, @@ -102,7 +105,9 @@ Page({ 'form.workIndustry': workIndustry, 'form.hobbies': hobbies, 'form.shibei': shibei, + 'form.hobbies': hobbies, 'form.homeName': villageName, + 'form.villageName': villageName, }) this.getByIdCardAndName() }, @@ -345,6 +350,10 @@ Page({ 'form.gridStaff': res.data.gridStaff, 'form.volunteer': res.data.volunteer, }) + if(res.data.status === 0 || res.data.status === 1){ + this.handleNext(); + this.submit(); + } } }).catch(err => { @@ -548,6 +557,8 @@ Page({ para.volunteer = parseInt(para.volunteer) para.gridStaff = parseInt(para.gridStaff) para.owners = this.data.form.owners + para.hobbies = this.data.form.hobbies + para.villageName = this.data.form.villageName // wx.showLoading({ // title: "提交中..." // }) @@ -598,11 +609,23 @@ Page({ delta: 1 }) }, - handleNext() { + handleEdit(){ this.setData({ - informFlag: true + submitStatus: false, + look: false }) }, + handleNext() { + if(this.data.informFlag){ + this.setData({ + informFlag: false + }) + }else{ + this.setData({ + informFlag: true + }) + } + }, callLiveTelephone() { wx.makePhoneCall({ phoneNumber: this.tipData.liveTelephone, diff --git a/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxml b/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxml index 189381e..d4c675d 100644 --- a/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxml +++ b/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxml @@ -203,7 +203,10 @@ 手机 {{tipData.couplingMobile?tipData.couplingMobile:'--'}} - + + + + @@ -224,8 +227,6 @@ - - diff --git a/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxss b/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxss index 285e87c..5b14529 100644 --- a/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxss +++ b/miniprogram/subpages/checkIn/pages/checkIn/register/register.wxss @@ -38,13 +38,12 @@ page { justify-content: center; } .buttom_btn{ - position: fixed; + position: fixed; bottom: 0; - height: 120rpx; + height: 150rpx; background-color: #fff; width: 100%; display: flex; - justify-content: space-between; align-items: center; } .buttom_btn .back{ diff --git a/miniprogram/utils/config.js b/miniprogram/utils/config.js index f021151..5fe1c35 100644 --- a/miniprogram/utils/config.js +++ b/miniprogram/utils/config.js @@ -9,7 +9,7 @@ module.exports = { // 现在小程序的功能 主要走咱这边自己的接口,另外 党群服务中心、需求清单、问卷调查走产品的接口,所以导致接口半路径不同 function BASEURL() { return "https://epdc-shibei.elinkservice.cn/epdc-api/api/" // 正式环境 -// return "http://192.168.43.4:9094/epdc-api/api/" // 卢岩 +// return "http://localhost:10994/epdc-api/api/" } // 获取 党群服务中心、需求清单、问卷调查 等模块的半路径 function getProductionBaseUrl () { diff --git a/miniprogram/utils/partApi.js b/miniprogram/utils/partApi.js index 3ab85c4..0895e4a 100644 --- a/miniprogram/utils/partApi.js +++ b/miniprogram/utils/partApi.js @@ -31,7 +31,6 @@ function submitKnightpionner(para) { } //在职党员提交接口 function submitReportparty(para) { - console.log(para); if(para.id){ return fly.post("app-user/reportparty/update", para) }else {