|
@@ -15,7 +15,7 @@ import PublicContent from "./publicContent";
|
|
import Result from "./result";
|
|
import Result from "./result";
|
|
|
|
|
|
import "./index.less";
|
|
import "./index.less";
|
|
-import Taro from "@tarojs/taro";
|
|
|
|
|
|
+import Taro, { getCurrentInstance } from "@tarojs/taro";
|
|
import MessageNoticebar from "../../components/common/messageNoticebar";
|
|
import MessageNoticebar from "../../components/common/messageNoticebar";
|
|
import InterviewCustomer from "../../pages/interview/index"
|
|
import InterviewCustomer from "../../pages/interview/index"
|
|
|
|
|
|
@@ -42,6 +42,9 @@ const items = [
|
|
})
|
|
})
|
|
)
|
|
)
|
|
class ApplyDepart extends Component {
|
|
class ApplyDepart extends Component {
|
|
|
|
+
|
|
|
|
+ $instance = getCurrentInstance();
|
|
|
|
+
|
|
constructor(props) {
|
|
constructor(props) {
|
|
super(props);
|
|
super(props);
|
|
this.state = {
|
|
this.state = {
|
|
@@ -67,6 +70,22 @@ class ApplyDepart extends Component {
|
|
}
|
|
}
|
|
|
|
|
|
componentDidShow() {
|
|
componentDidShow() {
|
|
|
|
+ const publicInfo = Taro.getStorageSync('publicInfo');
|
|
|
|
+ if (!!publicInfo) {
|
|
|
|
+ const { type, customerList } = publicInfo;
|
|
|
|
+ const ids = customerList.map(item => item.id).join(',');
|
|
|
|
+ const names = customerList.map(item => item.name).join(',');
|
|
|
|
+ this.setState({
|
|
|
|
+ type,
|
|
|
|
+ interviewCustomerList: type === 0 ? customerList : [],
|
|
|
|
+ interviewIdx: 0,
|
|
|
|
+ current: 1,
|
|
|
|
+ enterpriseInfor: { type, id: ids, name: names }
|
|
|
|
+ }, () => {
|
|
|
|
+ Taro.removeStorageSync('publicInfo');
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
Taro.eventCenter.on("enterprise", (arg) => {
|
|
Taro.eventCenter.on("enterprise", (arg) => {
|
|
arg.type = this.state.type;
|
|
arg.type = this.state.type;
|
|
// 跳转
|
|
// 跳转
|
|
@@ -118,8 +137,6 @@ class ApplyDepart extends Component {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- componentDidMount() { }
|
|
|
|
-
|
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
if (this.state.current === 0) {
|
|
if (this.state.current === 0) {
|
|
Taro.eventCenter.trigger("applyDepartSearchList");
|
|
Taro.eventCenter.trigger("applyDepartSearchList");
|