Explorar el Código

完成签到 优化面试登记

wangxin hace 5 años
padre
commit
07ddae6891

+ 1 - 0
api/api.js

@@ -74,6 +74,7 @@ const url = {
   saveHpUserLog: '/f/api/hpComplaintAdvice/saveHpUserLog',//保存日志
   logout_new: '/f/api/login/logout_new',//注销账户
   getCompanyStatus: '/f/api/hpinterview/getCompanyStatus',//面试登记获取企业状态
+  getIntentCompany:'/f/api/qdCheckIns/getIntentCompany', // 查询用户是否签到并在用户未签到情况下返回意向企业
   /** +++++++++++++++++++++++++++  废弃接口 ++++++++++++++++++++++++++++++++++++++ */
   // userLogin: '/wxAppletsLogin/wxVoteLogin', // post ,根据微信CODE获取微信用户信息
   // userLogin: '/f/api/wxAppletsLogin/decodeUserInfo',

+ 7 - 1
components/phone-input/phone-input.js

@@ -27,6 +27,7 @@ Component({
 		imgServerUrl: imgServerUrl,
 		iphone: '', // 电话号码
 		disabled: false, //样式控制
+		focus: true
 	},
 
 	/**
@@ -46,7 +47,8 @@ Component({
 				if (disabled) {
 					this.setData({
 						iphone: e.detail.value,
-						disabled
+						disabled,
+						focus: false
 					})
 				} else {
 					wx.showToast({
@@ -54,6 +56,10 @@ Component({
 						title: '号码格式错误',
 					})
 				}
+			} else {
+				this.setData({
+					disabled: false
+				})
 			}
 		},
 		// 发送验证码

+ 1 - 1
components/phone-input/phone-input.wxml

@@ -4,7 +4,7 @@
 	<view class="header">
 		<view class="title">{{title}}</view>
 		<view class='inputphone'>
-			<input class='inputphone-input' value="{{ iphone }}" type="number" placeholder="请输入手机号码" placeholder-style="color:#ccc" maxlength='11' bindinput="bindPhoneInput" />
+			<input class='inputphone-input' value="{{ iphone }}" focus='{{focus}}' type="number" placeholder="请输入手机号码" placeholder-style="color:#ccc" maxlength='11' bindinput="bindPhoneInput" />
 			<view class="clear" bindtap="clear">
 				<image src="/images/happyjob/clear_login.png" class="clear-image"></image>
 			</view>

+ 8 - 8
config/config.js

@@ -1,13 +1,13 @@
 // 测试服
-// const apiUrl = "https://kf.hap-job.com/happyjob"
-// const rootUrl = "https://kf.hap-job.com"
-// const imgServerUrl = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina"//静态资源图片服务器地址
-// const imgServerUrl_new = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com"//图片服务器地址
+const apiUrl = "https://kf.hap-job.com/happyjob"
+const rootUrl = "https://kf.hap-job.com"
+const imgServerUrl = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina"//静态资源图片服务器地址
+const imgServerUrl_new = "https://hpjobtest.oss-cn-shanghai.aliyuncs.com"//图片服务器地址
 // 正式服
-const apiUrl = "https://web.hap-job.com/happyjob"
-const rootUrl = "https://web.hap-job.com"
-const imgServerUrl = "https://happyjob.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina" //图片服务器地址
-const imgServerUrl_new = "https://happyjob.oss-cn-shanghai.aliyuncs.com" //图片服务器地址
+// const apiUrl = "https://web.hap-job.com/happyjob"
+// const rootUrl = "https://web.hap-job.com"
+// const imgServerUrl = "https://happyjob.oss-cn-shanghai.aliyuncs.com/uploadfiles/mina" //图片服务器地址
+// const imgServerUrl_new = "https://happyjob.oss-cn-shanghai.aliyuncs.com" //图片服务器地址
 
 module.exports = {
   apiUrl,

+ 11 - 0
pages/bind-phone/index.js

@@ -46,6 +46,17 @@ Page({
   },
   // 导航至验证码页面
   toSend(e) {
+    // wx.showModal({
+    //   title: '提示',
+    //   content: '是否立即获取短信验证码?',
+    //   success: res => {
+    //     if (res.confirm) {
+    //       wx.navigateTo({
+    //         url: `/pages/bind-phone/bind?phone=${e.detail.phone}`,
+    //       })
+    //     }
+    //   }
+    // })
     wx.navigateTo({
       url: `/pages/bind-phone/bind?phone=${e.detail.phone}`,
     })

+ 3 - 2
pages/detail/index.wxss

@@ -6,7 +6,7 @@ page {
 }
 
 .panel-header {
-  height: 170rpx;
+  /* height: 170rpx; */
   background: #fff;
   display: flex;
   flex-direction: column;
@@ -29,7 +29,8 @@ page {
   /* font-weight: 400; */
   display: flex;
   align-items: center;
-  height: 100%;
+  padding: 5rpx 0;
+  /* height: 100%; */
 }
 
 

+ 2 - 1
pages/interview-registration/index.js

@@ -31,6 +31,7 @@ Page({
 					url = url + `&&user_token=${user_token}`
 					url = url + `&&user_id=${user_id}`
 					url = url + `&&member_id=${member_id}`
+					url = url + `&&hpInterviewRegisterStatus=${Boolean(data.data.hpInterviewRegister)}`
 					this.setData({
 						url,
 						show: true
@@ -55,7 +56,7 @@ Page({
 			wx.showModal({
 				title: '提示',
 				confirmText: '确定',
-				content: '请先登录',
+				content: '你还未登录,请立即登录',
 				showCancel: false,
 				success: res => {
 					if (res.confirm) {

+ 1 - 0
pages/login/login.js

@@ -88,6 +88,7 @@ Page({
                   })
                   setTimeout(function () {
                     wx.navigateBack({
+                      delta: 1,
                       fail: () => {
                         wx.switchTab({
                           url: '/pages/index/index',

+ 0 - 2
pages/mine/index.wxml

@@ -28,9 +28,7 @@
 	</view>
 
 	<view class='notrz' wx:if="{{approveStatus!=3 && isLogin}}" bindtap="toAuth">
-		<!-- <image src='{{imgServerUrl}}/images/happyjob/renzheng.png'></image> -->
 		<text class='rz'>您还未经过实名认证,认证后简历可以获得更多曝光,点击认证 >></text>
-		<!-- <text class='ly'>认证一下呗,可以优先录用哦~</text> -->
 	</view>
 
 	<view class='inter'>

+ 28 - 5
project.config.json

@@ -13,7 +13,7 @@
 		]
 	},
 	"setting": {
-		"urlCheck": true,
+		"urlCheck": false,
 		"es6": true,
 		"enhance": true,
 		"postcss": true,
@@ -23,23 +23,25 @@
 		"coverView": true,
 		"autoAudits": true,
 		"showShadowRootInWxmlPanel": true,
-		"scopeDataCheck": true,
+		"scopeDataCheck": false,
 		"uglifyFileName": true,
 		"checkInvalidKey": true,
 		"checkSiteMap": true,
 		"uploadWithSourceMap": true,
+		"compileHotReLoad": false,
 		"babelSetting": {
 			"ignore": [],
 			"disablePlugins": [],
 			"outputPath": ""
 		},
 		"bundle": true,
+		"useIsolateContext": true,
 		"useCompilerModule": true,
-		"userConfirmedUseCompilerModuleSwitch": false
+		"userConfirmedUseCompilerModuleSwitch": true
 	},
 	"compileType": "miniprogram",
-	"libVersion": "2.10.2",
-	"appid": "wx1e8ed93850777ffb",
+	"libVersion": "2.8.3",
+	"appid": "wx5ae6908ae55edcb7",
 	"projectname": "kaixin",
 	"debugOptions": {
 		"hidedInDevtools": []
@@ -343,6 +345,27 @@
 					"pathName": "pages/expense/pages/return-fee/detail",
 					"query": "hpUserResumeId=56629&index=0",
 					"scene": null
+				},
+				{
+					"id": 39,
+					"name": "人才交流签到",
+					"pathName": "pages/web-view/web-view",
+					"query": "url=http://192.168.1.96:8082/talent_exchange/index",
+					"scene": null
+				},
+				{
+					"id": 40,
+					"name": "面试登记",
+					"pathName": "pages/interview-registration/index",
+					"query": "url=http://192.168.1.122:8082/interview/xiapu&&registerCompanyId=1",
+					"scene": null
+				},
+				{
+					"id": -1,
+					"name": "身份认证",
+					"pathName": "pages/identification/index",
+					"query": "",
+					"scene": null
 				}
 			]
 		}

+ 8 - 0
services/index.js

@@ -567,6 +567,14 @@ module.exports = {
       header: {}
     })
   },
+  getIntentCompany(params){
+    return http({
+      url: url.getIntentCompany,
+      data: params,
+      method: 'GET',
+      header: {}
+    })
+  },
   /**************************废弃接口**************************** */
   //post 用户简历:用户教育背景编辑、新增
   resumeEdu(params) {

+ 19 - 8
utils/http.js

@@ -142,14 +142,25 @@ const http = (params) => {
             //后台接口异常
           } else if (errorCode == 2010) {
             //用户未登录
-            const _type = pages.length === 1 ? 'reLaunch' : 'navigateTo';
-            wx[_type]({
-              url: '/pages/login/login',
-              success: data => {
-                wx.showToast({
-                  icon: 'none',
-                  title: '请先登录',
-                })
+            wx.showModal({
+              title: '提示',
+              content: '请先登录',
+              success: res => {
+                if (res.confirm) {
+                  wx.navigateTo({
+                    url: '/pages/login/login',
+                  })
+                }
+                if (res.cancel) {
+                  wx.navigateBack({
+                    delta: 1,
+                    fail: res => {
+                      wx.switchTab({
+                        url: '/pages/index/index',
+                      })
+                    }
+                  })
+                }
               }
             })
             return