|
@@ -2,7 +2,7 @@
|
|
|
import {expenseDetail,expensePay} from "../../common/api";
|
|
import {expenseDetail,expensePay} from "../../common/api";
|
|
|
import UCodeInput from "../../components/uview-ui/components/u-code-input/u-code-input.vue";
|
|
import UCodeInput from "../../components/uview-ui/components/u-code-input/u-code-input.vue";
|
|
|
import {
|
|
import {
|
|
|
- getCustomerInfo,
|
|
|
|
|
|
|
+ getCustomerInfo, getUserInfo,
|
|
|
} from "../../common/api/user.js";
|
|
} from "../../common/api/user.js";
|
|
|
export default {
|
|
export default {
|
|
|
name: "storeConsumption",
|
|
name: "storeConsumption",
|
|
@@ -36,9 +36,8 @@ export default {
|
|
|
const topData = uni.getMenuButtonBoundingClientRect()
|
|
const topData = uni.getMenuButtonBoundingClientRect()
|
|
|
this.topData.top = topData.top
|
|
this.topData.top = topData.top
|
|
|
this.topData.height = topData.height
|
|
this.topData.height = topData.height
|
|
|
- const userInfo = uni.getStorageSync("userInfo");
|
|
|
|
|
- this.userInfo = JSON.parse(userInfo);
|
|
|
|
|
this.expenseDetail()
|
|
this.expenseDetail()
|
|
|
|
|
+ this.getUserInfo()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
splitStr(str) {
|
|
splitStr(str) {
|
|
@@ -46,6 +45,15 @@ export default {
|
|
|
var split = str.split(';;');
|
|
var split = str.split(';;');
|
|
|
return split[split.length - 1]
|
|
return split[split.length - 1]
|
|
|
},
|
|
},
|
|
|
|
|
+ async getUserInfo() {
|
|
|
|
|
+ const data = {};
|
|
|
|
|
+ await getUserInfo(data)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if (res.data) {
|
|
|
|
|
+ this.userInfo = res.data;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
toPay() {
|
|
toPay() {
|
|
|
this.show = true
|
|
this.show = true
|
|
|
},
|
|
},
|