|
@@ -4,19 +4,27 @@
|
|
|
<el-col class="restaurantLeft">
|
|
|
<el-col :span="24" class="nh">
|
|
|
<el-image :src="restaurant1" fit="scale-down" />
|
|
|
- <el-col class="name"
|
|
|
+ <el-col class="name">今日营业额
|
|
|
+ <el-col class="num">0<span class="unit">元</span></el-col>
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col class="name"
|
|
|
>今日营业额<el-col class="num"
|
|
|
>{{ data.nowIncome || 0 }}<span class="unit">元</span></el-col
|
|
|
></el-col
|
|
|
- >
|
|
|
+ > -->
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="nh">
|
|
|
<el-image :src="restaurant1" fit="scale-down" />
|
|
|
<el-col class="name"
|
|
|
>今日销售人/次<el-col class="num"
|
|
|
- >{{ data.consumerNowNumber || 0 }}<span class="unit"></span></el-col
|
|
|
+ >0<span class="unit"></span></el-col
|
|
|
></el-col
|
|
|
>
|
|
|
+ <!-- <el-col class="name"
|
|
|
+ >今日销售人/次<el-col class="num"
|
|
|
+ >{{ data.consumerNowNumber || 0 }}<span class="unit"></span></el-col
|
|
|
+ ></el-col
|
|
|
+ > -->
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col class="restaurantRight">
|
|
@@ -30,6 +38,10 @@
|
|
|
<el-col :span="5"><el-image :src="item.img" fit="scale-down" class="leftImg iconCP"/></el-col>
|
|
|
<el-col :span="11" class="dishName">{{item.name}}</el-col>
|
|
|
<el-col :span="8" class="fs">{{item.countPid}}份</el-col>
|
|
|
+
|
|
|
+ <!-- <el-col :span="5"><el-image :src="item.img" fit="scale-down" class="leftImg iconCP"/></el-col>
|
|
|
+ <el-col :span="11" class="dishName">{{item.name}}</el-col>
|
|
|
+ <el-col :span="8" class="fs">{{item.countPid}}份</el-col> -->
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -48,14 +60,28 @@ export default {
|
|
|
name: "restaurant",
|
|
|
data() {
|
|
|
return {
|
|
|
- loading:true,
|
|
|
+ loading:false,
|
|
|
restaurant1: restaurant1,
|
|
|
restaurant2: restaurant2,
|
|
|
restaurant3: restaurant3,
|
|
|
num1: num1,
|
|
|
num2: num2,
|
|
|
num3: num3,
|
|
|
- data:{},
|
|
|
+ data:{
|
|
|
+ countTheTopThree:[
|
|
|
+ // {img:num1,name:"蒜茸小白菜",countPid:436},
|
|
|
+ // {img:num2,name:"雪菜老豆腐",countPid:403},
|
|
|
+ // {img:num3,name:"碎肉粉",countPid:395}
|
|
|
+
|
|
|
+ // {img:num1,name:"蒜茸小白菜",countPid:436},
|
|
|
+ // {img:num2,name:"雪菜老豆腐",countPid:403},
|
|
|
+ // {img:num3,name:"碎肉粉",countPid:395}
|
|
|
+
|
|
|
+ {img:num1,name:"未营业",countPid:0},
|
|
|
+ {img:num2,name:"未营业",countPid:0},
|
|
|
+ {img:num3,name:"未营业",countPid:0},
|
|
|
+ ]
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
created(){
|
|
@@ -73,8 +99,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.init()
|
|
|
- this.timing()
|
|
|
+ // this.init()
|
|
|
+ // this.timing()
|
|
|
},
|
|
|
methods: {
|
|
|
init(){
|
|
@@ -82,7 +108,7 @@ export default {
|
|
|
axios({
|
|
|
method: 'get',
|
|
|
url: 'https://smartpark.caih.com/zhcy/api/thirdparty/v1/open/getCanYinData',
|
|
|
- timeout: 3000,
|
|
|
+ timeout: 10000,
|
|
|
}).then(res =>{
|
|
|
this.data = res.data.data
|
|
|
if(this.data.countTheTopThree.length>0){
|