mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
add switch
This commit is contained in:
@@ -4,12 +4,10 @@ import { useAccount } from '@/api/account'
|
||||
import {
|
||||
AddressInfo,
|
||||
GoodsTypes,
|
||||
PointGoodsModel,
|
||||
ResponsePointGoodModel,
|
||||
ResponsePointOrder2UserModel,
|
||||
UserInfo,
|
||||
} from '@/api/api-models'
|
||||
import { useUser } from '@/api/user'
|
||||
import AddressDisplay from '@/components/manage/AddressDisplay.vue'
|
||||
import PointGoodsItem from '@/components/manage/PointGoodsItem.vue'
|
||||
import { POINT_API_URL } from '@/data/constants'
|
||||
@@ -18,7 +16,6 @@ import {
|
||||
NAlert,
|
||||
NButton,
|
||||
NCard,
|
||||
NDataTable,
|
||||
NDivider,
|
||||
NEmpty,
|
||||
NFlex,
|
||||
@@ -26,25 +23,18 @@ import {
|
||||
NFormItem,
|
||||
NGrid,
|
||||
NGridItem,
|
||||
NIcon,
|
||||
NInputGroup,
|
||||
NInputGroupLabel,
|
||||
NInputNumber,
|
||||
NLayoutContent,
|
||||
NModal,
|
||||
NSelect,
|
||||
NSpace,
|
||||
NSpin,
|
||||
NTag,
|
||||
NText,
|
||||
NTimeline,
|
||||
NTimelineItem,
|
||||
NTooltip,
|
||||
SelectOption,
|
||||
useDialog,
|
||||
useMessage,
|
||||
} from 'naive-ui'
|
||||
import { ref, computed, onMounted, h } from 'vue'
|
||||
import { computed, h, onMounted, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
const props = defineProps<{
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { ResponsePointOrder2UserModel } from '@/api/api-models'
|
||||
import { QueryGetAPI } from '@/api/query'
|
||||
import PointOrderCard from '@/components/manage/PointOrderCard.vue'
|
||||
import { POINT_API_URL } from '@/data/constants'
|
||||
import { useAuthStore } from '@/store/useAuthStore'
|
||||
import { NButton, NCard, NEmpty, NList, NListItem, useMessage } from 'naive-ui'
|
||||
import { h, onMounted, ref } from 'vue'
|
||||
import { NEmpty, useMessage } from 'naive-ui'
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
const message = useMessage()
|
||||
const useAuth = useAuthStore()
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { NDataTable, NLayoutContent, NSpace, useMessage } from 'naive-ui'
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { useAuthStore } from '@/store/useAuthStore'
|
||||
import { POINT_API_URL } from '@/data/constants'
|
||||
import { ResponsePointHisrotyModel } from '@/api/api-models'
|
||||
import PointHistoryCard from '@/components/manage/PointHistoryCard.vue'
|
||||
import { POINT_API_URL } from '@/data/constants'
|
||||
import { useAuthStore } from '@/store/useAuthStore'
|
||||
import { useMessage } from 'naive-ui'
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
const message = useMessage()
|
||||
const useAuth = useAuthStore()
|
||||
|
||||
@@ -1,34 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
import { UserInfo } from '@/api/api-models'
|
||||
import { POINT_API_URL } from '@/data/constants'
|
||||
import { useAuthStore } from '@/store/useAuthStore'
|
||||
import { useRouteHash } from '@vueuse/router'
|
||||
import {
|
||||
NButton,
|
||||
NCard,
|
||||
NDataTable,
|
||||
NListItem,
|
||||
NTabPane,
|
||||
NTabs,
|
||||
NLayout,
|
||||
NLayoutContent,
|
||||
NText,
|
||||
useMessage,
|
||||
NLayoutHeader,
|
||||
NFlex,
|
||||
NDescriptions,
|
||||
NDescriptionsItem,
|
||||
NDivider,
|
||||
NFlex,
|
||||
NLayout,
|
||||
NLayoutContent,
|
||||
NLayoutHeader,
|
||||
NList,
|
||||
NListItem,
|
||||
NResult,
|
||||
NSpin,
|
||||
NDivider,
|
||||
NTag,
|
||||
NList,
|
||||
NTabPane,
|
||||
NTabs,
|
||||
NText,
|
||||
useMessage,
|
||||
} from 'naive-ui'
|
||||
import { computed, h, onMounted, ref } from 'vue'
|
||||
import { useAuthStore } from '@/store/useAuthStore'
|
||||
import { UserInfo } from '@/api/api-models'
|
||||
import { POINT_API_URL } from '@/data/constants'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import PointOrderView from './PointOrderView.vue'
|
||||
import PointUserHistoryView from './PointUserHistoryView.vue'
|
||||
import PointUserSettings from './PointUserSettings.vue'
|
||||
import { useRouteHash } from '@vueuse/router'
|
||||
import PointOrderView from './PointOrderView.vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
|
||||
const useAuth = useAuthStore()
|
||||
const message = useMessage()
|
||||
|
||||
@@ -1,42 +1,35 @@
|
||||
<script setup lang="ts">
|
||||
import { AddressInfo } from '@/api/api-models'
|
||||
import { QueryGetAPI } from '@/api/query'
|
||||
import AddressDisplay from '@/components/manage/AddressDisplay.vue'
|
||||
import { POINT_API_URL, THINGS_URL } from '@/data/constants'
|
||||
import { useAuthStore } from '@/store/useAuthStore'
|
||||
import { useStorage } from '@vueuse/core'
|
||||
import {
|
||||
FormRules,
|
||||
NButton,
|
||||
NCard,
|
||||
NCheckbox,
|
||||
NCollapse,
|
||||
NCollapseItem,
|
||||
NDivider,
|
||||
NFlex,
|
||||
NForm,
|
||||
NFormItem,
|
||||
NInput,
|
||||
NInputNumber,
|
||||
NLayoutContent,
|
||||
NList,
|
||||
NListItem,
|
||||
NModal,
|
||||
NPopconfirm,
|
||||
NScrollbar,
|
||||
NSelect,
|
||||
NSpace,
|
||||
NSpin,
|
||||
NTag,
|
||||
NText,
|
||||
NTimeline,
|
||||
NTimelineItem,
|
||||
SelectOption,
|
||||
useMessage,
|
||||
FormRules,
|
||||
NButton,
|
||||
NCard,
|
||||
NCheckbox,
|
||||
NCollapse,
|
||||
NCollapseItem,
|
||||
NDivider,
|
||||
NFlex,
|
||||
NForm,
|
||||
NFormItem,
|
||||
NInput,
|
||||
NInputNumber,
|
||||
NList,
|
||||
NListItem,
|
||||
NModal,
|
||||
NPopconfirm,
|
||||
NScrollbar,
|
||||
NSelect,
|
||||
NSpin,
|
||||
NTag,
|
||||
useMessage
|
||||
} from 'naive-ui'
|
||||
import { computed, h, ref } from 'vue'
|
||||
//@ts-ignore
|
||||
import { computed, ref } from 'vue'
|
||||
//@ts-expect-error 导入有点问题
|
||||
import UserAgreement from '@/document/UserAgreement.md'
|
||||
import AddressDisplay from '@/components/manage/AddressDisplay.vue'
|
||||
|
||||
type AreaData = {
|
||||
[province: string]: {
|
||||
@@ -203,21 +196,21 @@ function onAreaSelectChange(level: number) {
|
||||
const newValue = {} as AddressInfo
|
||||
switch (level) {
|
||||
case 0: {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error 不管这个,直接赋值
|
||||
currentAddress.value.city = undefined
|
||||
// @ts-ignore
|
||||
// @ts-expect-error 不管这个,直接赋值
|
||||
currentAddress.value.district = undefined
|
||||
// @ts-ignore
|
||||
// @ts-expect-error 不管这个,直接赋值
|
||||
currentAddress.value.street = undefined
|
||||
}
|
||||
case 1: {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error 不管这个,直接赋值
|
||||
currentAddress.value.district = undefined
|
||||
// @ts-ignore
|
||||
// @ts-expect-error 不管这个,直接赋值
|
||||
currentAddress.value.street = undefined
|
||||
}
|
||||
case 2: {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error 不管这个,直接赋值
|
||||
currentAddress.value.street = undefined
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user