index.tsx 751 B

123456789101112131415161718192021222324252627
  1. import React from 'react'
  2. import styles from './index.module.scss'
  3. import { baseURL, isPc, otherUrl } from '@/utils/http'
  4. import history from '@/utils/history'
  5. const url = isPc
  6. ? 'unity/HeNanMuseum-pc/ManorScene/index.html'
  7. : 'unity/HeNanMuseum-mobile/ManorScene/index.html'
  8. function C2unityEnd() {
  9. return (
  10. <div className={styles.C2unityEnd}>
  11. <iframe title='陶庄园' src={otherUrl + url} frameBorder='0'></iframe>
  12. {/* 返回按钮 */}
  13. <div
  14. style={{ backgroundImage: `url(${baseURL}chef/back23.png)` }}
  15. className='unityBack hoverD'
  16. title='返回'
  17. onClick={() => history.go(-1)}
  18. ></div>
  19. </div>
  20. )
  21. }
  22. const MemoC2unityEnd = React.memo(C2unityEnd)
  23. export default MemoC2unityEnd