|
|
@@ -12,7 +12,7 @@ import {List, Icon, Skeleton, message} from 'antd'
|
|
|
import PhonesItem from "components/PhonesItem";
|
|
|
import PhonesBean from 'model/PhonesBean'
|
|
|
import {fetchGet, fetchPost} from "../../utils/fetchRequest";
|
|
|
-import {API} from "../../configs/api.config";
|
|
|
+import {_baseURL, API} from "../../configs/api.config";
|
|
|
import {Toast} from "antd-mobile";
|
|
|
import RefreshLayout from "../../components/RefreshLayout";
|
|
|
import {getStrValue} from "../../utils/common";
|
|
|
@@ -215,6 +215,7 @@ class PhonesSelect extends Component {
|
|
|
|
|
|
fetchPost(API.TEACHER_PHONES_LIST, {
|
|
|
teacherId: this.props.userInfo.user.userFunId,
|
|
|
+ selectKey: '',
|
|
|
pageIndex: mPageIndex,
|
|
|
pageSize: mPageSize
|
|
|
}).then(response => {
|
|
|
@@ -224,9 +225,10 @@ class PhonesSelect extends Component {
|
|
|
response.data.map((item, index) => {
|
|
|
let phoneBean = new PhonesBean()
|
|
|
phoneBean.icon = require('imgs/ic_head' + (index % 15 + 1) + '.png')
|
|
|
- phoneBean.name = getStrValue(item, 'userName')
|
|
|
+ phoneBean.icon = _baseURL + getStrValue(item,'teacherPhoto')
|
|
|
+ phoneBean.name = getStrValue(item, 'teacherName')
|
|
|
phoneBean.phone = [getStrValue(item, 'userPhone')]
|
|
|
- phoneBean.claName = getStrValue(item, 'schName')
|
|
|
+ // phoneBean.claName = getStrValue(item, 'schName')
|
|
|
phoneBean.children = ['']
|
|
|
|
|
|
teacherList.push(phoneBean)
|