| | |
| | | export default defineAppConfig({ |
| | | entryPagePath: 'pages/home/index', |
| | | pages: ['pages/home/index', 'pages/mine/index'], |
| | | pages: ['pages/home/index', 'pages/mine/index'], |
| | | requiredPrivateInfos: ['getLocation'], |
| | | permission: { |
| | | 'scope.userLocation': { |
| | |
| | | text: '我的', |
| | | }, |
| | | ], |
| | | color: '#000', |
| | | selectedColor: '#ff6d33', |
| | | color: '#333', |
| | | selectedColor: '#3a71ff', |
| | | backgroundColor: '#fff', |
| | | borderStyle: 'black', |
| | | custom: true, |
| | | }, |
| | | lazyCodeLoading: 'requiredComponents', |
| | | lazyCodeLoading: 'requiredComponents', |
| | | subpackages: [ |
| | | { |
| | | root: 'subpackages/login', |
| | |
| | | </nut-swiper> |
| | | </div> |
| | | </div> |
| | | <InfiniteLoading |
| | | scrollViewClassName="common-infinite-scroll-list home-list" |
| | | v-bind="infiniteLoadingProps" |
| | | > |
| | | <template #renderItem="{ item }"> |
| | | <div>TaskCard</div> |
| | | </template> |
| | | </InfiniteLoading> |
| | | <RechargeGrid /> |
| | | </PageLayoutWithBg> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { useUser, useInfiniteLoading } from '@/hooks'; |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { RectDown, Location2 } from '@nutui/icons-vue-taro'; |
| | | import Taro from '@tarojs/taro'; |
| | | import _ from 'lodash'; |
| | | import IconLogo from '@/assets/home/icon-logo.png'; |
| | | import IconLocaltion from '@/assets/task/icon-localtion.png'; |
| | | import * as orderServices from '@life-payment/services/api/Order'; |
| | | import { OrderInputType } from '@life-payment/constants'; |
| | | import { RechargeGrid } from '@life-payment/components'; |
| | | |
| | | const { locationCity } = useUser(); |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | | const queryState = reactive({}); |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.FrontOrderListInput = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | | orderInput: [{ property: 'lastShelfTime', order: OrderInputType.Desc }], |
| | | }, |
| | | }; |
| | | |
| | | return orderServices.getFrontOrderList(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['orderServices/getFrontOrderList', queryState], |
| | | } |
| | | ); |
| | | |
| | | const list = ref([ |
| | | 'https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg', |
| | |
| | | ]); |
| | | |
| | | const selectItem = ref(); |
| | | |
| | | function handleMenuSelectClose() { |
| | | selectItem.value?.toggle?.(); |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | |
| | | import _ from 'lodash'; |
| | | import { FormItemRuleWithoutValidator } from '@nutui/nutui-taro/dist/types/__VUE/formitem/types'; |
| | | import { FormItemRuleWithoutValidator } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; |
| | | |
| | | export class FormValidator { |
| | | /** |
New file |
| | |
| | | <template> |
| | | <div></div> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | defineOptions({ |
| | | name: 'Grid', |
| | | }); |
| | | |
| | | type Props = {}; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import '@/styles/common.scss'; |
| | | </style> |
| | |
| | | export { default as Input } from './Input/Input.vue'; |
| | | |
| | | export { default as RechargeGrid } from './views/RechargeGrid/RechargeGrid.vue'; |
File was renamed from packages/components/src/Input/Input.vue |
| | |
| | | <template> |
| | | <div>Input</div> |
| | | <div>RechargeGrid</div> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | defineOptions({ |
| | | name: 'Input', |
| | | name: 'RechargeGrid', |
| | | }); |
| | | |
| | | // type Props = {}; |
| | |
| | | |
| | | <style lang="scss"> |
| | | @import '@/styles/common.scss'; |
| | | </style> |
| | | </style> |