...
app.use(hotMiddleware)
// serve pure static assets
var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
app.use(staticPath, express.static('./static'))
app.use('/data',express.static('./data'))/*其实只有这一行,特别注意,这个不加拿不到json*/
var uri = 'http://localhost:' + port
...
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
/* name: utils.assetsPath('img/[name].[hash:7].[ext]')这个会改变图片的名字*/
name: utils.assetsPath('img/[name].[ext]')
}<br>}
[{
"gname":"小米MIX3",
"price":"3499",
"img":"http://localhost:8082/static/img/mix5.png",
"goods_des":"OLED 显示屏幕,升级计步算法",
"review":"听说小米客服美眉很厉害送我一首藏头诗可好我爱钱天玉",
"review_author":"来自橙子的"
},{
"gname":"小米MIX4",
"price":"3499",
"img":"http://localhost:8082/static/img/mix5.png",
"goods_des":"6.4 全面屏,全陶瓷机身"
}]
<li v-for="(item,index) in arrList" class="goods-list-item">
<span class="flag flag-new">{{item.flag}}</span>
<a href="#" rel="external nofollow" class="img-wrap">
<img :src="item.img" /><!--或者v-bind:src="item.img"-->
</a>
<h3 class="good-title"><a href="">{{item.gname}}</a></h3>
<p class="good-desc">{{item.goods_des}}</p>
<p class="good-price">{{item.price}}</p>
<p class="review-wrap" v-if="item.review"><!--如果review存在就显示-->
<a href="">
<span class="review">{{item.review}}</span>
<span class="author">{{item.review_author}}</span>
</a>
</p>
</li>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有