Преглед изворни кода

新增房东端店主端一键登录房东推荐

李志伟 пре 3 година
родитељ
комит
853665134d
85 измењених фајлова са 36849 додато и 11 уклоњено
  1. 15
    0
      .vscode/launch.json
  2. 33125
    0
      package-lock.json
  3. 9
    8
      package.json
  4. 9
    0
      src/app.config.js
  5. BIN
      src/assets/icons/housemantj/backTop.png
  6. BIN
      src/assets/icons/housemantj/dp.jpg
  7. BIN
      src/assets/icons/housemantj/fd.jpg
  8. BIN
      src/assets/icons/housemantj/foodtip.png
  9. BIN
      src/assets/icons/housemantj/fximg.png
  10. BIN
      src/assets/icons/housemantj/gl.jpg
  11. BIN
      src/assets/icons/housemantj/gltip.png
  12. BIN
      src/assets/icons/housemantj/location.png
  13. BIN
      src/assets/icons/housemantj/mj.jpg
  14. BIN
      src/assets/icons/housemantj/mj2.jpg
  15. BIN
      src/assets/icons/housemantj/mjtip.png
  16. BIN
      src/assets/icons/housemantj/ms.jpg
  17. BIN
      src/assets/icons/housemantj/ms2.jpg
  18. BIN
      src/assets/icons/housemantj/ms3.jpg
  19. BIN
      src/assets/icons/housemantj/onlove.png
  20. BIN
      src/assets/icons/housemantj/pay.png
  21. BIN
      src/assets/icons/housemantj/search.png
  22. BIN
      src/assets/icons/housemantj/tip.png
  23. BIN
      src/assets/icons/housemantj/yytime.png
  24. BIN
      src/assets/icons/housemantj/znz.png
  25. BIN
      src/assets/icons/housemantj/地址.png
  26. BIN
      src/assets/icons/housemantj/已收藏.png
  27. BIN
      src/assets/icons/housemantj/推荐景点.png
  28. BIN
      src/assets/icons/housemantj/推荐美食.png
  29. BIN
      src/assets/icons/housemantj/收藏.png
  30. BIN
      src/assets/icons/housemantj/景点分享.png
  31. BIN
      src/assets/icons/housemantj/景点收藏.png
  32. BIN
      src/assets/icons/housemantj/景点爆赞.png
  33. BIN
      src/assets/icons/housemantj/查看更多.png
  34. BIN
      src/assets/icons/housemantj/标题装饰.png
  35. BIN
      src/assets/icons/housemantj/爱心.png
  36. BIN
      src/assets/icons/housemantj/营业时间.png
  37. BIN
      src/assets/icons/landlord/分享链接.png
  38. BIN
      src/assets/icons/landlord/删除.png
  39. BIN
      src/assets/icons/landlord/定位 位置.png
  40. BIN
      src/assets/icons/landlord/我的收入.png
  41. BIN
      src/assets/icons/landlord/我的收入2.png
  42. BIN
      src/assets/icons/landlord/我的收入按下.png
  43. BIN
      src/assets/icons/landlord/房源管理.png
  44. BIN
      src/assets/icons/landlord/房源管理按下.png
  45. BIN
      src/assets/icons/landlord/查看入住人.png
  46. BIN
      src/assets/icons/landlord/添加.png
  47. BIN
      src/assets/icons/login/LOGO.png
  48. BIN
      src/assets/icons/shopKeeper/小眼睛-闭上.png
  49. BIN
      src/assets/icons/shopKeeper/小眼睛.png
  50. BIN
      src/assets/icons/shopKeeper/推广收入.png
  51. BIN
      src/assets/icons/shopKeeper/推广收入按下.png
  52. BIN
      src/assets/icons/shopKeeper/订单收入.png
  53. BIN
      src/assets/icons/shopKeeper/订单收入按下.png
  54. 4
    0
      src/pages/details/foodDetails/foodDetails.config.js
  55. 309
    0
      src/pages/details/foodDetails/foodDetails.jsx
  56. 440
    0
      src/pages/details/foodDetails/foodDetails.less
  57. 4
    0
      src/pages/details/mjDetails/sceneryDetails.config.js
  58. 253
    0
      src/pages/details/mjDetails/sceneryDetails.jsx
  59. 440
    0
      src/pages/details/mjDetails/sceneryDetails.less
  60. 1
    1
      src/pages/index/index.config.js
  61. 2
    1
      src/pages/index/index.jsx
  62. 1
    0
      src/pages/index/index.less
  63. 329
    1
      src/pages/index/tabs/Recommend.jsx
  64. 201
    0
      src/pages/index/tabs/less/Recommend.less
  65. 4
    0
      src/pages/landlord/houseManage/houseManage.config.js
  66. 61
    0
      src/pages/landlord/houseManage/houseManage.jsx
  67. 118
    0
      src/pages/landlord/houseManage/houseManage.less
  68. 4
    0
      src/pages/landlord/income/income.config.js
  69. 106
    0
      src/pages/landlord/income/income.jsx
  70. 149
    0
      src/pages/landlord/income/income.less
  71. 4
    0
      src/pages/login/login.config.js
  72. 23
    0
      src/pages/login/login.jsx
  73. 47
    0
      src/pages/login/login.less
  74. 4
    0
      src/pages/search/search.config.js
  75. 51
    0
      src/pages/search/search.jsx
  76. 66
    0
      src/pages/search/search.less
  77. 4
    0
      src/pages/searchResult/searchResult.config.js
  78. 267
    0
      src/pages/searchResult/searchResult.jsx
  79. 170
    0
      src/pages/searchResult/searchResult.less
  80. 4
    0
      src/pages/shopKeeper/shopKeeper.config.js
  81. 127
    0
      src/pages/shopKeeper/shopKeeper.jsx
  82. 276
    0
      src/pages/shopKeeper/shopKeeper.less
  83. 4
    0
      src/pages/spread/spreadMoney.config.js
  84. 72
    0
      src/pages/spread/spreadMoney.jsx
  85. 146
    0
      src/pages/spread/spreadMoney.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
+}

+ 33125
- 0
package-lock.json
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 9
- 8
package.json Прегледај датотеку

@@ -36,24 +36,25 @@
36 36
   "author": "",
37 37
   "dependencies": {
38 38
     "@babel/runtime": "^7.7.7",
39
+    "@miniprogram-component-plus/tabs": "^1.0.0",
39 40
     "@tarojs/components": "3.3.2",
41
+    "@tarojs/react": "3.3.2",
40 42
     "@tarojs/runtime": "3.3.2",
41 43
     "@tarojs/taro": "3.3.2",
42
-    "@tarojs/react": "3.3.2",
43
-    "react-dom": "^17.0.0",
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
   }

+ 9
- 0
src/app.config.js Прегледај датотеку

@@ -2,6 +2,15 @@ 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/shopKeeper/shopKeeper',
11
+    'pages/spread/spreadMoney',
12
+    'pages/landlord/income/income',
13
+    'pages/landlord/houseManage/houseManage'
5 14
   ],
6 15
   window: {
7 16
     backgroundTextStyle: 'light',

BIN
src/assets/icons/housemantj/backTop.png Прегледај датотеку


BIN
src/assets/icons/housemantj/dp.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/fd.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/foodtip.png Прегледај датотеку


BIN
src/assets/icons/housemantj/fximg.png Прегледај датотеку


BIN
src/assets/icons/housemantj/gl.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/gltip.png Прегледај датотеку


BIN
src/assets/icons/housemantj/location.png Прегледај датотеку


BIN
src/assets/icons/housemantj/mj.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/mj2.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/mjtip.png Прегледај датотеку


BIN
src/assets/icons/housemantj/ms.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/ms2.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/ms3.jpg Прегледај датотеку


BIN
src/assets/icons/housemantj/onlove.png Прегледај датотеку


BIN
src/assets/icons/housemantj/pay.png Прегледај датотеку


BIN
src/assets/icons/housemantj/search.png Прегледај датотеку


BIN
src/assets/icons/housemantj/tip.png Прегледај датотеку


BIN
src/assets/icons/housemantj/yytime.png Прегледај датотеку


BIN
src/assets/icons/housemantj/znz.png Прегледај датотеку


BIN
src/assets/icons/housemantj/地址.png Прегледај датотеку


BIN
src/assets/icons/housemantj/已收藏.png Прегледај датотеку


BIN
src/assets/icons/housemantj/推荐景点.png Прегледај датотеку


BIN
src/assets/icons/housemantj/推荐美食.png Прегледај датотеку


BIN
src/assets/icons/housemantj/收藏.png Прегледај датотеку


BIN
src/assets/icons/housemantj/景点分享.png Прегледај датотеку


BIN
src/assets/icons/housemantj/景点收藏.png Прегледај датотеку


BIN
src/assets/icons/housemantj/景点爆赞.png Прегледај датотеку


BIN
src/assets/icons/housemantj/查看更多.png Прегледај датотеку


BIN
src/assets/icons/housemantj/标题装饰.png Прегледај датотеку


BIN
src/assets/icons/housemantj/爱心.png Прегледај датотеку


BIN
src/assets/icons/housemantj/营业时间.png Прегледај датотеку


BIN
src/assets/icons/landlord/分享链接.png Прегледај датотеку


BIN
src/assets/icons/landlord/删除.png Прегледај датотеку


BIN
src/assets/icons/landlord/定位 位置.png Прегледај датотеку


BIN
src/assets/icons/landlord/我的收入.png Прегледај датотеку


BIN
src/assets/icons/landlord/我的收入2.png Прегледај датотеку


BIN
src/assets/icons/landlord/我的收入按下.png Прегледај датотеку


BIN
src/assets/icons/landlord/房源管理.png Прегледај датотеку


BIN
src/assets/icons/landlord/房源管理按下.png Прегледај датотеку


BIN
src/assets/icons/landlord/查看入住人.png Прегледај датотеку


BIN
src/assets/icons/landlord/添加.png Прегледај датотеку


BIN
src/assets/icons/login/LOGO.png Прегледај датотеку


BIN
src/assets/icons/shopKeeper/小眼睛-闭上.png Прегледај датотеку


BIN
src/assets/icons/shopKeeper/小眼睛.png Прегледај датотеку


BIN
src/assets/icons/shopKeeper/推广收入.png Прегледај датотеку


BIN
src/assets/icons/shopKeeper/推广收入按下.png Прегледај датотеку


BIN
src/assets/icons/shopKeeper/订单收入.png Прегледај датотеку


BIN
src/assets/icons/shopKeeper/订单收入按下.png Прегледај датотеку


+ 4
- 0
src/pages/details/foodDetails/foodDetails.config.js Прегледај датотеку

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

+ 309
- 0
src/pages/details/foodDetails/foodDetails.jsx Прегледај датотеку

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

+ 440
- 0
src/pages/details/foodDetails/foodDetails.less Прегледај датотеку

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

+ 4
- 0
src/pages/details/mjDetails/sceneryDetails.config.js Прегледај датотеку

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

+ 253
- 0
src/pages/details/mjDetails/sceneryDetails.jsx Прегледај датотеку

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

+ 440
- 0
src/pages/details/mjDetails/sceneryDetails.less Прегледај датотеку

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

+ 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 Прегледај датотеку

@@ -10,6 +10,7 @@ const Guide = lazy(() => import('./tabs/Guide'))
10 10
 const Strategy = lazy(() => import('./tabs/Strategy'))
11 11
 const Mine = lazy(() => import('./tabs/Mine'))
12 12
 
13
+
13 14
 export default (props) => {
14 15
   const [currentTab, setCurrentTab] = useState(0)
15 16
 
@@ -21,7 +22,7 @@ export default (props) => {
21 22
   return (
22 23
     <view className='page-index'>
23 24
       <view className='index-navbar'>
24
-        <CustomNav logo={logo} title='首页' />
25
+        <CustomNav logo={logo} title='十公里' />
25 26
       </view>
26 27
       <view className='index-container'>
27 28
         <Suspense fallback='loading...'>

+ 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
 }

+ 201
- 0
src/pages/index/tabs/less/Recommend.less Прегледај датотеку

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

+ 4
- 0
src/pages/landlord/houseManage/houseManage.config.js Прегледај датотеку

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '十公里周边指南',
3
+  navigationStyle: 'custom',
4
+}

+ 61
- 0
src/pages/landlord/houseManage/houseManage.jsx Прегледај датотеку

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

+ 118
- 0
src/pages/landlord/houseManage/houseManage.less Прегледај датотеку

@@ -0,0 +1,118 @@
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
+}
90
+.bottomTab{
91
+  width: 100%;
92
+  height: 98px;
93
+  background: #FFFFFF;
94
+  box-shadow: 0px -4px 6px 0px rgba(0, 0, 0, 0.08);
95
+  display: inline-block;
96
+  position: absolute;
97
+  bottom: 0;
98
+  line-height: 98px;
99
+  font-size: 30px;     
100
+  font-weight: bold;
101
+  color: #202020;
102
+  .incometab{
103
+    display: inline-block;
104
+    margin-left: 17%;
105
+    color: #666;
106
+  }
107
+  .housetab{
108
+    margin-right:17%;
109
+    float: right;
110
+  }
111
+  image{
112
+    width: 31px;
113
+    height: 31px;
114
+    position: relative;
115
+    top: 7px;
116
+    margin-right: 12px;
117
+  }
118
+}

+ 4
- 0
src/pages/landlord/income/income.config.js Прегледај датотеку

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '十公里',
3
+  navigationStyle: 'custom',
4
+}

+ 106
- 0
src/pages/landlord/income/income.jsx Прегледај датотеку

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

+ 149
- 0
src/pages/landlord/income/income.less Прегледај датотеку

@@ -0,0 +1,149 @@
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
+}
121
+.bottomTab{
122
+  width: 100%;
123
+  height: 98px;
124
+  background: #FFFFFF;
125
+  box-shadow: 0px -4px 6px 0px rgba(0, 0, 0, 0.08);
126
+  display: inline-block;
127
+  position: absolute;
128
+  bottom: 0;
129
+  line-height: 98px;
130
+  font-size: 30px;     
131
+  font-weight: bold;
132
+  color: #202020;
133
+  .incometab{
134
+    display: inline-block;
135
+    margin-left: 17%;
136
+  }
137
+  .housetab{
138
+    color: #666;
139
+    margin-right:17%;
140
+    float: right;
141
+  }
142
+  image{
143
+    width: 31px;
144
+    height: 31px;
145
+    position: relative;
146
+    top: 7px;
147
+    margin-right: 12px;
148
+  }
149
+}

+ 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
+)}

+ 47
- 0
src/pages/login/login.less Прегледај датотеку

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

+ 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
+}

+ 66
- 0
src/pages/search/search.less Прегледај датотеку

@@ -0,0 +1,66 @@
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: 106px;
10
+        box-sizing: border-box;
11
+        font-size: 24px;
12
+    }
13
+    .searchicon{
14
+      width: 25px;
15
+      height: 25px;
16
+      position: absolute;
17
+      bottom: 22px;
18
+      left: 54px;
19
+    }
20
+    .lineSearch{      
21
+      position: absolute;
22
+      bottom: 19px;
23
+      left: 100px;
24
+      width: 1px;
25
+      height: 28px;
26
+      background: #000000;
27
+      opacity: 0.2;
28
+    }    
29
+}
30
+.content{
31
+  padding: 60px 30px;
32
+  .hotSearch{
33
+    font-size: 34px;
34
+     
35
+    font-weight: bold;
36
+    color: #202020;
37
+    display: block;
38
+    margin: 0 0 60px 0;
39
+  }
40
+  .hotSearchtip view{
41
+    border-radius: 30px;
42
+    font-size: 24px;
43
+     
44
+    font-weight: bold;
45
+    display: block;
46
+    margin:0 40px 40px 0;
47
+    padding:19px 25px;
48
+    float: left;
49
+    color: #666666;
50
+    border: 1px solid #999999;
51
+  }
52
+  .hotSearchtip view:first-child{
53
+    border: 2px solid #274190;
54
+    border-radius: 30px;
55
+    font-size: 24px;
56
+     
57
+    font-weight: bold;
58
+    color: #0C297F;
59
+    display: block;
60
+    margin:0 40px 40px 0;
61
+    padding:19px 25px;
62
+    float: left;    
63
+  }
64
+  
65
+  
66
+}

+ 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
+}

+ 170
- 0
src/pages/searchResult/searchResult.less Прегледај датотеку

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

+ 4
- 0
src/pages/shopKeeper/shopKeeper.config.js Прегледај датотеку

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '十公里',
3
+  navigationStyle: 'custom',
4
+}

+ 127
- 0
src/pages/shopKeeper/shopKeeper.jsx Прегледај датотеку

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

+ 276
- 0
src/pages/shopKeeper/shopKeeper.less Прегледај датотеку

@@ -0,0 +1,276 @@
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
+
248
+.bottomTab{
249
+  width: 100%;
250
+  height: 98px;
251
+  background: #FFFFFF;
252
+  box-shadow: 0px -4px 6px 0px rgba(0, 0, 0, 0.08);
253
+  display: inline-block;
254
+  position: absolute;
255
+  bottom: 0;
256
+  line-height: 98px;
257
+  font-size: 30px;     
258
+  font-weight: bold;
259
+  color: #202020;
260
+  .orderstab{
261
+    display: inline-block;
262
+    margin-left: 17%;
263
+  }
264
+  .spreadtab{
265
+    margin-right:17%;
266
+    float: right;
267
+    color: #666;
268
+  }
269
+  image{
270
+    width: 31px;
271
+    height: 31px;
272
+    position: relative;
273
+    top: 7px;
274
+    margin-right: 12px;
275
+  }
276
+}

+ 4
- 0
src/pages/spread/spreadMoney.config.js Прегледај датотеку

@@ -0,0 +1,4 @@
1
+export default {
2
+  navigationBarTitleText: '十公里',
3
+  navigationStyle: 'custom',
4
+}

+ 72
- 0
src/pages/spread/spreadMoney.jsx Прегледај датотеку

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

+ 146
- 0
src/pages/spread/spreadMoney.less Прегледај датотеку

@@ -0,0 +1,146 @@
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
+}
118
+.bottomTab{
119
+  width: 100%;
120
+  height: 98px;
121
+  background: #FFFFFF;
122
+  box-shadow: 0px -4px 6px 0px rgba(0, 0, 0, 0.08);
123
+  display: inline-block;
124
+  position: absolute;
125
+  bottom: 0;
126
+  line-height: 98px;
127
+  font-size: 30px;     
128
+  font-weight: bold;
129
+  color: #202020;
130
+  .orderstab{
131
+    display: inline-block;
132
+    margin-left: 17%;
133
+    color: #666;
134
+  }
135
+  .spreadtab{
136
+    margin-right:17%;
137
+    float: right;
138
+  }
139
+  image{
140
+    width: 31px;
141
+    height: 31px;
142
+    position: relative;
143
+    top: 7px;
144
+    margin-right: 12px;
145
+  }
146
+}