|
@@ -85,7 +85,8 @@
|
|
|
income: '', //收益
|
|
income: '', //收益
|
|
|
name: '',
|
|
name: '',
|
|
|
num: 222,
|
|
num: 222,
|
|
|
- msg: []
|
|
|
|
|
|
|
+ msg: [],
|
|
|
|
|
+ merchantId:''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad: function() {
|
|
onLoad: function() {
|
|
@@ -120,7 +121,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
gettodayData() {
|
|
gettodayData() {
|
|
|
- this.$http.get("/merchant/app/home/todayData?merchantId=" + '111', {}).then(res => {
|
|
|
|
|
|
|
+ this.$http.get("/merchant/app/home/todayData?merchantId=" + this.merchantId, {}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
this.income = res.data.result.income
|
|
this.income = res.data.result.income
|
|
|
this.newCustomer = res.data.result.newCustomer
|
|
this.newCustomer = res.data.result.newCustomer
|
|
@@ -129,7 +130,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getMessage(){
|
|
getMessage(){
|
|
|
- this.$http.get("/merchant/app/home/realMessage?merchantId=" + '111', {}).then(res => {
|
|
|
|
|
|
|
+ this.$http.get("/merchant/app/home/realMessage?merchantId=" + this.merchantId, {}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
this.msg = res.data.result.records
|
|
this.msg = res.data.result.records
|
|
|
// this.income = res.data.result.income
|
|
// this.income = res.data.result.income
|
|
@@ -144,10 +145,14 @@
|
|
|
this.getMessage()
|
|
this.getMessage()
|
|
|
// let info =
|
|
// let info =
|
|
|
let that = this
|
|
let that = this
|
|
|
|
|
+ },
|
|
|
|
|
+ onShow() {
|
|
|
|
|
+ let that = this
|
|
|
uni.getStorage({
|
|
uni.getStorage({
|
|
|
key: 'login_user_info',
|
|
key: 'login_user_info',
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
that.name = res.data.merchantName
|
|
that.name = res.data.merchantName
|
|
|
|
|
+ that.merchantId = res.data.merchantId
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|