浏览代码

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

张延森 5 年前
父节点
当前提交
f2820f98a0

+ 4
- 4
config/dev.js 查看文件

@@ -5,12 +5,12 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    HOST: '"https://dev.pawoma.cn"',//测试
9
-    WSS_HOST: '"wss://dev.pawoma.cn"',
8
+    // HOST: '"https://dev.pawoma.cn"',//测试
9
+    // WSS_HOST: '"wss://dev.pawoma.cn"',
10 10
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
11 11
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
12
-    // HOST: '"https://lt.pawoma.cn"',
13
-    // WSS_HOST: '"wss://lt.pawoma.cn"',
12
+    HOST: '"https://lt.pawoma.cn"',
13
+    WSS_HOST: '"wss://lt.pawoma.cn"',
14 14
     // HOST: '"http://127.0.0.1:8080"',
15 15
     // WSS_HOST: '"ws://127.0.0.1:8080"',
16 16
     Version: 'V3.5.10'

+ 4
- 4
config/prod.js 查看文件

@@ -7,10 +7,10 @@ module.exports = {
7 7
     // WSS_HOST: '"ws://192.168.2.54:8080"',
8 8
     // HOST: '"https://dev.jinchengjiaye.com"',//测试
9 9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
-    HOST: '"https://dev.pawoma.cn"',// 新测试
11
-    WSS_HOST: '"wss://dev.pawoma.cn"',
12
-    // HOST: '"https://lt.pawoma.cn"',
13
-    // WSS_HOST: '"wss://lt.pawoma.cn"',
10
+    // HOST: '"https://dev.pawoma.cn"',// 新测试
11
+    // WSS_HOST: '"wss://dev.pawoma.cn"',
12
+    HOST: '"https://lt.pawoma.cn"',
13
+    WSS_HOST: '"wss://lt.pawoma.cn"',
14 14
     Version: 'V3.5.10'
15 15
   },
16 16
   weapp: {},

+ 1
- 1
project.config.json 查看文件

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "知与行联调",
5
-	"appid": "wxd9ee3a9480a4e544",
5
+	"appid": "wxd6f47a9bb3052175",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 1
- 1
src/components/indexMenus/icons.js 查看文件

@@ -70,7 +70,7 @@ const menus = [
70 70
         switchTab: true,
71 71
     },
72 72
     {
73
-        name: '参活动',
73
+        name: '参活动',
74 74
         url: '/pages/activity/activity',
75 75
         icon: icons.activity,
76 76
         iconCode: 'Popularactivities',

+ 1
- 1
src/onlineSelling/components/HouseGrid/Room.js 查看文件

@@ -19,7 +19,7 @@ export default function Room(props) {
19 19
       {status == '1' && <View className="room" onClick={handleClick}>
20 20
         <View className="warn">{roomName || ''}</View>
21 21
         <View className="warn">{personNum || ''}</View>
22
-        <View className="info" style="white-space:nowrap;">{wanY}万元</View>
22
+        <View className="info" >{wanY}万元</View>
23 23
         <View className="info">{apartmentName || ''}</View>
24 24
       </View>}
25 25
 

+ 2
- 0
src/onlineSelling/components/HouseGrid/room.scss 查看文件

@@ -4,10 +4,12 @@
4 4
   padding: 20px 10px;
5 5
   font-size: 28px;
6 6
   line-height: 1.4em;
7
+  height: 192px;
7 8
   overflow: hidden;
8 9
 
9 10
   .info {
10 11
     color: #333;
12
+    white-space:nowrap;
11 13
   }
12 14
 
13 15
   .warn {

+ 34
- 15
src/onlineSelling/pages/detail/index.js 查看文件

@@ -93,15 +93,30 @@ export default class Index extends Component {
93 93
     })
94 94
   }
95 95
 
96
-  handlePanoramaClick(panorama) {
97
-    const url = (panorama || {}).panoramaLink
96
+  handlePanoramaClick(panoramaLink) {
97
+    console.log(panoramaLink, "panoramapanoramapanoramapanoramapanoramapanoramapanoramapanoramapanorama")
98 98
 
99
-    if (!url) return;
99
+    if (!panoramaLink) return;
100 100
 
101
-    this.navigateTo(`/pages/project/panorama/index?url=${encodeURIComponent(url)}`)
101
+    Taro.navigateTo({ url: `/pages/project/panorama/index?url=${encodeURIComponent(panoramaLink)}` })
102
+
103
+  }
104
+
105
+  goToPanorama(panoramaLink) {
106
+
107
+
108
+    if (!panoramaLink) return;
109
+
110
+    this.navigateTo(`/pages/project/panorama/index?url=${encodeURIComponent(panoramaLink)}`)
111
+  }
112
+
113
+  handlePanoramaClick(panoramaLink) {
114
+    this.goToPanorama(panoramaLink)
115
+  }
116
+  navigateTo(url) {
117
+    Taro.navigateTo({ url: url })
102 118
   }
103 119
 
104
-  
105 120
 
106 121
 
107 122
   render() {
@@ -119,23 +134,27 @@ export default class Index extends Component {
119 134
           grantAvatarVisible &&
120 135
           <AchieveAvatar user={userInfo.person} onSuccess={() => { this.setState({ grantAvatarVisible: false }) }} ></AchieveAvatar>
121 136
         }
122
-        {popVisiable && <View className="pop-box">
123
-          <View className="title" >{!houseDetail.isPreselect ? `确认使用手机号${userInfo.person.phone || userInfo.person.tel}预选此房源?` : '确认取消预选此房源?'}</View>
124
-          <View className="sure" onClick={!houseDetail.isPreselect ? () => this.chooseBtn('add') : () => this.chooseBtn('cancel')}>确定</View>
125
-          <View className="cancel" onClick={() => this.setState({ popVisiable: false })}>取消</View>
126
-        </View>}
137
+        {popVisiable &&
138
+          <Block>
139
+            <View className="mask"> </View>
140
+            <View className="pop-box">
141
+              <View className="title" >{!houseDetail.isPreselect ? `确认使用手机号${userInfo.person.phone || userInfo.person.tel}预选此房源?` : '确认取消预选此房源?'}</View>
142
+              <View className="sure" onClick={!houseDetail.isPreselect ? () => this.chooseBtn('add') : () => this.chooseBtn('cancel')}>确定</View>
143
+              <View className="cancel" onClick={() => this.setState({ popVisiable: false })}>取消</View>
144
+            </View>
145
+          </Block>
146
+        }
127 147
 
128 148
         <View className='detail'>
129 149
           <View className='detail-top'>
130 150
             {buildingImgList.length ?
131
-              <Block>
132
-                <Image className="cover-img" mode="aspectFill" src={transferImage(buildingImgList[0].url)}></Image>
133
-                {/* <Image className="vr-img"   onClick={this.handlePanoramaClick.bind(this)} src={require('@/assets/vr.png')}></Image> */}
134
-              </Block>
151
+              <Image className="cover-img" mode="widthFix" onClick={() => buildingImgList[0].type == '1' ? this.handlePanoramaClick(buildingImgList[0].panoramaLink) : ''} src={transferImage(buildingImgList[0].url)} />
135 152
               : <Blank tips="暂无户型信息"></Blank>
136 153
             }
137
-
138 154
           </View>
155
+          {buildingImgList.length && buildingImgList[0].type == '1' &&
156
+            <Image className="vr-img" onClick={() => this.handlePanoramaClick(buildingImgList[0].panoramaLink)} src={require('@/assets/vr.png')} />
157
+          }
139 158
           <ScrollView
140 159
             enableBackToTop
141 160
             className="wrap"

+ 22
- 10
src/onlineSelling/pages/detail/index.scss 查看文件

@@ -1,5 +1,15 @@
1 1
 @import "@/styles/mixins.scss";
2 2
 @import "@/styles/theme.scss";
3
+.mask{
4
+  width: 100vw;
5
+  height: 100vh;
6
+  position: fixed;
7
+  top: 0;
8
+  left: 0;
9
+  background-color: rgba(0,0,0,.34);
10
+  z-index: 99;
11
+
12
+}
3 13
 .pop-box{
4 14
   position: fixed;
5 15
   bottom: 0;
@@ -28,6 +38,13 @@
28 38
   }
29 39
 
30 40
 }
41
+.vr-img{
42
+  position: fixed;
43
+  top: 452px;
44
+  left: 327px;
45
+  width:96px;
46
+  height:88px;
47
+}
31 48
 .detail {
32 49
   position: relative;
33 50
   width: 100%;
@@ -38,21 +55,15 @@
38 55
     height:600px;
39 56
     position: fixed;
40 57
     top: 0;
58
+    background-color: #F8F8F8;
41 59
  
42 60
     
43 61
     .cover-img{
44 62
       width:100%;
45 63
       height:100%;
46
-      position: fixed;
47
-      top: 0;
48
-    }
49
-    .vr-img{
50
-      position: fixed;
51
-      top: 452px;
52
-      left: 327px;
53
-      width:96px;
54
-      height:88px;
64
+      min-height: 600px;
55 65
     }
66
+    
56 67
     .norecord-img{
57 68
       width:280px;
58 69
       height:220px;
@@ -65,9 +76,10 @@
65 76
   }
66 77
  
67 78
   .wrap {
68
-    padding-top: 570px;
79
+    margin-top: 570px;
69 80
     background: transparent;
70 81
     position: relative;
82
+
71 83
   }
72 84
 
73 85
   &__main {

+ 2
- 2
src/onlineSelling/pages/houseList/index.js 查看文件

@@ -340,7 +340,7 @@ export default class HouseList extends Component {
340 340
       }
341 341
 
342 342
       const [page, scene] = this.currentPageAndParams()
343
-      const payload = { page, scene }
343
+      const payload = { page, scene, showToast: false }
344 344
 
345 345
       getMiniQrcode(payload).then(qrcode => {
346 346
         const { posterData = {} } = this.state
@@ -582,7 +582,7 @@ export default class HouseList extends Component {
582 582
     } = this.state
583 583
 
584 584
     if (loading) {
585
-      return <View style="margin: 80px auto;"><Loading color="#BB9C79" size={100}/></View>
585
+      return <View style="margin: 80px auto;"><Loading color="#BB9C79" size={100} /></View>
586 586
     }
587 587
 
588 588
     const { userInfo: { person } } = this.props

+ 1
- 1
src/pages/activity/detail/poster.js 查看文件

@@ -122,7 +122,7 @@ export default class Index extends Component {
122 122
       // {
123 123
       //   x: (data.miniAppName || '').length * 30 + 130,
124 124
       //   y: 1065,
125
-      //   text: '参活动',
125
+      //   text: '参活动',
126 126
       //   fontSize: 26,
127 127
       //   color: '#999',
128 128
       //   baseLine: 'middle',

+ 1
- 1
src/pages/activity/index.js 查看文件

@@ -10,7 +10,7 @@ import { connect } from '@tarojs/redux'
10 10
 export default class Index extends Component {
11 11
 
12 12
   config = {
13
-    navigationBarTitleText: '参活动'
13
+    navigationBarTitleText: '参活动'
14 14
   }
15 15
 
16 16
   state = {

+ 5
- 4
src/pages/card/index.js 查看文件

@@ -53,8 +53,7 @@ export default class Index extends Component {
53 53
       // if (sceneInShare(options.scene)) {
54 54
 
55 55
       // 必须授权电话
56
-      const { cardInfo, userInfo: { person: { personId, orgId } } } = this.props
57
-      console.log(person, "cardInfocardInfocardInfocardInfocardInfocardInfocardInfo")
56
+
58 57
       if (this.toggleGrantPhone()) {
59 58
         this.toggleGrantAvatar()
60 59
       }
@@ -407,8 +406,10 @@ export default class Index extends Component {
407 406
       cardInfo: { id, name, projects = [] },
408 407
       userInfo: { person: { phone, tel, personType, avatarurl, personId } }
409 408
     } = this.props
410
-    
411
-    Taro.setNavigationBarTitle({ title: `${name}为您服务` })
409
+    if (id != personId) {
410
+      Taro.setNavigationBarTitle({ title: `${name}为您服务` })
411
+    }
412
+
412 413
 
413 414
     if (personType === ROLE_CODE['CONSULTANT']) {
414 415
       return

+ 1
- 1
src/pages/project/activity/index.js 查看文件

@@ -48,7 +48,7 @@ export default class SwiperBanner extends Component {
48 48
         return (
49 49
             <View className="activity-box" style={`background: url(${transferImage(bgImg)}) no-repeat center;background-size: 100% 100%;`}>
50 50
                 <View className="section-head">
51
-                    <View className="section-head__title">参活动 </View>
51
+                    <View className="section-head__title">参活动 </View>
52 52
                     <View className="section-head__more" onClick={this.toActivity}>
53 53
                         查看更多<Text className="iconfont icon-more"></Text>
54 54
                     </View>

+ 2
- 2
src/pages/project/detail/index.js 查看文件

@@ -1208,7 +1208,7 @@ export default class Index extends Component {
1208 1208
           activityList.length > 0 && (
1209 1209
             <View className="activity" >
1210 1210
               <View className="section-head">
1211
-                <Text className="section-head__title" style={{ margin: '10rpx 0 40rpx 35rpx' }}>参活动</Text>
1211
+                <Text className="section-head__title" style={{ margin: '10rpx 0 40rpx 35rpx' }}>参活动</Text>
1212 1212
                 <View className="section-head__more" style={{ marginRight: '20rpx' }} onClick={this.handleActivityMoreClick}>
1213 1213
                   更多活动<Text className="iconfont icon-more"></Text>
1214 1214
                 </View>
@@ -1562,7 +1562,7 @@ export default class Index extends Component {
1562 1562
                   {this.renderGroup()}
1563 1563
                   {/* 新鲜资讯 */}
1564 1564
                   {this.renderNews()}
1565
-                  {/* 参活动 */}
1565
+                  {/* 参活动 */}
1566 1566
                   {this.renderActivities()}
1567 1567
                   {/* 相册 */}
1568 1568
                   {this.renderPhotoAlbum()}

+ 1
- 1
src/pages/project/icons.js 查看文件

@@ -70,7 +70,7 @@ const menus = [
70 70
         switchTab: true,
71 71
     },
72 72
     {
73
-        name: '参活动',
73
+        name: '参活动',
74 74
         url: '/pages/activity/activity',
75 75
         icon: icons.activity,
76 76
         iconCode: 'Popularactivities',

+ 1
- 1
src/pages/project/index.js 查看文件

@@ -666,7 +666,7 @@ export default class Index extends Component {
666 666
                 {/* 资讯 */}
667 667
                 <Newsbanner showNesBox={this.handleNewsbannerShow} cityId={curCity.id} onClick={this.handleNoticeClick} onClickMore={this.toNewsList} />
668 668
               </View >
669
-              {/* 参活动*/}
669
+              {/* 参活动*/}
670 670
               {
671 671
                 helpGroupList && helpGroupList.length &&
672 672
                 (<Activity helpGroupList={helpGroupList} cityId={curCity.id} />)

+ 1
- 1
src/styles/reset.scss 查看文件

@@ -6,7 +6,7 @@
6 6
 
7 7
 /* weapp */
8 8
 page {
9
-  height: 100%;
9
+  // height: 100%;
10 10
   font-size:28px;
11 11
   color:#313131;
12 12
 }