Browse Source

静态页面

1002884655 3 years ago
parent
commit
34b571560d

+ 2
- 2
src/components/ProjectListItem/index.jsx View File

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}次分享</text>
44
+          <text>{Data.shareNum || 299 + Math.floor(Math.random() * 10)}次分享</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>...{Data.pvNum}人围观</text>
54
+          <text>{uvList.records.length > 0 ? '...' : ''}{Data.pvNum || 299 + Math.floor(Math.random() * 10)}人围观</text>
55
         </view>
55
         </view>
56
       </view>
56
       </view>
57
     </view>
57
     </view>

+ 5
- 0
src/pages/index/brandDetail/index.scss View File

47
             >text {
47
             >text {
48
               font-size: 22px;
48
               font-size: 22px;
49
               line-height: 48px;
49
               line-height: 48px;
50
+              display: inline-block;
51
+              max-width: 100%;
52
+              text-align: justify;
53
+              text-align-last: left;
54
+              word-break: break-all;
50
               // &:first-child {
55
               // &:first-child {
51
               //   font-size: 48px;
56
               //   font-size: 48px;
52
               //   font-weight: bold;
57
               //   font-weight: bold;

+ 22
- 11
src/pages/index/findHouseFromMap/index.jsx View File

23
   const handleMarker = (e) => {
23
   const handleMarker = (e) => {
24
     const { markerId } = e.detail
24
     const { markerId } = e.detail
25
     const building = list[markerId - 1];
25
     const building = list[markerId - 1];
26
-    setCurrent(building||{});
26
+    setCurrent(building || {});
27
     setShowInfo(true)
27
     setShowInfo(true)
28
   }
28
   }
29
 
29
 
146
         <view className='InfoContainer'>
146
         <view className='InfoContainer'>
147
           {/* <text className='Title' onClick={CutInfo(true)}>附近楼盘</text> */}
147
           {/* <text className='Title' onClick={CutInfo(true)}>附近楼盘</text> */}
148
           <view className='InfoContent'>
148
           <view className='InfoContent'>
149
-            <view className='Img' onClick={gotoDetail}>
150
-              <Image mode='scaleToFill' src={getImgURL(current.buildingListImg?.length ? current.buildingListImg[0].url : null)} className='centerLabel'></Image>
151
-            </view>
149
+            {
150
+              !!current.buildingName &&
151
+              <view className='Img' onClick={gotoDetail}>
152
+                <Image mode='scaleToFill' src={getImgURL(current?.buildingListImg?.length ? current.buildingListImg[0].url : null)} className='centerLabel'></Image>
153
+                {
154
+                  current?.panoramaList.length > 0 &&
155
+                  <Image mode='heightFix' className='Tips Vr' src={require('@/assets/index-icon18.png')} />
156
+                }
157
+                {
158
+                  current?.videoUrl !== null &&
159
+                  <Image mode='heightFix' className='Tips Video' src={require('@/assets/index-icon19.png')} />
160
+                }
161
+              </view>
162
+            }
152
             <view className='Name flex-h'>
163
             <view className='Name flex-h'>
153
               <view className='flex-item'>
164
               <view className='flex-item'>
154
                 <text>{current.buildingName}</text>
165
                 <text>{current.buildingName}</text>
158
             </view>
169
             </view>
159
             <text className='Address'>{current.address}</text>
170
             <text className='Address'>{current.address}</text>
160
             <view className='Tag'>
171
             <view className='Tag'>
161
-            {
162
-              (current.buildingTag || []).map((item, index) => (
163
-                <text key={`Tags-${index}`}>{item.tagName}</text>
164
-              ))
165
-            }
172
+              {
173
+                (current.buildingTag || []).map((item, index) => (
174
+                  <text key={`Tags-${index}`}>{item.tagName}</text>
175
+                ))
176
+              }
166
             </view>
177
             </view>
167
             <view className='Views flex-h'>
178
             <view className='Views flex-h'>
168
               <view className='flex-item'>
179
               <view className='flex-item'>
169
                 <text className='iconfont icon-fenxiang'></text>
180
                 <text className='iconfont icon-fenxiang'></text>
170
-                <text>{`${current.shareNum||0}次分享`}</text>
181
+                <text>{`${current.shareNum || 0}次分享`}</text>
171
               </view>
182
               </view>
172
               <view className='Icons'>
183
               <view className='Icons'>
173
                 {
184
                 {
178
                   ))
189
                   ))
179
                 }
190
                 }
180
               </view>
191
               </view>
181
-              <text>{`...${current.pvNum}人围观`}</text>
192
+              <text>{(current.uvList?.records || []).length > 0 ? '...' : ''}{`${current.pvNum}人围观`}</text>
182
             </view>
193
             </view>
183
           </view>
194
           </view>
184
         </view>
195
         </view>

+ 17
- 3
src/pages/index/findHouseFromMap/index.scss View File

56
     transition: all 0.3s ease-out;
56
     transition: all 0.3s ease-out;
57
     -webkit-transition: all 0.3s ease-out;
57
     -webkit-transition: all 0.3s ease-out;
58
     height: 120px;
58
     height: 120px;
59
+    background: #fff;
60
+    box-shadow: 0 0 6px 6px rgba(0, 0, 0, 0.03);
59
     &.active {
61
     &.active {
60
       height: 784px;
62
       height: 784px;
61
     }
63
     }
88
       border-radius: 48px 48px 0 0;
90
       border-radius: 48px 48px 0 0;
89
       position: relative;
91
       position: relative;
90
       overflow: hidden;
92
       overflow: hidden;
91
-      box-shadow: 0 0 6px 6px rgba(0, 0, 0, 0.03);
92
       > .Title {
93
       > .Title {
93
         display: block;
94
         display: block;
94
         font-size: 34px;
95
         font-size: 34px;
106
           overflow: hidden;
107
           overflow: hidden;
107
           background: #eee;
108
           background: #eee;
108
           border-radius: 8px;
109
           border-radius: 8px;
109
-          > image {
110
+          > image.centerLabel {
110
             width: 100%;
111
             width: 100%;
111
             height: 100%;
112
             height: 100%;
113
+            z-index: 1;
114
+          }
115
+          >.Tips {
116
+            width: 30px;
117
+            height: 30px;
118
+            display: block;
119
+            position: absolute;
120
+            z-index: 2;
121
+            bottom: 10px;
122
+            left: 10px;
123
+            &:nth-child(3) {
124
+              left: 50px;
125
+            }
112
           }
126
           }
113
         }
127
         }
114
         > .Name {
128
         > .Name {
127
             }
141
             }
128
           }
142
           }
129
           > text {
143
           > text {
130
-            font-size: 22px;
144
+            font-size: 32px;
131
             font-weight: bold;
145
             font-weight: bold;
132
             &:last-child {
146
             &:last-child {
133
               color: #ff0000;
147
               color: #ff0000;

+ 3
- 1
src/pages/index/helpToFindHouse/index.jsx View File

66
       payload[item.key] = item.result || item.resultId
66
       payload[item.key] = item.result || item.resultId
67
     })
67
     })
68
     fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload: { ...payload, questionnaire: JSON.stringify(params), type: CurrentDemandId } }).then((res) => {
68
     fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload: { ...payload, questionnaire: JSON.stringify(params), type: CurrentDemandId } }).then((res) => {
69
-      setResultList(res.taBuildingList || [])
69
+      if(CurrentDemandId === 1) {
70
+        setResultList(res.taBuildingList || [])
71
+      }
70
       setShowPopup(true)
72
       setShowPopup(true)
71
     })
73
     })
72
   }
74
   }

+ 1
- 1
src/pages/index/specialPriceHouse/index.jsx View File

144
                           {
144
                           {
145
                             specialRoomList.map((it) => {
145
                             specialRoomList.map((it) => {
146
                               const unitPrice = it.area ? it.currentPrice / it.area : undefined
146
                               const unitPrice = it.area ? it.currentPrice / it.area : undefined
147
-                              const unitW = unitPrice ? `${Number(unitPrice).toFixed(0)}/㎡` : '单价待定'
147
+                              const unitW = unitPrice ? `${Number(unitPrice).toFixed(0)}/㎡` : '单价待定'
148
                               const currentW = it.currentPrice ? `${Number(it.currentPrice / 10000).toFixed(1)}万` : '待定'
148
                               const currentW = it.currentPrice ? `${Number(it.currentPrice / 10000).toFixed(1)}万` : '待定'
149
                               const originalW = it.originalPrice ? `${Number(it.originalPrice / 10000).toFixed(1)}万` : '待定'
149
                               const originalW = it.originalPrice ? `${Number(it.originalPrice / 10000).toFixed(1)}万` : '待定'
150
                               const thriftW = it.thriftPrice ? `省${Number(it.thriftPrice / 10000).toFixed(1)}万` : '待定'
150
                               const thriftW = it.thriftPrice ? `省${Number(it.thriftPrice / 10000).toFixed(1)}万` : '待定'

+ 3
- 3
src/pages/mine/addCustomer/index.jsx View File

138
             <view className='flex-item'>
138
             <view className='flex-item'>
139
               <Picker kv={['name', 'id']} dicts={sexDicts} onChange={setSexId} value={SexId} />
139
               <Picker kv={['name', 'id']} dicts={sexDicts} onChange={setSexId} value={SexId} />
140
             </view>
140
             </view>
141
-            <text className='iconfont icon-jiantoudown'></text>
141
+            {/* <text className='iconfont icon-jiantoudown'></text> */}
142
           </view>
142
           </view>
143
 
143
 
144
           {
144
           {
156
                 <view className='flex-item'>
156
                 <view className='flex-item'>
157
                   <ConsultantPicker onChange={setCardId} value={CardId} buildingId={buildingId} />
157
                   <ConsultantPicker onChange={setCardId} value={CardId} buildingId={buildingId} />
158
                 </view>
158
                 </view>
159
-                <Image mode='heightFix' src={defaultSpecialImage}></Image>
160
-                <text>选择</text>
159
+                {/* <Image mode='heightFix' src={defaultSpecialImage}></Image>
160
+                <text>选择</text> */}
161
               </view>
161
               </view>
162
 
162
 
163
               <text>备注</text>
163
               <text>备注</text>

+ 11
- 3
src/subpackages/pages/marketing/components/ResidentListItem/index.jsx View File

9
 export default function ResidentListItem (props) {
9
 export default function ResidentListItem (props) {
10
   const { data = {}, change = () => { } } = props
10
   const { data = {}, change = () => { } } = props
11
   const ToUnVisable = () => {
11
   const ToUnVisable = () => {
12
-    fetch({ url: API_INVALID, method: 'put', payload: { type: data.type, id: data.id } }).then(() => {
13
-      Taro.showToast({ title: '审核成功', icon: 'none', duration: 2000 })
14
-      change()
12
+    Taro.showModal({
13
+      title: '提示',
14
+      content: '是否确定更改为无效?',
15
+      success (res) {
16
+        if (res.confirm) {
17
+          fetch({ url: API_INVALID, method: 'put', payload: { type: data.type, id: data.id } }).then(() => {
18
+            Taro.showToast({ title: '审核成功', icon: 'none', duration: 2000 })
19
+            change()
20
+          })
21
+        }
22
+      }
15
     })
23
     })
16
   }
24
   }
17
   return (
25
   return (

+ 3
- 3
src/subpackages/pages/marketing/sureVisit/index.jsx View File

124
             </view>
124
             </view>
125
           </view>
125
           </view>
126
 
126
 
127
-          <text>内场接待</text>
127
+          <text>内场接待(选填)</text>
128
           <view className='FormLine flex-h'>
128
           <view className='FormLine flex-h'>
129
             <view className='flex-item'>
129
             <view className='flex-item'>
130
               {/* <Input placeholder='请输入内场接待'></Input> */}
130
               {/* <Input placeholder='请输入内场接待'></Input> */}
138
               {/* <text>请选择</text> */}
138
               {/* <text>请选择</text> */}
139
               <Picker mode='date' value={visitDate} onChange={setVisitDate} />
139
               <Picker mode='date' value={visitDate} onChange={setVisitDate} />
140
             </view>
140
             </view>
141
-            <text className='iconfont icon-jiantoudown'></text>
141
+            {/* <text className='iconfont icon-jiantoudown'></text> */}
142
           </view>
142
           </view>
143
 
143
 
144
-          <text>到访照片</text>
144
+          <text>到访照片(选填)</text>
145
           <view className='FormLine flex-h'>
145
           <view className='FormLine flex-h'>
146
             <view className='flex-item'>
146
             <view className='flex-item'>
147
               {/* <view className='UploadImg'>
147
               {/* <view className='UploadImg'>