<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<title>優(yōu)惠券</title>
<link rel="stylesheet" type="text/css" href="css/couponListPage.css" />
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="app-web">
<header>
<div class="top">
<a href="#"><img src="img/right.png" /></a>
<div class="title">{{coupon}}</div>
</div>
</header>
<div class="no_Coupon">
<span class="left">{{nocoupon}}</span>
<span class="right"></span>
</div>
<div class="content">
<div class="top">
<span class="left">{{coupon_left1}}<i>{{num}}</i>{{coupon_left2}}</span>
<span class="right"><img src="img/_@1x.png"/><a v-bind:href="website">{{coupon_right1}}</a></span>
</div>
<ul>
<li v-for="coupon in coupons">
<div class="Coupon_1" v-bind:class="compClasses" >
<div class="left">
<p class="left_top">{{coupon.price}}<span>{{unitPrice}}</span></p>
<p class="left_bottom">{{available}}</p>
</div>
<div class="center">
<p class="center_1">{{universalCoupon}}</p>
<p class="center_2">{{date}}</p>
<p class="center_3">{{application}}
<img src="img/down.png" alt="" v-on:click="changeCoupon_1 = !changeCoupon_1" />
</p>
<div class="right">
<img src="img/png_1.png" />
</div>
</div>
</div>
<div class="bottom"></div>
</li>
</ul>
</div>
</div>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="js/couponListPage.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
這是vue.js代碼
var content = new Vue({
el: ".app-web",
data: {
coupon: '優(yōu)惠券',
nocoupon: '不使用優(yōu)惠券',
coupon_left1: '有',
num: '4',
coupon_left2: '張優(yōu)惠券可用',
coupon_right1: '優(yōu)惠券使用說明',
website: '#',
unitPrice: '元',
available: '滿100元可用',
universalCoupon: '全場通用券',
date: '2018.06.07 - 2018.07.07到期',
application: '此券應(yīng)用去所有商品(特殊商品除外)',
coupons: [
{price: '20'},
{price: '50'},
{price: '100'}
],
}
});
這是CSS樣式
html,
body,
div,
ul,
li,
dl,
dt,
dd,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
em,
b,
strong,
img,
input,
textarea,
select,
form {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
img {
border: 0 none;
vertical-align: top;
}
a {
color: #3d3d3d;
text-decoration: none;
}
a:hover {
color: #f60;
}
input {
border: none;
outline: none;
}
.clearfix {
*zoom: 1;
}
.clearfix:after {
content: ".";
visibility: hidden;
clear: both;
display: block;
height: 0;
font-size: 0;
}
html{
font-size: 50px;
}
body {
width: 100%;
margin: 0 auto;
padding-bottom: 1.6rem;
font-family: "微軟雅黑";
background: #F1F2F6;
font-size: 0.24rem;
overflow-x: hidden;
}
/*頭部*/
header {
padding-bottom: 0.4rem;
}
header .top {
background-color: #000000;
width: 100%;
height: 1rem;
color: #FFFFFF;
}
header .top img {
float: left;
padding-top: 0.2rem;
padding-left: 0.2rem;
}
header .top .title{
font-size: 0.5rem;
line-height: 1rem;
letter-spacing: 0.1rem;
text-align: center;
}
.bottom {
padding-bottom: 0.5rem;
}
/*no_Coupon*/
.no_Coupon {
width: 100%;
height: 0.9rem;
background: #FFFFFF;
}
.no_Coupon .left {
font-size: 0.32rem;
color: #2f2f2f;
line-height: 0.9rem;
letter-spacing: 0.06rem;
display: block;
padding-left: 0.5rem;
}
.no_Coupon .right {
float: right;
margin: -0.6rem 0.2rem;
background: url(../img/png_1.png)no-repeat;
width: 0.44rem;
height: 0.44rem;
}
/*.top*/
.content .top {
width: 100%;
height: 1rem;
line-height: 1rem;
font-size: 0.28rem;
letter-spacing:0.06rem;
box-sizing: content-box;
}
.content .top .left {
padding-left: 0.5rem;
}
.content .top .left i {
font-style: normal;
color: #fd7290;
}
.content .top .right {
float: right;
padding-right: 0.4rem;
}
.content .top .right img {
vertical-align: middle;
padding-bottom: 0.04rem;
}
.content .top .right a {
font-size: 0.28rem;
color: #0090ff;
text-decoration: underline;
}
/*Coupon_1*/
.Coupon_1 {
width: 100%;
height: 1.8rem;
background: url(../img/bj@2x.png)no-repeat center;
background-size: 96% 100%;
letter-spacing: 0.02rem;
}
.changeCoupon_1{
height: 2rem;
}
.Coupon_1 .left {
width: 29%;
color: #fd7290;
text-align: center;
padding: 0.2rem 0px 0 0.22rem;
float: left;
}
.Coupon_1 .left span {
font-size: 0.22rem;
}
.Coupon_1 .left .left_top {
width: 100%;
font-size: 0.6rem;
padding-bottom: 0.08rem;
}
.Coupon_1 .left .left_bottom {
width: 100%;
font-size: 0.08rem;
}
.Coupon_1 .center {
width: 68%;
float: right;
padding-top: 0.3rem;
}
.Coupon_1 .center .center_1 {
font-size: 0.2rem;
color: #2f2f2f;
padding-bottom: 0.1rem;
}
.Coupon_1 .center .center_2 {
font-size: 0.2rem;
color: #9D9D9D;
padding-bottom: 0.2rem;
}
.Coupon_1 .center .center_3 {
font-size: 0.2rem;
color: #9D9D9D;
padding-bottom: 0.3rem;
}
.Coupon_1 .center .center_3 img {
vertical-align: middle;
}
.Coupon_1 .center .right{
float: right;
width: 3%;
margin: -1.7rem 0.2rem;
}
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團,成為集合面授教學培訓(xùn)、網(wǎng)
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務(wù)負責iOS教學及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。