Commit 9cb0f1da06a3fd05ce9caf60b2096a5d35078052
1 parent
c21835f8
平板消息栏跳转页面
Showing
1 changed file
with
5 additions
and
2 deletions
src/routes/mobile/IndexMobile.js
| @@ -37,6 +37,7 @@ import QuotationDetail from "./quotation/detail"; | @@ -37,6 +37,7 @@ import QuotationDetail from "./quotation/detail"; | ||
| 37 | import * as commonFunc from '../../components/Common/commonFunc'; | 37 | import * as commonFunc from '../../components/Common/commonFunc'; |
| 38 | // import AppUtil from '../../utils/AppUtil'; | 38 | // import AppUtil from '../../utils/AppUtil'; |
| 39 | import * as commonBusiness from "../../components/Common/commonBusiness"; | 39 | import * as commonBusiness from "../../components/Common/commonBusiness"; |
| 40 | +import commonConfig from '@/utils/config'; | ||
| 40 | 41 | ||
| 41 | // eslint-disable-next-line prefer-destructuring | 42 | // eslint-disable-next-line prefer-destructuring |
| 42 | const alert = Modal.alert; | 43 | const alert = Modal.alert; |
| @@ -359,13 +360,15 @@ class IndexMobile extends React.Component { | @@ -359,13 +360,15 @@ class IndexMobile extends React.Component { | ||
| 359 | badge={msgObj.iCount || 0} | 360 | badge={msgObj.iCount || 0} |
| 360 | onPress={() => { | 361 | onPress={() => { |
| 361 | const { app } = this.props; | 362 | const { app } = this.props; |
| 362 | - const { token } = app; | 363 | + const { token , userinfo} = app; |
| 364 | + const {sBrandsId,sSubsidiaryId,sUserName} = userinfo || {} | ||
| 363 | commonBusiness.clearSocketData({ token, value: {}, sModelsId: 100 }); | 365 | commonBusiness.clearSocketData({ token, value: {}, sModelsId: 100 }); |
| 364 | this.setState({ | 366 | this.setState({ |
| 365 | selectedTab: "message", | 367 | selectedTab: "message", |
| 366 | title: message, | 368 | title: message, |
| 367 | }); | 369 | }); |
| 368 | - history.push("/indexMobile"); | 370 | + const url = `${commonConfig.server_host}/phone/phoneMsgFlowDingTalk/${sBrandsId}/${sSubsidiaryId}/${sUserName}` |
| 371 | + history.push(url); | ||
| 369 | }} | 372 | }} |
| 370 | data-seed="logId" | 373 | data-seed="logId" |
| 371 | > | 374 | > |