JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修改首页列表样式BUG
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ ENV = 'development'
|
||||
#VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001'
|
||||
|
||||
|
||||
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
|
||||
#VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
|
||||
|
||||
# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
|
||||
# VITE_APP_BASE_API_Url = 'http://192.168.247.200'
|
||||
@@ -19,7 +19,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
|
||||
#VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
|
||||
|
||||
# sit
|
||||
#VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786'
|
||||
VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786'
|
||||
|
||||
# UAT
|
||||
# VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786'
|
||||
|
||||
@@ -51,28 +51,22 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, nextTick, onBeforeMount, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
import { ref } from 'vue';
|
||||
import {
|
||||
queryCrsInfoByLastnew,
|
||||
queryCrsInfoByPopular,
|
||||
queryCrsInfoByRecmd,
|
||||
queryNewPolicyNewProducts
|
||||
} from '@/api/index.js';
|
||||
|
||||
import common from '@/common/common';
|
||||
import hostIcon from '@/static/images/index/hot.png';
|
||||
import recommendIcon from '@/static/images/index/recommend.png';
|
||||
import newIcon from '@/static/images/index/new.png';
|
||||
import kcIcon from '@/static/images/index/kc_icon.png';
|
||||
import plIcon from '@/static/images/index/pl_icon.png';
|
||||
|
||||
const props = defineProps({
|
||||
name: {
|
||||
type: String
|
||||
}
|
||||
});
|
||||
// 1. 先定义命名函数,明确函数用途
|
||||
const getConfigByProps = () => {
|
||||
if (props.name === 'recommend_class') {
|
||||
return {
|
||||
@@ -88,10 +82,7 @@
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
// 2. 调用命名函数,解构赋值
|
||||
const { fetchFunction, title, icon } = getConfigByProps(); // 调用函数,获取返回对象后解构
|
||||
|
||||
const init_class_data = [
|
||||
{
|
||||
id: '',
|
||||
@@ -113,7 +104,7 @@
|
||||
{
|
||||
type: 'line',
|
||||
num: 1,
|
||||
style: 'marginBottom:20rpx; ',
|
||||
style: 'marginBottom:20rpx;',
|
||||
},
|
||||
{
|
||||
type: 'flex',
|
||||
@@ -135,24 +126,9 @@
|
||||
const get_data = () => {
|
||||
class_list.value = [...init_class_data];
|
||||
fetchFunction().then((res) => {
|
||||
if (props.name === 'hot_class') {
|
||||
} else {
|
||||
// class_list.value = res.body;
|
||||
}
|
||||
|
||||
class_list.value = res.body;
|
||||
class_list.value.unshift({
|
||||
id: '',
|
||||
img: '',
|
||||
nama: '',
|
||||
mtTime: '',
|
||||
accmCnt: ''
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
defineExpose({ get_data });
|
||||
|
||||
// 进入课程详情页
|
||||
const goto_course_detail = ({id, type}) => {
|
||||
// 00课程 01陪练
|
||||
@@ -161,8 +137,8 @@
|
||||
} else if(type === '01') {
|
||||
common.navigateTo('/pages/sparring/detail?traId=' + id);
|
||||
}
|
||||
|
||||
};
|
||||
defineExpose({ get_data });
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user