Browse Source

【移动端】工资条弹窗bug

samhoo 4 years ago
parent
commit
1d6d9dff41

+ 5 - 5
uas-office-web/uas-mobile/src/configs/api.config.js

@@ -130,18 +130,18 @@ export const API = {
   /******************************工资条*************************************/
   //检查是否设置过查询密码
   CHECK_PASSWORD: _baseURL +
-    'mobile/salary/checkPassword.action',
+    '/mobile/salary/checkPassword.action',
   //设置查询密码
   CHANGE_PASSWORD: _baseURL +
-    'mobile/salary/changePassword.action',
+    '/mobile/salary/changePassword.action',
   //发送验证码
   SEND_VERIFICATIONCODE: _baseURL +
-    'mobile/salary/verificationCode.action',
+    '/mobile/salary/verificationCode.action',
   //查询工资条
   GET_SALARY: _baseURL +
-    'mobile/salary/getEmSalary.action',
+    '/mobile/salary/getEmSalary.action',
   //确认签收工资条
   CONFIRM_SALARYBACK: _baseURL +
-    'mobile/salary/salaryBackNoSignature.action',
+    '/mobile/salary/salaryBackNoSignature.action',
 
 }

+ 5 - 2
uas-office-web/uas-mobile/src/pages/private/salaryQuery/SalaryQuery.jsx

@@ -48,7 +48,7 @@ class SalaryQuery extends Component {
         clearSalaryState()
         document.title = '工资条'
         let { userState: { userCode, accountCode } } = this.props;
-        prompt('提示', '请先输入手机号码', [
+        this.promptAlert1 = prompt('提示', '请先输入手机号码', [
             {
                 text: '确定',
                 onPress: value => new Promise((resolve, reject) => {
@@ -93,6 +93,9 @@ class SalaryQuery extends Component {
     }
 
     componentWillUnmount() {
+        Toast.hide();
+        this.promptAlert1 && this.promptAlert1.close();
+        this.promptAlert2 && this.promptAlert2.close();
     }
 
     render() {
@@ -255,7 +258,7 @@ class SalaryQuery extends Component {
     setQueryCode = () => {
         let { phone } = this.state
         let { userState: { userCode, accountCode } } = this.props;
-        prompt('首次使用,请设置查询密码', null, [
+        this.promptAlert2 = prompt('首次使用,请设置查询密码', null, [
             {
                 text: '确定',
                 onPress: value => new Promise((resolve, reject) => {