张延森 před 5 roky
rodič
revize
063c6de691

+ 2
- 2
config/dev.js Zobrazit soubor

@@ -9,8 +9,8 @@ module.exports = {
9 9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    HOST: '"http://192.168.0.84:8080"',
13
-    WSS_HOST: '"ws://192.168.0.84:8080"',
12
+    HOST: '"http://127.0.0.1:8080"',
13
+    WSS_HOST: '"ws://127.0.0.1:8080"',
14 14
   },
15 15
   weapp: {},
16 16
   h5: {}

+ 1
- 1
project.config.json Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 {
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4
-	"description": "dev环境",
4
+	"description": "知与行",
5 5
 	"appid": "wxd9ee3a9480a4e544",
6 6
 	"setting": {
7 7
 		"urlCheck": false,

+ 1
- 1
src/pages/activity/assemblePage.js Zobrazit soubor

@@ -37,7 +37,7 @@ export default class Index extends Component {
37 37
   }
38 38
   componentWillUnmount() {
39 39
     const { recordId } = this.state
40
-    updatePoint(recordId)
40
+    recordId && updatePoint(recordId)
41 41
   }
42 42
 
43 43
   loadList(pageNumber) {

+ 1
- 1
src/pages/activity/assistancePage.js Zobrazit soubor

@@ -37,7 +37,7 @@ export default class Index extends Component {
37 37
   }
38 38
   componentWillUnmount() {
39 39
     const { recordId } = this.state
40
-    updatePoint(recordId)
40
+    recordId && updatePoint(recordId)
41 41
   }
42 42
 
43 43
   loadList(pageNumber) {

+ 2
- 1
src/pages/activity/detail/assemble.js Zobrazit soubor

@@ -161,6 +161,7 @@ export default class Detail extends Component {
161 161
   // 打开关闭海报面板
162 162
   togglePosterVisible = () => {
163 163
     const { posterVisible, posters } = this.state
164
+    debugger
164 165
 
165 166
     if (!posters || !posters.length) {
166 167
       Taro.showToast({
@@ -434,7 +435,7 @@ export default class Detail extends Component {
434 435
 
435 436
     return new Promise((resolve) => {
436 437
       getMiniQrcode(payload).then(qrCode => {
437
-        this.setState({ qrCode, posterVisible: true }, resolve)
438
+        this.setState({ qrCode }, resolve)
438 439
       })
439 440
     })
440 441
   }

+ 1
- 1
src/pages/activity/myActivity.js Zobrazit soubor

@@ -41,7 +41,7 @@ export default class Index extends Component {
41 41
   }
42 42
   componentWillUnmount() {
43 43
     const { recordId } = this.state
44
-    updatePoint(recordId)
44
+    recordId && updatePoint(recordId)
45 45
 
46 46
     this.loadList(1)
47 47
 

+ 1
- 1
src/pages/agent/client/index.js Zobrazit soubor

@@ -37,7 +37,7 @@ export default class Index extends Component {
37 37
 
38 38
   componentWillUnmount() {
39 39
     const { recordId } = this.state
40
-    updatePoint(recordId)
40
+    recordId && updatePoint(recordId)
41 41
   }
42 42
   componentDidMount() {
43 43
     this.loadList()

+ 1
- 1
src/pages/agent/progress/index.js Zobrazit soubor

@@ -62,7 +62,7 @@ export default class Index extends Component {
62 62
   }
63 63
   componentWillUnmount(){
64 64
     const { recordId } = this.state
65
-    updatePoint(recordId)
65
+    recordId && updatePoint(recordId)
66 66
   }
67 67
   loadList() {
68 68
     var that = this;

+ 1
- 1
src/pages/agent/recommend/index.js Zobrazit soubor

@@ -101,7 +101,7 @@ export default class Index extends Component {
101 101
   }
102 102
   componentWillUnmount() {
103 103
     const { recordId } = this.state
104
-    updatePoint(recordId)
104
+    recordId && updatePoint(recordId)
105 105
   }
106 106
 
107 107
   loadData() {

+ 1
- 1
src/pages/card/fans/index.js Zobrazit soubor

@@ -62,7 +62,7 @@ export default class Index extends Component {
62 62
   }
63 63
   componentWillUnmount(){
64 64
     const { recordId } = this.state
65
-    updatePoint(recordId).then(res=>{})
65
+    recordId && updatePoint(recordId)
66 66
   }
67 67
   onPullDownRefresh = async (rest) => {
68 68
     const { records: list, total } = await this.loadList(1);

+ 1
- 1
src/pages/card/list/index.js Zobrazit soubor

@@ -35,7 +35,7 @@ export default class Index extends Component {
35 35
   }
36 36
   componentWillUnmount() {
37 37
     const { recordId } = this.state
38
-    updatePoint(recordId).then(res => { })
38
+    recordId && updatePoint(recordId)
39 39
   }
40 40
 
41 41
   getPhoneNumber(e, item) {

+ 2
- 1
src/pages/im/index.js Zobrazit soubor

@@ -200,7 +200,7 @@ export default class Chat extends Component {
200 200
   componentWillUnmount() {
201 201
     // socket.closeSocket()
202 202
     const { recordId } = this.state
203
-    updatePoint(recordId)
203
+    recordId && updatePoint(recordId)
204 204
   }
205 205
   // createSocket() {
206 206
   //   const { userInfo: { person: { personId } } } = this.props
@@ -332,6 +332,7 @@ export default class Chat extends Component {
332 332
   }
333 333
 
334 334
   bindAlbumClick(e) {
335
+    debugger
335 336
     e.stopPropagation()
336 337
     Taro.chooseImage({
337 338
       count: 1,

+ 1
- 1
src/pages/news/index.js Zobrazit soubor

@@ -39,7 +39,7 @@ export default class Index extends Component {
39 39
 
40 40
   componentWillUnmount() {
41 41
     const { recordId } = this.state
42
-    updatePoint(recordId)
42
+    recordId && updatePoint(recordId)
43 43
   }
44 44
   componentDidShow(){
45 45
     this.onPullDownRefresh()

+ 1
- 1
src/pages/project/album/index.js Zobrazit soubor

@@ -38,7 +38,7 @@ export default class Index extends Component {
38 38
   }
39 39
   componentWillUnmount() {
40 40
     const { recordId } = this.state
41
-    updatePoint(recordId).then(res => { })
41
+    recordId && updatePoint(recordId)
42 42
   }
43 43
   // 图片预览
44 44
   previewImage(cur, urls) {

+ 1
- 1
src/pages/project/list/index.js Zobrazit soubor

@@ -41,7 +41,7 @@ export default class Index extends Component {
41 41
 
42 42
   componentWillUnmount() {
43 43
     const { recordId } = this.state
44
-    updatePoint(recordId)
44
+    recordId && updatePoint(recordId)
45 45
   }
46 46
 
47 47
   componentDidShow() {

+ 1
- 1
src/pages/toolKit/index.js Zobrazit soubor

@@ -37,7 +37,7 @@ export default class Index extends Component {
37 37
   }
38 38
   componentWillUnmount(){
39 39
     const { recordId } = this.state
40
-    updatePoint(recordId).then(res=>{})
40
+    recordId && updatePoint(recordId)
41 41
   }
42 42
 	onChange = e => {
43 43
 		this.setState({