Sfoglia il codice sorgente

Merge branch 'main' of http://git.ycjcjy.com/marketing/miniapp into main

Your Name 3 anni fa
parent
commit
206c0e8991

+ 2
- 2
config/dev.js Vedi File

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"https://xlk.njyz.tech"',
7
-    // HOST: '"https://xlj.newlandsh.com"',
6
+    // HOST: '"https://xlk.njyz.tech"',
7
+    HOST: '"https://xlj.newlandsh.com"',
8 8
     // HOST: '"http://127.0.0.1:8567"',
9 9
     WSS_HOST: '"wss://xlk.njyz.tech"',
10 10
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',

+ 2
- 2
project.config.json Vedi File

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "miniapp",
4 4
 	"description": "",
5
-	"appid": "wxe44244d1a5ea3364",
5
+	"appid": "wxc96058d57e77f373",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,
@@ -27,7 +27,7 @@
27 27
 			"outputPath": ""
28 28
 		},
29 29
 		"useIsolateContext": true,
30
-		"useCompilerModule": false,
30
+		"useCompilerModule": true,
31 31
 		"userConfirmedUseCompilerModuleSwitch": false
32 32
 	},
33 33
 	"compileType": "miniprogram",

+ 1
- 1
src/pages/index/activityDetail/index.scss Vedi File

@@ -224,7 +224,7 @@
224 224
           }
225 225
           > .Top {
226 226
             width: 100%;
227
-            padding-bottom: 56%;
227
+            padding-bottom: 56.25%;
228 228
             position: relative;
229 229
             overflow: hidden;
230 230
             background: #eee;

+ 1
- 1
src/pages/index/buildingDetail/components/BasicInfo/index.jsx Vedi File

@@ -169,7 +169,7 @@ export default function BasicInfo (props) {
169 169
 
170 170
       {/* 围观 */}
171 171
       <view className='Views flex-h'>
172
-        <text>{Info.pvNum || 0}人围观</text>
172
+        <text>{299 + (Info.pvNum || 0)}人围观</text>
173 173
         <view className='flex-item'>
174 174
           {
175 175
             (Info?.uvList?.records || []).slice(0, 8).map((item, index) => (

+ 1
- 1
src/pages/index/buildingDetail/components/PropertyConsultant/index.jsx Vedi File

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

+ 1
- 0
src/pages/index/buildingDetail/index.scss Vedi File

@@ -69,5 +69,6 @@
69 69
     position: relative;
70 70
     overflow: hidden;
71 71
     box-shadow: 0 0 6px 6px rgba(0, 0, 0, 0.03);
72
+    padding-bottom: 10px;
72 73
   }
73 74
 }

+ 18
- 9
src/pages/mine/components/MyCustomerListItem/index.jsx Vedi File

@@ -17,14 +17,16 @@ export default function MyCustomerListItem (props) {
17 17
   const expStr = expirationDate && customerStatus === '1' ? `${addDays(createDate, expirationDate)} 回收` : ''
18 18
 
19 19
   const gotoDetail = () => {
20
-    if (!data.customerId) {
21
-      Taro.showToast({
22
-        title: '该用户尚未到访',
23
-        icon: 'none',
24
-      })
25
-    } else {
26
-      const url = `/pages/mine/myCustomerDetail/index?id=${data.customerId}`
27
-      Taro.navigateTo({ url })
20
+    if (data.status - 0 !== 3) {
21
+      if (!data.customerId) {
22
+        Taro.showToast({
23
+          title: '该用户尚未到访',
24
+          icon: 'none',
25
+        })
26
+      } else {
27
+        const url = `/pages/mine/myCustomerDetail/index?id=${data.customerId}`
28
+        Taro.navigateTo({ url })
29
+      }
28 30
     }
29 31
   }
30 32
 
@@ -40,7 +42,14 @@ export default function MyCustomerListItem (props) {
40 42
         </view>
41 43
         <view className='Time flex-h'>
42 44
           <text className='flex-item'>{data.phone}</text>
43
-          <text>{BIZ_STATUS[customerStatus]||'报备'}</text>
45
+          {
46
+            data.status - 0 === 3 &&
47
+            <text>无效</text>
48
+          }
49
+          {
50
+            data.status - 0 !== 3 &&
51
+            <text>{BIZ_STATUS[customerStatus] || '报备'}</text>
52
+          }
44 53
         </view>
45 54
       </view>
46 55
     </view>

+ 1
- 1
src/pages/mine/myRecommendCode/index.jsx Vedi File

@@ -16,7 +16,7 @@ export default withLayout((props) => {
16 16
   useEffect(() => {
17 17
     const payload = {
18 18
       scene: `id=${person?.personId}&from=${page.type}_share&recommender=${person?.personId}`,
19
-      page: `pages/mine/myRecommendCode/index`
19
+      page: `pages/consultant/myHomepage/index`
20 20
     }
21 21
     fetch({ url: API_QRCODE, payload, method: 'post' }).then((res) => {
22 22
       setQrCodeUrl(res)

+ 1
- 1
src/pages/mine/tabData.js Vedi File

@@ -41,7 +41,7 @@ const MineMenuList = {
41 41
   Adviser: [ // 置业顾问
42 42
     [
43 43
       { name: '添加客户', icon: require('@/assets/mine-icon7.png'), router: '/pages/mine/addCustomer/index?type=consultant' },
44
-      { name: '成为驻场管理', icon: require('@/assets/mine-icon8.png'), router: '/pages/mine/toBeManager/index' },
44
+      // { name: '成为驻场管理', icon: require('@/assets/mine-icon8.png'), router: '/pages/mine/toBeManager/index' },
45 45
       { name: '我的主页', icon: require('@/assets/mine-icon15.png'), router: '/subpackages/pages/consultant/myHomepage/index' },
46 46
       { name: '我的推广码', icon: require('@/assets/mine-icon14.png'), router: '/pages/mine/myRecommendCode/index' },
47 47
       { name: '客户分析', icon: require('@/assets/mine-icon5.png'), router: '/subpackages/pages/consultant/customerAnalyse/index' },

+ 1
- 0
src/subpackages/pages/consultant/customerAnalyse/index.jsx Vedi File

@@ -35,6 +35,7 @@ export default withLayout((props) => {
35 35
   useEffect(() => {
36 36
     setChartList([])
37 37
     GetSexInfo()
38
+    GetChartInfo()
38 39
   }, [CurrentMenuId])
39 40
 
40 41
   useEffect(() => {

+ 5
- 2
src/subpackages/pages/consultant/myHomepage/index.jsx Vedi File

@@ -44,7 +44,10 @@ export default withLayout((props) => {
44 44
 
45 45
   useEffect(() => {
46 46
     if (PersonId) {
47
-      GetUserInfo()
47
+      // GetUserInfo()
48
+      fetch({ url: `${API_CARDS_LIST}/${PersonId}`, method: 'get' }).then((res) => {
49
+        setUserInfo(res)
50
+      })
48 51
     }
49 52
   }, [PersonId])
50 53
 
@@ -88,7 +91,7 @@ export default withLayout((props) => {
88 91
           <view className='Card UserInfo'>
89 92
             <view className='flex-h Top'>
90 93
               <view className='Icon'>
91
-                <Image mode='aspectFill' src={getImgURL(UserInfo.avatarurl || UserInfo.picture)}></Image>
94
+                <Image mode='aspectFill' src={getImgURL(UserInfo.avatarurl || UserInfo.avatar || UserInfo.picture)}></Image>
92 95
               </view>
93 96
               <view className='flex-item'>
94 97
                 <view className='flex-h'>