|
|
@@ -20,7 +20,7 @@
|
|
|
<span>{{ numberOrders }}</span>订单数
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <span>{{ income }}</span>收益(元)
|
|
|
+ <span>{{ turnover }}</span>营业总额(元)
|
|
|
</view>
|
|
|
<view class="item" @click="goUser">
|
|
|
<span>{{ newCustomer || 0 }}</span>新客
|
|
|
@@ -115,7 +115,7 @@
|
|
|
return {
|
|
|
numberOrders: "", //订单
|
|
|
newCustomer: "", //新客
|
|
|
- income: "", //收益
|
|
|
+ turnover: "", //营业总额
|
|
|
name: "",
|
|
|
num: 222,
|
|
|
msg: [],
|
|
|
@@ -172,12 +172,12 @@
|
|
|
},
|
|
|
gettodayData() {
|
|
|
this.$http
|
|
|
- .get("/merchant/app/home/todayData?merchantId=" + this.merchantId, {})
|
|
|
+ .get("/merchant/account/todayOverview", {})
|
|
|
.then((res) => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.income = res.data.result.income;
|
|
|
- // this.newCustomer = res.data.result.newCustomer
|
|
|
+ this.turnover = res.data.result.turnover;
|
|
|
this.numberOrders = res.data.result.numberOrders;
|
|
|
+ this.newCustomer = res.data.result.newCustomer;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -193,12 +193,8 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getNum() {
|
|
|
- let data = {};
|
|
|
- this.$http.post("/newCustomer/count", data).then((res) => {
|
|
|
- this.newCustomer = res.data.result.newCustomerCount;
|
|
|
- });
|
|
|
- },
|
|
|
+ // getNum 已合并到 gettodayData,新客由 /merchant/account/todayOverview 返回
|
|
|
+ getNum() {},
|
|
|
//获取商户是否完善店铺信息
|
|
|
getStroeStatus() {
|
|
|
this.$http
|