浏览代码

静态页面

1002884655 3 年前
父节点
当前提交
2e58b05ef8

+ 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",

+ 2
- 2
src/components/ProjectItemCard/index.jsx 查看文件

42
       <view className='Views flex-h' onClick={() => goto(Data)}>
42
       <view className='Views flex-h' onClick={() => goto(Data)}>
43
         <view className='flex-item'>
43
         <view className='flex-item'>
44
           <text className='iconfont icon-fenxiang'></text>
44
           <text className='iconfont icon-fenxiang'></text>
45
-          <text>{`${Data.shareList?.total || 199} 次分享`}</text>
45
+          <text>{`${199 + (Data.shareList?.total || 0)} 次分享`}</text>
46
         </view>
46
         </view>
47
         {
47
         {
48
           (Data.uvList?.length || 0) > 0 && (
48
           (Data.uvList?.length || 0) > 0 && (
57
             </view>
57
             </view>
58
           )
58
           )
59
         }
59
         }
60
-        <text>{`...${Data.uvList?.length || 199}人围观`}</text>
60
+        <text>{`...${199 + (Data.uvList?.length || 0)}人围观`}</text>
61
       </view>
61
       </view>
62
       {props.children}
62
       {props.children}
63
     </view>
63
     </view>

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

41
         </view>
41
         </view>
42
         <view className='ShareInfo'>
42
         <view className='ShareInfo'>
43
           <text className='iconfont icon-fenxiang'></text>
43
           <text className='iconfont icon-fenxiang'></text>
44
-          <text>{Data.shareNum || 299 + Math.floor(Math.random() * 10)}次分享</text>
44
+          <text>{299 + (Data.shareNum || 0)}次分享</text>
45
           <view className='Users'>
45
           <view className='Users'>
46
             {
46
             {
47
               (uvList?.records || []).slice(0, 3).map((item, index) => (
47
               (uvList?.records || []).slice(0, 3).map((item, index) => (
51
               ))
51
               ))
52
             }
52
             }
53
           </view>
53
           </view>
54
-          <text>{(uvList?.records || []).length > 0 ? '...' : ''}{Data.pvNum || 299 + Math.floor(Math.random() * 10)}人围观</text>
54
+          <text>{(uvList?.records || []).length > 0 ? '...' : ''}{299 + (Data.pvNum || 0)}人围观</text>
55
         </view>
55
         </view>
56
       </view>
56
       </view>
57
     </view>
57
     </view>

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

117
     <view className='components AddedValueService'>
117
     <view className='components AddedValueService'>
118
       {
118
       {
119
         ShowPopup &&
119
         ShowPopup &&
120
-        <SubmitBuyHouseResult List={ResultList.slice(0, 1)}></SubmitBuyHouseResult>
120
+        <SubmitBuyHouseResult List={ResultList.slice(0, 1)} ShowResult={false}></SubmitBuyHouseResult>
121
       }
121
       }
122
       <ScrollView scroll-y>
122
       <ScrollView scroll-y>
123
         <view className='PageContent'>
123
         <view className='PageContent'>

+ 3
- 2
src/pages/index/buildingDetail/components/SpecialPriceHouse/index.jsx 查看文件

5
 import useTimer from './useTimer'
5
 import useTimer from './useTimer'
6
 import './index.scss'
6
 import './index.scss'
7
 
7
 
8
-const toW = n => `${Number(n / 10000).toFixed(1)}`
8
+const toW = n => `${Number(n / 10000).toFixed(1)}`
9
 const itFmt = it => `${it.unitType} ${Number(it.currentPrice / it.area).toFixed(0)}元/㎡`
9
 const itFmt = it => `${it.unitType} ${Number(it.currentPrice / it.area).toFixed(0)}元/㎡`
10
 
10
 
11
 export default function SpecialPriceHouse (props) {
11
 export default function SpecialPriceHouse (props) {
37
                 <text className='Tips'>省{`${toW(item.thriftPrice)}`}</text>
37
                 <text className='Tips'>省{`${toW(item.thriftPrice)}`}</text>
38
                 <view className='Price'>
38
                 <view className='Price'>
39
                   <text>{toW(item.currentPrice)}</text>
39
                   <text>{toW(item.currentPrice)}</text>
40
-                  <text>{toW(item.originalPrice)}</text>
40
+                  <text>万</text>
41
+                  <text>{toW(item.originalPrice)}万</text>
41
                 </view>
42
                 </view>
42
                 <text className='Time'>{`距结束还有 ${leftTime[index] ? leftTime[index][1] : ''}`}</text>
43
                 <text className='Time'>{`距结束还有 ${leftTime[index] ? leftTime[index][1] : ''}`}</text>
43
                 <text className='HouseType'>{itFmt(item)}</text>
44
                 <text className='HouseType'>{itFmt(item)}</text>

+ 5
- 2
src/pages/index/buildingDetail/components/SpecialPriceHouse/index.scss 查看文件

65
           >text {
65
           >text {
66
             display: inline-block;
66
             display: inline-block;
67
             vertical-align: middle;
67
             vertical-align: middle;
68
-            font-size: 32px;
68
+            font-size: 24px;
69
             font-weight: bold;
69
             font-weight: bold;
70
             color: #FC2C2C;
70
             color: #FC2C2C;
71
             line-height: 1;
71
             line-height: 1;
72
+            &:first-child {
73
+              font-size: 32px;
74
+            }
72
             &:last-child {
75
             &:last-child {
73
               color: #ccc;
76
               color: #ccc;
74
               text-decoration: line-through;
77
               text-decoration: line-through;
75
               margin-left: 20px;
78
               margin-left: 20px;
76
-              font-size: 28px;
79
+              font-size: 24px;
77
             }
80
             }
78
           }
81
           }
79
         }
82
         }

+ 2
- 2
src/pages/index/findHouseFromMap/index.jsx 查看文件

178
             <view className='Views flex-h'>
178
             <view className='Views flex-h'>
179
               <view className='flex-item'>
179
               <view className='flex-item'>
180
                 <text className='iconfont icon-fenxiang'></text>
180
                 <text className='iconfont icon-fenxiang'></text>
181
-                <text>{`${current.shareNum || 199}次分享`}</text>
181
+                <text>{`${199 + (current.shareNum || 0)}次分享`}</text>
182
               </view>
182
               </view>
183
               <view className='Icons'>
183
               <view className='Icons'>
184
                 {
184
                 {
189
                   ))
189
                   ))
190
                 }
190
                 }
191
               </view>
191
               </view>
192
-              <text>{(current.uvList?.records || []).length > 0 ? '...' : ''}{`${current.pvNum || 199}人围观`}</text>
192
+              <text>{(current.uvList?.records || []).length > 0 ? '...' : ''}{`${199 + (current.pvNum || 0)}人围观`}</text>
193
             </view>
193
             </view>
194
           </view>
194
           </view>
195
         </view>
195
         </view>

+ 2
- 2
src/pages/index/helpToFindHouse/components/SubmitBuyHouseResult/index.jsx 查看文件

7
 import './index.scss'
7
 import './index.scss'
8
 
8
 
9
 export default function SubmitBuyHouseResult (props) {
9
 export default function SubmitBuyHouseResult (props) {
10
-  const { List = [], setting } = props
10
+  const { List = [], setting, ShowResult = true } = props
11
 
11
 
12
   const handlePhone = () => {
12
   const handlePhone = () => {
13
     if (!setting?.phone) {
13
     if (!setting?.phone) {
46
 
46
 
47
             {/* 匹配楼盘 */}
47
             {/* 匹配楼盘 */}
48
             {
48
             {
49
-              !!List.length &&
49
+              !!List.length && ShowResult &&
50
               <view className='Recommend'>
50
               <view className='Recommend'>
51
                 <view className='Title'>
51
                 <view className='Title'>
52
                   <view>
52
                   <view>

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

123
                       <view className='Views flex-h' onClick={() => goto(item)}>
123
                       <view className='Views flex-h' onClick={() => goto(item)}>
124
                         <view className='flex-item'>
124
                         <view className='flex-item'>
125
                           <text className='iconfont icon-fenxiang'></text>
125
                           <text className='iconfont icon-fenxiang'></text>
126
-                          <text>{`${shareNum || 199} 次分享`}</text>
126
+                          <text>{`${199 + (shareNum || 0)} 次分享`}</text>
127
                         </view>
127
                         </view>
128
                         {
128
                         {
129
                           uvNum > 0 && (
129
                           uvNum > 0 && (
138
                             </view>
138
                             </view>
139
                           )
139
                           )
140
                         }
140
                         }
141
-                        <text>{`...${uvNum || 199}人围观`}</text>
141
+                        <text>{`...${199 + (uvNum || 0)}人围观`}</text>
142
                       </view>
142
                       </view>
143
                       <view className='SpecialList'>
143
                       <view className='SpecialList'>
144
                         <ScrollView scrollX>
144
                         <ScrollView scrollX>
146
                             specialRoomList.map((it) => {
146
                             specialRoomList.map((it) => {
147
                               const unitPrice = it.area ? it.currentPrice / it.area : undefined
147
                               const unitPrice = it.area ? it.currentPrice / it.area : undefined
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)}` : '待定'
150
-                              const originalW = it.originalPrice ? `${Number(it.originalPrice / 10000).toFixed(1)}` : '待定'
151
-                              const thriftW = it.thriftPrice ? `省${Number(it.thriftPrice / 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)}` : '待定'
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 (
156
                                   <text className='Tips'>{thriftW}</text>
156
                                   <text className='Tips'>{thriftW}</text>
157
                                   <view className='Price'>
157
                                   <view className='Price'>
158
                                     <text>{currentW}</text>
158
                                     <text>{currentW}</text>
159
-                                    <text>{originalW}</text>
159
+                                    <text>万</text>
160
+                                    <text>{originalW}万</text>
160
                                   </view>
161
                                   </view>
161
                                   <text className='Time'>{`距结束 ${leftTime}`}</text>
162
                                   <text className='Time'>{`距结束 ${leftTime}`}</text>
162
                                   <text className='HouseType'>{`${it.unitType} ${unitW}`}</text>
163
                                   <text className='HouseType'>{`${it.unitType} ${unitW}`}</text>

+ 5
- 2
src/pages/index/specialPriceHouse/index.scss 查看文件

232
                     >text {
232
                     >text {
233
                       display: inline-block;
233
                       display: inline-block;
234
                       vertical-align: middle;
234
                       vertical-align: middle;
235
-                      font-size: 32px;
235
+                      font-size: 24px;
236
                       font-weight: bold;
236
                       font-weight: bold;
237
                       color: red;
237
                       color: red;
238
                       line-height: 1;
238
                       line-height: 1;
239
+                      &:first-child {
240
+                        font-size: 32px;
241
+                      }
239
                       &:last-child {
242
                       &:last-child {
240
                         color: #ccc;
243
                         color: #ccc;
241
                         text-decoration: line-through;
244
                         text-decoration: line-through;
242
                         margin-left: 20px;
245
                         margin-left: 20px;
243
-                        font-size: 28px;
246
+                        font-size: 24px;
244
                       }
247
                       }
245
                     }
248
                     }
246
                   }
249
                   }

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

27
   useEffect(() => {
27
   useEffect(() => {
28
     if (user?.userInfo?.person?.personId) {
28
     if (user?.userInfo?.person?.personId) {
29
       const person = user.userInfo.person
29
       const person = user.userInfo.person
30
-      setUserRole(person.personType === ROLE_CODE.CUSTOMER || person.personType === ROLE_CODE.DRIFT ? 1 : person.personType === ROLE_CODE.CHANNEL_AGENT ? 2 : person.personType === ROLE_CODE.CONSULTANT ? 3 : 4)
30
+      setUserRole(person.personType === ROLE_CODE.CHANNEL_AGENT ? 2 : person.personType === ROLE_CODE.CONSULTANT ? 3 : person.personType === ROLE_CODE.MARKETING ? 4 : 1)
31
     }
31
     }
32
   }, [user])
32
   }, [user])
33
 
33