diff --git a/src/App.vue b/src/App.vue index 7910d8c..8405d52 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,7 +2,6 @@ import { onHide, onLaunch, onShow } from '@dcloudio/uni-app' import { navigateToInterceptor } from '@/router/interceptor' import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only' - import { LOCATION_DEFAULT_CITY, LOCATION_DEFAULT_LAT, LOCATION_DEFAULT_LNG, LOCATION_LAT_KEY, LOCATION_LNG_KEY, LOCATION_CITY_KEY } from '@/hooks/useLocation' onLaunch((options) => { // 处理直接进入页面路由的情况:如h5直接输入路由、微信小程序分享后进入等 diff --git a/src/api/tea-room.ts b/src/api/tea-room.ts index ad59203..c698a92 100644 --- a/src/api/tea-room.ts +++ b/src/api/tea-room.ts @@ -41,26 +41,6 @@ export function getLocationToCity(data: ILocationToCityParams) { ) } -/** - * 获取门店列表 - */ -export interface IHomeTeaStoreListParams { - page: number - size: number - search: string - latitude: number - longitude: number -} - -export function getHomeTeaStoreList(data: IHomeTeaStoreListParams) { - return http.Post('/api/teaStore/teaStoreLists', - data, - { - meta: { ignoreAuth: true } - } - ) -} - /** * 获取茶室开通城市列表 */ @@ -72,20 +52,6 @@ export function getOpenCityList() { ) } -/** - * 茶室搜索历史 - */ -export function getTeaRoomSearchHistory() { - return http.Post<{ list: Array }>('/api/teaStore/teaStoreSearchHistory') -} - -/** - * 清除茶室搜索历史 - */ -export function clearTeaRoomSearchHistory() { - return http.Post('/api/teaStore/delTeaStoreSearchHistory', null) -} - /** * 茶室详情 */ diff --git a/src/api/tes-specialist.ts b/src/api/tes-specialist.ts index ee437da..c30143a 100644 --- a/src/api/tes-specialist.ts +++ b/src/api/tes-specialist.ts @@ -164,4 +164,11 @@ export function getExclusiveCirclesLabel() { meta: { ignoreAuth: true } } ) +} + +/** + * 获取当前用户(茶艺师)等级 + */ +export function getUserLevel() { + return http.Post('/teamapi/user/userLevel') } \ No newline at end of file diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index f41476d..8eba248 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -15,63 +15,53 @@ - - + - - - - - - - - LV{{ level.level }} - - 当前等级 - + + + + + + + LV{{ userLevel.id }} + + {{ userLevel.level_name }} - - - 新功能即将推出 - - - + + + 业绩分成 + {{ userLevel.percentage }}% + + + - - + 预约单 - {{ TeaSpecialistManageStatusTextValue[order.order_status].title }} + {{ + TeaSpecialistManageStatusTextValue[order.order_status].title }} - + {{ day }} {{ month }}月 @@ -116,7 +108,7 @@ {{ order.title }} - {{ order.server_type == 1 ? '到店服务' : '上门服务'}} + {{ order.server_type == 1 ? '到店服务' : '上门服务' }} @@ -130,7 +122,8 @@ {{ order.address }} - + @@ -157,7 +150,8 @@ 预约单 - {{ TeaSpecialistManageStatusTextValue[order.order_status].title }} + {{ + TeaSpecialistManageStatusTextValue[order.order_status].title }} {{ order.location || order.store_name }} @@ -168,7 +162,8 @@ {{ order.start_time }}-{{ order.end_time }} - + {{ order.address || order.store_address }} @@ -203,7 +198,8 @@ - + @@ -212,110 +208,92 @@ diff --git a/src/pages/my/my.vue b/src/pages/my/my.vue index 60cd4c5..3edaf3d 100644 --- a/src/pages/my/my.vue +++ b/src/pages/my/my.vue @@ -218,7 +218,7 @@ class="service-icon-wrapper h-96rpx w-96rpx flex items-center justify-center rounded-16rpx bg-[#FFFFFF]"> - 上传资料 + 资质证书 - + - + - + 资质证书 - diff --git a/src/pages/order/pending-order-detail.vue b/src/pages/order/pending-order-detail.vue deleted file mode 100644 index 67b3730..0000000 --- a/src/pages/order/pending-order-detail.vue +++ /dev/null @@ -1,755 +0,0 @@ -{ - "needLogin": false, - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/pages/order/serving-detail.vue b/src/pages/order/serving-detail.vue deleted file mode 100644 index 57a29ef..0000000 --- a/src/pages/order/serving-detail.vue +++ /dev/null @@ -1,1172 +0,0 @@ - -{ - "needLogin": false, - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - diff --git a/src/pages/order/waiting-service-detail.vue b/src/pages/order/waiting-service-detail.vue deleted file mode 100644 index 39dbb02..0000000 --- a/src/pages/order/waiting-service-detail.vue +++ /dev/null @@ -1,806 +0,0 @@ - -{ - "needLogin": false, - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - diff --git a/src/pages/store/device.vue b/src/pages/store/device.vue deleted file mode 100644 index 07b16f0..0000000 --- a/src/pages/store/device.vue +++ /dev/null @@ -1,186 +0,0 @@ -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - diff --git a/src/pages/store/reserve.vue b/src/pages/store/reserve.vue deleted file mode 100644 index 93da3b1..0000000 --- a/src/pages/store/reserve.vue +++ /dev/null @@ -1,179 +0,0 @@ -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - diff --git a/src/pages/store/room-detail.vue b/src/pages/store/room-detail.vue deleted file mode 100644 index 2fb1056..0000000 --- a/src/pages/store/room-detail.vue +++ /dev/null @@ -1,779 +0,0 @@ -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - - - diff --git a/src/pages/store/room-manage.vue b/src/pages/store/room-manage.vue deleted file mode 100644 index b50a89c..0000000 --- a/src/pages/store/room-manage.vue +++ /dev/null @@ -1,256 +0,0 @@ -{ - "layout": "default", - "style": { - "navigationStyle": "custom" - } -} - - - - - - diff --git a/src/pages/store/store.vue b/src/pages/store/store.vue deleted file mode 100644 index dd91beb..0000000 --- a/src/pages/store/store.vue +++ /dev/null @@ -1,102 +0,0 @@ -{ - "layout": "tabbar", - "style": { - "navigationStyle": "custom" - } -} - - - - - -