吃个甘蔗嚼一年 3 vuotta sitten
vanhempi
commit
1c74bf24aa

+ 1
- 1
src/components/CollectList/MyCollect/index.jsx Näytä tiedosto

66
                 />
66
                 />
67
                 <CouponMedia.Body >
67
                 <CouponMedia.Body >
68
                   <View className='cpn-card-text'>
68
                   <View className='cpn-card-text'>
69
-                    {item.lng}
69
+                    {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
70
                   </View>
70
                   </View>
71
                   <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
71
                   <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
72
                     <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>
72
                     <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>

+ 41
- 28
src/pages/index/tabs/Guide.jsx Näytä tiedosto

61
     goContent()
61
     goContent()
62
   })
62
   })
63
 
63
 
64
-  const geiZy = () => {
64
+  const getGuidelist = () => {
65
     setLoading(true)
65
     setLoading(true)
66
     getExtendContent('room', roomId, { pageSize: 500 }).then((res) => {
66
     getExtendContent('room', roomId, { pageSize: 500 }).then((res) => {
67
       // setExtend(res.records || [])
67
       // setExtend(res.records || [])
82
         setLoading(false)
82
         setLoading(false)
83
       })
83
       })
84
       //更多指引
84
       //更多指引
85
-      geiZy()
86
-      getRecommendList({ location: taRoomContent.location }).then((res) => {
85
+      getGuidelist()
86
+      getRecommendList({ location: taRoomContent.location || '' }).then((res) => {
87
         setPackage(res || [])
87
         setPackage(res || [])
88
         setLoading(false)
88
         setLoading(false)
89
       })
89
       })
169
                 </view>
169
                 </view>
170
               </view>
170
               </view>
171
               {/* --------房屋位置-------- */}
171
               {/* --------房屋位置-------- */}
172
-              {
173
-                !taRoomContent.location ? <view></view>
174
-                  :
175
-                  <view className='room-box-info-HouLocation'>
176
-                    <view className='room-bi-name-HouLocation' >
177
-                      <view className='room-bin-title-HouLocation'>房屋位置</view>
178
-                      <view className='room-bint-nameInfo-HouLocation'>
179
-                        <view className='room-bint-nameInfo-bool-HouLocation' >{taRoomContent?.address}</view>
180
-                        <view className='room-bintn-button-HouLocation' onClick={() => { goRoomMap() }} style={{ display: wifiButtonStyle }}>
181
-                          <image className='room-bintn-image-HouLocation' src={GPS} />
182
-                          <text className='room-bintn-text-HouLocation'>去这里</text>
183
-                        </view>
184
-                      </view>
172
+
173
+
174
+              <view className='room-box-info-HouLocation'>
175
+                <view className='room-bi-name-HouLocation' >
176
+                  <view className='room-bin-title-HouLocation'>房屋位置</view>
177
+                  <view className='room-bint-nameInfo-HouLocation'>
178
+                    <view className='room-bint-nameInfo-bool-HouLocation' >{taRoomContent?.address}</view>
179
+                    <view className='room-bintn-button-HouLocation' onClick={() => { goRoomMap() }} style={{ display: wifiButtonStyle }}>
180
+                      <image className='room-bintn-image-HouLocation' src={GPS} />
181
+                      <text className='room-bintn-text-HouLocation'>去这里</text>
185
                     </view>
182
                     </view>
186
                   </view>
183
                   </view>
184
+                </view>
185
+              </view>
186
+
187
+
188
+
187
 
189
 
188
-              }
189
 
190
 
190
 
191
 
191
               {/* --------停车场-------- */}
192
               {/* --------停车场-------- */}
208
 
209
 
209
 
210
 
210
               {/* --------无线网-------- */}
211
               {/* --------无线网-------- */}
211
-              <view className='room-box-info-WIFIContent'>
212
-                <view className='room-bi-name-WIFIContent' >
213
-                  <view className='room-bin-title-WIFIContent'>WiFi信息</view>
214
-                  <view className='room-bint-nameInfo-WIFIContent'>
215
-                    <view className='room-bint-nameInfo-bool-WIFIContent-wifi' >名称:{taRoomContent?.wifiName}</view>
216
-                    <view className='room-bint-nameInfo-bool-WIFIContent-password' >密码:{taRoomContent?.wifiPassword}</view>
217
-                    <view className='room-bintn-button-WIFIContent' onClick={() => { wifiCopy() }} style={{ display: wifiButtonStyle }}>
218
-                      <image className='room-bintn-image-WIFIContent' src={copy_logo} />
219
-                      <text className='room-bintn-text-WIFIContent'>复制</text>
212
+
213
+
214
+              {
215
+                !taRoomContent.wifiName && !taRoomContent.wifiPassword ? <view></view>
216
+                  :
217
+
218
+                  <view className='room-box-info-WIFIContent'>
219
+                    <view className='room-bi-name-WIFIContent' >
220
+                      <view className='room-bin-title-WIFIContent'>WiFi信息</view>
221
+                      <view className='room-bint-nameInfo-WIFIContent'>
222
+                        <view className='room-bint-nameInfo-bool-WIFIContent-wifi' >名称:{taRoomContent?.wifiName}</view>
223
+                        <view className='room-bint-nameInfo-bool-WIFIContent-password' >密码:{taRoomContent?.wifiPassword}</view>
224
+                        <view className='room-bintn-button-WIFIContent' onClick={() => { wifiCopy() }} style={{ display: wifiButtonStyle }}>
225
+                          <image className='room-bintn-image-WIFIContent' src={copy_logo} />
226
+                          <text className='room-bintn-text-WIFIContent'>复制</text>
227
+                        </view>
228
+                      </view>
220
                     </view>
229
                     </view>
221
                   </view>
230
                   </view>
222
-                </view>
223
-              </view>
231
+
232
+              }
233
+
234
+
235
+
236
+
224
 
237
 
225
               <view className='Guide-Content-box'  >
238
               <view className='Guide-Content-box'  >
226
                 <view className='title-image' style={{ display: guideStyle }} >
239
                 <view className='title-image' style={{ display: guideStyle }} >