Browse Source

share eventType

xujing 5 years ago
parent
commit
5fc9ef2adb

+ 4
- 4
config/dev.js View File

5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://47.101.36.130:8085"',//测试
6
     // HOST: '"http://47.101.36.130:8085"',//测试
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    HOST: '"https://dev.jinchengjiaye.com"',//测试
9
-    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
8
+    // HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
     // HOST: '"https://lt.pawoma.cn"',
10
     // HOST: '"https://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    // HOST: '"http://192.168.2.52:8080"',
13
-    // WSS_HOST: '"ws://192.168.2.52:8080"',
12
+    HOST: '"http://192.168.2.51:8080"',
13
+    WSS_HOST: '"ws://192.168.2.51:8080"',
14
     Version: 'V3.5.5'
14
     Version: 'V3.5.5'
15
   },
15
   },
16
   weapp: {},
16
   weapp: {},

+ 3
- 2
src/pages/person/myShare/accessRecord.js View File

46
   }
46
   }
47
   loadList(pageNumber) {
47
   loadList(pageNumber) {
48
     console.log(this.props, "this.props")
48
     console.log(this.props, "this.props")
49
-    const { targetId } = this.$router.params
49
+    const { targetId, eventType } = this.$router.params
50
     const { userInfo: { person } } = this.props
50
     const { userInfo: { person } } = this.props
51
     console.log(targetId)
51
     console.log(targetId)
52
     const payload = {
52
     const payload = {
53
       userId: person.userId,
53
       userId: person.userId,
54
-      targetId: targetId,
54
+      targetId,
55
+      eventType,
55
       pageNumber,
56
       pageNumber,
56
       pageSize: 10
57
       pageSize: 10
57
     }
58
     }

+ 5
- 5
src/pages/person/myShare/index.js View File

87
     this.refreshing = false
87
     this.refreshing = false
88
   }
88
   }
89
 
89
 
90
-  handleItemClick(targetId) {
90
+  handleItemClick(item) {
91
     Taro.navigateTo({
91
     Taro.navigateTo({
92
-      url: `/pages/person/myShare/accessRecord?targetId=` + targetId
92
+      url: `/pages/person/myShare/accessRecord?targetId=${item.targetId}&eventType=${item.eventType}` 
93
     })
93
     })
94
   }
94
   }
95
 
95
 
108
         <View className='share-page'>
108
         <View className='share-page'>
109
           {
109
           {
110
             recordList.map(item => (
110
             recordList.map(item => (
111
-              <View className="share-item" key={item.targetId + 'share'} onClick={this.handleItemClick.bind(this, item.targetId)}>
112
-                <Image className="img" src={transferImage(item.activityImg || emptyImg)}></Image>
111
+              <View className="share-item" key={item.targetId + 'share'} onClick={this.handleItemClick.bind(this, item)}>
112
+                <Image className="img" mode="aspectFill"  src={transferImage(item.activityImg || emptyImg)}></Image>
113
                 <View className={item.eventType == 'building' ? 'building' : 'name'}>{item.activityName || ''}</View>
113
                 <View className={item.eventType == 'building' ? 'building' : 'name'}>{item.activityName || ''}</View>
114
-                {item.eventType == 'building' && <View className="price"> {item.price ? '均价' + item.price + '元/m²' : '暂无'} </View>}
114
+                {item.eventType == 'building' && <View className="price"> {item.price ? '均价' + item.price + '元/m²' : '暂无均价'} </View>}
115
 
115
 
116
                 {item.eventType == 'h5' && <View className="num"> {item.drainageShareNum || '0'}人查看了分享 </View>}
116
                 {item.eventType == 'h5' && <View className="num"> {item.drainageShareNum || '0'}人查看了分享 </View>}
117
                 {item.eventType == 'building' && <View className="num"> {item.buildingNum || '0'}人查看了分享 </View>}
117
                 {item.eventType == 'building' && <View className="num"> {item.buildingNum || '0'}人查看了分享 </View>}

+ 2
- 0
src/pages/project/detail/index.js View File

108
   componentWillUnmount() {
108
   componentWillUnmount() {
109
     const { recordId } = this.state
109
     const { recordId } = this.state
110
     recordId && updatePoint(recordId)
110
     recordId && updatePoint(recordId)
111
+
112
+    Taro.setStorageSync('router', { query: {} })
111
   }
113
   }
112
 
114
 
113
   // 报备客户
115
   // 报备客户

+ 1
- 0
src/pages/project/list/filter/index.scss View File

80
     background: #F9F9F9;
80
     background: #F9F9F9;
81
 
81
 
82
     &-item {
82
     &-item {
83
+      // width: 33.33%;
83
       width: 25%;
84
       width: 25%;
84
       height: 100px;
85
       height: 100px;
85
       display: flex;
86
       display: flex;