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 | 37 | import * as commonFunc from '../../components/Common/commonFunc'; |
| 38 | 38 | // import AppUtil from '../../utils/AppUtil'; |
| 39 | 39 | import * as commonBusiness from "../../components/Common/commonBusiness"; |
| 40 | +import commonConfig from '@/utils/config'; | |
| 40 | 41 | |
| 41 | 42 | // eslint-disable-next-line prefer-destructuring |
| 42 | 43 | const alert = Modal.alert; |
| ... | ... | @@ -359,13 +360,15 @@ class IndexMobile extends React.Component { |
| 359 | 360 | badge={msgObj.iCount || 0} |
| 360 | 361 | onPress={() => { |
| 361 | 362 | const { app } = this.props; |
| 362 | - const { token } = app; | |
| 363 | + const { token , userinfo} = app; | |
| 364 | + const {sBrandsId,sSubsidiaryId,sUserName} = userinfo || {} | |
| 363 | 365 | commonBusiness.clearSocketData({ token, value: {}, sModelsId: 100 }); |
| 364 | 366 | this.setState({ |
| 365 | 367 | selectedTab: "message", |
| 366 | 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 | 373 | data-seed="logId" |
| 371 | 374 | > | ... | ... |