diff --git a/src/api/tea-specialist.ts b/src/api/tea-specialist.ts new file mode 100644 index 0000000..7394e36 --- /dev/null +++ b/src/api/tea-specialist.ts @@ -0,0 +1,23 @@ +import { http } from '@/http/alova' + +/** + * 获取茶艺师等级 + */ +export function getTeaSpecialistLevels() { + return http.Post('/api/Teamaster/teamasterLevel', null) +} + +/** + * 获取茶艺师列表 + */ +export interface ITeaSpecialistParams { + level_id: string + page: number + size: number + latitude: number + longitude: number +} + +export function getTeaSpecialist(data: ITeaSpecialistParams) { + return http.Post('/api/Teamaster/teamasterList', data) +} diff --git a/src/api/types/tea-specialist.ts b/src/api/types/tea-specialist.ts new file mode 100644 index 0000000..9089303 --- /dev/null +++ b/src/api/types/tea-specialist.ts @@ -0,0 +1,10 @@ +/** + * 茶艺师列表数据返回 + */ +export interface ITeaSpecialistResult { + count: Number + list: Array + more: Number + page: string + size: string +} \ No newline at end of file diff --git a/src/bundle_b/components/TeaSpecialistLevel.vue b/src/bundle_b/components/TeaSpecialistLevel.vue new file mode 100644 index 0000000..06116e6 --- /dev/null +++ b/src/bundle_b/components/TeaSpecialistLevel.vue @@ -0,0 +1,53 @@ + + + + + \ No newline at end of file diff --git a/src/bundle_b/pages/tea-specialist/detail.vue b/src/bundle_b/pages/tea-specialist/detail.vue new file mode 100644 index 0000000..c4444dd --- /dev/null +++ b/src/bundle_b/pages/tea-specialist/detail.vue @@ -0,0 +1,485 @@ + + { + "needLogin": "true", + "layout": "default", + "style": { + "navigationStyle": "custom" + } + } + + + + + + + diff --git a/src/bundle_b/pages/tea-specialist/list.vue b/src/bundle_b/pages/tea-specialist/list.vue new file mode 100644 index 0000000..4fc78c4 --- /dev/null +++ b/src/bundle_b/pages/tea-specialist/list.vue @@ -0,0 +1,286 @@ + +{ + "needLogin": true, + "layout": "tabbar", + "style": { + "navigationStyle": "custom" + } +} + + + + + + diff --git a/src/pages.json b/src/pages.json index 228da46..fbb4ed0 100644 --- a/src/pages.json +++ b/src/pages.json @@ -534,6 +534,29 @@ } } ] + }, + { + "root": "bundle_b", + "pages": [ + { + "path": "pages/tea-specialist/detail", + "type": "page", + "needLogin": "true", + "layout": "default", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/tea-specialist/list", + "type": "page", + "needLogin": true, + "layout": "tabbar", + "style": { + "navigationStyle": "custom" + } + } + ] } ] } \ No newline at end of file diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 3b32f63..c7c2d41 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -30,8 +30,7 @@ - + @@ -39,12 +38,8 @@ 更多茶艺师点击预约 - - - - 一键约 - - + + @@ -267,19 +262,6 @@ getMescroll().resetUpScroll() }, - /** - * 跳转公众号 - */ - handleToWxOfficialAccount: () => { - wx.openOfficialAccountProfile({ - username: '', // 此处填写公众号的原始 ID - success: res => { - }, - fail: res => { - } - }) - }, - /** * 更新定位信息 */ diff --git a/vite.config.ts b/vite.config.ts index 8b5629a..51d91d2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -62,7 +62,7 @@ export default ({ command, mode }) => { exclude: ['**/components/**/**.*'], // homePage 通过 vue 文件的 route-block 的type="home"来设定 // pages 目录为 src/pages,分包目录不能配置在pages目录下 - subPackages: ['src/bundle'], // 是个数组,可以配置多个,但是不能为pages里面的目录 + subPackages: ['src/bundle', 'src/bundle_b'], // 是个数组,可以配置多个,但是不能为pages里面的目录 dts: 'src/types/uni-pages.d.ts', }), UniLayouts(),