1002884655 3 år sedan
förälder
incheckning
cb7081920a

+ 2
- 2
config/dev.js Visa fil

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"https://xlk.njyz.tech"',
7
-    HOST: '"https://xlj.newlandsh.com"',
6
+    HOST: '"https://xlk.njyz.tech"',
7
+    // HOST: '"https://xlj.newlandsh.com"',
8 8
     // HOST: '"http://127.0.0.1:8081"',
9 9
     WSS_HOST: '"wss://xlk.njyz.tech"',
10 10
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',

+ 1
- 1
project.config.json Visa fil

@@ -27,7 +27,7 @@
27 27
 			"outputPath": ""
28 28
 		},
29 29
 		"useIsolateContext": true,
30
-		"useCompilerModule": true,
30
+		"useCompilerModule": false,
31 31
 		"userConfirmedUseCompilerModuleSwitch": false
32 32
 	},
33 33
 	"compileType": "miniprogram",

+ 16
- 0
src/components/ChatIcon/index.jsx Visa fil

@@ -0,0 +1,16 @@
1
+import { useEffect, useState } from 'react'
2
+import Taro from '@tarojs/taro'
3
+import { MovableArea, MovableView } from '@tarojs/components'
4
+import './style.scss'
5
+
6
+export default function ChatIcon(props) {
7
+
8
+  const [PageX] = useState(Taro.getSystemInfoSync().windowWidth - 20)
9
+  const [PageY] = useState(Taro.getSystemInfoSync().windowHeight - 20)
10
+
11
+  return (
12
+    <MovableArea className='components ChatIcon'>
13
+      <MovableView className='MoveItem' x={PageX} y={PageY} direction='all'>text</MovableView>
14
+    </MovableArea>
15
+  )
16
+}

+ 17
- 0
src/components/ChatIcon/style.scss Visa fil

@@ -0,0 +1,17 @@
1
+.components.ChatIcon {
2
+  width: 100%;
3
+  position: fixed;
4
+  left: 0;
5
+  top: 0;
6
+  bottom: 0;
7
+  z-index: 1000;
8
+  height: 100vh;
9
+  pointer-events: none;
10
+  >.MoveItem {
11
+    width: 100px;
12
+    height: 100px;
13
+    border-radius: 100%;
14
+    background: red;
15
+    pointer-events: auto;
16
+  }
17
+}

+ 2
- 0
src/pages/index/index.jsx Visa fil

@@ -9,6 +9,7 @@ import { fetch } from '@/utils/request'
9 9
 import { API_BANNER_LIST, API_INDEX_PROJECTS } from '@/constants/api'
10 10
 import useParams from '@/utils/hooks/useParams'
11 11
 import useShare from '@/utils/hooks/useShare'
12
+import ChatIcon from '@/components/ChatIcon/index'
12 13
 import Location from './components/Location/index'
13 14
 import Banner from './components/Banner/index'
14 15
 import Menu from './components/Menu/index'
@@ -64,6 +65,7 @@ export default withLayout((props) => {
64 65
 
65 66
   return (
66 67
     <view className='Page Index'>
68
+      <ChatIcon></ChatIcon>
67 69
       {/* <ShareToCircle visible></ShareToCircle> */}
68 70
       <ScrollView scroll-y>
69 71
         <view className='PageContent'>