李志伟 3 anos atrás
pai
commit
6b4630c5c4

+ 1
- 6
src/pages/details/foodDetails/foodDetails.jsx Ver arquivo

@@ -84,6 +84,7 @@ export default (props) => {
84 84
               <image src={titlezs}></image>
85 85
               <text>返现套餐</text>
86 86
             </view>
87
+            
87 88
             <view className='foodCard'>
88 89
               <view className='fCleft'>
89 90
                 <view className='backMoney'>
@@ -124,8 +125,6 @@ export default (props) => {
124 125
                 <image src={pay} />
125 126
                 <view>支付</view>
126 127
               </view>
127
-              <view className='circleTop'></view>
128
-              <view className='circleBottom'></view>
129 128
               <view className='columnLine'></view>
130 129
             </view>
131 130
             <view className='foodCard'>
@@ -168,8 +167,6 @@ export default (props) => {
168 167
                 <image src={pay} />
169 168
                 <view>支付</view>
170 169
               </view>
171
-              <view className='circleTop'></view>
172
-              <view className='circleBottom'></view>
173 170
               <view className='columnLine'></view>
174 171
             </view>
175 172
             <view className='showMore'>
@@ -238,8 +235,6 @@ export default (props) => {
238 235
                 <image src={pay} />
239 236
                 <view>支付</view>
240 237
               </view>
241
-              <view className='circleTop'></view>
242
-              <view className='circleBottom'></view>
243 238
               <view className='columnLine'></view>
244 239
             </view>
245 240
             <view className='storezn'>

+ 22
- 23
src/pages/details/foodDetails/foodDetails.less Ver arquivo

@@ -140,13 +140,32 @@
140 140
     top: 5px;
141 141
   }
142 142
 }
143
+.cs{
144
+  height: 500px;
145
+  // background: rgb(240, 142, 142);
146
+  // background: radial-gradient(circle at top left, transparent 15px, rgb(240, 142, 142) 0) top left,
147
+  //           radial-gradient(circle at top right, transparent 15px, #58a 0) top right,
148
+  //           radial-gradient(circle at bottom left, transparent 15px, #58a 0) bottom left,
149
+  //           radial-gradient(circle at bottom right, transparent 15px, #58a 0) bottom right;
150
+
151
+
152
+  background: radial-gradient(circle at 82% top,transparent 15px,rgb(240,140,140) 0) top,
153
+              radial-gradient(circle at 82% bottom,transparent 15px,rgb(230,120,120) 0) bottom;
154
+
155
+background-repeat: no-repeat;
156
+background-size: auto 50%;
157
+}
143 158
 .foodCard{
144
-  background: #FFFFFF;
159
+  background: #FFF;
145 160
   box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
146 161
   border-radius: 12px;
147 162
   position: relative;
148 163
   margin-bottom: 30px;
149 164
   overflow: hidden;
165
+  background: radial-gradient(circle at 82% top,transparent 20px,#fff 0) top,
166
+              radial-gradient(circle at 82% bottom,transparent 20px,#fff 0) bottom;
167
+  background-repeat: no-repeat;
168
+  background-size: auto 50%;
150 169
   .fCleft{
151 170
     float: left;
152 171
     width: 82%;
@@ -248,9 +267,9 @@
248 267
     width: 18%;
249 268
     line-height: 0;
250 269
     image{
251
-      width: 35px;
270
+      width:35px;
252 271
       height:32px;
253
-      margin-top: 135%;
272
+      margin-top: 120%;
254 273
       margin-left:calc(50% - 15px)
255 274
     }
256 275
     view{
@@ -262,26 +281,6 @@
262 281
       text-align: center;
263 282
     }
264 283
   }
265
-  .circleTop{
266
-    width: 30px;
267
-    height: 16px;
268
-    border-radius: 15px 15px 0 0;
269
-    background-color: #F8F8F8;
270
-    position: absolute;
271
-    bottom: 0;
272
-    right: 16%;
273
-    
274
-  }
275
-  .circleBottom{
276
-    width: 30px;
277
-    height: 16px;
278
-    border-radius:0 0 15px 15px;
279
-    background-color: #F8F8F8;
280
-    position: absolute;
281
-    top: 0;
282
-    right: 16%;
283
-    
284
-  }
285 284
   .columnLine{
286 285
     height: 50%;
287 286
     border-right: 2px dashed #595959;

+ 0
- 4
src/pages/details/mjDetails/sceneryDetails.jsx Ver arquivo

@@ -132,8 +132,6 @@ export default (props) => {
132 132
                 <image src={pay} />
133 133
                 <view>支付</view>
134 134
               </view>
135
-              <view className='circleTop'></view>
136
-              <view className='circleBottom'></view>
137 135
               <view className='columnLine'></view>
138 136
             </view>
139 137
             <view className='foodCard'>
@@ -176,8 +174,6 @@ export default (props) => {
176 174
                 <image src={pay} />
177 175
                 <view>支付</view>
178 176
               </view>
179
-              <view className='circleTop'></view>
180
-              <view className='circleBottom'></view>
181 177
               <view className='columnLine'></view>
182 178
             </view>
183 179
             <view className='showMore'>

+ 7
- 23
src/pages/details/mjDetails/sceneryDetails.less Ver arquivo

@@ -115,12 +115,16 @@
115 115
   }
116 116
 }
117 117
 .foodCard{
118
-  background: #FFFFFF;
118
+  background: #FFF;
119 119
   box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
120 120
   border-radius: 12px;
121 121
   position: relative;
122 122
   margin-bottom: 30px;
123 123
   overflow: hidden;
124
+  background: radial-gradient(circle at 82% top,transparent 20px,#fff 0) top,
125
+              radial-gradient(circle at 82% bottom,transparent 20px,#fff 0) bottom;
126
+  background-repeat: no-repeat;
127
+  background-size: auto 50%;
124 128
   .fCleft{
125 129
     float: left;
126 130
     width: 82%;
@@ -222,9 +226,9 @@
222 226
     width: 18%;
223 227
     line-height: 0;
224 228
     image{
225
-      width: 35px;
229
+      width:35px;
226 230
       height:32px;
227
-      margin-top: 135%;
231
+      margin-top: 120%;
228 232
       margin-left:calc(50% - 15px)
229 233
     }
230 234
     view{
@@ -236,26 +240,6 @@
236 240
       text-align: center;
237 241
     }
238 242
   }
239
-  .circleTop{
240
-    width: 30px;
241
-    height: 16px;
242
-    border-radius: 15px 15px 0 0;
243
-    background-color: #F8F8F8;
244
-    position: absolute;
245
-    bottom: 0;
246
-    right: 16%;
247
-    
248
-  }
249
-  .circleBottom{
250
-    width: 30px;
251
-    height: 16px;
252
-    border-radius:0 0 15px 15px;
253
-    background-color: #F8F8F8;
254
-    position: absolute;
255
-    top: 0;
256
-    right: 16%;
257
-    
258
-  }
259 243
   .columnLine{
260 244
     height: 50%;
261 245
     border-right: 2px dashed #595959;