瀏覽代碼

入住指引

吃个甘蔗嚼一年 3 年之前
父節點
當前提交
eb247e9cda

+ 3
- 2
.eslintrc 查看文件

@@ -2,6 +2,7 @@
2 2
   "extends": ["taro/react"],
3 3
   "rules": {
4 4
     "react/jsx-uses-react": "off",
5
-    "react/react-in-jsx-scope": "off"
6
-  }
5
+    "react/react-in-jsx-scope": "off",
6
+    "no-unused-vars": "warn"
7
+  },
7 8
 }

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


+ 3
- 2
package.json 查看文件

@@ -37,11 +37,12 @@
37 37
   "dependencies": {
38 38
     "@babel/runtime": "^7.7.7",
39 39
     "@tarojs/components": "3.3.2",
40
+    "@tarojs/react": "3.3.2",
40 41
     "@tarojs/runtime": "3.3.2",
41 42
     "@tarojs/taro": "3.3.2",
42
-    "@tarojs/react": "3.3.2",
43
+    "react": "^17.0.0",
43 44
     "react-dom": "^17.0.0",
44
-    "react": "^17.0.0"
45
+    "taro-ui": "^2.3.4"
45 46
   },
46 47
   "devDependencies": {
47 48
     "@types/webpack-env": "^1.13.6",

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

@@ -2,6 +2,7 @@ export default {
2 2
   pages: [
3 3
     'pages/index/index',
4 4
     'pages/test/index',
5
+    'pages/PayOrder/index',
5 6
   ],
6 7
   window: {
7 8
     backgroundTextStyle: 'light',

二進制
src/assets/icons/GuideCheck/Boon.jpg 查看文件


二進制
src/assets/icons/GuideCheck/Cup.png 查看文件


二進制
src/assets/icons/GuideCheck/Pay_logo.png 查看文件


二進制
src/assets/icons/GuideCheck/Raiders.png 查看文件


二進制
src/assets/icons/GuideCheck/alreadyPay_logo.png 查看文件


二進制
src/assets/icons/GuideCheck/loveOff.png 查看文件


二進制
src/assets/icons/GuideCheck/loveOn.png 查看文件


二進制
src/assets/icons/GuideCheck/position_logo.png 查看文件


二進制
src/assets/icons/GuideCheck/sleep_logo.png 查看文件


二進制
src/assets/icons/GuideCheck/starOff.png 查看文件


二進制
src/assets/icons/GuideCheck/starOn.png 查看文件


二進制
src/assets/icons/ProCard/8kb.jpg 查看文件


二進制
src/assets/icons/ProCard/ProCard_hot.png 查看文件


二進制
src/assets/icons/ProCard/food.png 查看文件


+ 38
- 0
src/components/ProCard/index.jsx 查看文件

@@ -0,0 +1,38 @@
1
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
2
+
3
+import './style.less'
4
+
5
+export default (props) => {
6
+
7
+  return (
8
+    <view class='wrapper'>
9
+      <view class='left-complete-one'>
10
+        <image className='left-image-1' src={ProCard_hot}></image>
11
+        {/* <view className='left-viewText'>
12
+              返现¥16.00
13
+            </view> */}
14
+        <view className='title-image'>
15
+          {/* <image className='image-1' mode='scaleToFill' src={image}></image> */}
16
+          {/* <image className='image-2' src={food}></image> */}
17
+        </view>
18
+        <view className='title-content'>
19
+          {/* <view className='Pro-title'>
20
+                <view className='title-text'>【橘里橘气咖啡店】新鲜出炉啦!</view>
21
+              </view>
22
+              <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
23
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view> */}
24
+        </view>
25
+      </view>
26
+      <view class='right-complete-two'>
27
+        <view className='right-content'>
28
+          {/* <view className='right-number'>×1</view> */}
29
+          {/* <view className='right-title'>数量</view> */}
30
+        </view>
31
+      </view>
32
+    </view>
33
+
34
+
35
+  )
36
+
37
+
38
+}

+ 166
- 0
src/components/ProCard/style.less 查看文件

@@ -0,0 +1,166 @@
1
+@whiteColor: #fff;
2
+@Image-ProCard_hot: "../../assets/icons/ProCard/ProCard_hot.png";
3
+
4
+.wrapper {
5
+  display: flex;
6
+  position: relative;
7
+  // margin-top: 600px;
8
+  margin: 30px auto;
9
+  width: 700px;
10
+
11
+  // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
12
+  // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
13
+  filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
14
+
15
+  .left-complete-one {
16
+    padding-top: 87px;
17
+    padding-bottom: 43px;
18
+    position: relative;
19
+    display: flex;
20
+    background: @whiteColor;
21
+    background: radial-gradient(
22
+          circle at top right,
23
+          transparent 15px,
24
+          @whiteColor 0
25
+        )
26
+        top right,
27
+      radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
28
+        bottom right;
29
+    background-size: 100% 60%;
30
+    background-repeat: no-repeat;
31
+
32
+    width: 573px;
33
+    border-radius: 15px 0px 0px 15px;
34
+    // border-radius: 12px;
35
+
36
+    align-items: center;
37
+    .left-image-1 {
38
+      width: 145px;
39
+      height: 44px;
40
+      position: absolute;
41
+      top: 22px;
42
+    }
43
+    .left-viewText {
44
+      // background-image: url(@Image-ProCard_hot);
45
+      // width: 287px;
46
+      width: auto;
47
+      height: 44.3px;
48
+      position: absolute;
49
+      left: 1px;
50
+      top: 28px;
51
+      font-size: 24px;
52
+      color: @whiteColor;
53
+      font-weight: 600;
54
+    }
55
+    //图片
56
+    .title-image {
57
+      width: 145px;
58
+      margin-left: 20px;
59
+      border-radius: 24px;
60
+      overflow: hidden;
61
+      position: relative;
62
+
63
+      .image-1 {
64
+        width: 100%;
65
+        height: 145px;
66
+      }
67
+      .image-2 {
68
+        width: 89px;
69
+        height: 34px;
70
+        position: absolute;
71
+        left: 0;
72
+        top: 0;
73
+      }
74
+    }
75
+    // 商品标题
76
+    .title-content {
77
+      // padding: 84px 0 56px 20px;
78
+      padding-left: 18px;
79
+
80
+      .Pro-title {
81
+        .title-text {
82
+          width: 375px;
83
+          overflow: hidden;
84
+          text-overflow: ellipsis;
85
+          display: -webkit-box; //必须要
86
+          -webkit-line-clamp: 1;
87
+          -webkit-box-orient: vertical;
88
+          word-break: break-all; /* 多出文本省略号代替 */
89
+          text-align: left;
90
+          font-size: 24px;
91
+          padding-bottom: 10px;
92
+        }
93
+      }
94
+      .title-money {
95
+        padding-top: 34px;
96
+        font-size: 24px;
97
+        // color: red;
98
+        font-weight: 800;
99
+      }
100
+      .title-money-2 {
101
+        font-size: 18px;
102
+        color: #666;
103
+        padding-left: 10px;
104
+        text-decoration: line-through;
105
+      }
106
+
107
+      .title-time {
108
+        font-size: 24px;
109
+        padding-top: 20px;
110
+        color: #c0c8d3;
111
+      }
112
+    }
113
+  }
114
+}
115
+
116
+.right-complete-two {
117
+  background: @whiteColor;
118
+  background: radial-gradient(
119
+        circle at top left,
120
+        transparent 15px,
121
+        @whiteColor 0
122
+      )
123
+      top left,
124
+    radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
125
+      bottom left;
126
+  background-size: 100% 60%;
127
+  background-repeat: no-repeat;
128
+  width: 129px;
129
+  border-radius: 0 15px 15px 0;
130
+  position: relative;
131
+  //右面部分
132
+  .right-content {
133
+    // width: 100px;
134
+    // height: 80px;
135
+    position: absolute;
136
+    top: 50%;
137
+    left: 50%;
138
+    transform: translate(-50%, -50%);
139
+    // border: 1px solid red;
140
+
141
+    .right-number {
142
+      width: 32px;
143
+      font-size: 20px;
144
+      border-radius: 4px;
145
+      border: 2px solid #999;
146
+      margin: auto;
147
+      text-align: center;
148
+    }
149
+
150
+    .right-title {
151
+      font-weight: 700;
152
+      font-size: 24px;
153
+      padding-top: 20px;
154
+      text-align: center;
155
+    }
156
+  }
157
+}
158
+//线条
159
+.right-complete-two::after {
160
+  content: "";
161
+  position: absolute;
162
+  top: 15px;
163
+  margin: 26px auto;
164
+  height: 70%;
165
+  border-left: 1px dashed #595959;
166
+}

+ 12
- 0
src/pages/PayOrder/index.config.js 查看文件

@@ -0,0 +1,12 @@
1
+export default {
2
+  navigationBarTitleText: '测试页2',
3
+  navigationStyle: 'custom',
4
+
5
+  usingComponents: {
6
+    "mp-checkbox-group": "weui-miniprogram/checkbox-group/checkbox-group",
7
+    "mp-checkbox": "weui-miniprogram/checkbox/checkbox",
8
+    "mp-cells": "weui-miniprogram/cells/cells"
9
+  }
10
+
11
+
12
+}

+ 123
- 0
src/pages/PayOrder/index.jsx 查看文件

@@ -0,0 +1,123 @@
1
+
2
+import image from '@/assets/icons/ProCard/8kb.jpg'
3
+import { Button, Radio } from '@tarojs/components'
4
+
5
+import food from '@/assets/icons/ProCard/food.png'
6
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7
+import CustomNav from '@/components/CustomNav'
8
+import PPP from '@/components/ProCard'
9
+import './style.less'
10
+
11
+export default () => {
12
+
13
+
14
+
15
+
16
+  return (
17
+
18
+    <view class='container'>
19
+      <CustomNav title='订单' />
20
+      <view class='coupon-list'>
21
+        <view class='wrapper'>
22
+          <view class='left-complete-one'>
23
+            <image className='left-image-1' src={ProCard_hot}></image>
24
+            <view className='left-viewText'>
25
+              返现¥16.00
26
+            </view>
27
+            <view className='title-image'>
28
+              <image className='image-1' mode='scaleToFill' src={image}></image>
29
+              <image className='image-2' src={food}></image>
30
+            </view>
31
+            <view className='title-content'>
32
+              <view className='Pro-title'>
33
+                <view className='title-text'>【橘里橘气咖啡店】新鲜出炉啦!</view>
34
+              </view>
35
+              <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
36
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
37
+            </view>
38
+          </view>
39
+          <view class='right-complete-two'>
40
+            <view className='right-content'>
41
+              <view className='right-number'>×1</view>
42
+              <view className='right-title'>数量</view>
43
+            </view>
44
+          </view>
45
+        </view>
46
+        <view class='wrapper'>
47
+          <view class='left-complete-one'>
48
+            <image className='left-image-1' src={ProCard_hot}></image>
49
+            <view className='left-viewText'>
50
+              返现¥16.00
51
+            </view>
52
+            <view className='title-image'>
53
+              <image className='image-1' mode='scaleToFill' src={image}></image>
54
+              <image className='image-2' src={food}></image>
55
+            </view>
56
+            <view className='title-content'>
57
+              <view className='Pro-title'>
58
+                <view className='title-text'>【橘里橘气咖啡店】新鲜出炉啦!</view>
59
+              </view>
60
+              <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
61
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
62
+            </view>
63
+          </view>
64
+          <view class='right-complete-two'>
65
+            <view className='right-content'>
66
+              <view className='right-number'>×1</view>
67
+              <view className='right-title'>数量</view>
68
+            </view>
69
+          </view>
70
+        </view>
71
+
72
+        <view class='wrapper'>
73
+          <view class='left-complete-one'>
74
+            <image className='left-image-1' src={ProCard_hot}></image>
75
+            <view className='left-viewText'>
76
+              返现¥16.00
77
+            </view>
78
+            <view className='title-image'>
79
+              <image className='image-1' mode='scaleToFill' src={image}></image>
80
+              <image className='image-2' src={food}></image>
81
+            </view>
82
+            <view className='title-content'>
83
+              <view className='Pro-title'>
84
+                <view className='title-text'>【橘里橘气咖啡店】新鲜出炉啦!</view>
85
+              </view>
86
+              <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
87
+              <view className='title-time' >有效期:2021/06/21-2021/12/31</view>
88
+            </view>
89
+          </view>
90
+          <view class='right-complete-two'>
91
+            <view className='right-content'>
92
+              <view className='right-number'>×1</view>
93
+              <view className='right-title'>数量</view>
94
+            </view>
95
+          </view>
96
+        </view>
97
+
98
+      </view>
99
+      <view className='view-button'>
100
+        <view className='Card-number-box'>
101
+          <view className='Card-number'>
102
+            <text style='left:29px;position: absolute; padding-top:20px'>手机号码:</text>
103
+            <text style='right:29px;position: absolute;padding-top:20px'>16161312125</text>
104
+          </view>
105
+          <view className='Card-user'>
106
+            <Radio style='padding-left:20px; position: relative; top:24px;' value='我已阅读知晓并同意' >我已阅读知晓并同意 <text style='color:#274190;text-decoration:underline;font-weight:400'>《平台用户服务协议》</text></Radio>
107
+          </view>
108
+        </view>
109
+        <view className='button-box-button-box'>
110
+          <view className='button-text-image' >
111
+            <text className='button-text-money-hot'>返现¥2.18</text>
112
+            <image className='button-image' src={ProCard_hot}>123123</image>
113
+            <view className='button-text-money'>门店市面价:230元</view>
114
+          </view>
115
+          <Button className='button-box-one'>¥170元 <text className='button-text-one'>支付订单</text> </Button>
116
+        </view>
117
+
118
+      </view>
119
+    </view>
120
+
121
+
122
+  )
123
+}

+ 237
- 0
src/pages/PayOrder/style.less 查看文件

@@ -0,0 +1,237 @@
1
+@whiteColor: #fff;
2
+@Image-ProCard_hot: "../../assets/icons/ProCard/ProCard_hot.png";
3
+
4
+.view-button {
5
+  // width: 100%;
6
+  // height: 150px;
7
+  position: relative;
8
+
9
+  .Card-number-box {
10
+    .Card-number {
11
+      width: 100%;
12
+      height: 96px;
13
+      background-color: @whiteColor;
14
+    }
15
+    .Card-user {
16
+      width: 100%;
17
+      height: 96px;
18
+      background-color: @whiteColor;
19
+    }
20
+  }
21
+  .button-box-button-box {
22
+    position: relative;
23
+    .button-text-image {
24
+      width: 144;
25
+      height: 45px;
26
+      position: absolute;
27
+      top: -35px;
28
+      left: 267px;
29
+      right: 305px;
30
+      z-index: 1;
31
+      .button-text-money-hot {
32
+        position: absolute;
33
+        width: 144px;
34
+        height: 43px;
35
+        line-height: 43px;
36
+        font-size: 24px;
37
+        font-weight: bold;
38
+        color: @whiteColor;
39
+      }
40
+      .button-image {
41
+        width: 143px;
42
+        height: 43px;
43
+      }
44
+      .button-text-money {
45
+        position: absolute;
46
+        margin-top: -8;
47
+        width: 157px;
48
+        font-size: 18px;
49
+        font-weight: 400;
50
+        text-decoration: line-through;
51
+        color: @whiteColor;
52
+      }
53
+    }
54
+    .button-box-one {
55
+      font-size: 30px;
56
+      line-height: 92px;
57
+      margin-top: 3em;
58
+      background-color: #274190;
59
+      border-radius: 12px;
60
+      width: 690px;
61
+      height: 92px;
62
+      color: @whiteColor;
63
+      // position: absolute;
64
+      bottom: 40px;
65
+      right: 0;
66
+      left: 0;
67
+      .button-text-one {
68
+        right: 133px;
69
+        font-size: 30px;
70
+        padding-left: 220px;
71
+      }
72
+    }
73
+  }
74
+}
75
+
76
+.wrapper {
77
+  display: flex;
78
+  position: relative;
79
+  // margin-top: 600px;
80
+  margin: 30px auto;
81
+  width: 700px;
82
+
83
+  // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
84
+  // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
85
+  filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
86
+
87
+  .left-complete-one {
88
+    padding-top: 87px;
89
+    padding-bottom: 43px;
90
+    position: relative;
91
+    display: flex;
92
+    background: @whiteColor;
93
+    background: radial-gradient(
94
+          circle at top right,
95
+          transparent 15px,
96
+          @whiteColor 0
97
+        )
98
+        top right,
99
+      radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
100
+        bottom right;
101
+    background-size: 100% 60%;
102
+    background-repeat: no-repeat;
103
+
104
+    width: 573px;
105
+    border-radius: 15px 0px 0px 15px;
106
+    // border-radius: 12px;
107
+
108
+    align-items: center;
109
+    .left-image-1 {
110
+      width: 145px;
111
+      height: 44px;
112
+      position: absolute;
113
+      top: 22px;
114
+    }
115
+    .left-viewText {
116
+      // background-image: url(@Image-ProCard_hot);
117
+      // width: 287px;
118
+      width: auto;
119
+      height: 44.3px;
120
+      position: absolute;
121
+      left: 1px;
122
+      top: 28px;
123
+      font-size: 24px;
124
+      color: @whiteColor;
125
+      font-weight: 600;
126
+    }
127
+    //图片
128
+    .title-image {
129
+      width: 145px;
130
+      margin-left: 20px;
131
+      border-radius: 24px;
132
+      overflow: hidden;
133
+      position: relative;
134
+      .image-1 {
135
+        width: 100%;
136
+        height: 145px;
137
+      }
138
+      .image-2 {
139
+        width: 89px;
140
+        height: 34px;
141
+        position: absolute;
142
+        left: 0;
143
+        top: 0;
144
+      }
145
+    }
146
+    // 商品标题
147
+    .title-content {
148
+      // padding: 84px 0 56px 20px;
149
+      padding-left: 18px;
150
+
151
+      .Pro-title {
152
+        .title-text {
153
+          width: 375px;
154
+          overflow: hidden;
155
+          text-overflow: ellipsis;
156
+          display: -webkit-box; //必须要
157
+          -webkit-line-clamp: 1;
158
+          -webkit-box-orient: vertical;
159
+          word-break: break-all; /* 多出文本省略号代替 */
160
+          text-align: left;
161
+          font-size: 24px;
162
+          padding-bottom: 10px;
163
+        }
164
+      }
165
+      .title-money {
166
+        padding-top: 34px;
167
+        font-size: 24px;
168
+        // color: red;
169
+        font-weight: 800;
170
+      }
171
+      .title-money-2 {
172
+        font-size: 18px;
173
+        color: #666;
174
+        padding-left: 10px;
175
+        text-decoration: line-through;
176
+      }
177
+
178
+      .title-time {
179
+        font-size: 24px;
180
+        padding-top: 20px;
181
+        color: #c0c8d3;
182
+      }
183
+    }
184
+  }
185
+}
186
+
187
+.right-complete-two {
188
+  background: @whiteColor;
189
+  background: radial-gradient(
190
+        circle at top left,
191
+        transparent 15px,
192
+        @whiteColor 0
193
+      )
194
+      top left,
195
+    radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
196
+      bottom left;
197
+  background-size: 100% 60%;
198
+  background-repeat: no-repeat;
199
+  width: 129px;
200
+  border-radius: 0 15px 15px 0;
201
+  position: relative;
202
+  //右面部分
203
+  .right-content {
204
+    // width: 100px;
205
+    // height: 80px;
206
+    position: absolute;
207
+    top: 50%;
208
+    left: 50%;
209
+    transform: translate(-50%, -50%);
210
+    // border: 1px solid red;
211
+
212
+    .right-number {
213
+      width: 32px;
214
+      font-size: 20px;
215
+      border-radius: 4px;
216
+      border: 2px solid #999;
217
+      margin: auto;
218
+      text-align: center;
219
+    }
220
+
221
+    .right-title {
222
+      font-weight: 700;
223
+      font-size: 24px;
224
+      padding-top: 20px;
225
+      text-align: center;
226
+    }
227
+  }
228
+}
229
+//线条
230
+.right-complete-two::after {
231
+  content: "";
232
+  position: absolute;
233
+  top: 15px;
234
+  margin: 26px auto;
235
+  height: 70%;
236
+  border-left: 1px dashed #595959;
237
+}

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

@@ -1,5 +1,5 @@
1 1
 import React, { Suspense, useState, lazy } from 'react'
2
-import { View, Text } from '@tarojs/components'
2
+
3 3
 import CustomNav from '@/components/CustomNav'
4 4
 import logo from '@/assets/icons/comm/logo_small.png'
5 5
 import tabList from './tabbar'
@@ -10,7 +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
-export default (props) => {
13
+export default () => {
14 14
   const [currentTab, setCurrentTab] = useState(0)
15 15
 
16 16
   const handleTabChange = (e) => {

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

@@ -20,11 +20,11 @@
20 20
 }
21 21
 
22 22
 .custom-tabbar {
23
-  background: #FFFFFF;
23
+  background: #ffffff;
24 24
   box-shadow: 0px -4px 6px 0px rgba(0, 0, 0, 0.08);
25 25
 
26 26
   .weui-tabbar__label {
27
-    color: #C0C8D3;
27
+    color: #c0c8d3;
28 28
   }
29 29
 
30 30
   .weui-bar__item_on {

+ 142
- 7
src/pages/index/tabs/Guide.jsx 查看文件

@@ -1,19 +1,154 @@
1
+import { useState } from "react";
1 2
 import Taro from '@tarojs/taro'
2
-import React from 'react'
3
-import Card from '@/components/Card'
3
+import image from '@/assets/icons/ProCard/8kb.jpg'
4
+import Pay from '@/assets/icons/GuideCheck/Pay_logo.png'
5
+import food from '@/assets/icons/ProCard/food.png'
6
+import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7
+import sleep from '@/assets/icons/GuideCheck/sleep_logo.png'
8
+import position from '@/assets/icons/GuideCheck/position_logo.png'
9
+import Cup from '@/assets/icons/GuideCheck/Cup.png'
10
+import starOn from '@/assets/icons/GuideCheck/starOn.png'
11
+import starOff from '@/assets/icons/GuideCheck/starOff.png'
12
+import Boon from '@/assets/icons/GuideCheck/Boon.jpg'
13
+import loveOn from '@/assets/icons/GuideCheck/loveOn.png'
14
+import Raiders from '@/assets/icons/GuideCheck/Raiders.png'
15
+
16
+import './GuideCss/style.less'
17
+
18
+
19
+const scoreList = new Array(5).fill(0)
20
+const score = '3.9'
21
+
4 22
 
5 23
 export default (props) => {
24
+  const [value, setVaule] = useState('已收藏')
25
+  const [imageSrc, setImageSrc] = useState(starOn)
26
+
27
+
28
+
29
+
30
+  const Ac = () => {
31
+    setImageSrc(starOff)
32
+    setVaule('加入收藏')
33
+    // console.log('------------', value);
34
+
35
+  }
6 36
 
7 37
   const handleClick = () => {
8 38
     Taro.navigateTo({ url: '/pages/test/index' })
9 39
   }
10
-
40
+  // onClick={handleClick}
11 41
   return (
12
-    <view onClick={handleClick}>
13
-      <Card>
14 42
 
15
-      入住指引
16
-      </Card>
43
+    <view className='Guide-Home-box'>
44
+      {/* <view className='Guide-image-text-box'>
45
+        <image className='Guide-images' src={sleep} />
46
+        <view className='Guide-text'>休息一下,休息一下~</view>
47
+      </view> */}
48
+      {/* 图片结束 */}
49
+      {/* <view className='Guide-Content-box'>
50
+        <view className='title-image'>
51
+          <image mode='scaleToFill' className='title-image-cup' src={Cup} />
52
+          <text className='title-title-boss' >老板推荐好吃的</text>
53
+        </view>
54
+      </view> */}
55
+      {/* 小标题结束 */}
56
+      {/* <view class='wrapper'> */}
57
+      {/* <view class='left-complete-one'>
58
+          <image className='left-image-1' src={ProCard_hot}></image>
59
+          <view className='left-viewText'>
60
+            返现¥16.00
61
+          </view> */}
62
+      {/* 评分 */}
63
+      {/* <view className='card-box-star'>
64
+            {
65
+              scoreList.map((_, index) => {
66
+                console.log(index)
67
+                const src = (index + '0.1') < score ? starOn : starOff
68
+                return (
69
+                  <image className='card-star-image' key={index} src={src} />
70
+                )
71
+              })
72
+            }
73
+            <text className='card-star-text' >{score}</text>
74
+          </view>
75
+          <view className='title-image'>
76
+            <image className='image-1' mode='scaleToFill' src={image}></image>
77
+            <image className='image-2' src={food}></image>
78
+          </view>
79
+          <view className='title-content'>
80
+            <view className='Pro-title'>
81
+              <view className='title-text'>【橘里橘啊换行啊啊啊气咖啡店】新鲜出炉啦!</view>
82
+            </view>
83
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text> */}
84
+      {/* <view className='title-time' >有效期:2021/06/21-2021/12/31</view> */}
85
+      {/* <view className='title-position-on'>
86
+              <image className='title-position' src={position} />
87
+              <text className='title-position-image'>南京市/秦淮区</text>
88
+              <image className='title-on' src={imageSrc} />
89
+              <text onClick={() => Ac()} className='title-on-text'>{value}</text>
90
+            </view>
91
+          </view>
92
+        </view>
93
+        <view class='right-complete-two'>
94
+          <view className='right-content'> */}
95
+      {/* <view className='right-number'>×1</view> */}
96
+      {/* <image className='right-image' src={Pay} />
97
+            <view className='right-title'>支付</view>
98
+          </view>
99
+        </view>
100
+      </view> */}
101
+      {/* 卡片----------------- */}
102
+      <view class='wrapper'>
103
+        <view class='left-complete-one'>
104
+          <image className='left-image-1' src={ProCard_hot}></image>
105
+          <view className='left-viewText'>
106
+            返现¥16.00
107
+          </view>
108
+          {/* 评分 */}
109
+          <view className='card-box-star'>
110
+            {
111
+              scoreList.map((_, index) => {
112
+                console.log(index)
113
+                const src = (index + '0.1') < score ? starOn : starOff
114
+                return (
115
+                  <image className='card-star-image' key={index} src={src} />
116
+                )
117
+              })
118
+            }
119
+            <text className='card-star-text' >{score}</text>
120
+          </view>
121
+          <view className='title-image'>
122
+            <image className='image-1' mode='scaleToFill' src={image}></image>
123
+            <image className='image-2' src={food}></image>
124
+          </view>
125
+          <view className='title-content'>
126
+            <view className='Pro-title'>
127
+              <view className='title-text'>【橘里橘啊换行啊啊啊气咖啡店】新鲜出炉啦!</view>
128
+            </view>
129
+            <text className='title-money' >¥6990元<text className='title-money-2'>门市价78元</text></text>
130
+            {/* <view className='title-time' >有效期:2021/06/21-2021/12/31</view> */}
131
+            <view className='title-position-on'>
132
+              <image className='title-position' src={position} />
133
+              <text className='title-position-image'>南京市/秦淮区</text>
134
+              <image className='title-on' src={imageSrc} />
135
+              <text onClick={() => Ac()} className='title-on-text'>{value}</text>
136
+            </view>
137
+          </view>
138
+        </view>
139
+        <view class='right-complete-two'>
140
+          <view className='right-content'>
141
+            {/* <view className='right-number'>×1</view> */}
142
+            <image className='right-image' src={Pay} />
143
+            <view className='right-title'>支付</view>
144
+          </view>
145
+        </view>
146
+      </view>
147
+      {/* 卡片------------- */}
148
+      <view className='Raiders-box-one'>
149
+        <view className='Raiders-box'></view>
150
+        <view className='Raiders-box'></view>
151
+      </view>
17 152
     </view>
18 153
   )
19 154
 }

+ 288
- 0
src/pages/index/tabs/GuideCss/style.less 查看文件

@@ -0,0 +1,288 @@
1
+@whiteColor: #fff;
2
+
3
+.page-index {
4
+  padding: 0 25px;
5
+}
6
+.Guide-Home-box {
7
+  // width: 333333333333px;
8
+  .Guide-image-text-box {
9
+    width: 472px;
10
+    height: 548px;
11
+    margin: auto;
12
+    margin-top: 102px;
13
+    margin-bottom: 103px;
14
+    .Guide-images {
15
+      width: 472px;
16
+      height: 482px;
17
+    }
18
+    .Guide-text {
19
+      width: 268px;
20
+      font-weight: 400;
21
+      color: #999;
22
+      margin: auto;
23
+      width: 268px;
24
+      height: 26px;
25
+      font-size: 26px;
26
+      padding-top: 20px;
27
+    }
28
+  }
29
+  .Guide-Content-box {
30
+    .title-image {
31
+      display: flex;
32
+      width: 270px;
33
+      height: 40px;
34
+      .title-image-cup {
35
+        width: 32px;
36
+        height: 32px;
37
+        margin-top: 10px;
38
+        padding-right: 10px;
39
+        align-items: center;
40
+      }
41
+
42
+      .title-title-boss {
43
+        align-items: center;
44
+
45
+        font-size: 32px;
46
+        font-weight: 800;
47
+        color: #202020;
48
+      }
49
+    }
50
+  }
51
+  //卡片---------------
52
+
53
+  .wrapper {
54
+    margin-top: 40px;
55
+    display: flex;
56
+    position: relative;
57
+    // margin-top: 600px;
58
+    // margin: 30px auto;
59
+    width: 700px;
60
+
61
+    // box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
62
+    // filter: drop-shadow(5px 8px 6px rgb(202, 202, 202));
63
+    filter: drop-shadow(0 0 0.9rem rgba(0, 0, 0, 0.12));
64
+    .card-box-star {
65
+      position: absolute;
66
+      width: auto;
67
+      height: 44.3px;
68
+      position: absolute;
69
+      left: 200px;
70
+      top: 28px;
71
+      font-size: 20px;
72
+      color: @whiteColor;
73
+      .card-star-image {
74
+        padding-left: 6px;
75
+        width: 21px;
76
+        height: 21px;
77
+      }
78
+      .card-star-text {
79
+        padding-left: 10px;
80
+        font-size: 20px;
81
+        color: #333;
82
+        font-weight: 700;
83
+      }
84
+    }
85
+
86
+    .left-complete-one {
87
+      padding-top: 87px;
88
+      padding-bottom: 43px;
89
+      position: relative;
90
+      display: flex;
91
+      background: @whiteColor;
92
+      background: radial-gradient(
93
+            circle at top right,
94
+            transparent 15px,
95
+            @whiteColor 0
96
+          )
97
+          top right,
98
+        radial-gradient(circle at bottom right, transparent 15px, @whiteColor 0)
99
+          bottom right;
100
+      background-size: 100% 60%;
101
+      background-repeat: no-repeat;
102
+
103
+      width: 573px;
104
+      border-radius: 15px 0px 0px 15px;
105
+      // border-radius: 12px;
106
+
107
+      align-items: center;
108
+      .left-image-1 {
109
+        width: 145px;
110
+        height: 44px;
111
+        position: absolute;
112
+        top: 22px;
113
+      }
114
+      .left-viewText {
115
+        // background-image: url(@Image-ProCard_hot);
116
+        // width: 287px;
117
+        width: auto;
118
+        height: 44.3px;
119
+        position: absolute;
120
+        left: 1px;
121
+        top: 28px;
122
+        font-size: 20px;
123
+        color: @whiteColor;
124
+      }
125
+      //图片
126
+      .title-image {
127
+        width: 145px;
128
+        margin-left: 20px;
129
+        border-radius: 24px;
130
+        overflow: hidden;
131
+        position: relative;
132
+        .image-1 {
133
+          width: 100%;
134
+          height: 145px;
135
+        }
136
+        .image-2 {
137
+          width: 89px;
138
+          height: 34px;
139
+          position: absolute;
140
+          left: 0;
141
+          top: 0;
142
+        }
143
+      }
144
+      // 商品标题
145
+      .title-content {
146
+        // padding: 84px 0 56px 20px;
147
+        padding-left: 18px;
148
+
149
+        .Pro-title {
150
+          .title-text {
151
+            width: 375px;
152
+            overflow: hidden;
153
+            text-overflow: ellipsis;
154
+            // display: -webkit-box; //必须要
155
+            -webkit-line-clamp: 1;
156
+            -webkit-box-orient: vertical;
157
+            // word-break: break-all; /* 多出文本省略号代替 */
158
+            text-align: left;
159
+            font-size: 24px;
160
+            // padding-bottom: 10px;
161
+          }
162
+        }
163
+        .title-money {
164
+          // padding-top: 34px;
165
+          font-size: 24px;
166
+          // color: red;
167
+          font-weight: 800;
168
+        }
169
+        .title-money-2 {
170
+          font-size: 18px;
171
+          color: #666;
172
+          padding-left: 10px;
173
+          text-decoration: line-through;
174
+        }
175
+
176
+        .title-time {
177
+          font-size: 24px;
178
+          // padding-top: 20px;
179
+          color: #c0c8d3;
180
+        }
181
+        .title-position-on {
182
+          display: flex;
183
+          font-size: 20px;
184
+          .title-position {
185
+            width: 18px;
186
+            height: 24px;
187
+            padding-right: 10px;
188
+            padding-top: 5px;
189
+          }
190
+          .title-position-image {
191
+            align-items: center;
192
+            font-size: 20px;
193
+            color: #333;
194
+          }
195
+          .title-on {
196
+            // margin-bottom: 10px;
197
+            padding-top: 5px;
198
+            padding-left: 40px;
199
+            width: 21px;
200
+            height: 21px;
201
+            padding-right: 10px;
202
+          }
203
+          .title-on-text {
204
+            align-items: center;
205
+
206
+            font-size: 20px;
207
+            color: #333;
208
+          }
209
+        }
210
+      }
211
+    }
212
+  }
213
+
214
+  .right-complete-two {
215
+    background: @whiteColor;
216
+    background: radial-gradient(
217
+          circle at top left,
218
+          transparent 15px,
219
+          @whiteColor 0
220
+        )
221
+        top left,
222
+      radial-gradient(circle at bottom left, transparent 15px, @whiteColor 0)
223
+        bottom left;
224
+    background-size: 100% 60%;
225
+    background-repeat: no-repeat;
226
+    width: 129px;
227
+    border-radius: 0 15px 15px 0;
228
+    position: relative;
229
+    //右面部分
230
+    .right-content {
231
+      // width: 100px;
232
+      height: 120px;
233
+      position: absolute;
234
+      top: 50%;
235
+      left: 50%;
236
+      transform: translate(-50%, -50%);
237
+      // border: 1px solid red;
238
+
239
+      .right-number {
240
+        // width: 32px;
241
+        // font-size: 20px;
242
+        // border-radius: 4px;
243
+        // border: 2px solid #999;
244
+        // margin: auto;
245
+        // text-align: center;
246
+      }
247
+      .right-image {
248
+        // float: convert();
249
+        width: 35px;
250
+        height: 34px;
251
+        margin: 0 auto;
252
+        align-items: center;
253
+        margin: auto;
254
+        padding-left: 8px;
255
+        // text-align: center;
256
+      }
257
+
258
+      .right-title {
259
+        font-weight: 700;
260
+        font-size: 24px;
261
+        padding-top: 15px;
262
+        text-align: center;
263
+      }
264
+    }
265
+  }
266
+  //线条
267
+  .right-complete-two::after {
268
+    content: "";
269
+    position: absolute;
270
+    top: 15px;
271
+    margin: 26px auto;
272
+    height: 70%;
273
+    border-left: 1px dashed #595959;
274
+  }
275
+
276
+  //攻略卡片.
277
+  .Raiders-box-one {
278
+    width: 100%;
279
+    height: 694px;
280
+    border: 1px solid red;
281
+    .Raiders-box {
282
+      display: inline;
283
+      border: 1px solid RED;
284
+      width: 330px;
285
+      height: 649px;
286
+    }
287
+  }
288
+}