提交 263eea3b 编写于 作者: M maguohua

update

上级 a5b73794
......@@ -77,7 +77,8 @@ vue2 + vue-rotuer2 + vuex2 + webpack + ES6/7 + fetch + sass + flex + svg + http-
|       |-- shop                     // 商铺筛选页
| |-- children
| |-- foodDetail // 单个商铺信息页
| |-- shopDetail // 商铺信息页
| |-- shopDetail // 商铺信息页
| |-- shopSafe // 商铺认证信息页
| |-- vipcard // vip办理页
|
| |-- plugins // 引用的插件
......
......@@ -10,10 +10,15 @@
<section class="detail_left">
<p>{{name}}</p>
<div class="rating_sale">
<span>评分</span>
<rating-star :rating='rating'></rating-star>
<span>{{rating}}</span>
<span>月售 {{month_sales}}</span>
<span>{{rating.toFixed(1)}}</span>
</div>
<p>
<span>月售 {{month_sales}}</span>
<span>售价 ¥{{foods.specfoods[0].price}}</span>
<span v-if="foods.specfoods.length"></span>
</p>
<p>
<span>评论数 {{rating_count}}</span>
<span>好评率 {{satisfy_rate}}%</span>
......@@ -55,6 +60,7 @@
this.satisfy_rate = this.$route.query.satisfy_rate;
this.foods = this.$route.query.foods;
this.shopId = this.$route.query.shopId;
console.log(this.foods)
},
mixins: [getImgPath],
components: {
......@@ -119,15 +125,31 @@
display: flex;
align-items: center;
span:nth-of-type(1){
@include sc(.6rem, #666);
margin-right: .2rem;
}
span:nth-of-type(2){
@include sc(.55rem, #f60);
margin-left: .2rem;
}
span:nth-of-type(2){
span:nth-of-type(3){
@include sc(.6rem, #666);
margin-left: .4rem;
}
}
p:nth-of-type(2){
font-size: 0;
margin-top: .3rem;
span:nth-of-type(1){
@include sc(.6rem, #666);
margin-right: .4rem;
}
span:nth-of-type(2),span:nth-of-type(3){
@include sc(.6rem, #f60);
margin-right: .2rem;
}
}
p:nth-of-type(3){
span{
@include sc(.6rem, #666);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册