diff --git a/src/api/order/index.js b/src/api/order/index.js old mode 100644 new mode 100755 index 1a7bfce..2e7cfc6 --- a/src/api/order/index.js +++ b/src/api/order/index.js @@ -16,4 +16,27 @@ export const orderPay = data => * @description 获取订单信息 */ export const orderInfo = params => - request.get('/order/infomation', params) \ No newline at end of file + request.get('/order/infomation', params) + +/** + * @description 获取取消原因列表 +*/ +export const reasonList = params => + request.get('/reason/list', params) + +/** + * @description 获取订单列表 +*/ +export const orderList = data => + request.post('/order/orderList', data) + +/** + * @description 取消订单 +*/ +export const cancelOrder = data => + request.post('/order/cancelOrder', data) +/** + * @description 申请退款 +*/ +export const orderRefund = data => + request.post('/refound', data) \ No newline at end of file diff --git a/src/assets/order-bg.png b/src/assets/order-bg.png old mode 100644 new mode 100755 diff --git a/src/assets/personal/edit.jpg b/src/assets/personal/edit.jpg old mode 100644 new mode 100755 diff --git a/src/assets/personal/person.png b/src/assets/personal/person.png old mode 100644 new mode 100755 diff --git a/src/assets/personal/wenti.jpg b/src/assets/personal/wenti.jpg old mode 100644 new mode 100755 diff --git a/src/components/agreed-comp/agreed-comp.vue b/src/components/agreed-comp/agreed-comp.vue old mode 100644 new mode 100755 index 9d8e982..6ebaac6 --- a/src/components/agreed-comp/agreed-comp.vue +++ b/src/components/agreed-comp/agreed-comp.vue @@ -52,6 +52,7 @@ const handleAgree = () => { $Router.push({ path: '/pages/statement/index' }) } const handleAgreeCheck = () => { + if (prop.disabled) return checked.value[0] = checked.value[0] === '1' ? '' : '1' emit('update:agreed', !!checked.value[0]) } diff --git a/src/components/button-contact/button-contact.vue b/src/components/button-contact/button-contact.vue old mode 100644 new mode 100755 diff --git a/src/components/popup-checkbox/popup-checkbox.vue b/src/components/popup-checkbox/popup-checkbox.vue old mode 100644 new mode 100755 diff --git a/src/components/tabbar/tabbar.vue b/src/components/tabbar/tabbar.vue index 52c4353..cacc317 100755 --- a/src/components/tabbar/tabbar.vue +++ b/src/components/tabbar/tabbar.vue @@ -6,7 +6,7 @@ :safeAreaInsetBottom="true" :fixed="true" :border="false" - v-bind="$attrs" + v-bind="$attrs" > uni.hideTabBar() const instance = getCurrentInstance() -const { $assets,$Router,$Route,$store } = instance.proxy +const { $assets, $Router, $Route, $store } = instance.proxy const tabbarList = ref([]) const List = { - simple: [ - { - text: '首页', - icon: '/tabbar/home.png', - activeIcon: '/tabbar/home-sel.png', - path: '/pages/index/home/index', - name: 'home', - show: true - }, - { - text: '订单', - icon: '/tabbar/order.png', - activeIcon: '/tabbar/order-sel.png', - path: '/pages/index/order/index', - name: 'order', - show: true - }, - { - text: '我的', - icon: '/tabbar/my.png', - activeIcon: '/tabbar/my-sel.png', - path: '/pages/index/personal/index', - name: 'personal', - show: true - } -], -common: [ - { - text: '首页', - icon: '/tabbar/order.png', - activeIcon: '/tabbar/order-sel.png', - path: '/pages/index/order/index', - name: 'order', - show: true - }, - { - text: '我的', - icon: '/tabbar/my.png', - activeIcon: '/tabbar/my-sel.png', - path: '/pages/index/personal/index', - name: 'personal', - show: true - } -] + simple: [ + { + text: '首页', + icon: '/tabbar/home.png', + activeIcon: '/tabbar/home-sel.png', + path: '/pages/index/home/index', + name: 'home', + show: true + }, + { + text: '订单', + icon: '/tabbar/order.png', + activeIcon: '/tabbar/order-sel.png', + path: '/pages/index/order/index', + name: 'order', + show: true + }, + { + text: '我的', + icon: '/tabbar/my.png', + activeIcon: '/tabbar/my-sel.png', + path: '/pages/index/personal/index', + name: 'personal', + show: true + } + ], + common: [ + { + text: '首页', + icon: '/tabbar/order.png', + activeIcon: '/tabbar/order-sel.png', + path: '/pages/index/order/index', + name: 'order', + show: true + }, + { + text: '我的', + icon: '/tabbar/my.png', + activeIcon: '/tabbar/my-sel.png', + path: '/pages/index/personal/index', + name: 'personal', + show: true + } + ] } -const activeItem = ref() - +const activeItem = ref($Route.meta.key || 'home') watchEffect(() => { - activeItem.value = $Route.meta.key - const roleName = $store.user.roleName - if(activeItem.value === 'home' && roleName === 'common') { - activeItem.value = 'order' - } - tabbarList.value = List[roleName] + const roleName = $store.user.roleName + if (activeItem.value === 'home' && roleName === 'common') { + activeItem.value = 'order' + } + tabbarList.value = List[roleName] })