| <!-- 一起团购,深夜食堂、挖宝专区 --> | 
| <template> | 
|     <view class="home-buttons p15"> | 
|         <!-- {{source}} --> | 
|         <view class="home-buttons_top_container flex"> | 
|             <view class="p10 left" | 
|                 @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=shop':'/pages/shop/shop')"> | 
|                 <view class="title">一起团购</view> | 
|                 <view class="desc">一键分享,团你所团</view> | 
|                 <image class="icon" src="/static/imgs/home/home-icon-shop.png" mode="aspectFit" /> | 
|             </view> | 
|             <view class="right"> | 
|   | 
|   | 
|                 <view class="p10 container" | 
|                     @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=canteen':'/pages/canteen/canteen')"> | 
|                     <view class="title">每日维C</view> | 
|                     <view class="desc">今日份维C 小狗狗帮你补齐</view> | 
|                 </view> | 
|             <!--     <view class="p10 container home-container-canteen"> | 
|                     <view class="title">每日维C</view> | 
|                     <view class="desc">每日维C 觅食专区</view> | 
|                 </view> --> | 
|                 <view class="p10 container" | 
|                     @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=good':'/pages/good/good')"> | 
|                     <view class="title">挖宝专区</view> | 
|                     <view class="desc">支持各平台验货,包邮送到手</view> | 
|                 </view> | 
|             </view> | 
|   | 
|         </view> | 
|         <view class="home-buttons_bottom_container flex" | 
|             @click="goto(source=='bussiness'?'/pages/order/bussiness-order/bussiness-order?type=travel':'/pages/travel/travel')"> | 
|             <view class="left"> | 
|                 <view class="title">粗去玩</view> | 
|                 <view class="desc">小狗go!</view> | 
|                 <view class="desc">即将满员,快来抢位</view> | 
|             </view> | 
|             <view class="right"> | 
|                 <image class="icon" src="/static/imgs/home/home-icon-travel.png" mode="aspectFit"></image> | 
|             </view> | 
|         </view> | 
|     </view> | 
|   | 
| </template> | 
| <script> | 
|     export default { | 
|         data() { | 
|             return { | 
|                 // source: '', //bussiness | 
|             } | 
|         }, | 
|         props: { | 
|             source: { | 
|                 type: String, | 
|                 default () { | 
|                     return '' | 
|                 } | 
|             } | 
|         } | 
|     } | 
| </script> | 
|   | 
| <style lang="scss"> | 
|     .home-buttons { | 
|         padding-top: 0px; | 
|   | 
|         .home-buttons_top_container { | 
|             // height: 334rpx; | 
|             // 167 | 
|             // max-height: 334rpx; | 
|             margin-bottom: 22rpx; | 
|             text-align: center; | 
|   | 
|             .left { | 
|                 width: 280rpx; | 
|                 background: #FFFFFF; | 
|                 border-radius: 20rpx; | 
|                 margin-right: 22rpx; | 
|                 padding-top: 18rpx; | 
|   | 
|                 .desc { | 
|                     margin-top: 4rpx; | 
|                 } | 
|   | 
|                 .icon { | 
|                     width: 186rpx; | 
|                     height: 202rpx; | 
|                     margin-top: 22rpx; | 
|                 } | 
|             } | 
|   | 
|             // 334 | 
|             //  156 * 2 = 312 + 22 | 
|             .right { | 
|                 flex: 1; | 
|   | 
|                 .container { | 
|                     // width: 354rpx; | 
|                     height: 156rpx; | 
|                     max-height: 156rpx; | 
|                     background: #FFFFFF; | 
|                     border-radius: 20rpx; | 
|   | 
|                     .title { | 
|                         margin-top: 34rpx; | 
|                         margin-bottom: 4rpx; | 
|                     } | 
|                 } | 
|                 .home-container-canteen{ | 
|                     // background-image: url('../../../static/imgs/home/freecompress-home-canteen-todo.png'); | 
|                     background-size: 100% 100%; | 
|                 } | 
|   | 
|                 .container+.container { | 
|                     margin-top: 22rpx; | 
|                 } | 
|   | 
|             } | 
|         } | 
|   | 
|         .home-buttons_bottom_container { | 
|             width: 690rpx; | 
|             min-height: 169rpx; | 
|             background: #FFFFFF; | 
|             border-radius: 20rpx; | 
|             // margin-top: 44px; | 
|             padding-top: 15px; | 
|   | 
|             .left { | 
|   | 
|                 flex: 1; | 
|                 text-align: center; | 
|   | 
|                 .desc { | 
|                     margin-top: 4rpx; | 
|                 } | 
|             } | 
|   | 
|             .right { | 
|                 flex: 1; | 
|   | 
|                 .icon { | 
|                     width: 214rpx; | 
|                     height: 126rpx; | 
|                     margin: 0 auto; | 
|                     display: block; | 
|                 } | 
|             } | 
|         } | 
|   | 
|         .title { | 
|             font-size: 36rpx; | 
|             font-family: PingFangSC, PingFang SC; | 
|             font-weight: 600; | 
|             color: #000000; | 
|             line-height: 50rpx; | 
|         } | 
|   | 
|         .desc { | 
|             font-size: 24rpx; | 
|             font-family: PingFangSC, PingFang SC; | 
|             font-weight: 400; | 
|             color: #666666; | 
|             line-height: 34rpx; | 
|         } | 
|     } | 
| </style> |