diff --git a/.env.development.ty b/.env.development.ty index 15d511f0..4618dbad 100644 --- a/.env.development.ty +++ b/.env.development.ty @@ -4,6 +4,6 @@ ENV = 'development.ty' VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' -VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://192.168.108.129' +# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://192.168.108.129' diff --git a/src/api/sparring.js b/src/api/sparring.js index 3111b6ce..239a1ade 100644 --- a/src/api/sparring.js +++ b/src/api/sparring.js @@ -33,4 +33,12 @@ export const queryTraPartnerInfoById = (data) => { method: 'post', data }); +}; +// 陪练角色列表 traId +export const queryTraPartnerCharacterInfoList = (data) => { + return request({ + url: base_url + '/traPartnerCharacterInfo/queryTraPartnerCharacterInfoList', + method: 'post', + data + }); }; \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 2a149e66..08a474df 100644 --- a/src/pages.json +++ b/src/pages.json @@ -456,6 +456,24 @@ "titleNView": false } } + }, + { + "path": "pages/sparring/tip", + "style": { + "navigationBarTitleText": "AI陪练提示", + "app-plus": { + "titleNView": false + } + } + }, + { + "path": "pages/sparring/chooseRole", + "style": { + "navigationBarTitleText": "AI陪练选择角色", + "app-plus": { + "titleNView": false + } + } } ], "tabBar": { diff --git a/src/pages/sparring/chooseRole.vue b/src/pages/sparring/chooseRole.vue new file mode 100644 index 00000000..e7393709 --- /dev/null +++ b/src/pages/sparring/chooseRole.vue @@ -0,0 +1,316 @@ + + + + + \ No newline at end of file diff --git a/src/pages/sparring/components/card-swiper.vue b/src/pages/sparring/components/card-swiper.vue new file mode 100644 index 00000000..27412dc3 --- /dev/null +++ b/src/pages/sparring/components/card-swiper.vue @@ -0,0 +1,267 @@ + + + + + \ No newline at end of file diff --git a/src/pages/sparring/detail.vue b/src/pages/sparring/detail.vue index 034ed0e5..54655306 100644 --- a/src/pages/sparring/detail.vue +++ b/src/pages/sparring/detail.vue @@ -1,14 +1,15 @@