1007395918@qq.com před 5 roky
rodič
revize
4a2ccbab69

+ 1
- 1
src/onlineSelling/pages/live/index.js Zobrazit soubor

@@ -22,7 +22,7 @@ import './index.scss'
22 22
 @connect(s => s.user)
23 23
 export default class HouseList extends Component {
24 24
   config = {
25
-    navigationBarTitleText: '房源',
25
+    navigationBarTitleText: '直播活动详情',
26 26
   }
27 27
   state = {
28 28
     showShareMenu: false,

+ 11
- 6
src/pages/activity/index.js Zobrazit soubor

@@ -37,13 +37,13 @@ export default class Index extends Component {
37 37
       console.log('活动列表')
38 38
     })
39 39
   }
40
- 
41
-  componentDidShow () {
40
+
41
+  componentDidShow() {
42 42
     // // this.onPullDownRefresh()
43 43
     // console.log('----', this)
44 44
     this.loadData(1)
45 45
   }
46
-  
46
+
47 47
   componentWillUnmount() {
48 48
     const { recordId } = this.state
49 49
     recordId && updatePoint(recordId)
@@ -82,6 +82,11 @@ export default class Index extends Component {
82 82
           url: '/pages/activity/detail/assemble?id=' + item.id
83 83
         })
84 84
         return
85
+      case 'live':
86
+        Taro.navigateTo({
87
+          url: '/onlineSelling/pages/live/index?id=' + item.id
88
+        })
89
+        return;
85 90
       default:
86 91
         Taro.navigateTo({
87 92
           url: '/pages/activity/detail/index?id=' + item.id
@@ -99,7 +104,7 @@ export default class Index extends Component {
99 104
 
100 105
     // debugger
101 106
     rest && rest()
102
-    
107
+
103 108
     this.refreshing = false
104 109
   }
105 110
 
@@ -111,9 +116,9 @@ export default class Index extends Component {
111 116
 
112 117
   loadData = (page) => {
113 118
     this.loadList(page).then(res => {
114
-      const {records, list, total, current, pages} = res || {}
119
+      const { records, list, total, current, pages } = res || {}
115 120
       const _list = records || list || []
116
-      const newList = current <= 1 ? _list: this.state.list.concat(_list)
121
+      const newList = current <= 1 ? _list : this.state.list.concat(_list)
117 122
 
118 123
       this.setState({
119 124
         list: newList,

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

@@ -1134,6 +1134,11 @@ export default class Index extends Component {
1134 1134
       </Block>
1135 1135
     )
1136 1136
   }
1137
+  handleLiveClick(item) {
1138
+    Taro.navigateTo({
1139
+      url: '/onlineSelling/pages/live/index?id=' + item.id
1140
+    })
1141
+  }
1137 1142
   renderLive() {
1138 1143
     const { projectDetail: { salesBatch = [] } } = this.props
1139 1144
     return (
@@ -1147,7 +1152,7 @@ export default class Index extends Component {
1147 1152
                 style={{ height: '250rpx' }}
1148 1153
                 indicatorDots={false}
1149 1154
                 list={salesBatch}
1150
-                onClick={this.handleGroupClick}>
1155
+                onClick={this.handleLiveClick}>
1151 1156
               </HelpGroupBanner>
1152 1157
             </View>
1153 1158
           </View>

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

@@ -66,7 +66,7 @@ export default class Index extends Component {
66 66
 
67 67
     ready.queue(() => {
68 68
 
69
-      Taro.setNavigationBarTitle({ title: `${this.props.userInfo.miniApp.name}欢迎你`})
69
+      Taro.setNavigationBarTitle({ title: `${this.props.userInfo.miniApp.name}欢迎你` })
70 70
       const city = this.state.city || this.props.curCity
71 71
       this.loadData({ curCity: city })
72 72
 
@@ -409,6 +409,12 @@ export default class Index extends Component {
409 409
           url: '/pages/project/h5Page?id=' + targetId
410 410
         })
411 411
         return;
412
+      // live
413
+      case 'live':
414
+        Taro.navigateTo({
415
+          url: '/onlineSelling/pages/live/index?id=' + targetId
416
+        })
417
+        return;
412 418
 
413 419
       // 其他
414 420
       case 'others':

+ 6
- 0
src/pages/shop/index.js Zobrazit soubor

@@ -262,6 +262,12 @@ export default class Shop extends Component {
262 262
           url: '/pages/project/h5Page?id=' + targetId
263 263
         })
264 264
         return;
265
+      // live
266
+      case 'live':
267
+        Taro.navigateTo({
268
+          url: '/onlineSelling/pages/live/index?id=' + item.id
269
+        })
270
+        return;
265 271
 
266 272
       // 其他
267 273
       case 'others':