|
@@ -347,10 +347,13 @@ export default class Index extends Component {
|
347
|
347
|
icon: 'loading'
|
348
|
348
|
})
|
349
|
349
|
dispatchProjectDetail(buildingId, { ...queryInfo }).then(res => {
|
350
|
|
- const maskVisible = (res.extendContent || []).length
|
|
350
|
+ const connectId = (res.extendContent || [])[0] ? (res.extendContent || [])[0].contentId : null
|
|
351
|
+ const extendContentList = Taro.getStorageSync('extendContent') || []
|
|
352
|
+ const maskVisible = extendContentList.length ? (res.extendContent || []).length && extendContentList.indexOf(connectId) == -1 : (res.extendContent || []).length
|
|
353
|
+ // debugger
|
351
|
354
|
this.setState({
|
352
|
355
|
loaded: true,
|
353
|
|
- maskVisible,
|
|
356
|
+ maskVisible: maskVisible,
|
354
|
357
|
extendContent: (res.extendContent || [])[0],
|
355
|
358
|
// circumOpts: newCircumOpts,
|
356
|
359
|
isSaved: res.isSave
|
|
@@ -360,6 +363,10 @@ export default class Index extends Component {
|
360
|
363
|
posterShow: 'flex'
|
361
|
364
|
})
|
362
|
365
|
}
|
|
366
|
+ if (connectId && extendContentList.indexOf(connectId) == -1) {
|
|
367
|
+ extendContentList.push(connectId)
|
|
368
|
+ Taro.setStorageSync('extendContent', extendContentList);
|
|
369
|
+ }
|
363
|
370
|
|
364
|
371
|
this._$_dataReady()
|
365
|
372
|
})
|
|
@@ -1528,6 +1535,7 @@ export default class Index extends Component {
|
1528
|
1535
|
Taro.navigateTo({
|
1529
|
1536
|
url: '/pages/project/detail/index?id=' + buildingId
|
1530
|
1537
|
})
|
|
1538
|
+ this.handleMaskClose()
|
1531
|
1539
|
return;
|
1532
|
1540
|
|
1533
|
1541
|
// 活动
|
|
@@ -1535,6 +1543,7 @@ export default class Index extends Component {
|
1535
|
1543
|
Taro.navigateTo({
|
1536
|
1544
|
url: '/pages/activity/detail/index?id=' + targetId
|
1537
|
1545
|
})
|
|
1546
|
+ this.handleMaskClose()
|
1538
|
1547
|
return;
|
1539
|
1548
|
|
1540
|
1549
|
// 助力
|
|
@@ -1542,6 +1551,7 @@ export default class Index extends Component {
|
1542
|
1551
|
Taro.navigateTo({
|
1543
|
1552
|
url: '/pages/activity/detail/assistance?id=' + targetId
|
1544
|
1553
|
})
|
|
1554
|
+ this.handleMaskClose()
|
1545
|
1555
|
return;
|
1546
|
1556
|
|
1547
|
1557
|
// 拼团
|
|
@@ -1549,6 +1559,7 @@ export default class Index extends Component {
|
1549
|
1559
|
Taro.navigateTo({
|
1550
|
1560
|
url: '/pages/activity/detail/assemble?id=' + targetId
|
1551
|
1561
|
})
|
|
1562
|
+ this.handleMaskClose()
|
1552
|
1563
|
return;
|
1553
|
1564
|
|
1554
|
1565
|
// 资讯
|
|
@@ -1556,24 +1567,28 @@ export default class Index extends Component {
|
1556
|
1567
|
Taro.navigateTo({
|
1557
|
1568
|
url: '/pages/news/detail/index?id=' + targetId
|
1558
|
1569
|
})
|
|
1570
|
+ this.handleMaskClose()
|
1559
|
1571
|
return;
|
1560
|
1572
|
// h5
|
1561
|
1573
|
case 'h5':
|
1562
|
1574
|
Taro.navigateTo({
|
1563
|
1575
|
url: '/pages/project/h5Page?id=' + targetId
|
1564
|
1576
|
})
|
|
1577
|
+ this.handleMaskClose()
|
1565
|
1578
|
return;
|
1566
|
1579
|
// live
|
1567
|
1580
|
case 'live':
|
1568
|
1581
|
Taro.navigateTo({
|
1569
|
1582
|
url: '/onlineSelling/pages/live/index?id=' + targetId
|
1570
|
1583
|
})
|
|
1584
|
+ this.handleMaskClose()
|
1571
|
1585
|
return;
|
1572
|
1586
|
// salesBatch
|
1573
|
1587
|
case 'salesBatch':
|
1574
|
1588
|
Taro.navigateTo({
|
1575
|
1589
|
url: `/onlineSelling/pages/houseList/index?id=${targetId}`
|
1576
|
1590
|
})
|
|
1591
|
+ this.handleMaskClose()
|
1577
|
1592
|
return;
|
1578
|
1593
|
|
1579
|
1594
|
// 其他
|