1002884655 3 anni fa
parent
commit
34b571560d

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

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

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

@@ -47,6 +47,11 @@
47 47
             >text {
48 48
               font-size: 22px;
49 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 55
               // &:first-child {
51 56
               //   font-size: 48px;
52 57
               //   font-weight: bold;

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

@@ -23,7 +23,7 @@ export default withLayout((props) => {
23 23
   const handleMarker = (e) => {
24 24
     const { markerId } = e.detail
25 25
     const building = list[markerId - 1];
26
-    setCurrent(building||{});
26
+    setCurrent(building || {});
27 27
     setShowInfo(true)
28 28
   }
29 29
 
@@ -146,9 +146,20 @@ export default withLayout((props) => {
146 146
         <view className='InfoContainer'>
147 147
           {/* <text className='Title' onClick={CutInfo(true)}>附近楼盘</text> */}
148 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 163
             <view className='Name flex-h'>
153 164
               <view className='flex-item'>
154 165
                 <text>{current.buildingName}</text>
@@ -158,16 +169,16 @@ export default withLayout((props) => {
158 169
             </view>
159 170
             <text className='Address'>{current.address}</text>
160 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 177
             </view>
167 178
             <view className='Views flex-h'>
168 179
               <view className='flex-item'>
169 180
                 <text className='iconfont icon-fenxiang'></text>
170
-                <text>{`${current.shareNum||0}次分享`}</text>
181
+                <text>{`${current.shareNum || 0}次分享`}</text>
171 182
               </view>
172 183
               <view className='Icons'>
173 184
                 {
@@ -178,7 +189,7 @@ export default withLayout((props) => {
178 189
                   ))
179 190
                 }
180 191
               </view>
181
-              <text>{`...${current.pvNum}人围观`}</text>
192
+              <text>{(current.uvList?.records || []).length > 0 ? '...' : ''}{`${current.pvNum}人围观`}</text>
182 193
             </view>
183 194
           </view>
184 195
         </view>

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

@@ -56,6 +56,8 @@
56 56
     transition: all 0.3s ease-out;
57 57
     -webkit-transition: all 0.3s ease-out;
58 58
     height: 120px;
59
+    background: #fff;
60
+    box-shadow: 0 0 6px 6px rgba(0, 0, 0, 0.03);
59 61
     &.active {
60 62
       height: 784px;
61 63
     }
@@ -88,7 +90,6 @@
88 90
       border-radius: 48px 48px 0 0;
89 91
       position: relative;
90 92
       overflow: hidden;
91
-      box-shadow: 0 0 6px 6px rgba(0, 0, 0, 0.03);
92 93
       > .Title {
93 94
         display: block;
94 95
         font-size: 34px;
@@ -106,9 +107,22 @@
106 107
           overflow: hidden;
107 108
           background: #eee;
108 109
           border-radius: 8px;
109
-          > image {
110
+          > image.centerLabel {
110 111
             width: 100%;
111 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 128
         > .Name {
@@ -127,7 +141,7 @@
127 141
             }
128 142
           }
129 143
           > text {
130
-            font-size: 22px;
144
+            font-size: 32px;
131 145
             font-weight: bold;
132 146
             &:last-child {
133 147
               color: #ff0000;

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

@@ -66,7 +66,9 @@ export default withLayout(() => {
66 66
       payload[item.key] = item.result || item.resultId
67 67
     })
68 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 72
       setShowPopup(true)
71 73
     })
72 74
   }

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

@@ -144,7 +144,7 @@ export default withLayout((props) => {
144 144
                           {
145 145
                             specialRoomList.map((it) => {
146 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 148
                               const currentW = it.currentPrice ? `${Number(it.currentPrice / 10000).toFixed(1)}万` : '待定'
149 149
                               const originalW = it.originalPrice ? `${Number(it.originalPrice / 10000).toFixed(1)}万` : '待定'
150 150
                               const thriftW = it.thriftPrice ? `省${Number(it.thriftPrice / 10000).toFixed(1)}万` : '待定'

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

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

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

@@ -9,9 +9,17 @@ import './index.scss'
9 9
 export default function ResidentListItem (props) {
10 10
   const { data = {}, change = () => { } } = props
11 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 25
   return (

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

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