浏览代码

静态页面

1002884655 3 年前
父节点
当前提交
061fed6c5b

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

27
 			"outputPath": ""
27
 			"outputPath": ""
28
 		},
28
 		},
29
 		"useIsolateContext": true,
29
 		"useIsolateContext": true,
30
-		"useCompilerModule": false,
30
+		"useCompilerModule": true,
31
 		"userConfirmedUseCompilerModuleSwitch": false
31
 		"userConfirmedUseCompilerModuleSwitch": false
32
 	},
32
 	},
33
 	"compileType": "miniprogram",
33
 	"compileType": "miniprogram",

+ 3
- 3
src/components/ProjectListItem/index.jsx 查看文件

6
 import './index.scss'
6
 import './index.scss'
7
 
7
 
8
 export default function ProjectListItem (props) {
8
 export default function ProjectListItem (props) {
9
-  const { Data = {} } = props
9
+  const { Data = {}, ShowImgIcon = true } = props
10
   const { uvList = [] } = Data
10
   const { uvList = [] } = Data
11
   return (
11
   return (
12
     <view className='components ProjectListItem flex-h' onClick={() => { Taro.navigateTo({ url: `/pages/index/buildingDetail/index?id=${Data.buildingId || Data.targetId}` }) }}>
12
     <view className='components ProjectListItem flex-h' onClick={() => { Taro.navigateTo({ url: `/pages/index/buildingDetail/index?id=${Data.buildingId || Data.targetId}` }) }}>
14
         <view>
14
         <view>
15
           <Image mode='aspectFill' className='centerLabel' src={getImgURL((Data?.buildingListImg || []).length ? Data.buildingListImg[0].url : Data.activityImg || null)} />
15
           <Image mode='aspectFill' className='centerLabel' src={getImgURL((Data?.buildingListImg || []).length ? Data.buildingListImg[0].url : Data.activityImg || null)} />
16
           {
16
           {
17
-            (Data?.panoramaList || []).length > 0 &&
17
+            (Data?.panoramaList || []).length > 0 && ShowImgIcon &&
18
             <Image mode='heightFix' className='Tips Vr' src={require('@/assets/index-icon18.png')} />
18
             <Image mode='heightFix' className='Tips Vr' src={require('@/assets/index-icon18.png')} />
19
           }
19
           }
20
           {
20
           {
21
-            Data.videoUrl !== null &&
21
+            Data.videoUrl !== null && ShowImgIcon &&
22
             <Image mode='heightFix' className='Tips Video' src={require('@/assets/index-icon19.png')} />
22
             <Image mode='heightFix' className='Tips Video' src={require('@/assets/index-icon19.png')} />
23
           }
23
           }
24
         </view>
24
         </view>

+ 1
- 1
src/pages/chat/chatDetail/index.jsx 查看文件

231
       </view>
231
       </view>
232
       <view className='SendContent flex-h'>
232
       <view className='SendContent flex-h'>
233
         <view className='flex-item'>
233
         <view className='flex-item'>
234
-          <Input placeholder='发送消息' value={text} onInput={(e) => setText(e.detail.value)} />
234
+          <Input confirm-type='send' hold-keyboard confirm-hold placeholder='发送消息' value={text} onConfirm={submitText} onInput={(e) => setText(e.detail.value)} />
235
         </view>
235
         </view>
236
         <text className='iconfont icon-tianjia' onClick={submitImage}></text>
236
         <text className='iconfont icon-tianjia' onClick={submitImage}></text>
237
         <Button loading={submitting} className='Send' onClick={submitText}>发送</Button>
237
         <Button loading={submitting} className='Send' onClick={submitText}>发送</Button>

+ 1
- 1
src/pages/index/buildingDetail/components/PropertyConsultant/index.jsx 查看文件

64
           List.map((item, index) => (
64
           List.map((item, index) => (
65
             <view key={`PersonItem-${index}`} className='flex-h'>
65
             <view key={`PersonItem-${index}`} className='flex-h'>
66
               <view className='Icon' onClick={() => gotoDetail(item)}>
66
               <view className='Icon' onClick={() => gotoDetail(item)}>
67
-                <Image mode='aspectFill' src={item.photo || item.avatarurl || item.avatar || item.picture}></Image>
67
+                <Image mode='aspectFill' src={item.userPhoto || item.photo || item.avatarurl || item.avatar || item.picture}></Image>
68
               </view>
68
               </view>
69
               <view className='flex-item' onClick={() => gotoDetail(item)}>
69
               <view className='flex-item' onClick={() => gotoDetail(item)}>
70
                 <text>{item.userName}</text>
70
                 <text>{item.userName}</text>

+ 1
- 1
src/pages/index/buildingPropertyConsultant/index.jsx 查看文件

73
                 <view className='flex-h'>
73
                 <view className='flex-h'>
74
 
74
 
75
                   <view className='Icon'>
75
                   <view className='Icon'>
76
-                    <Image mode='scaleToFill' src={getImgURL(item.photo || item.avatar)}></Image>
76
+                    <Image mode='scaleToFill' src={getImgURL(item.userPhoto || item.photo || item.avatar)}></Image>
77
                   </view>
77
                   </view>
78
 
78
 
79
                   <view className='flex-item' onClick={() => gotoDetail(item)}>
79
                   <view className='flex-item' onClick={() => gotoDetail(item)}>

+ 1
- 1
src/pages/index/specialPriceHouse/index.jsx 查看文件

148
                               const unitW = unitPrice ? `${Number(unitPrice).toFixed(0)}元/㎡` : '单价待定'
148
                               const unitW = unitPrice ? `${Number(unitPrice).toFixed(0)}元/㎡` : '单价待定'
149
                               const currentW = it.currentPrice ? `${Number(it.currentPrice / 10000).toFixed(1)}` : '待定'
149
                               const currentW = it.currentPrice ? `${Number(it.currentPrice / 10000).toFixed(1)}` : '待定'
150
                               const originalW = it.originalPrice ? `${Number(it.originalPrice / 10000).toFixed(1)}` : '待定'
150
                               const originalW = it.originalPrice ? `${Number(it.originalPrice / 10000).toFixed(1)}` : '待定'
151
-                              const thriftW = it.thriftPrice ? `省${Number(it.thriftPrice / 10000).toFixed(1)}` : '待定'
151
+                              const thriftW = it.thriftPrice ? `省${Number(it.thriftPrice / 10000).toFixed(1)}` : '待定'
152
                               const leftTime = formateLeftTime(new Date(it.endTime) - new Date(), 'min');
152
                               const leftTime = formateLeftTime(new Date(it.endTime) - new Date(), 'min');
153
 
153
 
154
                               return (
154
                               return (

+ 1
- 1
src/pages/mine/myShare/index.jsx 查看文件

66
           <view className='List'>
66
           <view className='List'>
67
             {
67
             {
68
               PageList.map((item, index) => (
68
               PageList.map((item, index) => (
69
-                <ProjectListItem Data={item} key={`ProjectListItem-${index}`}></ProjectListItem>
69
+                <ProjectListItem ShowImgIcon={item.eventType === 'building'} Data={item} key={`ProjectListItem-${index}`}></ProjectListItem>
70
               ))
70
               ))
71
             }
71
             }
72
           </view>
72
           </view>

+ 1
- 1
src/subpackages/pages/consultant/myHomepage/index.jsx 查看文件

105
           <view className='Card UserInfo'>
105
           <view className='Card UserInfo'>
106
             <view className='flex-h Top'>
106
             <view className='flex-h Top'>
107
               <view className='Icon'>
107
               <view className='Icon'>
108
-                <Image mode='aspectFill' src={getImgURL(UserInfo.avatarurl || UserInfo.avatar || UserInfo.picture)}></Image>
108
+                <Image mode='aspectFill' src={getImgURL(UserInfo.userPhoto || UserInfo.photo || UserInfo.avatarurl || UserInfo.avatar || UserInfo.picture)}></Image>
109
               </view>
109
               </view>
110
               <view className='flex-item'>
110
               <view className='flex-item'>
111
                 <view className='flex-h'>
111
                 <view className='flex-h'>