瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

吃个甘蔗嚼一年 3 年之前
父節點
當前提交
68e48ac2bf
共有 89 個檔案被更改,包括 3604 行新增16205 行删除
  1. 15
    0
      .vscode/launch.json
  2. 0
    16196
      package-lock.json
  3. 7
    6
      package.json
  4. 7
    0
      src/app.config.js
  5. 二進制
      src/assets/icons/housemantj/backTop.png
  6. 二進制
      src/assets/icons/housemantj/dp.jpg
  7. 二進制
      src/assets/icons/housemantj/fd.jpg
  8. 二進制
      src/assets/icons/housemantj/foodtip.png
  9. 二進制
      src/assets/icons/housemantj/fximg.png
  10. 二進制
      src/assets/icons/housemantj/gl.jpg
  11. 二進制
      src/assets/icons/housemantj/gltip.png
  12. 二進制
      src/assets/icons/housemantj/location.png
  13. 二進制
      src/assets/icons/housemantj/mj.jpg
  14. 二進制
      src/assets/icons/housemantj/mj2.jpg
  15. 二進制
      src/assets/icons/housemantj/mjtip.png
  16. 二進制
      src/assets/icons/housemantj/ms.jpg
  17. 二進制
      src/assets/icons/housemantj/ms2.jpg
  18. 二進制
      src/assets/icons/housemantj/ms3.jpg
  19. 二進制
      src/assets/icons/housemantj/onlove.png
  20. 二進制
      src/assets/icons/housemantj/pay.png
  21. 二進制
      src/assets/icons/housemantj/search.png
  22. 二進制
      src/assets/icons/housemantj/tip.png
  23. 二進制
      src/assets/icons/housemantj/yytime.png
  24. 二進制
      src/assets/icons/housemantj/znz.png
  25. 二進制
      src/assets/icons/housemantj/地址.png
  26. 二進制
      src/assets/icons/housemantj/已收藏.png
  27. 二進制
      src/assets/icons/housemantj/推荐景点.png
  28. 二進制
      src/assets/icons/housemantj/推荐美食.png
  29. 二進制
      src/assets/icons/housemantj/收藏.png
  30. 二進制
      src/assets/icons/housemantj/景点分享.png
  31. 二進制
      src/assets/icons/housemantj/景点收藏.png
  32. 二進制
      src/assets/icons/housemantj/景点爆赞.png
  33. 二進制
      src/assets/icons/housemantj/查看更多.png
  34. 二進制
      src/assets/icons/housemantj/标题装饰.png
  35. 二進制
      src/assets/icons/housemantj/爱心.png
  36. 二進制
      src/assets/icons/housemantj/营业时间.png
  37. 二進制
      src/assets/icons/landlord/分享链接.png
  38. 二進制
      src/assets/icons/landlord/删除.png
  39. 二進制
      src/assets/icons/landlord/定位 位置.png
  40. 二進制
      src/assets/icons/landlord/我的收入.png
  41. 二進制
      src/assets/icons/landlord/我的收入2.png
  42. 二進制
      src/assets/icons/landlord/我的收入按下.png
  43. 二進制
      src/assets/icons/landlord/房源管理.png
  44. 二進制
      src/assets/icons/landlord/房源管理按下.png
  45. 二進制
      src/assets/icons/landlord/查看入住人.png
  46. 二進制
      src/assets/icons/landlord/添加.png
  47. 二進制
      src/assets/icons/login/LOGO.png
  48. 二進制
      src/assets/icons/shopKeeper/小眼睛-闭上.png
  49. 二進制
      src/assets/icons/shopKeeper/小眼睛.png
  50. 二進制
      src/assets/icons/shopKeeper/推广收入.png
  51. 二進制
      src/assets/icons/shopKeeper/推广收入按下.png
  52. 二進制
      src/assets/icons/shopKeeper/订单收入.png
  53. 二進制
      src/assets/icons/shopKeeper/订单收入按下.png
  54. 39
    0
      src/components/CustTabBar/index.jsx
  55. 6
    0
      src/components/CustTabBar/style.less
  56. 51
    0
      src/components/Landlord/HouseManage/houseManage.jsx
  57. 89
    0
      src/components/Landlord/HouseManage/houseManage.less
  58. 96
    0
      src/components/Landlord/Income/income.jsx
  59. 120
    0
      src/components/Landlord/Income/income.less
  60. 112
    0
      src/components/spreads/ShopKeeper/shopKeeper.jsx
  61. 247
    0
      src/components/spreads/ShopKeeper/shopKeeper.less
  62. 58
    0
      src/components/spreads/Sparead/spreadMoney.jsx
  63. 117
    0
      src/components/spreads/Sparead/spreadMoney.less
  64. 4
    0
      src/pages/details/foodDetails/foodDetails.config.js
  65. 304
    0
      src/pages/details/foodDetails/foodDetails.jsx
  66. 406
    0
      src/pages/details/foodDetails/foodDetails.less
  67. 4
    0
      src/pages/details/mjDetails/sceneryDetails.config.js
  68. 247
    0
      src/pages/details/mjDetails/sceneryDetails.jsx
  69. 384
    0
      src/pages/details/mjDetails/sceneryDetails.less
  70. 1
    1
      src/pages/index/index.config.js
  71. 2
    1
      src/pages/index/index.jsx
  72. 1
    0
      src/pages/index/index.less
  73. 329
    1
      src/pages/index/tabs/Recommend.jsx
  74. 196
    0
      src/pages/index/tabs/less/Recommend.less
  75. 8
    0
      src/pages/landlord/landlord.config.js
  76. 49
    0
      src/pages/landlord/landlord.jsx
  77. 20
    0
      src/pages/landlord/landlord.less
  78. 4
    0
      src/pages/login/login.config.js
  79. 23
    0
      src/pages/login/login.jsx
  80. 42
    0
      src/pages/login/login.less
  81. 4
    0
      src/pages/search/search.config.js
  82. 51
    0
      src/pages/search/search.jsx
  83. 61
    0
      src/pages/search/search.less
  84. 4
    0
      src/pages/searchResult/searchResult.config.js
  85. 267
    0
      src/pages/searchResult/searchResult.jsx
  86. 153
    0
      src/pages/searchResult/searchResult.less
  87. 7
    0
      src/pages/spread/spreadIndex.config.js
  88. 49
    0
      src/pages/spread/spreadIndex.jsx
  89. 20
    0
      src/pages/spread/spreadIndex.less

+ 15
- 0
.vscode/launch.json 查看文件

@@ -0,0 +1,15 @@
1
+{
2
+    // 使用 IntelliSense 了解相关属性。 
3
+    // 悬停以查看现有属性的描述。
4
+    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5
+    "version": "0.2.0",
6
+    "configurations": [
7
+        {
8
+            "type": "pwa-chrome",
9
+            "request": "launch",
10
+            "name": "Launch Chrome against localhost",
11
+            "url": "http://localhost:8080",
12
+            "webRoot": "${workspaceFolder}"
13
+        }
14
+    ]
15
+}

+ 0
- 16196
package-lock.json
文件差異過大導致無法顯示
查看文件


+ 7
- 6
package.json 查看文件

@@ -41,19 +41,20 @@
41 41
     "@tarojs/react": "3.3.2",
42 42
     "@tarojs/runtime": "3.3.2",
43 43
     "@tarojs/taro": "3.3.2",
44
-    "react": "^17.0.0"
44
+    "react": "^17.0.0",
45
+    "react-dom": "^17.0.0"
45 46
   },
46 47
   "devDependencies": {
47
-    "@types/webpack-env": "^1.13.6",
48
-    "@types/react": "^17.0.2",
49
-    "@tarojs/mini-runner": "3.3.2",
50 48
     "@babel/core": "^7.8.0",
49
+    "@tarojs/mini-runner": "3.3.2",
51 50
     "@tarojs/webpack-runner": "3.3.2",
51
+    "@types/react": "^17.0.2",
52
+    "@types/webpack-env": "^1.13.6",
52 53
     "babel-preset-taro": "3.3.2",
53
-    "eslint-config-taro": "3.3.2",
54 54
     "eslint": "^6.8.0",
55
-    "eslint-plugin-react": "^7.8.2",
55
+    "eslint-config-taro": "3.3.2",
56 56
     "eslint-plugin-import": "^2.12.0",
57
+    "eslint-plugin-react": "^7.8.2",
57 58
     "eslint-plugin-react-hooks": "^4.2.0",
58 59
     "stylelint": "9.3.0"
59 60
   }

+ 7
- 0
src/app.config.js 查看文件

@@ -2,6 +2,13 @@ export default {
2 2
   pages: [
3 3
     'pages/index/index',
4 4
     'pages/test/index',
5
+    'pages/search/search',
6
+    'pages/searchResult/searchResult',
7
+    'pages/details/foodDetails/foodDetails',
8
+    'pages/details/mjDetails/sceneryDetails',
9
+    'pages/login/login',
10
+    'pages/spread/spreadIndex',
11
+    'pages/landlord/landlord',
5 12
     'pages/PayOrder/index',
6 13
     'pages/MineUserAll/ContactMe/index',
7 14
     'pages/MineUserAll/HomeLogo/index',

二進制
src/assets/icons/housemantj/backTop.png 查看文件


二進制
src/assets/icons/housemantj/dp.jpg 查看文件


二進制
src/assets/icons/housemantj/fd.jpg 查看文件


二進制
src/assets/icons/housemantj/foodtip.png 查看文件


二進制
src/assets/icons/housemantj/fximg.png 查看文件


二進制
src/assets/icons/housemantj/gl.jpg 查看文件


二進制
src/assets/icons/housemantj/gltip.png 查看文件


二進制
src/assets/icons/housemantj/location.png 查看文件


二進制
src/assets/icons/housemantj/mj.jpg 查看文件


二進制
src/assets/icons/housemantj/mj2.jpg 查看文件


二進制
src/assets/icons/housemantj/mjtip.png 查看文件


二進制
src/assets/icons/housemantj/ms.jpg 查看文件


二進制
src/assets/icons/housemantj/ms2.jpg 查看文件


二進制
src/assets/icons/housemantj/ms3.jpg 查看文件


二進制
src/assets/icons/housemantj/onlove.png 查看文件


二進制
src/assets/icons/housemantj/pay.png 查看文件


二進制
src/assets/icons/housemantj/search.png 查看文件


二進制
src/assets/icons/housemantj/tip.png 查看文件


二進制
src/assets/icons/housemantj/yytime.png 查看文件


二進制
src/assets/icons/housemantj/znz.png 查看文件


二進制
src/assets/icons/housemantj/地址.png 查看文件


二進制
src/assets/icons/housemantj/已收藏.png 查看文件


二進制
src/assets/icons/housemantj/推荐景点.png 查看文件


二進制
src/assets/icons/housemantj/推荐美食.png 查看文件


二進制
src/assets/icons/housemantj/收藏.png 查看文件


二進制
src/assets/icons/housemantj/景点分享.png 查看文件


二進制
src/assets/icons/housemantj/景点收藏.png 查看文件


二進制
src/assets/icons/housemantj/景点爆赞.png 查看文件


二進制
src/assets/icons/housemantj/查看更多.png 查看文件


二進制
src/assets/icons/housemantj/标题装饰.png 查看文件


二進制
src/assets/icons/housemantj/爱心.png 查看文件


二進制
src/assets/icons/housemantj/营业时间.png 查看文件


二進制
src/assets/icons/landlord/分享链接.png 查看文件


二進制
src/assets/icons/landlord/删除.png 查看文件


二進制
src/assets/icons/landlord/定位 位置.png 查看文件


二進制
src/assets/icons/landlord/我的收入.png 查看文件


二進制
src/assets/icons/landlord/我的收入2.png 查看文件


二進制
src/assets/icons/landlord/我的收入按下.png 查看文件


二進制
src/assets/icons/landlord/房源管理.png 查看文件


二進制
src/assets/icons/landlord/房源管理按下.png 查看文件


二進制
src/assets/icons/landlord/查看入住人.png 查看文件


二進制
src/assets/icons/landlord/添加.png 查看文件


二進制
src/assets/icons/login/LOGO.png 查看文件


二進制
src/assets/icons/shopKeeper/小眼睛-闭上.png 查看文件


二進制
src/assets/icons/shopKeeper/小眼睛.png 查看文件


二進制
src/assets/icons/shopKeeper/推广收入.png 查看文件


二進制
src/assets/icons/shopKeeper/推广收入按下.png 查看文件


二進制
src/assets/icons/shopKeeper/订单收入.png 查看文件


二進制
src/assets/icons/shopKeeper/订单收入按下.png 查看文件


+ 39
- 0
src/components/CustTabBar/index.jsx 查看文件

@@ -0,0 +1,39 @@
1
+
2
+import React from 'react'
3
+import './style.less'
4
+
5
+export default (props) => {
6
+  const { extClass = '', current, onChange, children } = props
7
+
8
+  const handleTabChange = (e, index) => {
9
+    if (e) {
10
+      e.detail = {
11
+        ...e.detail || {},
12
+        index,
13
+      }
14
+      // Object.assign(e.detail, { index })
15
+    }
16
+
17
+    if (onChange) {
18
+      onChange(e)
19
+    }
20
+  }
21
+
22
+  const className = `weui-tabbar cust-tabbar ${extClass}`
23
+
24
+  return (
25
+    <view className={className}>
26
+      {
27
+        React.Children.toArray(children).map((child, index) => {
28
+          const itemClass = `weui-tabbar__item cust-tabbar-item`
29
+
30
+          return (
31
+            <view className={itemClass} onClick={(e) => handleTabChange(e, index)}>
32
+              {child}
33
+            </view>
34
+          )
35
+        })
36
+      }
37
+    </view>
38
+  )
39
+}

+ 6
- 0
src/components/CustTabBar/style.less 查看文件

@@ -0,0 +1,6 @@
1
+.cust-tabbar {
2
+  &-item {
3
+    font-size: 1em;
4
+    padding: 0;
5
+  }
6
+}

+ 51
- 0
src/components/Landlord/HouseManage/houseManage.jsx 查看文件

@@ -0,0 +1,51 @@
1
+import Taro from '@tarojs/taro'
2
+import CustomNav from '@/components/CustomNav'
3
+import pImg from '../../../assets/icons/landlord/定位 位置.png'
4
+import see from '../../../assets/icons/landlord/查看入住人.png'
5
+import share from '../../../assets/icons/landlord/分享链接.png'
6
+import del from '../../../assets/icons/landlord/删除.png'
7
+import addImg from '../../../assets/icons/landlord/添加.png'
8
+import iconsearch from '../../../assets/icons/housemantj/search.png'
9
+import './houseManage.less'
10
+
11
+
12
+export default (props) => {
13
+  const toIncome=()=>{
14
+    Taro.redirectTo({url:'/pages/landlord/income/income'})
15
+  }
16
+  return (
17
+    <view>
18
+      <view>
19
+        <CustomNav logo={null} title='十公里周边指南' />
20
+      </view>
21
+      <view style={{ padding: '0 30rpx', height: '100%' }}>
22
+        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 204px)' }}>
23
+          <view className='position'>
24
+            <image className='pImg' src={pImg} />
25
+            当前店铺:<text>南京紫荆国际公寓酒店</text>
26
+          </view>
27
+          <view className='search'>
28
+            <input className='searchInput' disabled />
29
+            <image className='searchicon' src={iconsearch} />
30
+            <view className="searchword">请输入关键字搜索</view>
31
+          </view>
32
+          <view>
33
+            <view className='houseCard'>
34
+              <view className='houseName'>南京紫荆国际公寓酒店</view>
35
+              <view className='operation'>
36
+                <view><image src={see} /><text>查看入住人</text></view>
37
+                <view><image src={share} /><text>分享链接</text></view>
38
+                <view><image src={del} /><text>删除房源</text></view>
39
+              </view>
40
+            </view>
41
+           
42
+          </view>
43
+        </scroll-view>        
44
+      </view>
45
+      <view className='addHouse'>
46
+        <image className='addImg' src={addImg} />添加房源
47
+      </view>
48
+    
49
+      </view>
50
+  )
51
+}

+ 89
- 0
src/components/Landlord/HouseManage/houseManage.less 查看文件

@@ -0,0 +1,89 @@
1
+.position{
2
+  height: 27px;
3
+  font-size: 28px;
4
+  color: #202020;
5
+  padding-left: 25px;
6
+  .pImg{
7
+    width: 35px;
8
+    height: 42px;
9
+    position: relative;
10
+    top: 10px;
11
+    right: 21px;
12
+  }
13
+}
14
+.search{
15
+  padding: 40px 0  30px 0;
16
+  position: relative;
17
+  .searchInput{    
18
+    height: 68px;
19
+    background: #F8F8F8;
20
+    border-radius: 34px;
21
+    box-sizing: border-box;
22
+  }
23
+  .searchicon{
24
+    width: 25px;
25
+    height: 25px;
26
+    position: absolute;
27
+    left: calc(50% - 135px);
28
+    top: 64px;
29
+  }
30
+  .searchword{
31
+    height: 23px;
32
+    font-size: 24px;
33
+    color: #C0C8D3;
34
+    position: absolute;
35
+    left: calc(50% - 100px);
36
+    bottom: 60px;
37
+  }
38
+}
39
+.houseCard{
40
+  background: #FFFFFF;
41
+  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
42
+  border-radius: 12px;
43
+  padding: 40px 30px 41px 30px;
44
+  text-align: center;
45
+  .houseName{
46
+    height: 122px;
47
+    font-size: 32px;
48
+    font-weight: bold;
49
+    color: #202020;
50
+    width:100%;
51
+  }
52
+  .operation{
53
+    column-count: 3;
54
+    image{
55
+      width: 28px;
56
+      height: 28px;
57
+      margin-right: 10px;
58
+      position: relative;
59
+      top: 5px;
60
+    }
61
+    text{      
62
+      font-size: 28px;
63
+      color: #202020;
64
+    }
65
+  }
66
+}
67
+.addHouse{
68
+  width: calc(100% - 60px);
69
+  margin: 0 30px;
70
+  height: 88px;
71
+  background: #274291;
72
+  border-radius: 12px;
73
+  font-family: DengXian;
74
+  font-weight: bold;
75
+  color: #FFFFFF;
76
+  text-align: center;
77
+  line-height: 88px;
78
+  position: absolute;
79
+  bottom: 178px;
80
+  image{
81
+    width: 32px;
82
+    height: 32px;
83
+    border: 2px solid #FFFFFF;
84
+    border-radius: 4px;
85
+    position: relative;
86
+    right: 11px;
87
+    top: 6px;
88
+  }
89
+}

+ 96
- 0
src/components/Landlord/Income/income.jsx 查看文件

@@ -0,0 +1,96 @@
1
+import Taro from '@tarojs/taro'
2
+import CustomNav from '@/components/CustomNav'
3
+import './income.less'
4
+import eyes from '../../../assets/icons/shopKeeper/小眼睛.png'
5
+import ceyes from '../../../assets/icons/shopKeeper/小眼睛-闭上.png'
6
+import sImg from '../../../assets/icons/landlord/我的收入2.png'
7
+
8
+
9
+export default (props) => {
10
+  const toHouse=()=>{
11
+    Taro.navigateTo({url:'/pages/landlord/houseManage/houseManage'})
12
+  }
13
+  return (
14
+    <view>
15
+      <view>
16
+        <CustomNav title='十公里' />
17
+      </view>
18
+      <view style={{ padding: '30rpx', height: '100%' }}>
19
+        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
20
+          <view className='storexx'>
21
+              <view className='storeName'>店名:<text>Yun咖 云里 咖啡店</text></view>
22
+              <view className='money'>
23
+                <view className='sleft'>
24
+                  <view className='lword'>全年收入(税前)</view>
25
+                  <view className='yearMoney'>
26
+                    <text>2800000</text>元
27
+                    <image className='micon' src={eyes}></image>
28
+                  </view>
29
+                </view>
30
+                <view className='line' />
31
+                <view className='sright'>
32
+                  <view className='rword'>当月收入(税前)</view>
33
+                  <view className='monthMoney'>
34
+                    <text>******</text>元
35
+                    <image className='micon2' src={ceyes}></image>
36
+                  </view></view>
37
+              </view>
38
+            </view>
39
+          <view className='title'>推广收入记录</view>
40
+          <view>
41
+            <view className='spreadCard'>
42
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
43
+              <view className='card'>
44
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
45
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
46
+                <image className='spreadImg' src={sImg} />
47
+              </view>
48
+            </view>
49
+            <view className='spreadCard'>
50
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
51
+              <view className='card'>
52
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
53
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
54
+                <image className='spreadImg' src={sImg} />
55
+              </view>
56
+            </view>
57
+            <view className='spreadCard'>
58
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
59
+              <view className='card'>
60
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
61
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
62
+                <image className='spreadImg' src={sImg} />
63
+              </view>
64
+            </view>
65
+            <view className='spreadCard'>
66
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
67
+              <view className='card'>
68
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
69
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
70
+                <image className='spreadImg' src={sImg} />
71
+              </view>
72
+            </view>
73
+            <view className='spreadCard'>
74
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
75
+              <view className='card'>
76
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
77
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
78
+                <image className='spreadImg' src={sImg} />
79
+              </view>
80
+            </view>
81
+            <view className='spreadCard'>
82
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
83
+              <view className='card'>
84
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
85
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
86
+                <image className='spreadImg' src={sImg} />
87
+              </view>
88
+            </view>
89
+          </view>
90
+          <view className='botton'>已经到底了~</view>
91
+        </scroll-view>        
92
+      </view>
93
+      
94
+      </view>
95
+  )
96
+}

+ 120
- 0
src/components/Landlord/Income/income.less 查看文件

@@ -0,0 +1,120 @@
1
+.storexx{
2
+  text-align: center;
3
+  height: 302px;
4
+  background: #FFFFFF;
5
+  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
6
+  border-radius: 24px;
7
+  padding: 50px 30px 64px 40px;
8
+  box-sizing: border-box;
9
+  .storeName{
10
+    height: 26px;
11
+    font-size: 28px;
12
+    font-weight: bold;
13
+    color: #202020;
14
+    margin-bottom:58px;
15
+  }
16
+  
17
+  .sleft{
18
+    float: left;
19
+    .lword{
20
+      height: 25px;
21
+      font-size: 26px;
22
+      color: #666666;
23
+      margin-bottom: 40px;      
24
+      margin-left: 1px;
25
+    }
26
+    .yearMoney{
27
+      height: 30px;
28
+      font-size: 28px;
29
+      font-weight: bold;
30
+      color: #202020;
31
+      text{
32
+        font-size: 40px;
33
+        color: #FF3434
34
+      }
35
+      .micon{
36
+        width: 38px;
37
+        height: 22px;
38
+        margin-left: 19px;
39
+      }
40
+    }
41
+  }
42
+  .line{
43
+    width: 2px;
44
+    height: 128px;
45
+    border-right: 2px dotted #202020;
46
+    opacity: 0.5;
47
+    position: absolute;
48
+    left: calc(50% - 1px);
49
+    display: block;
50
+  }
51
+  .sright{
52
+    float: right;
53
+    text-align: left;
54
+    .rword{
55
+      font-size: 26px;
56
+      color: #666666;
57
+      margin: 0 25px 47px 0;
58
+      text-align: center;
59
+    }
60
+    .monthMoney{
61
+      height: 24px;
62
+      font-size: 28px;
63
+      font-weight: bold;
64
+      color: #202020;
65
+      line-height: 24px;
66
+      text{
67
+        font-size: 40px;
68
+        color: #FF3434;
69
+      }
70
+      .micon2{
71
+        width: 34px;
72
+        height: 16px;
73
+        margin-left: 23px;
74
+        margin-bottom: 7px;
75
+      }
76
+    }
77
+  }
78
+}
79
+.title{
80
+  font-size: 28px;
81
+  color: #202020;
82
+  line-height: 60px;
83
+  margin: 62px 0 10px 1px;
84
+}
85
+.spreadCard{
86
+  margin-bottom: 1px;
87
+  .spreadDate{
88
+    font-size: 20px;
89
+    color: #202020;
90
+    line-height: 60px;
91
+  }
92
+  .card{
93
+    height: 166px;
94
+    background: #FFF;
95
+    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
96
+    border-radius: 12px;
97
+    padding: 40px 0 43px 22px;
98
+    font-size: 24px;
99
+    color: #202020;
100
+    box-sizing: border-box;
101
+    position: relative;
102
+    .spreadMoney{
103
+      line-height: 60px;
104
+    }
105
+    .spreadImg{
106
+      width: 105px;
107
+      height: 100px;
108
+      position: absolute;
109
+      right: 61px;
110
+      top: 33px;
111
+    }
112
+  }
113
+}
114
+.botton{
115
+  font-size: 28px;   
116
+  color: #C0C8D3;
117
+  line-height: 34px;
118
+  text-align: center;
119
+  padding:40px 0 100px 0;
120
+}

+ 112
- 0
src/components/spreads/ShopKeeper/shopKeeper.jsx 查看文件

@@ -0,0 +1,112 @@
1
+import CustomNav from '@/components/CustomNav'
2
+import './shopKeeper.less'
3
+import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
4
+import ceyes from '@/assets/icons/shopKeeper/小眼睛-闭上.png'
5
+import iconsearch from '@/assets/icons/housemantj/search.png'
6
+import ms from '@/assets/icons/housemantj/ms3.jpg'
7
+
8
+
9
+export default (props) => {
10
+  return (
11
+    <view>
12
+      <view>
13
+        <CustomNav title='十公里' />
14
+      </view>
15
+
16
+
17
+      <view style={{ padding: '30rpx', height: '100%' }}>
18
+        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
19
+          <view className='storexx'>
20
+            <view className='storeName'>店名:<text>Yun咖 云里 咖啡店</text></view>
21
+            <view className='tip'>(计算收入以核销为准)</view>
22
+            <view className='money'>
23
+              <view className='sleft'>
24
+                <view className='lword'>全年订单收入(税前)</view>
25
+                <view className='yearMoney'>
26
+                  <text>2800000</text>元
27
+                  <image className='micon' src={eyes}></image>
28
+                </view>
29
+              </view>
30
+              <view className='line' />
31
+              <view className='sright'>
32
+                <view className='rword'>当月订单收入(税前)</view>
33
+                <view className='monthMoney'>
34
+                  <text>******</text>元
35
+                  <image className='micon2' src={ceyes}></image>
36
+                </view></view>
37
+            </view>
38
+          </view>
39
+          <view className='search'>
40
+            <input className='searchInput' disabled />
41
+            <image className='searchicon' src={iconsearch} />
42
+            <view className="searchword">搜索订单(输入客户手机号码)</view>
43
+          </view>
44
+          <view className='orderTab'>
45
+            <view className='unCheck'>未核销订单</view>
46
+            <view className='lClickLine'></view>
47
+            <view className='line' />
48
+            <view className='check'>已核销订单</view>
49
+            <view className='rClickLine'></view>
50
+          </view>
51
+          <view>
52
+            <view className='orderCard'>
53
+              <view style={{ overflow: 'hidden' }}>
54
+                <view className='orderId'>订单编号:<text>ABC123456789</text></view>
55
+                <view className='orderTime'>下单日期:<text>2021-06-22 12:35</text></view>
56
+              </view>
57
+              <view className='order'>
58
+                <image className='orderImg' src={ms} mode='aspectFit' />
59
+                <view className='orderRight'>
60
+                  <view className='foodName'>【SEOUL.创意韩国料理】火爆全南京,
61
+                    新街口又开新店啦...</view>
62
+                  <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>88</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
63
+                  <view>已下单:等待客户上门就餐</view>
64
+                </view>
65
+                <view className='line' />
66
+                <view className='phone'>客户手机:<text>136****9434</text></view>
67
+                <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
68
+              </view>
69
+            </view>
70
+            <view className='orderCard'>
71
+              <view style={{ overflow: 'hidden' }}>
72
+                <view className='orderId'>订单编号:<text>ABC123456789</text></view>
73
+                <view className='orderTime'>下单日期:<text>2021-06-22 12:35</text></view>
74
+              </view>
75
+              <view className='order'>
76
+                <image className='orderImg' src={ms} mode='aspectFit' />
77
+                <view className='orderRight'>
78
+                  <view className='foodName'>【SEOUL.创意韩国料理】火爆全南京,
79
+                    新街口又开新店啦...</view>
80
+                  <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>88</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
81
+                  <view>已下单:等待客户上门就餐</view>
82
+                </view>
83
+                <view className='line' />
84
+                <view className='phone'>客户手机:<text>136****9434</text></view>
85
+                <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
86
+              </view>
87
+            </view>
88
+            <view className='orderCard'>
89
+              <view style={{ overflow: 'hidden' }}>
90
+                <view className='orderId'>订单编号:<text>ABC123456789</text></view>
91
+                <view className='orderTime'>下单日期:<text>2021-06-22 12:35</text></view>
92
+              </view>
93
+              <view className='order'>
94
+                <image className='orderImg' src={ms} mode='aspectFit' />
95
+                <view className='orderRight'>
96
+                  <view className='foodName'>【SEOUL.创意韩国料理】火爆全南京,
97
+                    新街口又开新店啦...</view>
98
+                  <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>88</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
99
+                  <view>已下单:等待客户上门就餐</view>
100
+                </view>
101
+                <view className='line' />
102
+                <view className='phone'>客户手机:<text>136****9434</text></view>
103
+                <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
104
+              </view>
105
+            </view>
106
+          </view>
107
+          <view className='botton'>已经到底了~</view>
108
+        </scroll-view>        
109
+      </view>      
110
+      </view>
111
+  )
112
+}

+ 247
- 0
src/components/spreads/ShopKeeper/shopKeeper.less 查看文件

@@ -0,0 +1,247 @@
1
+.storexx{
2
+  text-align: center;
3
+  height: 342px;
4
+  background: #FFFFFF;
5
+  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
6
+  border-radius: 24px;
7
+  padding: 50px 30px 64px 40px;
8
+  box-sizing: border-box;
9
+  .storeName{
10
+    height: 26px;
11
+    font-size: 28px;
12
+    font-weight: bold;
13
+    color: #202020;
14
+    margin-bottom:27px;
15
+  }
16
+  .tip{
17
+    height: 23px;
18
+    font-size: 24px;
19
+    color: #666666;
20
+    margin-bottom: 48px;
21
+  }
22
+  .sleft{
23
+    float: left;
24
+    .lword{
25
+      height: 25px;
26
+      font-size: 26px;
27
+      color: #666666;
28
+      margin-bottom: 40px;      
29
+      margin-left: 1px;
30
+    }
31
+    .yearMoney{
32
+      height: 30px;
33
+      font-size: 28px;
34
+      font-weight: bold;
35
+      color: #202020;
36
+      text{
37
+        font-size: 40px;
38
+        color: #FF3434
39
+      }
40
+      .micon{
41
+        width: 38px;
42
+        height: 22px;
43
+        margin-left: 19px;
44
+      }
45
+    }
46
+  }
47
+  .line{
48
+    width: 2px;
49
+    height: 128px;
50
+    border-right: 2px dotted #202020;
51
+    opacity: 0.5;
52
+    position: absolute;
53
+    left: calc(50% - 1px);
54
+    display: block;
55
+  }
56
+  .sright{
57
+    float: right;
58
+    text-align: left;
59
+    .rword{
60
+      font-size: 26px;
61
+      color: #666666;
62
+      margin: 0 1px 47px 0;
63
+      text-align: center;
64
+    }
65
+    .monthMoney{
66
+      height: 24px;
67
+      font-size: 28px;
68
+      font-weight: bold;
69
+      color: #202020;
70
+      line-height: 24px;
71
+      text{
72
+        font-size: 40px;
73
+        color: #FF3434;
74
+      }
75
+      .micon2{
76
+        width: 34px;
77
+        height: 16px;
78
+        margin-left: 23px;
79
+        margin-bottom: 7px;
80
+      }
81
+    }
82
+  }
83
+}
84
+
85
+.search{
86
+  padding: 40px 0  30px 0;
87
+  position: relative;
88
+  .searchInput{    
89
+    height: 68px;
90
+    background: #F8F8F8;
91
+    border-radius: 34px;
92
+    box-sizing: border-box;
93
+  }
94
+  .searchicon{
95
+    width: 25px;
96
+    height: 25px;
97
+    position: absolute;
98
+    left: 136px;
99
+    top: 61px;
100
+  }
101
+  .searchword{
102
+    height: 25px;
103
+    font-size: 24px;
104
+    color: #C0C8D3;
105
+    position: absolute;
106
+    left: calc(50% - 141rpx);
107
+    bottom: 60px;
108
+  }
109
+}
110
+.orderTab{
111
+  background: #FFFFFF;
112
+  box-shadow: 0px 2px 18px 0px rgba(0, 0, 0, 0.08);
113
+  border-radius: 24px;
114
+  font-size: 28px;
115
+  font-weight: bold;
116
+  color: #C0C8D3;
117
+  line-height: 60px;
118
+  position: relative;
119
+  .unCheck{    
120
+    font-size: 32px;
121
+    color: #404040;
122
+    display: inline-block;
123
+    margin: 29px 0 33px 101px;
124
+    line-height: 35px;
125
+    height: 30px;
126
+  }
127
+  .lClickLine{
128
+    position: absolute;
129
+    width: 60px;
130
+    height: 6px;
131
+    background: #000;
132
+    left: 20%;
133
+    bottom: 0;
134
+  }
135
+  .line{
136
+    width: 2px;
137
+    height: 56px;
138
+    background: #000;
139
+    opacity: 0.1;
140
+    position: absolute;
141
+    left: 50%;
142
+    bottom: 20px;
143
+  }
144
+  .check{
145
+    display:inline-block;
146
+    line-height: 35px;
147
+    height: 27px;
148
+    font-weight: bold;
149
+    font-size: 28px;
150
+    float: right;
151
+    margin: 33px 105px 32px 0;
152
+  }
153
+  .rClickLine{
154
+    position: absolute;
155
+    width: 60px;
156
+    height: 6px;
157
+    right: 20%;
158
+    bottom: 0;
159
+  }
160
+}
161
+.orderCard{
162
+  margin-bottom: 20px;
163
+  .orderId{
164
+    font-size: 20px;
165
+    color: #666666;
166
+    line-height: 44px;
167
+    float: left;
168
+    margin: 60px 0 32px 0;
169
+
170
+  }
171
+  .orderTime{    
172
+    font-size: 20px;
173
+    color: #666666;
174
+    line-height: 44px;
175
+    float: right;
176
+    margin: 60px 0 32px 0;
177
+  }
178
+  .order{
179
+    background: #FFFFFF;
180
+    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
181
+    border-radius: 12px;
182
+    padding: 20px;
183
+    .orderImg{
184
+      width: 194px;
185
+      height: 194px;
186
+      border-radius: 22px;
187
+      float: left;
188
+      margin:0 26px 30px 0;
189
+    }
190
+    .orderRight{
191
+      .foodName{
192
+        height: 63px;
193
+        font-size: 24px;
194
+        color: #333333;
195
+        line-height: 40px;
196
+      }
197
+      .price{
198
+        font-size: 20px;
199
+        font-weight: bold;
200
+        color: #202020;
201
+        line-height: 44px;
202
+        margin: 37px 0 40px 0;
203
+        height: 19px;
204
+        .pnum{
205
+          color: #333333;
206
+          font-weight: 400;
207
+          margin-left: 47px;         
208
+        }
209
+      }
210
+      .price+view{
211
+        font-size: 20px;
212
+        font-weight: bold;
213
+        color: #FF3434;
214
+        line-height: 44px;
215
+        margin-bottom: 35px;
216
+        height: 19px;
217
+      }
218
+    }
219
+    .line{
220
+      width: 100%;
221
+      height: 2px;
222
+      background: #000;
223
+      opacity: 0.1;
224
+    }
225
+    .phone{
226
+      font-size: 24px;
227
+      color: #666666;
228
+      line-height: 44px;
229
+      height: 23px;
230
+      margin: 30px 0;
231
+    }
232
+    .tripTime{
233
+      font-size: 24px;
234
+      color: #666666;
235
+      line-height: 44px;
236
+      margin-bottom: 30px;
237
+    }
238
+  }
239
+}
240
+.botton{
241
+  font-size: 28px;   
242
+  color: #C0C8D3;
243
+  line-height: 34px;
244
+  text-align: center;
245
+  padding:40px 0 100px 0;
246
+}
247
+

+ 58
- 0
src/components/spreads/Sparead/spreadMoney.jsx 查看文件

@@ -0,0 +1,58 @@
1
+import CustomNav from '@/components/CustomNav'
2
+import './spreadMoney.less'
3
+import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
4
+import ceyes from '@/assets/icons/shopKeeper/小眼睛-闭上.png'
5
+
6
+
7
+export default (props) => {
8
+  return (
9
+    <view>
10
+      <view>
11
+        <CustomNav title='十公里' />
12
+      </view>
13
+      <view style={{ padding: '30rpx', height: '100%' }}>
14
+        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
15
+          <view className='storexx'>
16
+              <view className='storeName'>店名:<text>Yun咖 云里 咖啡店</text></view>
17
+              <view className='tip'>(计算收入以核销为准)</view>
18
+              <view className='money'>
19
+                <view className='sleft'>
20
+                  <view className='lword'>全年推广收入(税前)</view>
21
+                  <view className='yearMoney'>
22
+                    <text>2800000</text>元
23
+                    <image className='micon' src={eyes}></image>
24
+                  </view>
25
+                </view>
26
+                <view className='line' />
27
+                <view className='sright'>
28
+                  <view className='rword'>当月推广收入(税前)</view>
29
+                  <view className='monthMoney'>
30
+                    <text>******</text>元
31
+                    <image className='micon2' src={ceyes}></image>
32
+                  </view></view>
33
+              </view>
34
+            </view>
35
+          <view className='title'>推广收入记录</view>
36
+          <view>
37
+            <view className='spreadCard'>
38
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
39
+              <view className='card'>
40
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
41
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
42
+              </view>
43
+            </view>
44
+            <view className='spreadCard'>
45
+              <view className='spreadDate'>日期:<text>2021-06-24</text></view>
46
+              <view className='card'>
47
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>2021-06-24  20:45</text></view>
48
+                <view className='spreadMoney'>收入金额:<text>5.00</text>元</view> 
49
+              </view>
50
+            </view>
51
+          </view>
52
+          <view className='botton'>已经到底了~</view>
53
+        </scroll-view>        
54
+      </view>
55
+      
56
+      </view>
57
+  )
58
+}

+ 117
- 0
src/components/spreads/Sparead/spreadMoney.less 查看文件

@@ -0,0 +1,117 @@
1
+.storexx{
2
+  text-align: center;
3
+  height: 342px;
4
+  background: #FFFFFF;
5
+  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
6
+  border-radius: 24px;
7
+  padding: 50px 30px 64px 40px;
8
+  box-sizing: border-box;
9
+  .storeName{
10
+    height: 26px;
11
+    font-size: 28px;
12
+    font-weight: bold;
13
+    color: #202020;
14
+    margin-bottom:27px;
15
+  }
16
+  .tip{
17
+    height: 23px;
18
+    font-size: 24px;
19
+    color: #666666;
20
+    margin-bottom: 48px;
21
+  }
22
+  .sleft{
23
+    float: left;
24
+    .lword{
25
+      height: 25px;
26
+      font-size: 26px;
27
+      color: #666666;
28
+      margin-bottom: 40px;      
29
+      margin-left: 1px;
30
+    }
31
+    .yearMoney{
32
+      height: 30px;
33
+      font-size: 28px;
34
+      font-weight: bold;
35
+      color: #202020;
36
+      text{
37
+        font-size: 40px;
38
+        color: #FF3434
39
+      }
40
+      .micon{
41
+        width: 38px;
42
+        height: 22px;
43
+        margin-left: 19px;
44
+      }
45
+    }
46
+  }
47
+  .line{
48
+    width: 2px;
49
+    height: 128px;
50
+    border-right: 2px dotted #202020;
51
+    opacity: 0.5;
52
+    position: absolute;
53
+    left: calc(50% - 1px);
54
+    display: block;
55
+  }
56
+  .sright{
57
+    float: right;
58
+    text-align: left;
59
+    .rword{
60
+      font-size: 26px;
61
+      color: #666666;
62
+      margin: 0 1px 47px 0;
63
+      text-align: center;
64
+    }
65
+    .monthMoney{
66
+      height: 24px;
67
+      font-size: 28px;
68
+      font-weight: bold;
69
+      color: #202020;
70
+      line-height: 24px;
71
+      text{
72
+        font-size: 40px;
73
+        color: #FF3434;
74
+      }
75
+      .micon2{
76
+        width: 34px;
77
+        height: 16px;
78
+        margin-left: 23px;
79
+        margin-bottom: 7px;
80
+      }
81
+    }
82
+  }
83
+}
84
+.title{
85
+  font-size: 28px;
86
+  color: #202020;
87
+  line-height: 60px;
88
+  margin: 62px 0 10px 1px;
89
+}
90
+.spreadCard{
91
+  margin-bottom: 1px;
92
+  .spreadDate{
93
+    font-size: 20px;
94
+    color: #202020;
95
+    line-height: 60px;
96
+  }
97
+  .card{
98
+    height: 166px;
99
+    background: #FFF;
100
+    box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
101
+    border-radius: 12px;
102
+    padding: 40px 0 43px 22px;
103
+    font-size: 24px;
104
+    color: #202020;
105
+    box-sizing: border-box;
106
+    .spreadMoney{
107
+      line-height: 60px;
108
+    }
109
+  }
110
+}
111
+.botton{
112
+  font-size: 28px;   
113
+  color: #C0C8D3;
114
+  line-height: 34px;
115
+  text-align: center;
116
+  padding:40px 0 100px 0;
117
+}

+ 4
- 0
src/pages/details/foodDetails/foodDetails.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+    navigationBarTitleText: '美食详情',
3
+    navigationStyle: 'custom',
4
+  }

+ 304
- 0
src/pages/details/foodDetails/foodDetails.jsx 查看文件

@@ -0,0 +1,304 @@
1
+import CustomNav from '@/components/CustomNav'
2
+import { Icon } from '@tarojs/components'
3
+import Taro from '@tarojs/taro'
4
+import fd from '../../../assets/icons/housemantj/fd.jpg'
5
+import ax from '../../../assets/icons/housemantj/onlove.png'
6
+import huangxin from '../../../assets/icons/housemantj/已收藏.png'
7
+import baixin from '../../../assets/icons/housemantj/收藏.png'
8
+import yysj from '../../../assets/icons/housemantj/营业时间.png'
9
+import dw from '../../../assets/icons/housemantj/地址.png'
10
+import zhuandao from '../../../assets/icons/housemantj/backTop.png'
11
+import titlezs from '../../../assets/icons/housemantj/标题装饰.png'
12
+import pay from '../../../assets/icons/housemantj/pay.png'
13
+import ms2 from '../../../assets/icons/housemantj/ms2.jpg'
14
+import msTip from '../../../assets/icons/housemantj/foodtip.png'
15
+import wz from '../../../assets/icons/housemantj/location.png'
16
+import showMore from '../../../assets/icons/housemantj/查看更多.png'
17
+import dp from '../../../assets/icons/housemantj/dp.jpg'
18
+import znz from '../../../assets/icons/housemantj/znz.png'
19
+import location from '../../../assets/icons/housemantj/location.png'
20
+import mjImage from '../../../assets/icons/housemantj/mj.jpg'
21
+import glImage from '../../../assets/icons/housemantj/gl.jpg'
22
+import glTip from '../../../assets/icons/housemantj/gltip.png'
23
+import onlove from '../../../assets/icons/housemantj/爱心.png'
24
+import './foodDetails.less'
25
+
26
+
27
+export default (props) => {
28
+  return (
29
+    <view className='page-index'>
30
+      <view className='index-navbar'>
31
+        <CustomNav title='十公里' />
32
+      </view>
33
+      <view style={{overflow: 'auto', padding: '0 30rpx', background: '#F8F8F8' }}>
34
+        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
35
+          <view className='storeDetails'>
36
+            <image src={fd} className='storeImage' >
37
+              <view className='tpPage'>
38
+                <text>1</text><text>/</text><text>64</text>
39
+              </view>
40
+            </image>
41
+            <view className='storeJs'>
42
+              <view style={{ overflow: 'hidden' }}>
43
+                <view className='introduce'>
44
+                  <text className='storeName'>clip coffee</text>
45
+                  <text>¥</text><text className='price'><text>88</text>/人</text>
46
+                </view>
47
+                <view className='bz'>
48
+                  <image src={ax} style={{ width: '15px', height: '15px', marginRight: '11rpx', marginBottom: '-2px' }} />
49
+                  <text className='bzRight'>爆赞<text>9999+</text></text>
50
+                </view>
51
+              </view>
52
+              <view className='appraise'>
53
+                <image className='star' src={huangxin}></image>
54
+                <image className='star' src={huangxin}></image>
55
+                <image className='star' src={huangxin}></image>
56
+                <image className='star' src={huangxin}></image>
57
+                <image className='star' src={baixin}></image>
58
+                <text className='storezf'>4.5</text>
59
+                <view style={{float:'right',marginTop:'5px'}}>
60
+                  <text className='comment'>点评:</text>
61
+                  <text className='t1'>口味:</text>
62
+                  <text className='flavor'>4</text>
63
+                  <text className='t1'>环境:</text>
64
+                  <text className='storehj'>3</text>
65
+                  <text className='t1'>服务</text>
66
+                  <text className='service'>4.5</text>
67
+                </view>
68
+              </view>
69
+              <view className='yysj'>
70
+                <image src={yysj} className='yysjImg' />
71
+                <text>营业时间:周一至周日 06:00-20:00</text>
72
+              </view>
73
+              <view className='dpPosition'>
74
+                <image src={dw} className='dwTip' />
75
+                <view>
76
+                  <text>马道街夫子庙老门东小吃街三条营47号(地铁3号线武定门3号口步行8分钟)</text>
77
+                  <image src={zhuandao} className='zhuandao' />
78
+                </view>
79
+              </view>
80
+            </view>
81
+          </view>
82
+          <view style={{ position: 'relative' }}>
83
+            <view className='title'>
84
+              <image src={titlezs}></image>
85
+              <text>返现套餐</text>
86
+            </view>
87
+            
88
+            <view className='foodCard'>
89
+              <view className='fCleft'>
90
+                <view className='backMoney'>
91
+                  返现¥2.04
92
+                </view>
93
+                <view className='appraise'>
94
+                  <image className='star' src={huangxin}></image>
95
+                  <image className='star' src={huangxin}></image>
96
+                  <image className='star' src={huangxin}></image>
97
+                  <image className='star' src={huangxin}></image>
98
+                  <image className='star' src={baixin}></image>
99
+                  <text className='storezf'>4.5</text>
100
+                </view>
101
+                <view>
102
+                  <view className='contentImg'>
103
+                    <image src={ms2} className='img1' ></image>
104
+                    <image src={msTip} className='mstip'></image>
105
+                  </view>
106
+                  <view className='neirong'>
107
+                    <view className='textword'>
108
+                      探店拥有“蓝色波浪”的咖啡店连手提袋都很特别手绘的...
109
+                    </view>
110
+                    <view className='jiage'>
111
+                      <text className='rmb' >¥&nbsp;&nbsp;</text>
112
+                      <text className='p1'><text className='price' >55</text>元&nbsp;&nbsp;</text>
113
+                      <text className='p2'>门市价<text className='oldprice' >78</text>元</text>
114
+                    </view>
115
+                    <view className='address'>
116
+                      <image className='dw' src={wz} />
117
+                      <text className='wz'>南京市/秦淮区</text>
118
+                      <image className='star' src={huangxin}></image>
119
+                      <text className='collection'>已收藏</text>
120
+                    </view>
121
+                  </view>
122
+                </view>
123
+              </view>
124
+              <view className='fCright'>
125
+                <image src={pay} />
126
+                <view>支付</view>
127
+              </view>
128
+              <view className='columnLine'></view>
129
+            </view>
130
+            <view className='foodCard'>
131
+              <view className='fCleft'>
132
+                <view className='backMoney'>
133
+                  返现¥2.04
134
+                </view>
135
+                <view className='appraise'>
136
+                  <image className='star' src={huangxin}></image>
137
+                  <image className='star' src={huangxin}></image>
138
+                  <image className='star' src={huangxin}></image>
139
+                  <image className='star' src={huangxin}></image>
140
+                  <image className='star' src={baixin}></image>
141
+                  <text className='storezf'>4.5</text>
142
+                </view>
143
+                <view style={{ overflow: 'hidden' }}>
144
+                  <view className='contentImg'>
145
+                    <image src={ms2} className='img1' ></image>
146
+                    <image src={msTip} className='mstip'></image>
147
+                  </view>
148
+                  <view className='neirong'>
149
+                    <view className='textword'>
150
+                      探店拥有“蓝色波浪”的咖啡店连手提袋都很特别手绘的...
151
+                    </view>
152
+                    <view className='jiage'>
153
+                      <text className='rmb' >¥&nbsp;&nbsp;</text>
154
+                      <text className='p1'><text className='price' >55</text>元&nbsp;&nbsp;</text>
155
+                      <text className='p2'>门市价<text className='oldprice' >78</text>元</text>
156
+                    </view>
157
+                    <view className='address'>
158
+                      <image className='dw' src={wz} />
159
+                      <text className='wz'>南京市/秦淮区</text>
160
+                      <image className='star' src={huangxin}></image>
161
+                      <text className='collection'>已收藏</text>
162
+                    </view>
163
+                  </view>
164
+                </view>
165
+              </view>
166
+              <view className='fCright'>
167
+                <image src={pay} />
168
+                <view>支付</view>
169
+              </view>
170
+              <view className='columnLine'></view>
171
+            </view>
172
+            <view className='showMore'>
173
+              <view>查看更多</view>
174
+              <image src={showMore} className='moreTip' />
175
+            </view>
176
+          </view>
177
+
178
+          <view style={{ position: 'relative' }}>
179
+            <view className='title'>
180
+              <image src={titlezs}></image>
181
+              <text>本店指南</text>
182
+            </view>
183
+            <view className='storezn'>
184
+              Lorem ipsum dolor sit amet, consectetur adipiscing elit,
185
+              sed do eiusmod tempor incididunt ut labore et dolore
186
+              magna aliqua. Quis ipsum suspendisse ultrices gravida.
187
+              Risus commodo viverra maecenas accumsan lacus vel
188
+              facilisis.
189
+            </view>
190
+            <image src={dp} mode='widthFix' />
191
+            <view className='storezn'>
192
+              Lorem ipsum dolor sit amet, consectetur adipiscing elit,
193
+              sed do eiusmod tempor incididunt ut labore et dolore
194
+              magna aliqua. Quis ipsum suspendisse ultrices gravida.
195
+              Risus commodo viverra maecenas accumsan lacus vel
196
+              facilisis.
197
+            </view>
198
+            <view className='foodCard'>
199
+              <view className='fCleft'>
200
+                <view className='backMoney'>
201
+                  返现¥2.04
202
+                </view>
203
+                <view className='appraise'>
204
+                  <image className='star' src={huangxin}></image>
205
+                  <image className='star' src={huangxin}></image>
206
+                  <image className='star' src={huangxin}></image>
207
+                  <image className='star' src={huangxin}></image>
208
+                  <image className='star' src={baixin}></image>
209
+                  <text className='storezf'>4.5</text>
210
+                </view>
211
+                <view style={{ overflow: 'hidden' }}>
212
+                  <view className='contentImg'>
213
+                    <image src={ms2} className='img1' ></image>
214
+                    <image src={msTip} className='mstip'></image>
215
+                  </view>
216
+                  <view className='neirong'>
217
+                    <view className='textword'>
218
+                      探店拥有“蓝色波浪”的咖啡店连手提袋都很特别手绘的...
219
+                    </view>
220
+                    <view className='jiage'>
221
+                      <text className='rmb' >¥&nbsp;&nbsp;</text>
222
+                      <text className='p1'><text className='price' >55</text>元&nbsp;&nbsp;</text>
223
+                      <text className='p2'>门市价<text className='oldprice' >78</text>元</text>
224
+                    </view>
225
+                    <view className='address'>
226
+                      <image className='dw' src={wz} />
227
+                      <text className='wz'>南京市/秦淮区</text>
228
+                      <image className='star' src={huangxin}></image>
229
+                      <text className='collection'>已收藏</text>
230
+                    </view>
231
+                  </view>
232
+                </view>
233
+              </view>
234
+              <view className='fCright'>
235
+                <image src={pay} />
236
+                <view>支付</view>
237
+              </view>
238
+              <view className='columnLine'></view>
239
+            </view>
240
+            <view className='storezn'>
241
+              Lorem ipsum dolor sit amet, consectetur adipiscing elit,
242
+              sed do eiusmod tempor incididunt ut labore et dolore
243
+              magna aliqua. Quis ipsum suspendisse ultrices gravida.
244
+            </view>
245
+            <view className='showMore'>
246
+              <view>查看更多</view>
247
+              <image src={showMore} className='moreTip' />
248
+            </view>
249
+          </view>
250
+
251
+          <view className='title'>
252
+            <image src={znz} className='gltitle'></image>
253
+            <text>老板推荐的攻略</text>
254
+          </view>
255
+
256
+
257
+          <view className="waterfall">
258
+            <view className='contentCard'>
259
+              <view className='cardTop'>
260
+                <image mode='widthFix' src={mjImage} className='cCardimg' />
261
+                <image className='lefttips' src={glTip} />
262
+                <image src={onlove} className='loveharde'></image>
263
+              </view>
264
+              <view className='bContent'>
265
+                <view className='cCword'>
266
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
267
+                </view>
268
+                <view className='cCleft'>
269
+                  <image src={location} className='cCicon'></image>
270
+                  <view className='distance'><text>9.99</text>公里</view>
271
+                </view>
272
+                <view className='cCright'>
273
+                  <view className='money'>¥</view>
274
+                  <view className='price'><text>999</text>/人</view>
275
+                </view>
276
+              </view>
277
+            </view>
278
+            <view className='contentCard'>
279
+              <view className='cardTop'>
280
+                <image mode='widthFix' src={glImage} className='cCardimg' />
281
+                <image className='lefttips' src={glTip} />
282
+                <image src={onlove} className='loveharde'></image>
283
+              </view>
284
+              <view className='bContent'>
285
+                <view className='cCword'>
286
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
287
+                </view>
288
+                <view className='cCleft'>
289
+                  <image src={location} className='cCicon'></image>
290
+                  <view className='distance'>9.99公里</view>
291
+                </view>
292
+                <view className='cCright'>
293
+                  <view className='money'>¥</view>
294
+                  <view className='price'>999/人</view>
295
+                </view>
296
+              </view>
297
+            </view>
298
+          </view>
299
+          <view className='botton'>已经到底了~</view>
300
+        </scroll-view>
301
+      </view>
302
+    </view>
303
+  )
304
+}

+ 406
- 0
src/pages/details/foodDetails/foodDetails.less 查看文件

@@ -0,0 +1,406 @@
1
+.storeDetails{
2
+  background-color: #fff;  
3
+  border-radius: 12px;
4
+  .storeImage{
5
+    position: relative;
6
+    border-radius: 22px;
7
+    width: 100%;
8
+    .tpPage{
9
+      position: absolute;
10
+      right: 20px;
11
+      bottom: 20px;
12
+      background: #000000;
13
+      border-radius: 16px;  
14
+      font-size: 24px;       
15
+      color: #FFFFFF;
16
+      padding:0 7px;
17
+      opacity: 0.4;  
18
+      line-height: 32px;
19
+      padding: 7px 8px 8px 7px;
20
+      text{
21
+        opacity: 0.64;
22
+      }
23
+    }
24
+  }  
25
+  .storeJs{
26
+    padding: 20px;
27
+    .introduce{
28
+      float: left;
29
+      .storeName{
30
+        font-size: 32px;         
31
+        font-weight: bold;
32
+        color: #020200;
33
+        padding-right: 60px;
34
+      }
35
+      .storeName+text{
36
+        font-size: 24px;         
37
+        font-weight: bold;
38
+        color: #202020;
39
+        padding-right: 10px;
40
+      }
41
+      .price{
42
+        font-size: 32px;         
43
+        font-weight: bold;
44
+        color: #202020;
45
+      }
46
+    }
47
+    .bz{
48
+      float: right;
49
+      .bzRight{
50
+        font-size: 24px;         
51
+        color: #202020;
52
+        line-height: 34px;
53
+        height: 23px;
54
+      }
55
+    }
56
+    .appraise{
57
+      line-height: 0;
58
+      margin-top: 28px;
59
+      margin-bottom: 37px;
60
+      image{
61
+        width: 24px;
62
+        height: 24px;
63
+        margin-right: 10px;
64
+      }
65
+      text{
66
+        font-size: 24px;         
67
+        font-weight: bold;
68
+        color: #020200;
69
+      }
70
+      .t1{
71
+        margin-left: 10px;
72
+      }
73
+      .storezf{
74
+        color: #020200;
75
+        margin-left: 7px ;
76
+      }
77
+      .comment{
78
+        color: #666;
79
+      }
80
+    }
81
+    .yysj{
82
+      line-height: 0;
83
+      .yysjImg{
84
+        width: 26px;
85
+        height: 26px;
86
+        position: relative;
87
+        top: 5px;
88
+      }
89
+      text{
90
+        font-size: 24px;
91
+        color: #666;
92
+        padding-left: 10px;
93
+      }
94
+    }
95
+    .dpPosition{
96
+      margin-top: 40px;
97
+      position: relative;
98
+      .dwTip{
99
+        width: 28px;
100
+        height: 28px;
101
+        position: absolute;
102
+        top: 4px;
103
+        left:0;
104
+      }
105
+      view{
106
+        font-size: 24px;         
107
+        color: #666666;
108
+        padding-left: 34px;
109
+        height: 97px;
110
+        .zhuandao{
111
+          width: 14px;
112
+          height: 24px;
113
+          transform: rotate(180deg);
114
+          position: absolute;
115
+          bottom: 25px;
116
+        }        
117
+      }
118
+      
119
+    }
120
+  }
121
+}
122
+.title{
123
+  margin: 59px 0 41px 0;
124
+  image{
125
+    width: 30px;
126
+    height: 30px;
127
+    position: relative;
128
+    top: 5px;
129
+  }
130
+  text{
131
+    font-size: 34px;       
132
+    font-weight: bold;
133
+    color: #202020;
134
+    margin-left: 10px;
135
+  }
136
+  .gltitle{
137
+    width: 32px;
138
+    height: 32px;
139
+    position: relative;
140
+    top: 5px;
141
+  }
142
+}
143
+.cs{
144
+  height: 500px;
145
+  // background: rgb(240, 142, 142);
146
+  // background: radial-gradient(circle at top left, transparent 15px, rgb(240, 142, 142) 0) top left,
147
+  //           radial-gradient(circle at top right, transparent 15px, #58a 0) top right,
148
+  //           radial-gradient(circle at bottom left, transparent 15px, #58a 0) bottom left,
149
+  //           radial-gradient(circle at bottom right, transparent 15px, #58a 0) bottom right;
150
+
151
+
152
+  background: radial-gradient(circle at 82% top,transparent 15px,rgb(240,140,140) 0) top,
153
+              radial-gradient(circle at 82% bottom,transparent 15px,rgb(230,120,120) 0) bottom;
154
+
155
+background-repeat: no-repeat;
156
+background-size: auto 50%;
157
+}
158
+.foodCard{
159
+  background: #FFF;
160
+  box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
161
+  border-radius: 12px;
162
+  position: relative;
163
+  margin-bottom: 30px;
164
+  overflow: hidden;
165
+  background: radial-gradient(circle at 82% top,transparent 20px,#fff 0) top,
166
+              radial-gradient(circle at 82% bottom,transparent 20px,#fff 0) bottom;
167
+  background-repeat: no-repeat;
168
+  background-size: auto 50%;
169
+  .fCleft{
170
+    float: left;
171
+    width: 82%;
172
+    .backMoney{
173
+      font-size: 24px;
174
+      font-weight: bold;
175
+      color: #FFF;
176
+      margin: 22px 40px 20px 0;        
177
+      padding: 12px 17px 9px 6px;
178
+      background:url('../../../assets/icons/housemantj/fximg.png') no-repeat;    
179
+      display: inline-block;
180
+      background-size: 100% 100%;
181
+    }
182
+    .appraise{
183
+      display: inline-block;
184
+      image{
185
+        width: 21px;
186
+        height: 21px;
187
+        margin-right: 10px;
188
+      }
189
+      text{
190
+        font-size: 24px;           
191
+        font-weight: bold;
192
+        color: #020200;
193
+      }
194
+    }
195
+    .contentImg{
196
+      margin: 0 20px 43px 20px;
197
+      position: relative;
198
+      display: inline-block;
199
+      .img1{
200
+        width: 144px;
201
+        height: 144px;
202
+        border-radius: 24px;
203
+      }
204
+      .mstip{
205
+          width:99px;
206
+          height:37px;
207
+          position: absolute;
208
+          left: 0;          
209
+      }
210
+    }
211
+    .neirong{
212
+      display: inline-block;
213
+      width: 65%;
214
+      .textword{
215
+        font-size: 24px;           
216
+        color: #333;
217
+        margin: 0 21px 0 0;
218
+        height: 84px;
219
+      }
220
+      .jiage{
221
+        line-height: 20px;
222
+        font-weight: bold;
223
+        color: #333;
224
+        .rmb{
225
+          font-size: 20px;             
226
+          margin: 0 8px 0 7px;
227
+        }
228
+        .p1{
229
+          font-size: 24px;     
230
+        }
231
+        .p2{
232
+          font-size: 18px;             
233
+          text-decoration: line-through;
234
+          color: #666;
235
+        }
236
+      }
237
+      .address{
238
+        line-height: 0;
239
+        margin-top: 18px;
240
+        .dw{
241
+          width: 16px;
242
+          height: 20px;
243
+          position: relative;
244
+          top:3px;
245
+          margin-right: 10px;
246
+        }
247
+        .wz{
248
+          font-size: 20px;             
249
+          color: #333;
250
+        }
251
+        .star{
252
+          width: 21px;
253
+          height: 21px;
254
+          margin: 0 10px 0 40px;
255
+          position: relative;
256
+          top: 3px;
257
+        }
258
+        .collection{
259
+          font-size: 20px;             
260
+          color: #333333;
261
+        }
262
+      }
263
+    }
264
+  }
265
+  .fCright{
266
+    float: right;
267
+    width: 18%;
268
+    line-height: 0;
269
+    image{
270
+      width:35px;
271
+      height:32px;
272
+      margin-top: 120%;
273
+      margin-left:calc(50% - 15px)
274
+    }
275
+    view{
276
+      font-size: 24px;
277
+      line-height: 23px;
278
+      font-weight: bold;
279
+      color: #202020;
280
+      margin-top: 19px;
281
+      text-align: center;
282
+    }
283
+  }
284
+  .columnLine{
285
+    height: 50%;
286
+    border-right: 2px dashed #595959;
287
+    opacity: 0.12;
288
+    position: absolute;
289
+    right: 18%;
290
+    bottom:15%;
291
+  }
292
+}
293
+.showMore{
294
+  width: 100%;
295
+  background: linear-gradient(0deg, rgba(248, 248, 248, 0.58) 42%, rgba(248, 248, 248, 0) 100%);
296
+  font-size: 28px;
297
+  font-weight: bold;
298
+  color: #202020;
299
+  text-align: center;
300
+  position: absolute;
301
+  bottom: -40px;
302
+  padding-top: 77px;
303
+  padding-bottom: 20px;
304
+  .moreTip{
305
+    width: 38px;
306
+    height: 19px;
307
+    margin-top: 14px;
308
+  }
309
+}
310
+.storezn{
311
+  font-size: 28px;    
312
+  color: #202020;
313
+  line-height: 54px;
314
+  margin-bottom: 44px;
315
+}
316
+.storezn+image{
317
+  width: 100%;
318
+  margin-bottom: 40px;
319
+}
320
+.waterfall{
321
+  column-count: 2;      //分两列
322
+  column-gap: 30px;    //列间距
323
+  background-color: #F8F8F8;
324
+  padding:30px 30px 0 30px;
325
+  
326
+  .contentCard{
327
+    background: #FFF;
328
+    box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
329
+    border-radius: 24px;
330
+    overflow: hidden;
331
+    margin-bottom:50px;
332
+    break-inside: avoid;
333
+    position: relative;
334
+
335
+    .cardTop{
336
+      border-radius: 24px 24px 0px 0px;
337
+      .cCardimg{
338
+        width: 100%;
339
+        border-radius: 24px 24px 0px 0px;
340
+      }
341
+      .lefttips{
342
+        width:99px;
343
+        height:37px;
344
+        position: absolute;
345
+        left: 0;
346
+      }
347
+      .loveharde{
348
+        width: 22px;
349
+        height: 20px;
350
+        position: absolute;
351
+        right: 20px;
352
+        top: 10px;
353
+      }
354
+    }
355
+    .bContent{
356
+      padding:20px;
357
+      .cCword{
358
+        font-size: 24px;
359
+        font-weight: bold;
360
+        color: #404040;
361
+      }
362
+      
363
+      .cCleft{
364
+        float: left;
365
+        position: relative;
366
+        padding:40px 0 30px 0;
367
+        .cCicon{
368
+          width: 17px;
369
+          height: 21px;
370
+          position: absolute;
371
+          left: 0;
372
+          top: 48px;
373
+        }
374
+        .distance{
375
+          padding-left: 24px;
376
+          font-size: 24px;
377
+          color: #C0C8D3;
378
+        }
379
+      }
380
+      .cCright{
381
+        position: relative;
382
+        float: right;
383
+        padding:40px 0 30px 0;
384
+        .money{
385
+          font-size: 20px;
386
+          color: #FF3434;          
387
+          position: absolute;
388
+          right: 78px;
389
+          bottom: 32px;
390
+        }
391
+        .price{
392
+          font-size: 24px;
393
+          color: #FF3434;
394
+        }
395
+      }
396
+    }
397
+  }
398
+}
399
+.botton{
400
+  font-size: 28px;   
401
+  color: #C0C8D3;
402
+  line-height: 34px;
403
+  text-align: center;
404
+  padding:40px 0 68px 0;
405
+  background-color: #F8F8F8;
406
+}

+ 4
- 0
src/pages/details/mjDetails/sceneryDetails.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '美景详情',
3
+  navigationStyle: 'custom',
4
+}

+ 247
- 0
src/pages/details/mjDetails/sceneryDetails.jsx 查看文件

@@ -0,0 +1,247 @@
1
+import CustomNav from '@/components/CustomNav'
2
+import mj from '../../../assets/icons/housemantj/mj2.jpg'
3
+import ax from '../../../assets/icons/housemantj/onlove.png'
4
+import huangxin from '../../../assets/icons/housemantj/已收藏.png'
5
+import baixin from '../../../assets/icons/housemantj/收藏.png'
6
+import dw from '../../../assets/icons/housemantj/地址.png'
7
+import titlezs from '../../../assets/icons/housemantj/推荐景点.png'
8
+import titlems from '../../../assets/icons/housemantj/推荐美食.png'
9
+import pay from '../../../assets/icons/housemantj/pay.png'
10
+import ms2 from '../../../assets/icons/housemantj/ms2.jpg'
11
+import msTip from '../../../assets/icons/housemantj/foodtip.png'
12
+import wz from '../../../assets/icons/housemantj/location.png'
13
+import showMore from '../../../assets/icons/housemantj/查看更多.png'
14
+import dp from '../../../assets/icons/housemantj/dp.jpg'
15
+import znz from '../../../assets/icons/housemantj/znz.png'
16
+import location from '../../../assets/icons/housemantj/location.png'
17
+import mjImage from '../../../assets/icons/housemantj/mj.jpg'
18
+import glImage from '../../../assets/icons/housemantj/gl.jpg'
19
+import glTip from '../../../assets/icons/housemantj/gltip.png'
20
+import onlove from '../../../assets/icons/housemantj/爱心.png'
21
+import share from '../../../assets/icons/housemantj/景点分享.png'
22
+import good from '../../../assets/icons/housemantj/景点爆赞.png'
23
+import collection from '../../../assets/icons/housemantj/景点收藏.png'
24
+import './sceneryDetails.less'
25
+
26
+
27
+export default (props) => {
28
+  return (
29
+    <view className='page-index'>
30
+      <view className='index-navbar'>
31
+        <CustomNav title='十公里' />
32
+      </view>
33
+      <view style={{overflow: 'auto', padding: '0 30rpx', background: '#F8F8F8' }}>
34
+        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
35
+          <view className='storeDetails'>
36
+            <image src={mj} className='storeImage' >
37
+              <view className='tpPage'>
38
+                <text>1</text><text>/</text><text>64</text>
39
+              </view>
40
+            </image>
41
+            <view className='storeJs'>
42
+              <view className='introduce'>
43
+                <text className='storeName'>玄武湖</text>
44
+              </view>
45
+              <view className='bz'>
46
+                  <image src={ax} style={{ width: '15px', height: '15px', marginRight: '10px', marginBottom: '-2px' }} />
47
+                  <text className='bzRight'>爆赞<text>9999+</text></text>
48
+                </view>
49
+              <view className='wz'>凤游寺52号悦动新门西15栋111号</view>
50
+              <view className='dpPosition'>
51
+                <image src={dw} className='dwTip' />
52
+                <view className='distance'><text>9.99</text>公里</view>
53
+              </view>
54
+            </view>
55
+          </view>
56
+          <view className='jdjs'>
57
+            <view>
58
+              到了10月下旬的深秋时节,“不觉初秋夜渐长,清风习习重凄
59
+              凉”,秋天的美,毫不输给繁花似锦的春天11月栖霞山枫叶最
60
+              佳观赏期快要来了,赶紧提前收藏这些吧!
61
+              </view>
62
+              <view className='line'></view>
63
+              <view className='sc'>
64
+                <image className='scTip' src={baixin} /><text>加入收藏</text>
65
+              </view>
66
+          </view>
67
+          <view style={{ position: 'relative' }}>
68
+            <view className='title'>
69
+              <image src={titlezs}></image>
70
+              <text>景点介绍</text>
71
+            </view>
72
+            <view className='storezn'>
73
+              Lorem ipsum dolor sit amet, consectetur adipiscing elit,
74
+              sed do eiusmod tempor incididunt ut labore et dolore
75
+              magna aliqua. Quis ipsum suspendisse ultrices gravida.
76
+              Risus commodo viverra maecenas accumsan lacus vel
77
+              facilisis.
78
+            </view>
79
+            <image src={dp} mode='widthFix' />
80
+            <view className='storezn'>
81
+              Lorem ipsum dolor sit amet, consectetur adipiscing elit,
82
+              sed do eiusmod tempor incididunt ut labore et dolore
83
+              magna aliqua. Quis ipsum suspendisse ultrices gravida.
84
+            </view>
85
+            <view className='showMore'>
86
+              <view>点击查看更多</view>
87
+              <image src={showMore} className='moreTip' />
88
+            </view>
89
+          </view>
90
+          <view style={{ position: 'relative' }}>
91
+            <view className='title'>
92
+              <image src={titlems}></image>
93
+              <text>老板推荐好吃的</text>
94
+            </view>
95
+            <view className='foodCard'>
96
+              <view className='fCleft'>
97
+                <view className='backMoney'>
98
+                  返现¥2.04
99
+                </view>
100
+                <view className='appraise'>
101
+                  <image className='star' src={huangxin}></image>
102
+                  <image className='star' src={huangxin}></image>
103
+                  <image className='star' src={huangxin}></image>
104
+                  <image className='star' src={huangxin}></image>
105
+                  <image className='star' src={baixin}></image>
106
+                  <text className='storezf'>4.5</text>
107
+                </view>
108
+                <view style={{ overflow: 'hidden' }}>
109
+                  <view className='contentImg'>
110
+                    <image src={ms2} className='img1' ></image>
111
+                    <image src={msTip} className='mstip'></image>
112
+                  </view>
113
+                  <view className='neirong'>
114
+                    <view className='textword'>
115
+                      探店拥有“蓝色波浪”的咖啡店连手提袋都很特别手绘的...
116
+                    </view>
117
+                    <view className='jiage'>
118
+                      <text className='rmb' >¥&nbsp;&nbsp;</text>
119
+                      <text className='p1'><text className='price' >55</text>元&nbsp;&nbsp;</text>
120
+                      <text className='p2'>门市价<text className='oldprice' >78</text>元</text>
121
+                    </view>
122
+                    <view className='address'>
123
+                      <image className='dw' src={wz} />
124
+                      <text className='wz'>南京市/秦淮区</text>
125
+                      <image className='star' src={huangxin}></image>
126
+                      <text className='collection'>已收藏</text>
127
+                    </view>
128
+                  </view>
129
+                </view>
130
+              </view>
131
+              <view className='fCright'>
132
+                <image src={pay} />
133
+                <view>支付</view>
134
+              </view>
135
+              <view className='columnLine'></view>
136
+            </view>
137
+            <view className='foodCard'>
138
+              <view className='fCleft'>
139
+                <view className='backMoney'>
140
+                  返现¥2.04
141
+                </view>
142
+                <view className='appraise'>
143
+                  <image className='star' src={huangxin}></image>
144
+                  <image className='star' src={huangxin}></image>
145
+                  <image className='star' src={huangxin}></image>
146
+                  <image className='star' src={huangxin}></image>
147
+                  <image className='star' src={baixin}></image>
148
+                  <text className='storezf'>4.5</text>
149
+                </view>
150
+                <view style={{ overflow: 'hidden' }}>
151
+                  <view className='contentImg'>
152
+                    <image src={ms2} className='img1' ></image>
153
+                    <image src={msTip} className='mstip'></image>
154
+                  </view>
155
+                  <view className='neirong'>
156
+                    <view className='textword'>
157
+                      探店拥有“蓝色波浪”的咖啡店连手提袋都很特别手绘的...
158
+                    </view>
159
+                    <view className='jiage'>
160
+                      <text className='rmb' >¥&nbsp;&nbsp;</text>
161
+                      <text className='p1'><text className='price' >55</text>元&nbsp;&nbsp;</text>
162
+                      <text className='p2'>门市价<text className='oldprice' >78</text>元</text>
163
+                    </view>
164
+                    <view className='address'>
165
+                      <image className='dw' src={wz} />
166
+                      <text className='wz'>南京市/秦淮区</text>
167
+                      <image className='star' src={huangxin}></image>
168
+                      <text className='collection'>已收藏</text>
169
+                    </view>
170
+                  </view>
171
+                </view>
172
+              </view>
173
+              <view className='fCright'>
174
+                <image src={pay} />
175
+                <view>支付</view>
176
+              </view>
177
+              <view className='columnLine'></view>
178
+            </view>
179
+            <view className='showMore'>
180
+              <view>查看更多</view>
181
+              <image src={showMore} className='moreTip' />
182
+            </view>
183
+          </view>
184
+          <view className='title'>
185
+            <image src={znz} className='gltitle'></image>
186
+            <text>老板推荐的攻略</text>
187
+          </view>
188
+          <view className="waterfall">
189
+            <view className='contentCard'>
190
+              <view className='cardTop'>
191
+                <image mode='widthFix' src={mjImage} className='cCardimg' />
192
+                <image className='lefttips' src={glTip} />
193
+                <image src={onlove} className='loveharde'></image>
194
+              </view>
195
+              <view className='bContent'>
196
+                <view className='cCword'>
197
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
198
+                </view>
199
+                <view className='cCleft'>
200
+                  <image src={location} className='cCicon'></image>
201
+                  <view className='distance'><text>9.99</text>公里</view>
202
+                </view>
203
+                <view className='cCright'>
204
+                  <view className='money'>¥</view>
205
+                  <view className='price'><text>999</text>/人</view>
206
+                </view>
207
+              </view>
208
+            </view>
209
+            <view className='contentCard'>
210
+              <view className='cardTop'>
211
+                <image mode='widthFix' src={glImage} className='cCardimg' />
212
+                <image className='lefttips' src={glTip} />
213
+                <image src={onlove} className='loveharde'></image>
214
+              </view>
215
+              <view className='bContent'>
216
+                <view className='cCword'>
217
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
218
+                </view>
219
+                <view className='cCleft'>
220
+                  <image src={location} className='cCicon'></image>
221
+                  <view className='distance'>9.99公里</view>
222
+                </view>
223
+                <view className='cCright'>
224
+                  <view className='money'>¥</view>
225
+                  <view className='price'>999/人</view>
226
+                </view>
227
+              </view>
228
+            </view>
229
+          </view>
230
+          <view className='bottom'>已经到底了~</view>
231
+        </scroll-view>
232
+        </view>
233
+        <view className='bottomTab'>
234
+          <view className='tab'>
235
+            <image className='share' src={share} /><text>分享</text>
236
+          </view>
237
+          <view className='tab'>
238
+            <image className='good' src={good} /><text>爆赞</text>
239
+          </view>
240
+          <view className='tab'>
241
+            <image className='collection' src={collection} /><text>加入收藏</text>
242
+          </view>
243
+        </view>
244
+      
245
+    </view>
246
+  )
247
+}

+ 384
- 0
src/pages/details/mjDetails/sceneryDetails.less 查看文件

@@ -0,0 +1,384 @@
1
+.storeDetails{
2
+  background-color: #fff;  
3
+  border-radius: 12px;
4
+  margin-bottom: 20px;
5
+  .storeImage{
6
+    position: relative;
7
+    border-radius: 22px;
8
+    width: 100%;
9
+    .tpPage{
10
+      position: absolute;
11
+      right: 20px;
12
+      bottom: 20px;
13
+      background: #000000;
14
+      border-radius: 16px;  
15
+      font-size: 24px;       
16
+      color: #FFFFFF;
17
+      padding:0 7px;
18
+      opacity: 0.4;  
19
+      line-height: 32px;
20
+      padding: 7px 8px 8px 7px;
21
+      text{
22
+        opacity: 0.64;
23
+      }
24
+    }
25
+  }  
26
+  .storeJs{
27
+    padding: 22px;
28
+    .introduce{
29
+      display: inline-block;
30
+      .storeName{
31
+        font-size: 32px;         
32
+        font-weight: bold;
33
+        color: #020200;
34
+      }
35
+    }
36
+    .bz{
37
+      float: right;
38
+      .bzRight{
39
+        font-size: 24px;         
40
+        color: #202020;
41
+        line-height: 34px;
42
+        height: 23px;
43
+      }
44
+    }
45
+    .wz{
46
+      font-size: 24px;      
47
+      line-height: 0;
48
+      padding: 30rpx 0 32rpx 0;
49
+      font-weight: bold;
50
+      color: #404040;
51
+    }
52
+    .dpPosition{
53
+      position: relative;
54
+      .dwTip{
55
+        width: 28px;
56
+        height: 28px;
57
+        position: absolute;
58
+        top: 4px;
59
+        left:0;
60
+      }
61
+      .distance{
62
+        padding-left: 38px;
63
+        font-size: 24px;         
64
+        color: #C0C8D3;
65
+      }
66
+    }
67
+  }
68
+}
69
+.jdjs{
70
+  background: #FFF;
71
+  border-radius: 12px 12px 0px 0px;
72
+  padding: 30px 20px 43px 20px;
73
+  font-size: 24px;   
74
+  font-weight: bold;
75
+  color: #202020;
76
+  line-height: 54px;
77
+  overflow: hidden;
78
+  .line{
79
+    height: 1px;
80
+    background: #000;
81
+    opacity: 0.1;
82
+    margin:57px 20px 42px 20px;
83
+  }
84
+  .sc{
85
+    font-size: 20px;     
86
+    font-weight: bold;
87
+    color: #333;
88
+    float: right;
89
+    line-height: 0;
90
+    margin-right: 4px;
91
+    .scTip{
92
+      width: 20px;
93
+      height: 20px;
94
+      margin-right: 8px;
95
+    }
96
+  }
97
+}
98
+.title{
99
+  margin: 60px 0 40px 0;
100
+  image{
101
+    width: 30px;
102
+    height: 30px;
103
+  }
104
+  text{
105
+    font-size: 34px;      
106
+    font-weight: bold;
107
+    color: #202020;
108
+    margin-left: 10px;
109
+  }
110
+  .gltitle{
111
+    width: 32px;
112
+    height: 32px;
113
+    position: relative;
114
+    top: 5px;
115
+  }
116
+}
117
+.foodCard{
118
+  background: #FFF;
119
+  box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
120
+  border-radius: 12px;
121
+  position: relative;
122
+  margin-bottom: 30px;
123
+  overflow: hidden;
124
+  background: radial-gradient(circle at 82% top,transparent 20px,#fff 0) top,
125
+              radial-gradient(circle at 82% bottom,transparent 20px,#fff 0) bottom;
126
+  background-repeat: no-repeat;
127
+  background-size: auto 50%;
128
+  .fCleft{
129
+    float: left;
130
+    width: 82%;
131
+    .backMoney{
132
+      font-size: 24px;
133
+      font-weight: bold;
134
+      color: #FFF;
135
+      margin: 22px 40px 20px 0;        
136
+      padding: 12px 17px 9px 6px;
137
+      background:url('../../../assets/icons/housemantj/fximg.png') no-repeat;    
138
+      display: inline-block;
139
+      background-size: 100% 100%;
140
+    }
141
+    .appraise{
142
+      display: inline-block;
143
+      image{
144
+        width: 21px;
145
+        height: 21px;
146
+        margin-right: 10px;
147
+      }
148
+      text{
149
+        font-size: 24px;           
150
+        font-weight: bold;
151
+        color: #020200;
152
+      }
153
+    }
154
+    .contentImg{
155
+      margin: 0 20px 43px 20px;
156
+      position: relative;
157
+      display: inline-block;
158
+      .img1{
159
+        width: 144px;
160
+        height: 144px;
161
+        border-radius: 24px;
162
+      }
163
+      .mstip{
164
+          width:99px;
165
+          height:37px;
166
+          position: absolute;
167
+          left: 0;          
168
+      }
169
+    }
170
+    .neirong{
171
+      display: inline-block;
172
+      width: 65%;
173
+      .textword{
174
+        font-size: 24px;           
175
+        color: #333;
176
+        margin: 0 21px 0 0;
177
+        height: 84px;
178
+      }
179
+      .jiage{
180
+        line-height: 20px;
181
+        font-weight: bold;
182
+        color: #333;
183
+        .rmb{
184
+          font-size: 20px;             
185
+          margin: 0 8px 0 7px;
186
+        }
187
+        .p1{
188
+          font-size: 24px;     
189
+        }
190
+        .p2{
191
+          font-size: 18px;             
192
+          text-decoration: line-through;
193
+          color: #666;
194
+        }
195
+      }
196
+      .address{
197
+        line-height: 0;
198
+        margin-top: 18px;
199
+        .dw{
200
+          width: 16px;
201
+          height: 20px;
202
+          position: relative;
203
+          top:3px;
204
+          margin-right: 10px;
205
+        }
206
+        .wz{
207
+          font-size: 20px;             
208
+          color: #333;
209
+        }
210
+        .star{
211
+          width: 21px;
212
+          height: 21px;
213
+          margin: 0 10px 0 40px;
214
+          position: relative;
215
+          top: 3px;
216
+        }
217
+        .collection{
218
+          font-size: 20px;             
219
+          color: #333333;
220
+        }
221
+      }
222
+    }
223
+  }
224
+  .fCright{
225
+    float: right;
226
+    width: 18%;
227
+    line-height: 0;
228
+    image{
229
+      width:35px;
230
+      height:32px;
231
+      margin-top: 120%;
232
+      margin-left:calc(50% - 15px)
233
+    }
234
+    view{
235
+      font-size: 24px;
236
+      line-height: 23px;
237
+      font-weight: bold;
238
+      color: #202020;
239
+      margin-top: 19px;
240
+      text-align: center;
241
+    }
242
+  }
243
+  .columnLine{
244
+    height: 50%;
245
+    border-right: 2px dashed #595959;
246
+    opacity: 0.12;
247
+    position: absolute;
248
+    right: 18%;
249
+    bottom:15%;
250
+  }
251
+}
252
+.showMore{
253
+  width: 100%;
254
+  background: linear-gradient(0deg, rgba(248, 248, 248, 0.58) 42%, rgba(248, 248, 248, 0) 100%);
255
+  font-size: 28px;
256
+  font-weight: bold;
257
+  color: #202020;
258
+  text-align: center;
259
+  position: absolute;
260
+  bottom: -40px;
261
+  padding-top: 77px;
262
+  padding-bottom: 20px;
263
+  .moreTip{
264
+    width: 38px;
265
+    height: 19px;
266
+    margin-top: 14px;
267
+  }
268
+}
269
+.storezn{
270
+  font-size: 28px;
271
+    
272
+    color: #202020;
273
+  line-height: 54px;
274
+  margin-bottom: 40px;
275
+}
276
+.storezn+image{
277
+  width: 100%;
278
+}  
279
+.waterfall{
280
+  column-count: 2;      //分两列
281
+  column-gap: 30px;    //列间距
282
+  background-color: #F8F8F8;
283
+  
284
+  .contentCard{
285
+    background: #FFF;
286
+    box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
287
+    border-radius: 24px;
288
+    overflow: hidden;
289
+    margin-bottom:50px;
290
+    break-inside: avoid;
291
+    position: relative;
292
+
293
+    .cardTop{
294
+      border-radius: 24px 24px 0px 0px;
295
+      .cCardimg{
296
+        width: 100%;
297
+        border-radius: 24px 24px 0px 0px;
298
+      }
299
+      .lefttips{
300
+        width:99px;
301
+        height:37px;
302
+        position: absolute;
303
+        left: 0;
304
+      }
305
+      .loveharde{
306
+        width: 22px;
307
+        height: 20px;
308
+        position: absolute;
309
+        right: 20px;
310
+        top: 10px;
311
+      }
312
+    }
313
+    .bContent{
314
+      padding:20px;
315
+      .cCword{
316
+        font-size: 24px;
317
+        font-weight: bold;
318
+        color: #404040;
319
+      }
320
+      
321
+      .cCleft{
322
+        float: left;
323
+        position: relative;
324
+        padding:40px 0 30px 0;
325
+        .cCicon{
326
+          width: 17px;
327
+          height: 21px;
328
+          position: absolute;
329
+          left: 0;
330
+          top: 48px;
331
+        }
332
+        .distance{
333
+          padding-left: 24px;
334
+          font-size: 24px;
335
+          color: #C0C8D3;
336
+        }
337
+      }
338
+      .cCright{
339
+        position: relative;
340
+        float: right;
341
+        padding:40px 0 30px 0;
342
+        .money{
343
+          font-size: 20px;
344
+          color: #FF3434;          
345
+          position: absolute;
346
+          right: 78px;
347
+          bottom: 32px;
348
+        }
349
+        .price{
350
+          font-size: 24px;
351
+          color: #FF3434;
352
+        }
353
+      }
354
+    }
355
+  }
356
+}
357
+.bottom{
358
+  font-size: 28px;    
359
+  color: #C0C8D3;
360
+  line-height: 34px;
361
+  text-align: center;
362
+  padding:40px 0 60px 0;
363
+  background-color: #F8F8F8;
364
+}
365
+
366
+.bottomTab{
367
+  background: #FFF;
368
+  border-radius: 12px;
369
+  column-count: 3;
370
+  text-align: center;  
371
+  .tab{
372
+    line-height: 96px;
373
+    font-size: 28px;     
374
+    font-weight: bold;
375
+    color: #202020;
376
+    image{
377
+      width: 31px;
378
+      height: 31px;
379
+      position: relative;
380
+      top: 7px;
381
+      margin-right: 12px;
382
+    }
383
+  }
384
+}

+ 1
- 1
src/pages/index/index.config.js 查看文件

@@ -1,5 +1,5 @@
1 1
 export default {
2
-  navigationBarTitleText: '首页',
2
+  navigationBarTitleText: '十公里',
3 3
   navigationStyle: 'custom',
4 4
   styleIsolation: 'shared',
5 5
   usingComponents: {

+ 2
- 1
src/pages/index/index.jsx 查看文件

@@ -14,6 +14,7 @@ import Strategy from './tabs/Strategy'
14 14
 // const Strategy = lazy(() => import('./tabs/Strategy'))
15 15
 // const Mine =  import'./tabs/Mine'
16 16
 
17
+
17 18
 export default (props) => {
18 19
   const { params } = useRouter()
19 20
   const { tab } = params || {}
@@ -35,7 +36,7 @@ export default (props) => {
35 36
   return (
36 37
     <view className='page-index'>
37 38
       <view className='index-navbar'>
38
-        <CustomNav logo={logo} title='首页' />
39
+        <CustomNav logo={logo} title='十公里' />
39 40
       </view>
40 41
       <view className='index-container'>
41 42
         {currentTab === 0 && <Recommend />}

+ 1
- 0
src/pages/index/index.less 查看文件

@@ -16,6 +16,7 @@
16 16
 
17 17
   .index-container {
18 18
     flex: auto;
19
+    overflow: hidden;
19 20
   }
20 21
 }
21 22
 

+ 329
- 1
src/pages/index/tabs/Recommend.jsx 查看文件

@@ -1,7 +1,335 @@
1 1
 import React from 'react'
2
+// .就是当前路径
3
+import './less/Recommend.less'
4
+import iconsearch from '../../../assets/icons/housemantj/search.png'
5
+import icontip from '../../../assets/icons/housemantj/tip.png'
6
+import location from '../../../assets/icons/housemantj/location.png'
7
+import msImage from'../../../assets/icons/housemantj/ms.jpg'
8
+import mjImage from'../../../assets/icons/housemantj/mj.jpg'
9
+import glImage from'../../../assets/icons/housemantj/gl.jpg'
10
+import msTip from'../../../assets/icons/housemantj/foodtip.png'
11
+import mjTip from'../../../assets/icons/housemantj/mjtip.png'
12
+import glTip from'../../../assets/icons/housemantj/gltip.png'
13
+import onlove from'../../../assets/icons/housemantj/onlove.png'
14
+import Taro from '@tarojs/taro'
2 15
 
3 16
 export default (props) => {
17
+  const onSearch=()=>{
18
+    // 用绝对路径
19
+    Taro.navigateTo({ url:'/pages/search/search'});
20
+  }
21
+  const toDetails=()=>{
22
+    // 用绝对路径
23
+    Taro.navigateTo({ url:'/pages/details/foodDetails/foodDetails'});
24
+  }
25
+  const toDetails2=()=>{
26
+    // 用绝对路径
27
+    Taro.navigateTo({ url:'/pages/details/mjDetails/sceneryDetails'});
28
+  }
29
+  const onLogin=()=>{
30
+    // 用绝对路径
31
+    Taro.navigateTo({ url:'/pages/login/login'});
32
+  }
4 33
   return (
5
-    <view>房东推荐</view>
34
+    <view style={{height: '100%',overflow:'auto'}}>
35
+      <view className='search' onClick={onSearch}>
36
+        <input className='searchInput' disabled />
37
+        <image className='searchicon' src={iconsearch} />
38
+        <view className="searchword">搜索</view>
39
+      </view>
40
+      <view className='tip' onclick={onLogin}>
41
+        <image className='tipicon' src={icontip} />
42
+        <view className='tipword' >Tip : 饮食无大小,疫情防控请大家认真对待!</view>
43
+      </view>
44
+      <view className='nav'>
45
+        <view className='dinwei'>
46
+          <image className='location' src={location} />
47
+          <view className='city'>南京</view>
48
+        </view>
49
+        <view className='line' />
50
+        <view className='list'>
51
+          <view className='bdattractions' >
52
+            <view className='acname'>附近</view>
53
+            <view className='buttonline' ></view>
54
+          </view>
55
+          <view className='bdattractions'>
56
+            <view className='acname'>全城</view>
57
+            <view className='buttonline'></view>
58
+          </view><view className='bdattractions'>
59
+            <view className='acname'>夫子庙</view>
60
+            <view className='buttonline'></view>
61
+          </view><view className='bdattractions'>
62
+            <view className='acname'>新街口</view>
63
+            <view className='buttonline'></view>
64
+          </view>
65
+        </view>
66
+      </view>
67
+      <scroll-view  scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" className='content'>
68
+        <view className="waterfall">
69
+          
70
+          <view className='contentCard' onClick={toDetails2}>
71
+             <view className='cardTop'>
72
+              <image mode='widthFix' src={mjImage} className='cCardimg'/>
73
+            <image  className='lefttips' src={mjTip} />
74
+              <image src={onlove} className='loveharde'></image>
75
+            </view>
76
+            <view className='bContent'>
77
+              <view className='cCword'>
78
+                超划算套餐?这么便宜也是第一次见6荤6素1...
79
+              </view>
80
+              <view className='cCleft'>
81
+                <image src={location} className='cCicon'></image>
82
+                <view className='distance'><text>9.99</text>公里</view>
83
+              </view>
84
+              <view className='cCright'>
85
+                <view className='money'>¥</view>
86
+                <view className='price'><text>999</text>/人</view>
87
+              </view>
88
+            </view>
89
+          </view>
90
+          <view className='contentCard'>
91
+            <view className='cardTop'>
92
+              <image mode='widthFix' src={msImage} className='cCardimg'/>
93
+              <image  className='lefttips' src={msTip} />
94
+              <image src={onlove} className='loveharde'></image>
95
+            </view>
96
+            <view className='bContent'>
97
+              <view className='cCword'>
98
+                超划算套餐?这么便宜也是第一次见6荤6素1...
99
+              </view>
100
+              <view className='cCleft'>
101
+                <image src={location} className='cCicon'></image>
102
+                <view className='distance'><text>9.99</text>公里</view>
103
+              </view>
104
+              <view className='cCright'>
105
+                <view className='money'>¥</view>
106
+                <view className='price'><text>999</text>/人</view>
107
+              </view>
108
+            </view>
109
+          </view>
110
+          <view className='contentCard'>
111
+            <view className='cardTop'>
112
+              <image mode='widthFix' src={glImage} className='cCardimg'/>
113
+              <image  className='lefttips' src={glTip} />
114
+              <image src={onlove} className='loveharde'></image>
115
+            </view>
116
+            <view className='bContent'>
117
+              <view className='cCword'>
118
+                超划算套餐?这么便宜也是第一次见6荤6素1...
119
+              </view>
120
+              <view className='cCleft'>
121
+                <image src={location} className='cCicon'></image>
122
+                <view className='distance'>9.99公里</view>
123
+              </view>
124
+              <view className='cCright'>
125
+                <view className='money'>¥</view>
126
+                <view className='price'>999/人</view>
127
+              </view>
128
+            </view>
129
+          </view>
130
+          <view className='contentCard'>
131
+             <view className='cardTop'>
132
+              <image mode='widthFix' src={mjImage} className='cCardimg'/>
133
+            <image  className='lefttips' src={mjTip} />
134
+              <image src={onlove} className='loveharde'></image>
135
+            </view>
136
+            <view className='bContent'>
137
+              <view className='cCword'>
138
+                超划算套餐?这么便宜也是第一次见6荤6素1...
139
+              </view>
140
+              <view className='cCleft'>
141
+                <image src={location} className='cCicon'></image>
142
+                <view className='distance'><text>9.99</text>公里</view>
143
+              </view>
144
+              <view className='cCright'>
145
+                <view className='money'>¥</view>
146
+                <view className='price'><text>999</text>/人</view>
147
+              </view>
148
+            </view>
149
+          </view>         
150
+          <view className='contentCard'>
151
+             <view className='cardTop'>
152
+              <image mode='widthFix' src={mjImage} className='cCardimg'/>
153
+            <image  className='lefttips' src={mjTip} />
154
+              <image src={onlove} className='loveharde'></image>
155
+            </view>
156
+            <view className='bContent'>
157
+              <view className='cCword'>
158
+                超划算套餐?这么便宜也是第一次见6荤6素1...
159
+              </view>
160
+              <view className='cCleft'>
161
+                <image src={location} className='cCicon'></image>
162
+                <view className='distance'><text>9.99</text>公里</view>
163
+              </view>
164
+              <view className='cCright'>
165
+                <view className='money'>¥</view>
166
+                <view className='price'><text>999</text>/人</view>
167
+              </view>
168
+            </view>
169
+          </view>
170
+          <view className='contentCard'>
171
+            <view className='cardTop'>
172
+              <image mode='widthFix' src={msImage} className='cCardimg'/>
173
+              <image  className='lefttips' src={msTip} />
174
+              <image src={onlove} className='loveharde'></image>
175
+            </view>
176
+            <view className='bContent'>
177
+              <view className='cCword'>
178
+                超划算套餐?这么便宜也是第一次见6荤6素1...
179
+              </view>
180
+              <view className='cCleft'>
181
+                <image src={location} className='cCicon'></image>
182
+                <view className='distance'><text>9.99</text>公里</view>
183
+              </view>
184
+              <view className='cCright'>
185
+                <view className='money'>¥</view>
186
+                <view className='price'><text>999</text>/人</view>
187
+              </view>
188
+            </view>
189
+          </view>
190
+          <view className='contentCard'>
191
+             <view className='cardTop'>
192
+              <image mode='widthFix' src={mjImage} className='cCardimg'/>
193
+            <image  className='lefttips' src={mjTip} />
194
+              <image src={onlove} className='loveharde'></image>
195
+            </view>
196
+            <view className='bContent'>
197
+              <view className='cCword'>
198
+                超划算套餐?这么便宜也是第一次见6荤6素1...
199
+              </view>
200
+              <view className='cCleft'>
201
+                <image src={location} className='cCicon'></image>
202
+                <view className='distance'><text>9.99</text>公里</view>
203
+              </view>
204
+              <view className='cCright'>
205
+                <view className='money'>¥</view>
206
+                <view className='price'><text>999</text>/人</view>
207
+              </view>
208
+            </view>
209
+          </view>
210
+          <view className='contentCard'onClick={toDetails}>
211
+            <view className='cardTop'>
212
+              <image mode='widthFix' src={msImage} className='cCardimg'/>
213
+              <image  className='lefttips' src={msTip} />
214
+              <image src={onlove} className='loveharde'></image>
215
+            </view>
216
+            <view className='bContent'>
217
+              <view className='cCword'>
218
+                超划算套餐?这么便宜也是第一次见6荤6素1...
219
+              </view>
220
+              <view className='cCleft'>
221
+                <image src={location} className='cCicon'></image>
222
+                <view className='distance'><text>9.99</text>公里</view>
223
+              </view>
224
+              <view className='cCright'>
225
+                <view className='money'>¥</view>
226
+                <view className='price'><text>999</text>/人</view>
227
+              </view>
228
+            </view>
229
+          </view>
230
+          <view className='contentCard'>
231
+             <view className='cardTop'>
232
+              <image mode='widthFix' src={mjImage} className='cCardimg'/>
233
+            <image  className='lefttips' src={mjTip} />
234
+              <image src={onlove} className='loveharde'></image>
235
+            </view>
236
+            <view className='bContent'>
237
+              <view className='cCword'>
238
+                超划算套餐?这么便宜也是第一次见6荤6素1...
239
+              </view>
240
+              <view className='cCleft'>
241
+                <image src={location} className='cCicon'></image>
242
+                <view className='distance'><text>9.99</text>公里</view>
243
+              </view>
244
+              <view className='cCright'>
245
+                <view className='money'>¥</view>
246
+                <view className='price'><text>999</text>/人</view>
247
+              </view>
248
+            </view>
249
+          </view>
250
+          <view className='contentCard'>
251
+            <view className='cardTop'>
252
+              <image mode='widthFix' src={msImage} className='cCardimg'/>
253
+              <image  className='lefttips' src={msTip} />
254
+              <image src={onlove} className='loveharde'></image>
255
+            </view>
256
+            <view className='bContent'>
257
+              <view className='cCword'>
258
+                超划算套餐?这么便宜也是第一次见6荤6素1...
259
+              </view>
260
+              <view className='cCleft'>
261
+                <image src={location} className='cCicon'></image>
262
+                <view className='distance'><text>9.99</text>公里</view>
263
+              </view>
264
+              <view className='cCright'>
265
+                <view className='money'>¥</view>
266
+                <view className='price'><text>999</text>/人</view>
267
+              </view>
268
+            </view>
269
+          </view>
270
+          <view className='contentCard'>
271
+             <view className='cardTop'>
272
+              <image mode='widthFix' src={mjImage} className='cCardimg'/>
273
+            <image  className='lefttips' src={mjTip} />
274
+              <image src={onlove} className='loveharde'></image>
275
+            </view>
276
+            <view className='bContent'>
277
+              <view className='cCword'>
278
+                超划算套餐?这么便宜也是第一次见6荤6素1...
279
+              </view>
280
+              <view className='cCleft'>
281
+                <image src={location} className='cCicon'></image>
282
+                <view className='distance'><text>9.99</text>公里</view>
283
+              </view>
284
+              <view className='cCright'>
285
+                <view className='money'>¥</view>
286
+                <view className='price'><text>999</text>/人</view>
287
+              </view>
288
+            </view>
289
+          </view>
290
+          <view className='contentCard'>
291
+            <view className='cardTop'>
292
+              <image mode='widthFix' src={msImage} className='cCardimg'/>
293
+              <image  className='lefttips' src={msTip} />
294
+              <image src={onlove} className='loveharde'></image>
295
+            </view>
296
+            <view className='bContent'>
297
+              <view className='cCword'>
298
+                超划算套餐?这么便宜也是第一次见6荤6素1...
299
+              </view>
300
+              <view className='cCleft'>
301
+                <image src={location} className='cCicon'></image>
302
+                <view className='distance'><text>9.99</text>公里</view>
303
+              </view>
304
+              <view className='cCright'>
305
+                <view className='money'>¥</view>
306
+                <view className='price'><text>999</text>/人</view>
307
+              </view>
308
+            </view>
309
+          </view>
310
+          <view className='contentCard'>
311
+             <view className='cardTop'>
312
+              <image mode='widthFix' src={mjImage} className='cCardimg'/>
313
+            <image  className='lefttips' src={mjTip} />
314
+              <image src={onlove} className='loveharde'></image>
315
+            </view>
316
+            <view className='bContent'>
317
+              <view className='cCword'>
318
+                超划算套餐?这么便宜也是第一次见6荤6素1...
319
+              </view>
320
+              <view className='cCleft'>
321
+                <image src={location} className='cCicon'></image>
322
+                <view className='distance'><text>9.99</text>公里</view>
323
+              </view>
324
+              <view className='cCright'>
325
+                <view className='money'>¥</view>
326
+                <view className='price'><text>999</text>/人</view>
327
+              </view>
328
+            </view>
329
+          </view>
330
+        </view>
331
+        <view className='botton'>已经到底了~</view>
332
+       </scroll-view> 
333
+    </view>
6 334
   )
7 335
 }

+ 196
- 0
src/pages/index/tabs/less/Recommend.less 查看文件

@@ -0,0 +1,196 @@
1
+.search{
2
+    padding: 10px 30px 0 30px;
3
+    position: relative;
4
+    .searchInput{    
5
+        width: 690px;
6
+        height: 68px;
7
+        background: #F8F8F8;
8
+        border-radius: 34px;
9
+        padding-left: 30px;
10
+        box-sizing: border-box;
11
+    }
12
+    .searchicon{
13
+      width: 25px;
14
+      height: 25px;
15
+      position: absolute;
16
+      bottom: 24px;
17
+      left: 50%;
18
+      margin-left: -40px;
19
+    }
20
+    .searchword{
21
+      height: 23px;
22
+      font-size: 24px;
23
+      position: absolute;
24
+      bottom: 34px;
25
+      left: 50%;
26
+      margin-left: -5px;
27
+      color: #C0C8D3;
28
+      letter-spacing: 0.2em;
29
+    }
30
+}
31
+.tip{
32
+  padding:23px 0 22px 31px;
33
+  height: 70px;
34
+
35
+  .tipicon{
36
+    width: 17px;
37
+    height: 19px;
38
+    margin-right: 10px;
39
+  }
40
+  .tipword{
41
+    display:inline-block;
42
+    font-size: 24px;
43
+    color: #999;
44
+  }
45
+}
46
+.nav{
47
+  margin-left: 36px;
48
+  .dinwei{
49
+    float: left;
50
+    position: relative;
51
+    top: 4px;
52
+    .location{
53
+      width: 35px;
54
+      height: 42px;
55
+    }
56
+    .city{
57
+      width: 40px;
58
+      font-size: 20px;
59
+      font-weight: bold;
60
+      color: #4C4C4C;
61
+      position: relative;
62
+      left: -2px;
63
+      bottom: 11px;
64
+    }
65
+  }
66
+  .line{
67
+    float: left;
68
+    width: 1px;
69
+    height: 68px;
70
+    background: #4C4C4C;
71
+    opacity: 0.1;
72
+    display: inline-block;
73
+    position: relative;
74
+    left: 19px;
75
+    top: 4px;
76
+    
77
+  }
78
+  .list{
79
+    float: left;
80
+    .bdattractions{
81
+      float: left;
82
+      padding:28px 20px 27px 49px ;
83
+      .acname{
84
+        font-size: 28px;
85
+        font-weight: bold;
86
+        color: #C0C8D3;      
87
+      }
88
+      .buttonline{
89
+        width: 30px;
90
+        height: 6px;
91
+        position: relative;
92
+        bottom:-27px;
93
+        left: 0;
94
+        margin: 0 auto;
95
+      }
96
+      
97
+    }
98
+    .bdattractions:first-child .acname{
99
+        font-size: 32px;
100
+        color: #4C4C4C;
101
+    }
102
+    .bdattractions:first-child .buttonline{
103
+        background: #4C4C4C;
104
+    }
105
+  }
106
+}
107
+.content{
108
+  width: 100%;
109
+  height: calc(100vh - 120px);
110
+  .waterfall{
111
+    column-count: 2;      //分两列
112
+    column-gap: 30px;    //列间距
113
+    background-color: #F8F8F8;
114
+    padding:30px 30px 0 30px;
115
+    
116
+    .contentCard{
117
+      background: #FFF;
118
+      box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
119
+      border-radius: 24px;
120
+      overflow: hidden;
121
+      margin-bottom:50px;
122
+      break-inside: avoid;
123
+      position: relative;
124
+
125
+      .cardTop{
126
+        border-radius: 24px 24px 0px 0px;
127
+        .cCardimg{
128
+          width: 100%;
129
+          border-radius: 24px 24px 0px 0px;
130
+        }
131
+        .lefttips{
132
+          width:99px;
133
+          height:37px;
134
+          position: absolute;
135
+          left: 0;
136
+        }
137
+        .loveharde{
138
+          width: 22px;
139
+          height: 20px;
140
+          position: absolute;
141
+          right: 20px;
142
+          top: 10px;
143
+        }
144
+      }
145
+      .bContent{
146
+        padding:20px;
147
+        .cCword{
148
+          font-size: 24px;
149
+          font-weight: bold;
150
+          color: #404040;
151
+        }
152
+        
153
+        .cCleft{
154
+          float: left;
155
+          position: relative;
156
+          padding:40px 0 30px 0;
157
+          .cCicon{
158
+            width: 17px;
159
+            height: 21px;
160
+            position: absolute;
161
+            left: 0;
162
+            top: 48px;
163
+          }
164
+          .distance{
165
+            padding-left: 24px;
166
+            font-size: 24px;
167
+            color: #C0C8D3;
168
+          }
169
+        }
170
+        .cCright{
171
+          position: relative;
172
+          float: right;
173
+          padding:40px 0 30px 0;
174
+          .money{
175
+            font-size: 20px;
176
+            color: #FF3434;          
177
+            position: absolute;
178
+            right: 78px;
179
+            bottom: 32px;
180
+          }
181
+          .price{
182
+            font-size: 24px;
183
+            color: #FF3434;
184
+          }
185
+        }
186
+      }
187
+    }
188
+  } 
189
+  .botton{
190
+    font-size: 28px;
191
+    color: #C0C8D3;
192
+    text-align: center;
193
+    padding:40px 0 50px 0;
194
+    background-color: #F8F8F8;
195
+  } 
196
+}

+ 8
- 0
src/pages/landlord/landlord.config.js 查看文件

@@ -0,0 +1,8 @@
1
+export default {
2
+  navigationBarTitleText: '十公里',
3
+  navigationStyle: 'custom',
4
+  styleIsolation: 'shared',
5
+  usingComponents: {
6
+    "mp-tabbar": "weui-miniprogram/tabbar/tabbar"
7
+  }
8
+}

+ 49
- 0
src/pages/landlord/landlord.jsx 查看文件

@@ -0,0 +1,49 @@
1
+import React, { useState, useEffect } from 'react'
2
+import { useRouter } from '@tarojs/taro'
3
+import HouseManage from '@/components/Landlord/HouseManage/houseManage'
4
+import Income from '@/components/Landlord/Income/income'
5
+import TabBar from '@/components/CustTabBar'
6
+import incomeImg from '@/assets/icons/landlord/我的收入.png'
7
+import onincomeImg from '@/assets/icons/landlord/我的收入按下.png'
8
+import houseImg from '@/assets/icons/landlord/房源管理.png'
9
+import onhouseImg from '@/assets/icons/landlord/房源管理按下.png'
10
+import './landlord.less'
11
+
12
+export default (props) => {
13
+  const { params } = useRouter()
14
+  const { tab } = params || {}
15
+
16
+  const [currentTab, setCurrentTab] = useState(0)
17
+
18
+  const handleTabChange = (e) => {
19
+    const { index } = e.detail
20
+    setCurrentTab(index)
21
+  }
22
+
23
+  useEffect(() => {
24
+    if (tab) {
25
+      setCurrentTab(tab - 0)
26
+    }
27
+  }, [tab])
28
+
29
+  return (
30
+    <view className='page-index'>
31
+      <view className='index-container'>
32
+        {currentTab === 0 && <Income />}
33
+        {currentTab === 1 && <HouseManage />}
34
+      </view>
35
+      <view className='index-tabbar'>
36
+        <TabBar extClass='custom-tabbar bottomTab' current={currentTab} onChange={handleTabChange}>
37
+          <view className={`${currentTab === 0 ? 'incomeTab' : ''}`}>
38
+            <image className='incomes' src={currentTab === 0 ? onincomeImg : incomeImg} /><text>我的收入</text>
39
+          </view>
40
+          <view className={`${currentTab === 1 ? 'houseTab' : ''}`}>
41
+            <image className='house' src={currentTab === 1 ? onhouseImg : houseImg} /><text>房源管理</text>
42
+          </view>
43
+        </TabBar>
44
+      </view>
45
+    </view>
46
+
47
+  )
48
+
49
+}

+ 20
- 0
src/pages/landlord/landlord.less 查看文件

@@ -0,0 +1,20 @@
1
+.bottomTab{
2
+  height: 98px;
3
+  line-height: 98px;
4
+  font-size: 30px;     
5
+  font-weight: bold;
6
+  color: #202020;
7
+  .incomeTab{
8
+    color: #666;
9
+  }
10
+  .houseTab{
11
+    color: #666;
12
+  }
13
+  image{
14
+    width: 31px;
15
+    height: 31px;
16
+    position: relative;
17
+    top: 7px;
18
+    margin-right: 12px;
19
+  }
20
+}

+ 4
- 0
src/pages/login/login.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '登录',
3
+  navigationStyle: 'custom',
4
+}

+ 23
- 0
src/pages/login/login.jsx 查看文件

@@ -0,0 +1,23 @@
1
+import React from 'react'
2
+import CustomNav from '@/components/CustomNav'
3
+import index from '../../assets/icons/login/LOGO.png'
4
+import '../index/index.less'
5
+import './login.less'
6
+
7
+
8
+export default (props) => {
9
+return (
10
+  <view className='page-index'>
11
+    <view className='index-navbar'>
12
+        <CustomNav title='登录' />                 
13
+    </view>
14
+    <image className='logo' src={index} />
15
+    <view className='v1'>登录后可继续当前操作</view>
16
+    <view className='login'>微信手机号一键登录</view>
17
+    <view className='buttom'>
18
+      <radio />
19
+    我已阅读知晓并同意 <text>《平台用户服务协议》</text>
20
+    </view>
21
+  </view>
22
+  
23
+)}

+ 42
- 0
src/pages/login/login.less 查看文件

@@ -0,0 +1,42 @@
1
+.logo{
2
+  width: 320px;
3
+  height: 320px;
4
+  margin: 21px auto;
5
+  margin-top: 100px;
6
+}
7
+.v1{
8
+  font-size: 28px;
9
+   line-height: 0;
10
+  color: #999;
11
+  text-align: center;
12
+}
13
+.login{
14
+  width: calc(100% - 60px);
15
+  background: #274190;
16
+  border-radius: 12px;
17
+  font-size: 30px;   
18
+  font-weight: bold;
19
+  color: #FFF;
20
+  text-align: center;
21
+  line-height: 92px;
22
+  margin:80px auto;
23
+}
24
+.buttom{
25
+  font-size: 24px;   
26
+  color: #666;  
27
+  position: absolute;
28
+  text-align: center;
29
+  bottom: 80px;
30
+  width: 100%;
31
+  radio{
32
+    transform:scale(0.5);
33
+    margin-right: -9px;
34
+    position: relative;
35
+    bottom: 4px;
36
+    right: -8px;
37
+  }
38
+  text{
39
+    color: #274190;
40
+    text-decoration: underline;
41
+  }
42
+}

+ 4
- 0
src/pages/search/search.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+    navigationBarTitleText: '搜索',
3
+    navigationStyle: 'custom',
4
+  }

+ 51
- 0
src/pages/search/search.jsx 查看文件

@@ -0,0 +1,51 @@
1
+import React from 'react'
2
+import iconsearch from '../../assets/icons/housemantj/search.png'
3
+import './search.less'
4
+import CustomNav from '@/components/CustomNav'
5
+import '../index/index.less'
6
+import Taro from '@tarojs/taro'
7
+
8
+
9
+
10
+
11
+
12
+export default (props) => {
13
+    const goLook=()=>{
14
+        Taro.navigateTo({ url:'/pages/searchResult/searchResult'});
15
+    }
16
+    
17
+return (
18
+        <view className='page-index'>
19
+            <view className='index-navbar'>
20
+                <CustomNav title='搜索' />                 
21
+            </view>
22
+            
23
+            <view className='search'>
24
+                <input className='searchInput' placeholder='请输入景区/城市搜索'/>
25
+                <image className='searchicon' src={iconsearch} />
26
+                <view className='lineSearch'></view>
27
+            </view>
28
+            <view className='content'>
29
+                <view className='hotSearch'>热门搜索</view>
30
+                <view className='hotSearchtip'>
31
+                    <view onClick={goLook}>小龙虾</view>
32
+                    <view>小笼包</view>
33
+                    <view>小笼包</view>
34
+                    <view>小笼包</view>
35
+                    <view>小笼包</view>
36
+                    <view>小笼包</view>
37
+                    <view>小笼包</view>
38
+                    <view>小笼包</view>
39
+                    <view>小笼包</view>
40
+                    <view>小笼包</view>
41
+                    <view>小笼包</view>
42
+                    <view>小笼包</view>
43
+                    <view>小笼包</view>
44
+                    <view>小笼包</view>
45
+                    <view>小笼包</view>
46
+                </view>
47
+            </view>  
48
+
49
+        </view>
50
+    )
51
+}

+ 61
- 0
src/pages/search/search.less 查看文件

@@ -0,0 +1,61 @@
1
+.search{
2
+  padding: 10px 30px 0 30px;
3
+  position: relative;
4
+  .searchInput{    
5
+      height: 68px;
6
+      background: #F8F8F8;
7
+      border-radius: 34px;
8
+      padding-left: 86px;
9
+      box-sizing: border-box;
10
+      font-size: 24px;
11
+  }
12
+  .searchicon{
13
+    width: 25px;
14
+    height: 25px;
15
+    position: absolute;
16
+    bottom: 21px;
17
+    left: 50px;
18
+  }
19
+  .lineSearch{      
20
+    position: absolute;
21
+    bottom: 19px;
22
+    left: 95px;
23
+    width: 1px;
24
+    height: 28px;
25
+    background: #000;
26
+    opacity: 0.2;
27
+  }    
28
+}
29
+.content{
30
+  padding: 60px 30px;
31
+  .hotSearch{
32
+    font-size: 34px;     
33
+    font-weight: bold;
34
+    color: #202020;
35
+    margin-bottom:58.4px;
36
+  }
37
+  .hotSearchtip view{
38
+    border-radius: 30px;
39
+    font-size: 24px;     
40
+    font-weight: bold;
41
+    margin:0 40px 40px 0;
42
+    padding:18px 23px;
43
+    float: left;
44
+    color: #666666;
45
+    border: 1px solid #999999;
46
+  }
47
+  .hotSearchtip view:first-child{
48
+    border: 2px solid #274190;
49
+    border-radius: 30px;
50
+    font-size: 24px;
51
+     
52
+    font-weight: bold;
53
+    color: #0C297F;
54
+    display: block;
55
+    margin:0 40px 40px 0;
56
+    padding:19px 25px;
57
+    float: left;    
58
+  }
59
+  
60
+  
61
+}

+ 4
- 0
src/pages/searchResult/searchResult.config.js 查看文件

@@ -0,0 +1,4 @@
1
+export default {
2
+    navigationBarTitleText: '搜索',
3
+    navigationStyle: 'custom',
4
+  }

+ 267
- 0
src/pages/searchResult/searchResult.jsx 查看文件

@@ -0,0 +1,267 @@
1
+import React from 'react'
2
+// .就是当前路径
3
+import iconsearch from '../../assets/icons/housemantj/search.png'
4
+import location from '../../assets/icons/housemantj/location.png'
5
+import msImage from '../../assets/icons/housemantj/ms.jpg'
6
+import mjImage from '../../assets/icons/housemantj/mj.jpg'
7
+import glImage from '../../assets/icons/housemantj/gl.jpg'
8
+import msTip from '../../assets/icons/housemantj/foodtip.png'
9
+import mjTip from '../../assets/icons/housemantj/mjtip.png'
10
+import glTip from '../../assets/icons/housemantj/gltip.png'
11
+import onlove from '../../assets/icons/housemantj/onlove.png'
12
+import CustomNav from '@/components/CustomNav'
13
+import Taro from '@tarojs/taro'
14
+import './searchResult.less'
15
+
16
+
17
+export default (props) => {
18
+  const onSearch = () => {
19
+    // 用绝对路径
20
+    Taro.navigateTo({ url: '/pages/search/search' });
21
+  }
22
+
23
+
24
+
25
+
26
+
27
+  return (
28
+    <view className='page-index'>
29
+      <view className='index-navbar'>
30
+        <CustomNav title='搜索' />
31
+      </view>
32
+      <view style={{ height: '100%',overflow:'auto'}}>
33
+        <view className='search'>
34
+          <input className='searchInput' placeholder='请输入景区/城市搜索' disabled onClick={onSearch} />
35
+          <image className='searchicon' src={iconsearch} />
36
+          <view className='lineSearch'></view>
37
+        </view>
38
+        <view className='nav'>
39
+          <view className='list'>
40
+            <view className='bdattractions' >
41
+              <view className='acname'>全部</view>
42
+              <view className='buttonline' ></view>
43
+            </view>
44
+            <view className='bdattractions'>
45
+              <view className='acname'>美食</view>
46
+              <view className='buttonline'></view>
47
+            </view>
48
+            <view className='bdattractions'>
49
+              <view className='acname'>景点</view>
50
+              <view className='buttonline'></view>
51
+            </view>
52
+            <view className='bdattractions'>
53
+              <view className='acname'>攻略</view>
54
+              <view className='buttonline'></view>
55
+            </view>
56
+          </view>
57
+        </view>
58
+
59
+        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" className='content'>
60
+          <view className="waterfall">
61
+            <view className='contentCard'>
62
+              <view className='cardTop'>
63
+                <image mode='widthFix' src={msImage} className='cCardimg' />
64
+                <image className='lefttips' src={msTip} />
65
+                <image src={onlove} className='loveharde'></image>
66
+              </view>
67
+              <view className='bContent'>
68
+                <view className='cCword'>
69
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
70
+                </view>
71
+                <view className='cCleft'>
72
+                  <image src={location} className='cCicon'></image>
73
+                  <view className='distance'><text>9.99</text>公里</view>
74
+              </view>
75
+              <view className='cCright'>
76
+                <view className='money'>¥</view>
77
+                <view className='price'><text>999</text>/人</view>
78
+                </view>
79
+              </view>
80
+            </view>
81
+            <view className='contentCard'>
82
+              <view className='cardTop'>
83
+                <image mode='widthFix' src={mjImage} className='cCardimg' />
84
+                <image className='lefttips' src={mjTip} />
85
+                <image src={onlove} className='loveharde'></image>
86
+              </view>
87
+              <view className='bContent'>
88
+                <view className='cCword'>
89
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
90
+                </view>
91
+                <view className='cCleft'>
92
+                  <image src={location} className='cCicon'></image>
93
+                  <view className='distance'><text>9.99</text>公里</view>
94
+              </view>
95
+              <view className='cCright'>
96
+                <view className='money'>¥</view>
97
+                <view className='price'><text>999</text>/人</view>
98
+                </view>
99
+              </view>
100
+            </view>
101
+            <view className='contentCard'>
102
+              <view className='cardTop'>
103
+                <image mode='widthFix' src={glImage} className='cCardimg' />
104
+                <image className='lefttips' src={glTip} />
105
+                <image src={onlove} className='loveharde'></image>
106
+              </view>
107
+              <view className='bContent'>
108
+                <view className='cCword'>
109
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
110
+                </view>
111
+                <view className='cCleft'>
112
+                  <image src={location} className='cCicon'></image>
113
+                  <view className='distance'><text>9.99</text>公里</view>
114
+              </view>
115
+              <view className='cCright'>
116
+                <view className='money'>¥</view>
117
+                <view className='price'><text>999</text>/人</view>
118
+                </view>
119
+              </view>
120
+            </view>
121
+            <view className='contentCard'>
122
+              <view className='cardTop'>
123
+                <image mode='widthFix' src={mjImage} className='cCardimg' />
124
+                <image className='lefttips' src={mjTip} />
125
+                <image src={onlove} className='loveharde'></image>
126
+              </view>
127
+              <view className='bContent'>
128
+                <view className='cCword'>
129
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
130
+                </view>
131
+                <view className='cCleft'>
132
+                  <image src={location} className='cCicon'></image>
133
+                  <view className='distance'><text>9.99</text>公里</view>
134
+              </view>
135
+              <view className='cCright'>
136
+                <view className='money'>¥</view>
137
+                <view className='price'><text>999</text>/人</view>
138
+                </view>
139
+              </view>
140
+            </view>
141
+            <view className='contentCard'>
142
+              <view className='cardTop'>
143
+                <image mode='widthFix' src={msImage} className='cCardimg' />
144
+                <image className='lefttips' src={msTip} />
145
+                <image src={onlove} className='loveharde'></image>
146
+              </view>
147
+              <view className='bContent'>
148
+                <view className='cCword'>
149
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
150
+                </view>
151
+                <view className='cCleft'>
152
+                  <image src={location} className='cCicon'></image>
153
+                  <view className='distance'><text>9.99</text>公里</view>
154
+              </view>
155
+              <view className='cCright'>
156
+                <view className='money'>¥</view>
157
+                <view className='price'><text>999</text>/人</view>
158
+                </view>
159
+              </view>
160
+            </view>
161
+            <view className='contentCard'>
162
+              <view className='cardTop'>
163
+                <image mode='widthFix' src={mjImage} className='cCardimg' />
164
+                <image className='lefttips' src={mjTip} />
165
+                <image src={onlove} className='loveharde'></image>
166
+              </view>
167
+              <view className='bContent'>
168
+                <view className='cCword'>
169
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
170
+                </view>
171
+                <view className='cCleft'>
172
+                  <image src={location} className='cCicon'></image>
173
+                  <view className='distance'><text>9.99</text>公里</view>
174
+              </view>
175
+              <view className='cCright'>
176
+                <view className='money'>¥</view>
177
+                <view className='price'><text>999</text>/人</view>
178
+                </view>
179
+              </view>
180
+            </view>
181
+            <view className='contentCard'>
182
+              <view className='cardTop'>
183
+                <image mode='widthFix' src={msImage} className='cCardimg' />
184
+                <image className='lefttips' src={msTip} />
185
+                <image src={onlove} className='loveharde'></image>
186
+              </view>
187
+              <view className='bContent'>
188
+                <view className='cCword'>
189
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
190
+                </view>
191
+                <view className='cCleft'>
192
+                  <image src={location} className='cCicon'></image>
193
+                  <view className='distance'><text>9.99</text>公里</view>
194
+              </view>
195
+              <view className='cCright'>
196
+                <view className='money'>¥</view>
197
+                <view className='price'><text>999</text>/人</view>
198
+                </view>
199
+              </view>
200
+            </view>
201
+            <view className='contentCard'>
202
+              <view className='cardTop'>
203
+                <image mode='widthFix' src={mjImage} className='cCardimg' />
204
+                <image className='lefttips' src={mjTip} />
205
+                <image src={onlove} className='loveharde'></image>
206
+              </view>
207
+              <view className='bContent'>
208
+                <view className='cCword'>
209
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
210
+                </view>
211
+                <view className='cCleft'>
212
+                  <image src={location} className='cCicon'></image>
213
+                  <view className='distance'><text>9.99</text>公里</view>
214
+              </view>
215
+              <view className='cCright'>
216
+                <view className='money'>¥</view>
217
+                <view className='price'><text>999</text>/人</view>
218
+                </view>
219
+              </view>
220
+            </view>
221
+            <view className='contentCard'>
222
+              <view className='cardTop'>
223
+                <image mode='widthFix' src={msImage} className='cCardimg' />
224
+                <image className='lefttips' src={msTip} />
225
+                <image src={onlove} className='loveharde'></image>
226
+              </view>
227
+              <view className='bContent'>
228
+                <view className='cCword'>
229
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
230
+                </view>
231
+                <view className='cCleft'>
232
+                  <image src={location} className='cCicon'></image>
233
+                  <view className='distance'><text>9.99</text>公里</view>
234
+              </view>
235
+              <view className='cCright'>
236
+                <view className='money'>¥</view>
237
+                <view className='price'><text>999</text>/人</view>
238
+                </view>
239
+              </view>
240
+            </view>
241
+            <view className='contentCard'>
242
+              <view className='cardTop'>
243
+                <image mode='widthFix' src={mjImage} className='cCardimg' />
244
+                <image className='lefttips' src={mjTip} />
245
+                <image src={onlove} className='loveharde'></image>
246
+              </view>
247
+              <view className='bContent'>
248
+                <view className='cCword'>
249
+                  超划算套餐?这么便宜也是第一次见6荤6素1...
250
+                </view>
251
+                <view className='cCleft'>
252
+                  <image src={location} className='cCicon'></image>
253
+                  <view className='distance'><text>9.99</text>公里</view>
254
+              </view>
255
+              <view className='cCright'>
256
+                <view className='money'>¥</view>
257
+                <view className='price'><text>999</text>/人</view>
258
+                </view>
259
+              </view>
260
+            </view>
261
+          </view>
262
+          <view className='botton'>已经到底了~</view>
263
+        </scroll-view>
264
+      </view>
265
+    </view>
266
+  )
267
+}

+ 153
- 0
src/pages/searchResult/searchResult.less 查看文件

@@ -0,0 +1,153 @@
1
+.search{
2
+    padding: 10px 30px 0 30px;
3
+    position: relative;
4
+    .searchInput{    
5
+        height: 68px;
6
+        background: #F8F8F8;
7
+        border-radius: 34px;
8
+        padding-left: 86px;
9
+        box-sizing: border-box;
10
+        font-size: 24px;
11
+    }
12
+    .searchicon{
13
+      width: 25px;
14
+      height: 25px;
15
+      position: absolute;
16
+      bottom: 21px;
17
+      left: 50px;
18
+    }
19
+    .lineSearch{      
20
+      position: absolute;
21
+      bottom: 19px;
22
+      left: 95px;
23
+      width: 1px;
24
+      height: 28px;
25
+      background: #000;
26
+      opacity: 0.2;
27
+    }    
28
+}
29
+.nav{
30
+  margin-left: 36px;
31
+  .list{
32
+    float: left;
33
+    .bdattractions{
34
+      float: left;
35
+      padding:28px 49px 27px 20px ;
36
+      box-sizing: border-box;  
37
+      .acname{
38
+        font-size: 28px;         
39
+        font-weight: bold;
40
+        color: #C0C8D3;      
41
+      }
42
+      .buttonline{
43
+        width: 30px;
44
+        height: 6px;
45
+        position: relative;
46
+        top:27px;
47
+        margin: 0 auto;
48
+      }
49
+    }
50
+    .bdattractions:first-child .acname{
51
+        font-size: 32px;
52
+        color: #4C4C4C;
53
+    }
54
+    .bdattractions:first-child .buttonline{
55
+        background: #4C4C4C;
56
+    }
57
+  }
58
+}
59
+
60
+
61
+
62
+.content{
63
+  width: 100%;
64
+  height: calc(100vh - 120px);
65
+  .waterfall{
66
+    column-count: 2;      //分两列
67
+    column-gap: 30px;    //列间距
68
+    background-color: #F8F8F8;
69
+    padding:30px 30px 0 30px;
70
+    
71
+    .contentCard{
72
+      background: #FFF;
73
+      box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
74
+      border-radius: 24px;
75
+      overflow: hidden;
76
+      margin-bottom:50px;
77
+      break-inside: avoid;
78
+      position: relative;
79
+
80
+      .cardTop{
81
+        border-radius: 24px 24px 0px 0px;
82
+        .cCardimg{
83
+          width: 100%;
84
+          border-radius: 24px 24px 0px 0px;
85
+        }
86
+        .lefttips{
87
+          width:99px;
88
+          height:37px;
89
+          position: absolute;
90
+          left: 0;
91
+        }
92
+        .loveharde{
93
+          width: 22px;
94
+          height: 20px;
95
+          position: absolute;
96
+          right: 20px;
97
+          top: 10px;
98
+        }
99
+      }
100
+      .bContent{
101
+        padding:20px;
102
+        .cCword{
103
+          font-size: 24px;
104
+          font-weight: bold;
105
+          color: #404040;
106
+        }
107
+        
108
+        .cCleft{
109
+          float: left;
110
+          position: relative;
111
+          padding:40px 0 30px 0;
112
+          .cCicon{
113
+            width: 17px;
114
+            height: 21px;
115
+            position: absolute;
116
+            left: 0;
117
+            top: 48px;
118
+          }
119
+          .distance{
120
+            padding-left: 24px;
121
+            font-size: 24px;
122
+            color: #C0C8D3;
123
+          }
124
+        }
125
+        .cCright{
126
+          position: relative;
127
+          float: right;
128
+          padding:40px 0 30px 0;
129
+          .money{
130
+            font-size: 20px;
131
+            color: #FF3434;          
132
+            position: absolute;
133
+            right: 78px;
134
+            bottom: 32px;
135
+          }
136
+          .price{
137
+            font-size: 24px;
138
+            color: #FF3434;
139
+          }
140
+        }
141
+      }
142
+    }
143
+  } 
144
+  .botton{
145
+    font-size: 28px;
146
+    color: #C0C8D3;
147
+    text-align: center;
148
+    padding:40px 0 50px 0;
149
+    background-color: #F8F8F8;
150
+  } 
151
+}
152
+
153
+

+ 7
- 0
src/pages/spread/spreadIndex.config.js 查看文件

@@ -0,0 +1,7 @@
1
+export default {
2
+  navigationBarTitleText: '十公里',
3
+  navigationStyle: 'custom',
4
+  usingComponents: {
5
+    "mp-tabbar": "weui-miniprogram/tabbar/tabbar"
6
+  }
7
+}

+ 49
- 0
src/pages/spread/spreadIndex.jsx 查看文件

@@ -0,0 +1,49 @@
1
+import React, { useState, useEffect } from 'react'
2
+import { useRouter } from '@tarojs/taro'
3
+import ShopKeeper from '@/components/spreads/ShopKeeper/shopKeeper'
4
+import Sparead from '@/components/spreads/Sparead/spreadMoney'
5
+import TabBar from '@/components/CustTabBar'
6
+import shopImg from '@/assets/icons/shopKeeper/订单收入.png'
7
+import onShopImg from '@/assets/icons/shopKeeper/订单收入按下.png'
8
+import spareadImg from '@/assets/icons/shopKeeper/推广收入.png'
9
+import onSpareadImg from '@/assets/icons/shopKeeper/推广收入按下.png'
10
+import './spreadIndex.less'
11
+
12
+export default (props) => {
13
+  const { params } = useRouter()
14
+  const { tab } = params || {}
15
+
16
+  const [currentTab, setCurrentTab] = useState(0)
17
+
18
+  const handleTabChange = (e) => {
19
+    const { index } = e.detail
20
+    setCurrentTab(index)
21
+  }
22
+
23
+  useEffect(() => {
24
+    if (tab) {
25
+      setCurrentTab(tab - 0)
26
+    }
27
+  }, [tab])
28
+
29
+  return (
30
+    <view className='page-index'>
31
+      <view className='index-container'>
32
+        {currentTab === 0 && <ShopKeeper />}
33
+        {currentTab === 1 && <Sparead />}
34
+      </view>
35
+      <view className='index-tabbar'>
36
+        <TabBar extClass='custom-tabbar bottomTab' current={currentTab} onChange={handleTabChange}>
37
+          <view className={`${currentTab === 0 ? 'orderstab' : ''}`}>
38
+            <image className='incomes' src={currentTab === 0 ? onShopImg : shopImg} /><text>订单收入</text>
39
+          </view>
40
+          <view className={`${currentTab === 1 ? 'spreadtab' : ''}`}>
41
+            <image className='house' src={currentTab === 1 ? onSpareadImg : spareadImg} /><text>推广收入</text>
42
+          </view>
43
+        </TabBar>
44
+      </view>
45
+    </view>
46
+
47
+  )
48
+
49
+}

+ 20
- 0
src/pages/spread/spreadIndex.less 查看文件

@@ -0,0 +1,20 @@
1
+.bottomTab{
2
+  height: 98px;
3
+  line-height: 98px;
4
+  font-size: 30px;     
5
+  font-weight: bold;
6
+  color: #202020;
7
+  .orderstab{
8
+    color: #666;
9
+  }
10
+  .spreadtab{
11
+    color: #666;
12
+  }
13
+  image{
14
+    width: 31px;
15
+    height: 31px;
16
+    position: relative;
17
+    top: 7px;
18
+    margin-right: 12px;
19
+  }
20
+}