xujing пре 5 година
родитељ
комит
2efa65d7ef

+ 4
- 4
config/prod.js Прегледај датотеку

@@ -3,10 +3,10 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"https://dev.fangdeal.cn"', //测试
7
-    // WSS_HOST: '"wss://dev.fangdeal.cn"',
8
-    HOST: '"https://wx.fangdeal.cn"', //正式
9
-    WSS_HOST: '"wss://wx.fangdeal.cn"',
6
+    HOST: '"https://dev.fangdeal.cn"', //测试
7
+    WSS_HOST: '"wss://dev.fangdeal.cn"',
8
+    // HOST: '"https://wx.fangdeal.cn"', //正式
9
+    // WSS_HOST: '"wss://wx.fangdeal.cn"',
10 10
     OSS_PATH: "https://njcj.oss-cn-shanghai.aliyuncs.com/",
11 11
     OSS_FAST_PATH: "https://njcj.oss-accelerate.aliyuncs.com/",
12 12
     Version: "V3.5.28"

+ 2
- 0
src/app.js Прегледај датотеку

@@ -234,6 +234,8 @@ class App extends Component {
234 234
           Taro.removeStorageSync('buildingPageIndex')
235 235
           Taro.removeStorageSync('followPageIndex')
236 236
           Taro.removeStorageSync('clinchPageIndex')
237
+          // Taro.removeStorageSync('extendContent')
238
+          Taro.setStorageSync('extendContent', [])
237 239
           // 获取分享人
238 240
           Taro.setStorageSync('recommender', payload.recommender)
239 241
           Taro.setStorageSync('consultantId', payload.consultant)

+ 9
- 9
src/components/Poster/index.js Прегледај датотеку

@@ -115,15 +115,15 @@ export default class Poster extends Component {
115 115
           </View>
116 116
           <View className="con-body">
117 117
             <Swiper className="preview-box" onChange={this.onScroll} >
118
-            {
119
-              done && images.map((img, inx) => {
120
-                return (
121
-                  <SwiperItem key={`img-${inx}`}>
122
-                    <Image className="result-img" mode="aspectFit" lazy-load src={img} onClick={this.onPreview}></Image>
123
-                  </SwiperItem>
124
-                )
125
-              })
126
-            }
118
+              {
119
+                done && images.map((img, inx) => {
120
+                  return (
121
+                    <SwiperItem key={`img-${inx}`} style=" text-align: center;">
122
+                      <Image className="result-img" mode="aspectFit" lazy-load src={img} onClick={this.onPreview}></Image>
123
+                    </SwiperItem>
124
+                  )
125
+                })
126
+              }
127 127
             </Swiper>
128 128
           </View>
129 129
           <Button className="save-btn" onClick={this.saveToAlbum}>保存海报</Button>

+ 1
- 1
src/pages/activity/detail/assemble.js Прегледај датотеку

@@ -734,7 +734,7 @@ export default class Detail extends Component {
734 734
                 <Image mode="widthFix" src={transferImage(detail.mainImg)} className="detail-banner__img"></Image>
735 735
 
736 736
                 <View className="rest-time">
737
-                  <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
737
+                  <Text className="row-label" style={actState === ActBeforeStart || actState === ActInProcess ? 'margin-right: 8px;' : ''}>{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
738 738
                   <Text className="row-text">{actState != ActFinished ? formateLeftTime(leftTime) : '活动已结束'}</Text>
739 739
                 </View>
740 740
                 {detail.successNum > 0 &&

+ 1
- 1
src/pages/activity/detail/assistance.js Прегледај датотеку

@@ -715,7 +715,7 @@ export default class Detail extends Component {
715 715
                 <Image mode="aspectFill" src={transferImage(detail.img)} className="detail-banner__img"></Image>
716 716
 
717 717
                 <View className="rest-time">
718
-                  <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
718
+                  <Text className="row-label" style={actState === ActBeforeStart || actState === ActInProcess ? 'margin-right: 8px;' : ''}>{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
719 719
                   <Text className="row-text">{actState != ActFinished ? formateLeftTime(leftTime) : '活动已结束'}</Text>
720 720
                 </View>
721 721
                 {detail.successNum > 0 &&

+ 2
- 2
src/pages/activity/detail/index.scss Прегледај датотеку

@@ -39,13 +39,13 @@
39 39
     padding: 10px 36px;
40 40
     font-size: 30px;
41 41
     border-radius: 0 12px 0 0 ;
42
+    line-height: 1.2;
42 43
     .row-label{
43 44
       color:#666;
44
-      margin-right: 10px;
45 45
     }
46 46
     .row-text{
47 47
       color: #FF245A;
48
-      min-width: 6em;
48
+      min-width: 5em;
49 49
       display: inline-block;
50 50
       white-space: nowrap;
51 51
     }

+ 1
- 0
src/pages/activity/detail/poster.scss Прегледај датотеку

@@ -42,6 +42,7 @@
42 42
       // background: #EAEAEA;
43 43
       border-radius: 10px;
44 44
       padding: 40px 0;
45
+      text-align: center;
45 46
 
46 47
       .result-img {
47 48
         height: 60vh;

+ 5
- 4
src/pages/card/index.js Прегледај датотеку

@@ -88,6 +88,11 @@ export default class Index extends Component {
88 88
           dispatchProjectDetail(buildingId)
89 89
         }
90 90
       })
91
+      this.getPosterData().then(posterData => {
92
+        this.setState({
93
+          posterData,
94
+        })
95
+      })
91 96
     }
92 97
   }
93 98
 
@@ -538,10 +543,6 @@ export default class Index extends Component {
538 543
   bindAlbumClick(e) {
539 544
 
540 545
     e.stopPropagation()
541
-
542
-    Taro.showLoading({
543
-      title: '加载中',
544
-    })
545 546
     Taro.chooseImage({
546 547
       count: 1,
547 548
       sizeType: ['original', 'compressed'],  //可选择原图或压缩后的图片

+ 9
- 2
src/pages/card/photo.js Прегледај датотеку

@@ -41,8 +41,15 @@ export default class Panorama extends Component {
41 41
     const photoUrl = this.$router.params.photoUrl || avatarImg
42 42
     const { userInfo: { person: { personId } } } = this.props
43 43
     updatePhoto({ photoUrl }).then(res => {
44
-      // Taro.navigateBack({ delta: 1 })
45
-      Taro.redirectTo({ url: `/pages/card/index?id=${personId}&loadInfo=need` })
44
+      Taro.showToast({
45
+        title: '保存成功',
46
+        icon: 'none',
47
+        duration: 1000
48
+      })
49
+      setTimeout(() => {
50
+        Taro.redirectTo({ url: `/pages/card/index?id=${personId}&loadInfo=need` })
51
+      }, 800)
52
+
46 53
     })
47 54
   }
48 55
 

+ 1
- 1
src/pages/news/detail/index.js Прегледај датотеку

@@ -378,7 +378,7 @@ export default class NewsDetail extends Component {
378 378
   }
379 379
   toProjectDetail = () => {
380 380
     const { projectDetail: { buildingId } } = this.props
381
-    this.navigateTo(`/pages/project/detail/index?id=${buildingId}`)
381
+    Taro.navigateTo({ url: `/pages/project/detail/index?id=${buildingId}` })
382 382
   }
383 383
   render() {
384 384
     const { webViewVisible, grantPhoneVisible, grantAvatarVisible, detail, loaded, isSaved, posterVisible, posterData, posterShow, consultData, consultShow } = this.state

+ 17
- 2
src/pages/project/detail/index.js Прегледај датотеку

@@ -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
       // 其他