Browse Source

静态页面

xcx 4 years ago
parent
commit
6dcaea66c8

+ 2
- 2
config/dev.js View File

3
     NODE_ENV: '"development"'
3
     NODE_ENV: '"development"'
4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
-    // HOST: '"https://xs.ycjcjy.com"'
7
-    HOST: '"http://127.0.0.1:6060"'
6
+    HOST: '"https://xs.ycjcjy.com"'
7
+    // HOST: '"http://127.0.0.1:6060"'
8
   },
8
   },
9
   mini: {
9
   mini: {
10
     debugReact: true
10
     debugReact: true

+ 4
- 4
src/components/WuYeFuWu/index.jsx View File

109
                   </view>
109
                   </view>
110
                 </view>
110
                 </view>
111
               </view> */}
111
               </view> */}
112
-              {/* <view>
113
-                <view>
112
+              <view>
113
+                <view onClick={() => { Taro.navigateTo({ url: `/pages/WuYe/GongGongFuWu/index` }) }}>
114
                   <view className='centerLabel'>
114
                   <view className='centerLabel'>
115
                     <view className='Icon'>
115
                     <view className='Icon'>
116
-                      <text className='iconfont icongonggongfuwu'></text>
116
+                      <image mode='aspectFit' src='https://zhiyun-image.oss-accelerate.aliyuncs.com/miniapp/upload/images/1608544670576-微信图片_20201221175016.png'></image>
117
                     </view>
117
                     </view>
118
                     <view className='Name'>
118
                     <view className='Name'>
119
                       <text>公共服务</text>
119
                       <text>公共服务</text>
120
                     </view>
120
                     </view>
121
                   </view>
121
                   </view>
122
                 </view>
122
                 </view>
123
-              </view> */}
123
+              </view>
124
               {
124
               {
125
                 typeList.map((item, index) => (
125
                 typeList.map((item, index) => (
126
                   <view key={`TypeList-${index}`}>
126
                   <view key={`TypeList-${index}`}>

+ 9
- 0
src/pages.js View File

48
       eventType: 'property',
48
       eventType: 'property',
49
     }
49
     }
50
   },
50
   },
51
+  {
52
+    name: '物业-公共服务列表',
53
+    page: 'pages/WuYe/GongGongFuWu/index',
54
+    auth: ['avatar', 'phone', 'yezhu'],
55
+    track: {
56
+      event: 'list',
57
+      eventType: 'property',
58
+    }
59
+  },
51
   {
60
   {
52
     name: '物业-服务详情',
61
     name: '物业-服务详情',
53
     page: 'pages/WuYe/FuWuDetail/index',
62
     page: 'pages/WuYe/FuWuDetail/index',

+ 1
- 1
src/pages/WoDe/YeZhuShenHe/index.jsx View File

29
   }
29
   }
30
 
30
 
31
   const GetWuYePhoneList = () => { // 获取物业电话
31
   const GetWuYePhoneList = () => { // 获取物业电话
32
-    request({ ...apis.getWuYePhone }).then((res) => {
32
+    request({ ...apis.getWuYePhone, params: { type: 'prop' } }).then((res) => {
33
       setPhoneList(res || [])
33
       setPhoneList(res || [])
34
     })
34
     })
35
   }
35
   }

+ 1
- 1
src/pages/WuYe/BaoXiuDetail/index.jsx View File

38
   const Init = () => {
38
   const Init = () => {
39
     request({ ...apis.getGongDanDetail, args: { orgId: user.orgId }, params: { ticketId: CurrnetBaoXiuId } }).then((res) => { // 获取工单详情
39
     request({ ...apis.getGongDanDetail, args: { orgId: user.orgId }, params: { ticketId: CurrnetBaoXiuId } }).then((res) => { // 获取工单详情
40
       setDetailInfo(res)
40
       setDetailInfo(res)
41
-      request({ ...apis.getWuYePhone }).then((cRes) => { // 获取物业电话
41
+      request({ ...apis.getWuYePhone, params: { type: 'prop' } }).then((cRes) => { // 获取物业电话
42
         setPhoneList(cRes || [])
42
         setPhoneList(cRes || [])
43
       })
43
       })
44
     })
44
     })

+ 10
- 6
src/pages/WuYe/BaoXiuQuYu/index.css View File

11
   position: relative;
11
   position: relative;
12
   overflow: hidden;
12
   overflow: hidden;
13
 }
13
 }
14
+.WuYeBaoXiuQuYu > view.AdvContent > view {
15
+  width: 100%;
16
+  padding-bottom: 30%;
17
+  background: #fff;
18
+  border-radius: 10px;
19
+}
20
+.WuYeBaoXiuQuYu > view.AdvContent > view image {
21
+  width: 100%;
22
+  height: 100%;
23
+}
14
 .WuYeBaoXiuQuYu > view:first-child {
24
 .WuYeBaoXiuQuYu > view:first-child {
15
   margin-top: 30px;
25
   margin-top: 30px;
16
 }
26
 }
34
   font-weight: bold;
44
   font-weight: bold;
35
   line-height: 60px;
45
   line-height: 60px;
36
 }
46
 }
37
-.WuYeBaoXiuQuYu > view > view > view > text:first-child {
38
-  font-weight: normal;
39
-  font-size: 40px;
40
-  color: #F35844;
41
-  margin-right: 20px;
42
-}
43
 .WuYeBaoXiuQuYu > view > view > text {
47
 .WuYeBaoXiuQuYu > view > view > text {
44
   display: block;
48
   display: block;
45
   font-size: 24px;
49
   font-size: 24px;

+ 5
- 5
src/pages/WuYe/BaoXiuQuYu/index.jsx View File

22
   return (
22
   return (
23
     <Page>
23
     <Page>
24
       <view className='WuYeBaoXiuQuYu'>
24
       <view className='WuYeBaoXiuQuYu'>
25
+        <view className='AdvContent'>
26
+          <view>
27
+            <image mode='aspectFill' src='https://zhiyun-image.oss-cn-shanghai.aliyuncs.com/xiangsong/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20201223144943.png' className='centerLabel'></image>
28
+          </view>
29
+        </view>
25
         {
30
         {
26
           TypeList.map((item, index) => (
31
           TypeList.map((item, index) => (
27
             <view key={`WuYeBaoXiuQuYu-${index}`}>
32
             <view key={`WuYeBaoXiuQuYu-${index}`}>
37
             </view>
42
             </view>
38
           ))
43
           ))
39
         }
44
         }
40
-        <view className='AdvContent'>
41
-          <view>
42
-            <image mode='aspectFill' src={null} className='centerLabel'></image>
43
-          </view>
44
-        </view>
45
       </view>
45
       </view>
46
     </Page>
46
     </Page>
47
   )
47
   )

+ 4
- 0
src/pages/WuYe/BaoXiuQuYu/index.less View File

17
         padding-bottom: 30%;
17
         padding-bottom: 30%;
18
         background: #fff;
18
         background: #fff;
19
         border-radius: 10px;
19
         border-radius: 10px;
20
+        image {
21
+          width: 100%;
22
+          height: 100%;
23
+        }
20
       }
24
       }
21
     }
25
     }
22
 
26
 

+ 3
- 0
src/pages/WuYe/GongGongFuWu/index.config.js View File

1
+export default {
2
+  navigationBarTitleText: '公共服务'
3
+}

+ 37
- 0
src/pages/WuYe/GongGongFuWu/index.css View File

1
+.GongGongFuWu {
2
+  width: 100%;
3
+  height: 100%;
4
+  overflow: hidden;
5
+}
6
+.GongGongFuWu > .GongGongFuWuContent {
7
+  padding: 0 30px;
8
+  position: relative;
9
+  overflow: hidden;
10
+}
11
+.GongGongFuWu > .GongGongFuWuContent .ListItem {
12
+  align-items: center;
13
+  border-bottom: 2px solid #f8f8f8;
14
+  position: relative;
15
+  overflow: hidden;
16
+}
17
+.GongGongFuWu > .GongGongFuWuContent .ListItem > text {
18
+  font-size: 30px;
19
+  color: #999;
20
+}
21
+.GongGongFuWu > .GongGongFuWuContent .ListItem > view {
22
+  padding: 10px 0;
23
+  margin-right: 20px;
24
+  position: relative;
25
+  overflow: hidden;
26
+}
27
+.GongGongFuWu > .GongGongFuWuContent .ListItem > view > text {
28
+  display: block;
29
+  font-size: 26px;
30
+  line-height: 36px;
31
+  color: #06a7e4;
32
+}
33
+.GongGongFuWu > .GongGongFuWuContent .ListItem > view > text:first-child {
34
+  font-size: 30px;
35
+  color: #333;
36
+  margin-bottom: 10px;
37
+}

+ 39
- 0
src/pages/WuYe/GongGongFuWu/index.jsx View File

1
+import React, { useState, useEffect } from 'react'
2
+import Page from '@/layouts'
3
+import Taro from '@tarojs/taro'
4
+import request, { apis } from '@/utils/request'
5
+// import { Input } from '@tarojs/components'
6
+import '@/assets/css/reset.less'
7
+import '@/assets/css/iconfont.less'
8
+import './index.less'
9
+
10
+export default function GongGongFuWu () {
11
+
12
+  const [PageList, setPageList] = useState([])
13
+
14
+  useEffect(() => {
15
+    request({ ...apis.getWuYePhone, params: { type: 'common' } }).then((res) => { // 获取公共电话
16
+      setPageList(res || [])
17
+    })
18
+  }, [])
19
+
20
+  return (
21
+    <Page>
22
+      <view className='GongGongFuWu'>
23
+        <view className='GongGongFuWuContent'>
24
+          {
25
+            PageList.map((item, index) => (
26
+              <view className='ListItem flex-h' key={`FuWuItem-${index}`} onClick={() => { Taro.makePhoneCall({ phoneNumber: item.tel }) }}>
27
+                <view className='flex-item'>
28
+                  <text>{item.name}</text>
29
+                  <text>{item.tel}</text>
30
+                </view>
31
+                <text className='iconfont iconjiantouright'></text>
32
+              </view>
33
+            ))
34
+          }
35
+        </view>
36
+      </view>
37
+    </Page>
38
+  )
39
+}

+ 43
- 0
src/pages/WuYe/GongGongFuWu/index.less View File

1
+.GongGongFuWu {
2
+  width: 100%;
3
+  height: 100%;
4
+  overflow: hidden;
5
+
6
+  >.GongGongFuWuContent {
7
+    padding: 0 30px;
8
+    position: relative;
9
+    overflow: hidden;
10
+
11
+    .ListItem {
12
+      align-items: center;
13
+      border-bottom: 2px solid #f8f8f8;
14
+      position: relative;
15
+      overflow: hidden;
16
+
17
+      >text {
18
+        font-size: 30px;
19
+        color: #999;
20
+      }
21
+
22
+      >view {
23
+        padding: 10px 0;
24
+        margin-right: 20px;
25
+        position: relative;
26
+        overflow: hidden;
27
+
28
+        >text {
29
+          display: block;
30
+          font-size: 26px;
31
+          line-height: 36px;
32
+          color: #06a7e4;
33
+
34
+          &:first-child {
35
+            font-size: 30px;
36
+            color: #333;
37
+            margin-bottom: 10px;
38
+          }
39
+        }
40
+      }
41
+    }
42
+  }
43
+}

+ 1
- 1
src/pages/WuYe/JiaoFeiDetail/index.jsx View File

105
   }
105
   }
106
 
106
 
107
   const Init = () => {
107
   const Init = () => {
108
-    request({ ...apis.getWuYePhone }).then((res) => { // 获取物业电话
108
+    request({ ...apis.getWuYePhone, params: { type: 'prop' } }).then((res) => { // 获取物业电话
109
       setPhoneList(res || [])
109
       setPhoneList(res || [])
110
     })
110
     })
111
   }
111
   }