代码

template

<template><div id="app"><div style="position: relative;"><div class="swiper-container"><div class="swiper-wrapper"><div class="swiper-slide"><imgclass="resImg"src="//p0.meituan.net/deal/fe2fe63b8a2c2e04f7c330bed9f3982d39999.jpg.webp@180w_180h_1e_1c_1l_80q|watermark=0"/></div></div><div class="swiper-pagination"></div></div><div class="resText"><h3>一口香烧饼</h3><p>仅售9.2元!最高价值10.5元的葱油饼豪华套餐,建议单人使用,提供免费停车位。</p></div></div><div class="resMoney"><span class="price1">¥</span><span class="price2">9.2</span><span class="price3">¥10.5</span><button type="button" class="btn btn-warning ljgm">立即购买</button></div><div class="tui"><div class="suishi"><i class="restime comm comm-gou"></i>随时可退</div><div class="zidong"><i class="restime comm comm-gou"></i>过期自动退</div></div><div class="resBorder"></div><div style="margin-left: 15px;"><div class="sysh">适用商户(1)</div><div class="resFlex"><div class="resNameBorder"><div class="resName">一口香烧饼</div><div class="discount DiscountImg DiscountImg-three-five"></div><div class="resKm">>100km</div></div><div class="dh"></div></div><div class="resAddress"><i class="resAdd"></i>庆丰路万达秋江花苑16幢10号</div></div><div class="resBorder"></div><div style="margin-left: 15px;"><div class="tgxq">团购详情<i class="tgxqImg"></i></div><div class="foodName">烧饼</div><div class="foodFlex"><div class="foodFlex1">葱油烧饼</div><div class="foodFlex2">1份</div><div class="foodFlex3">5元</div></div><div class="zgjz"><span style="text-decoration: line-through;">最高价值</span>&nbsp;&nbsp;&nbsp;<span style="text-decoration: line-through;">10.5元</span></div><div class="tgj"><span style="margin-right: 7px;">团购价</span>&nbsp;&nbsp;&nbsp;<span>9.2元</span></div></div><div class="resBorder"></div><div style="margin-left: 15px;"><div class="gmxz">购买须知<i class="gmxzImg"></i></div><div class="gmxzTitle">有效期</div><p class="gmxzCon">2016-05-16至2020-02-05</p></div></div>
</template>

script

<script>
import Swiper from "swiper";
import "swiper/css/swiper.css";
export default {mounted: function() {var swiper = new Swiper(".swiper-container", {pagination: {el: ".swiper-pagination",type: "fraction"},navigation: {nextEl: ".swiper-button-next",prevEl: ".swiper-button-prev"},loop: true});}
};
</script>

style

<style lang="less" scoped>
body {background-color: #fff;
}
#app {.swiper-container {width: 100%;.swiper-slide {text-align: center;font-size: 18px;background: #fff;/* Center slide text vertically */display: -webkit-box;display: -ms-flexbox;display: -webkit-flex;display: flex;-webkit-box-pack: center;-ms-flex-pack: center;-webkit-justify-content: center;justify-content: center;-webkit-box-align: center;-ms-flex-align: center;-webkit-align-items: center;align-items: center;.resImg {width: 100%;height: 100%;}}.swiper-pagination {position: absolute;top: 20px;width: 37px;background: rgba(0, 0, 0, 0.4);height: 20px;border-radius: 10px;color: white;left: 88%;font-size: 9px;line-height: 20px;}}.resText {position: absolute;background: -webkit-gradient(linear,0 0,0 100%,from(rgba(0, 0, 0, 0)),to(rgba(0, 0, 0, 0.6)));bottom: 10px;z-index: 1000;width: 100%;h3 {color: #fff;font-size: 16px;font-weight: 400;line-height: 18px;margin: 3px 17px;}p {color: #fff;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;font-size: 12px;line-height: 14px;margin: 8px 17px;}}.resMoney {display: flex;.price1 {color: #f63;font-size: 21px;margin-left: 11px;margin-top: 8px;}.price2 {color: #f63;font-size: 30px;flex: 1;margin-right: 19px;}.price3 {color: #8c8c8c;font-size: 14px;flex: 8;margin-top: 16px;text-decoration: line-through;}.ljgm {height: 33px;color: #fff;background-color: #f63;border-radius: 5px;text-align: center;font-size: 16px;margin: 4px 20px;line-height: 10px;}}.tui {display: flex;margin: 10px 0 10px 14px;.suishi {flex: 1;.restime {height: 24px;}}.zidong {flex: 1;.restime {height: 24px;}}}.resBorder {background-color: #f0f0f0;height: 20px;width: 100%;}.sysh {color: #999;font-weight: 400;font-size: 14px;height: 40px;line-height: 42px;}.resFlex {display: flex;.resNameBorder {border-right: 1px solid #ccc;flex: 6;.resName {font-weight: 700;font-size: 18px;color: #878787;}.discount {margin-top: 15px;line-height: 14px;}.resKm {text-align: right;margin-top: -22px;margin-right: 34px;}}.dh {flex: 1;width: 25px;height: 25px;background: url(//www.dpfile.com/mod/app-m-tuangou/1.3.93/css/img/mobile.png)no-repeat;background-size: 25px auto;background-position: center 0;display: block;margin: 17px 0;}}.resAddress {margin: 13px 0;.resAdd {background: url(//www.dpfile.com/mod/app-m-tuangou/1.3.93/css/img/icon-comm.png)center 0 no-repeat;background-size: 14px auto;display: inline-block;width: 14px;height: 14px;background-position: 0 -58px;vertical-align: middle;}}.tgxq {margin: 15px 0;.tgxqImg {background: url(//www.dpfile.com/mod/app-m-tuangou/1.3.93/css/img/icon-comm.png)center 0 no-repeat;background-size: 14px auto;display: inline-block;width: 14px;height: 14px;vertical-align: middle;background-position: 0 -38px;}}.foodName {text-align: center;color: #999;margin: 10px 0;}.foodFlex {display: flex;margin: 15px 0;.foodFlex1 {flex: 5;}.foodFlex2 {flex: 1;}.foodFlex3 {flex: 1;}}.zgjz {text-align: right;margin-right: 15px;color: #999;margin-bottom: 15px;}.tgj {color: #f63;text-align: right;margin-right: 15px;margin-bottom: 25px;}.gmxz {margin: 15px 0;.gmxzImg {background: url(//www.dpfile.com/mod/app-m-tuangou/1.3.93/css/img/icon-comm.png)center 0 no-repeat;background-size: 14px auto;display: inline-block;width: 14px;height: 14px;vertical-align: middle;background-position: 0 -19px;}}.gmxzTitle {line-height: 28px;font-size: 13px;display: block;color: #999;}.gmxzCon {color: #666;margin: 15px 0;font-size: 15px;}
}
</style>

仿大众点评——美食详情相关推荐

  1. 仿大众点评——美食列表

    图 代码 template <template><div id="app"><div class="fl-flex" v-for= ...

  2. 仿大众点评——商品的详情页面

    我写的仿大众点评中有许多猜你喜欢的商品,但是每个商品详情页面都是用的一个vue组件,这个时候就需要我们使用动态路由,根据动态路径键的变化从未进入不同的商品详情页面 动态路由 export defaul ...

  3. Android高仿大众点评(带服务端)

    2019独角兽企业重金招聘Python工程师标准>>> 实例讲解了一个类似大众点评的项目,项目包含服务端和android端源码, 服务端为php代码,如果没有接触过php, 文章中讲 ...

  4. 爬取大众点评美食店铺信息,解密_token的思路

    爬取大众点评美食店铺信息,解密_token的思路 先随意进入一个店铺的链接,例如:http://www.dianping.com/shop/127857802 进入之后打开控制台,进入之后选择xhr, ...

  5. 【Android重量级】高仿大众点评源码

    高仿大众点评源码   下载地址:http://url.cn/Nzj3Lc    源码简介 声明:本源码只用于个人研究使用,不可用于商业用途,由于本源码引起的纠纷皆与作者无关. 本套源码是本人在校的时候 ...

  6. 《仿大众点评仿美团做一个评价网站——Java SSM》项目研发阶段性总结

    <仿大众点评仿美团做一个评价网站--Java SSM>项目研发阶段性总结 一.后台功能实现 (一).注册商家 (二).登录商家中心 (三).商家登录后台操作模块 (1).用户管理模块 (1 ...

  7. 大众点评美食商家电话爬虫

    在爬取大众·点评美食商家的电话信息时遇到这个: 这后两位加密了怎麽办?

  8. android 高仿大众点评,高仿大众点评商家列表

    原生android,高仿大众点评商家列表; 废话不多说了,上代码,效果图 适配器 class MyAdapter extends BaseAdapter { protected final int m ...

  9. android自定义引导页,Android仿大众点评引导页(ViewPage)+主页面(Fragment)的实现

    大家好,今天主要是实现仿大众点评引导页和主页面以及城市定位的实现,主要使用ViewPager+Fragment+SharedPreferences,实现了第一次打开程序出现引导页,再次打开跳过引导页, ...

最新文章

  1. Git 本地仓库管理
  2. webpack从入门到精通(三)生产环境的基本配置
  3. 深度丨机器学习的理论局限性与因果推理的七大特性zhuan'z
  4. linux上安装mysql5.7
  5. WGho_Setup 雨林木风 一键备份
  6. Maximum Sum UVA - 108(连续子序列最大和—变形之子矩阵最大和)
  7. android java 调试快捷键_Android Studio 代码页跳界面 /java和XML快速切换技巧
  8. 北理工在线作业计算机的主要特点是( ),北理工18秋《计算机组成原理》在线作业【答案】...
  9. Java 使用GDAL 读写 shapefile
  10. C++之文件输入输出
  11. 安全运维 - Windows系统维护
  12. charshow需求说明
  13. MybatisPlus懒人代码生成器(附源码)
  14. 乐动体育推荐:9款最佳编程字体
  15. ceph-cache-tier
  16. EXCEL复合条饼图制作
  17. 解决AndroidStudio Locat侧边栏消失
  18. 清北学堂济南刷题班day1
  19. springboot配置logback
  20. 【封面】数字经济引领中国产业改革

热门文章

  1. JavaScript获取浏览器可视区域的宽高
  2. PowerMILL 2018四五轴编程后处理宏制作视频教程
  3. 01超精美渐变色动态背景完整示例【CSS动效实战(纯CSS与JS动效)】
  4. 天呐!惊人的Springboot测试.Springboot测试类之@RunWith注解
  5. 焦作师范高等专科学校计算机,热烈欢迎丨焦作师范高等专科学院计算机与信息工程学院莅临智游...
  6. SQLiteSpy 数据库软件
  7. CAD如何创建图层并绘制图形
  8. 初几学的计算机二进制,说说二进制与计算机的那些事儿
  9. 服务器2012系统价格表,Windows 2012 r2正版价格
  10. 机器学习D14——随机森林