diff --git a/.env.base b/.env.base
index e3a70a5..736df5b 100644
--- a/.env.base
+++ b/.env.base
@@ -8,7 +8,7 @@ VITE_DEV=true
# VITE_BASE_URL='http://47.98.161.246:48080'
# VITE_BASE_URL='http://114.55.169.15:48080'
-# VITE_BASE_URL='http://114.215.207.150:48080'
+VITE_BASE_URL='http://114.215.207.150:48080'
# 上传路径
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
diff --git a/src/api/customer/customer.js b/src/api/customer/customer.js
index 16ed286..a83b1b8 100644
--- a/src/api/customer/customer.js
+++ b/src/api/customer/customer.js
@@ -30,3 +30,10 @@ export const getCustomerExamCarType = () => {
export const importStudent = async (data) => {
return await request.upload({ url: '/admin-api/applet/xunjia/user/import', data })
}
+
+export const getAppletUserList = async (params) => {
+ return await request.get({
+ url: '/admin-api/applet/xunjia/user/pageList',
+ params: params
+ })
+}
diff --git a/src/api/xjapplet/resell.js b/src/api/xjapplet/resell.js
index 4042167..dc7975d 100644
--- a/src/api/xjapplet/resell.js
+++ b/src/api/xjapplet/resell.js
@@ -30,3 +30,10 @@ export const getResellDetail = async (id) => {
url: '/admin-api/applet/xunjia/distribution/' + id
})
}
+
+export const getResellSimpleList = async (params) => {
+ return await request.get({
+ url: '/admin-api/applet/xunjia/distribution/simple-list',
+ params: params
+ })
+}
diff --git a/src/api/xjapplet/vip.js b/src/api/xjapplet/vip.js
index 5581edd..c9c50c0 100644
--- a/src/api/xjapplet/vip.js
+++ b/src/api/xjapplet/vip.js
@@ -37,7 +37,7 @@ export const updateVipType = async (data) => {
export const deleteVipType = async (id) => {
return await request.delete({
- url: '/admin-api/applet/xunjia/member/memberId?id=' + id
+ url: '/admin-api/applet/xunjia/member/delete?memberId=' + id
})
}
@@ -47,3 +47,10 @@ export const getVipTypeOptions = async (params) => {
params: params
})
}
+
+export const getRechargeRecords = async (params) => {
+ return await request.get({
+ url: '/admin-api/applet/xunjia/pay/list',
+ params: params
+ })
+}
diff --git a/src/permission.js b/src/permission.js
index 378929b..a16415e 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -34,9 +34,7 @@ router.beforeEach(async (to, from, next) => {
// next({ path: '/' })
if (to.query?.tenantId && to.query?.appId) {
setApp(to.query.tenantId, to.query.appId)
- // setTimeout(() => {
- // next({ path: '/' })
- // }, 1500)
+ await waitTime(1500)
}
next({ path: '/' })
} else {
@@ -80,6 +78,14 @@ router.beforeEach(async (to, from, next) => {
}
})
+async function waitTime(seconds) {
+ return new Promise((resolve) => {
+ setTimeout(() => {
+ resolve()
+ }, seconds)
+ })
+}
+
function setApp(tenantId, appId) {
setTenantId(tenantId)
diff --git a/src/views/Customer/AppletUser/index.vue b/src/views/Customer/AppletUser/index.vue
index 7a43666..23b2130 100644
--- a/src/views/Customer/AppletUser/index.vue
+++ b/src/views/Customer/AppletUser/index.vue
@@ -11,7 +11,7 @@
@@ -43,8 +45,8 @@
-
-
+
+
diff --git a/src/views/Customer/Vip/components/VipType.vue b/src/views/Customer/Vip/components/VipType.vue
index beb17b2..eacf070 100644
--- a/src/views/Customer/Vip/components/VipType.vue
+++ b/src/views/Customer/Vip/components/VipType.vue
@@ -6,8 +6,8 @@
- 小车
- 摩托车
+ 小车
+ 摩托车
@@ -32,20 +32,8 @@
- 修改
- 删除
+ 修改
+ 删除
@@ -68,10 +56,10 @@
-
-
-
-
+
+
+
+
@@ -142,7 +130,7 @@ const showDialog = ref(false)
const form = ref({
memberName: '',
carTypeId: undefined,
- subjects: [],
+ subjectList: [],
price: '',
discount: '',
duration: '',
@@ -152,7 +140,7 @@ const form = ref({
const rules = ref({
memberName: [{ required: true, message: '请输入会员名称', trigger: 'blur' }],
carTypeId: [{ required: true, message: '请输入车型', trigger: 'change' }],
- subjects: [{ required: true, message: '请输入科目', trigger: 'blur' }],
+ subjectList: [{ required: true, message: '请输入科目', trigger: 'blur' }],
price: [{ required: true, message: '请输入价格', trigger: 'blur' }],
discount: [{ required: true, message: '请输入折扣价', trigger: 'blur' }],
duration: [{ required: true, message: '请输入有效期', trigger: 'blur' }]
@@ -161,10 +149,10 @@ const rules = ref({
function addVip() {
showDialog.value = true
- form.value.carTypeId = {
+ form.value = {
memberName: '',
carTypeId: searchForm.value.carTypeId,
- subjects: [],
+ subjectList: [],
price: '',
discount: '',
duration: '',
@@ -174,7 +162,7 @@ function addVip() {
}
function editVip(row) {
- form.value = { ...row, subjects: row.subjects.split(','), unit: Number(row.unit) }
+ form.value = { ...row, carTypeId: row.carTypeId + '', unit: Number(row.unit) }
showDialog.value = true
}
diff --git a/src/views/Customer/Vip/components/VipUser.vue b/src/views/Customer/Vip/components/VipUser.vue
index fe5401f..5b8a00b 100644
--- a/src/views/Customer/Vip/components/VipUser.vue
+++ b/src/views/Customer/Vip/components/VipUser.vue
@@ -6,8 +6,8 @@
- 小车
- 摩托车
+ 小车
+ 摩托车