|
|
@@ -52,11 +52,19 @@ import homeIcon from "../../../assets/images/home-icon.png";
|
|
|
import homeWallet from "../../../assets/images/home-wallet.png";
|
|
|
import homeOrder from "../../../assets/images/home-order.png";
|
|
|
import homeIncome from "../../../assets/images/home-income.png";
|
|
|
-import { verifyOrder, verifyCoupon, getTodayOrderCount, getTodayIncome, getAccountBalance } from "@/api/modules/homeEntry";
|
|
|
+import {
|
|
|
+ verifyOrder,
|
|
|
+ verifyCoupon,
|
|
|
+ getTodayOrderCount,
|
|
|
+ getTodayIncome,
|
|
|
+ getAccountBalance,
|
|
|
+ getDetail
|
|
|
+} from "@/api/modules/homeEntry";
|
|
|
+
|
|
|
import { localGet, localSet } from "@/utils/index";
|
|
|
const userInfo = localGet("geeker-user").userInfo;
|
|
|
// 数据(可根据实际接口替换)
|
|
|
-const storeName = ref("时间图书馆");
|
|
|
+const storeName = ref("");
|
|
|
const expireDate = ref("2027/10/29");
|
|
|
const voucherCode = ref("");
|
|
|
|
|
|
@@ -67,8 +75,19 @@ onMounted(() => {
|
|
|
getOrder();
|
|
|
getInCome();
|
|
|
getMyMoney();
|
|
|
+ getStoreDetail();
|
|
|
});
|
|
|
|
|
|
+const getStoreDetail = async () => {
|
|
|
+ let param = {
|
|
|
+ id: userInfo.storeId
|
|
|
+ };
|
|
|
+ const res: any = await getDetail(param as any);
|
|
|
+ if (res.code == 200) {
|
|
|
+ console.log(1);
|
|
|
+ storeName.value = res.data.storeName;
|
|
|
+ }
|
|
|
+};
|
|
|
//可提现金额
|
|
|
const getMyMoney = async () => {
|
|
|
let param = {
|