🎨 完善订单页和用户页

This commit is contained in:
2025-09-02 20:32:26 +08:00
parent 9bf02628eb
commit f3ac0bb511
5 changed files with 23 additions and 18 deletions

View File

@@ -47,3 +47,22 @@ export const setBalance = (data) => {
data
})
}
// 获取讲师申请列表
export const getTeacherApplyList = (params) => {
return service({
url: '/app_user/teacherApplyList',
method: 'get',
params
})
}
// 讲师申请审核
export const reviewTeacherApply = (data) => {
return service({
url: '/app_user/teacherApply/status',
method: 'put',
data
})
}

View File

@@ -78,6 +78,7 @@
"/src/view/systemTools/system/system.vue": "Config",
"/src/view/user/index.vue": "UserManage",
"/src/view/user/user/index.vue": "Index",
"/src/view/user/user/teacherApply.vue": "TeacherApply",
"/src/plugin/announcement/form/info.vue": "InfoForm",
"/src/plugin/announcement/view/info.vue": "Info",
"/src/plugin/customerservice/view/chat/index.vue": "ServiceMain",

View File

@@ -6,7 +6,7 @@
<script setup>
import { ref } from 'vue'
import { routerName } from '@/plugin/customerservice/api/api.js'
const data = ref({})
@@ -14,12 +14,7 @@ defineOptions({
name: 'CustomerService'
})
const useApi = async() =>{
const res = await routerName(data.value)
if(res.code === 0){
console.log(res.data)
}
}
</script>

View File

@@ -6,22 +6,12 @@
<script setup>
import { ref } from 'vue'
import { routerName } from '@/plugin/picturelibrary/api/api.js'
const data = ref({})
defineOptions({
name: 'PictureLibrary'
})
const useApi = async() =>{
const res = await routerName(data.value)
if(res.code === 0){
console.log(res.data)
}
}
</script>
<style lang="scss" scoped>
.picturelibrary {

View File

@@ -71,7 +71,7 @@ export default ({ mode }) => {
path.replace(new RegExp('^' + process.env.VITE_BASE_API), '')
}
},
allowedHosts: ['all','lckt.echol.top'],
allowedHosts: ['all','lckt.echol.top','lckt.hnlc5588.cn'],
},
build: {
minify: 'terser', // 是否进行压缩,boolean | 'terser' | 'esbuild',默认使用terser