-
Notifications
You must be signed in to change notification settings - Fork 28
/
nova.html
151 lines (144 loc) · 4.25 KB
/
nova.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<html>
<head>
<title>华为商城</title>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="static/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="static/css/public.css" />
<link rel="stylesheet" type="text/css" href="static/css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="static/css/elementui.css"/>
<link rel="shortcut icon" href="favicon.ico">
<script src="static/js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="static/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="static/js/vue.js"></script>
<script src="static/js/elementui.js" type="text/javascript" charset="utf-8"></script>
</head>
<body style="min-width: 1200px; overflow-x: auto;background: #f5f5f5;">
<div id="cdnvue">
<div id="" class="top_gg">
<a href="">
<!-- <img src="static/image/top_gg.jpg" /> -->
</a>
</div>
<!--header-->
<div class="header" style="">
<div style="width: 1200px;margin: 0 auto;">
<span style="margin: 10px 0;display: inline-block;color:#666"><a href="index.html" style="color:#666">首页</a> > HUAWEI nova系列</span>
</div>
</div>
<!--热销单品-->
<div id="hotPro">
<h2 class="title">HUAWEI nova系列</h2>
<div class="layout">
<ul class="grid_ul">
<li class="grid-items" v-for="(item,index) in jsonData">
<a :href="`detail.html?id=${item.id}`">
<p class="grid-img">
<!--<img :src=`static/image/${item.img}` />-->
<img :src="'sas/upload/'+item.img" />
</p>
<p class="grid-title">{{item.name}}</p>
<!-- <p class="grid-desc">{{item.jianJie}}</p> -->
<p class="grid-price">¥{{item.price}}</p>
</a>
</li>
</ul>
</div>
</div>
<!--底部广告-->
<div id="bottom_gg">
<!-- <img src="static/image/bottomgg2.jpg" /> -->
</div>
<!--底部服务-->
<div class="slogan-container">
<div class="slogan">
<ul>
<li class="s1">
<i></i> 百强企业 品质保证
</li>
<li class="s2">
<i></i> 7天退货 15天换货
</li>
<li class="s3">
<i></i> 48元起免运费
</li>
<li class="s4">
<i></i> 1000家维修网点 全国联保
</li>
</ul>
</div>
</div>
<!--底部footer版权-->
<div id="footer">
<div class="foot">
<!--<p class="foot_logo"><img src="static/image/flogo.png" /></p>-->
<p class="">Designed and developed by chenwei huo.<br /> Copyright © 2010-2019 chenwei.com. All Rights Reserved.</p>
<p class=""></p>
</div>
</div>
</div>
</body>
<script type="text/javascript">
$(function() {
// 初始化swiper
var mySwiper = new Swiper('.swiper-container', {
updateOnImagesReady: true,
direction: 'horizontal',
loop: true,
autoplay: 8000,
observer: true, //修改swiper自己或子元素时,自动初始化swiper
// 如果需要前进后退按钮
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
pagination: '.swiper-pagination',
})
})
</script>
<!--vue-->
<script type="text/javascript">
// 注册
Vue.component('my-component', {});
var WEITUOSERVER = new Vue({
el: '#cdnvue',
data: {
activeName: 'first',
jsonData: [],
dialogTableVisible: false,
dialogFormVisible: false,
form: {
userName: '',
userPassword: '',
userPassword_2:'', //确认密码
type: [],
},
formLabelWidth: '120px',
},
created() {
this.gatData();
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
gatData() {
var that = this;
$.ajax({
type: "GET",
url: "php/search.php",
data: {"p_class":"50","search":"search"},
dataType: "json",
success: function(res) {
that.jsonData = res.data;
},
});
},
//uuid
uuid () {
function _s4(){
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
}
return _s4() + _s4() + '-' + _s4() + '-' + _s4() + '-' + _s4() + '-' + _s4() + _s4() + _s4();
},
}
})
</script>
</html>