| @@ -36,7 +36,7 @@ | |||||
| {{ $t("voiceModel.title") }} | {{ $t("voiceModel.title") }} | ||||
| </div> | </div> | ||||
| <div class="bottomBtx"> | |||||
| <!-- <div class="bottomBtx"> --> | |||||
| <div class="myRouter-item" @click="router.push('/myStore')"> | <div class="myRouter-item" @click="router.push('/myStore')"> | ||||
| <div class="icon"> | <div class="icon"> | ||||
| <el-icon><i-ep-Goods /></el-icon> | <el-icon><i-ep-Goods /></el-icon> | ||||
| @@ -77,13 +77,14 @@ | |||||
| </el-menu-item-group> | </el-menu-item-group> | ||||
| </el-sub-menu> | </el-sub-menu> | ||||
| </el-menu> | </el-menu> | ||||
| </div> | |||||
| <!-- </div> --> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <!-- 右边显示部分 --> | <!-- 右边显示部分 --> | ||||
| <div class="rightBox"> | <div class="rightBox"> | ||||
| <!-- nav栏 --> | <!-- nav栏 --> | ||||
| <div class="nav"> | <div class="nav"> | ||||
| <div class="navItem">当前币值:{{ currentValue }}</div> | |||||
| <!-- 语言 --> | <!-- 语言 --> | ||||
| <el-tooltip | <el-tooltip | ||||
| style="cursor: pointer; z-index: 999" | style="cursor: pointer; z-index: 999" | ||||
| @@ -94,6 +95,7 @@ | |||||
| > | > | ||||
| <lang-select class="navItem" /> | <lang-select class="navItem" /> | ||||
| </el-tooltip> | </el-tooltip> | ||||
| <div class="navItem" v-if="currentPhone">{{ currentPhone }}</div> | |||||
| <!-- 登录 --> | <!-- 登录 --> | ||||
| <div class="navItem" v-if="!AccessToken" @click="router.push('login')"> | <div class="navItem" v-if="!AccessToken" @click="router.push('login')"> | ||||
| {{ $t("navbar.goLogin") }} | {{ $t("navbar.goLogin") }} | ||||
| @@ -131,6 +133,8 @@ import { useRoute, useRouter } from "vue-router"; | |||||
| import { useI18n } from "vue-i18n"; | import { useI18n } from "vue-i18n"; | ||||
| import { userInfoModules } from "@/store/modules/userInfo"; | import { userInfoModules } from "@/store/modules/userInfo"; | ||||
| import { getUserPoinsApi } from '@/apis/my.js' | |||||
| import { | import { | ||||
| Document, | Document, | ||||
| Menu as IconMenu, | Menu as IconMenu, | ||||
| @@ -196,7 +200,18 @@ function handleOutsideClick() { | |||||
| appStore.closeSideBar(false); | appStore.closeSideBar(false); | ||||
| } | } | ||||
| onMounted(() => {}); | |||||
| // 当前币值 | |||||
| const currentValue = ref('') | |||||
| const currentPhone = localStorage.getItem('phone') | |||||
| function currentValFn() { | |||||
| getUserPoinsApi().then(res => { | |||||
| currentValue.value = res.data | |||||
| }) | |||||
| } | |||||
| onMounted(() => { | |||||
| currentValFn() | |||||
| }); | |||||
| //#region 联系我们弹窗 | //#region 联系我们弹窗 | ||||
| const showTalkUsDialog = ref(false); | const showTalkUsDialog = ref(false); | ||||
| const updateShowTalkUsDialog = (newValue: any) => { | const updateShowTalkUsDialog = (newValue: any) => { | ||||
| @@ -13,6 +13,7 @@ export const userInfoModules = defineStore("userInfo", () => { | |||||
| async function getUserInfo() { | async function getUserInfo() { | ||||
| const res = await getUserInfoApi() | const res = await getUserInfoApi() | ||||
| userInfo.value = res.data | userInfo.value = res.data | ||||
| localStorage.setItem('phone', res.data.phone) | |||||
| } | } | ||||
| // 退出清除用户信息 | // 退出清除用户信息 | ||||
| function loginOut(params) { | function loginOut(params) { | ||||
| @@ -23,16 +23,21 @@ declare module '@vue/runtime-core' { | |||||
| ElFormItem: typeof import('element-plus/es')['ElFormItem'] | ElFormItem: typeof import('element-plus/es')['ElFormItem'] | ||||
| ElIcon: typeof import('element-plus/es')['ElIcon'] | ElIcon: typeof import('element-plus/es')['ElIcon'] | ||||
| ElInput: typeof import('element-plus/es')['ElInput'] | ElInput: typeof import('element-plus/es')['ElInput'] | ||||
| ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] | |||||
| ElMenu: typeof import('element-plus/es')['ElMenu'] | ElMenu: typeof import('element-plus/es')['ElMenu'] | ||||
| ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] | ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] | ||||
| ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup'] | ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup'] | ||||
| ElOption: typeof import('element-plus/es')['ElOption'] | |||||
| ElPagination: typeof import('element-plus/es')['ElPagination'] | ElPagination: typeof import('element-plus/es')['ElPagination'] | ||||
| ElRadio: typeof import('element-plus/es')['ElRadio'] | ElRadio: typeof import('element-plus/es')['ElRadio'] | ||||
| ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] | ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] | ||||
| ElSelect: typeof import('element-plus/es')['ElSelect'] | |||||
| ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] | ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] | ||||
| ElSwitch: typeof import('element-plus/es')['ElSwitch'] | |||||
| ElTable: typeof import('element-plus/es')['ElTable'] | ElTable: typeof import('element-plus/es')['ElTable'] | ||||
| ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] | ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] | ||||
| ElTooltip: typeof import('element-plus/es')['ElTooltip'] | ElTooltip: typeof import('element-plus/es')['ElTooltip'] | ||||
| ElUpload: typeof import('element-plus/es')['ElUpload'] | |||||
| GithubCorner: typeof import('./../components/GithubCorner/index.vue')['default'] | GithubCorner: typeof import('./../components/GithubCorner/index.vue')['default'] | ||||
| Hamburger: typeof import('./../components/Hamburger/index.vue')['default'] | Hamburger: typeof import('./../components/Hamburger/index.vue')['default'] | ||||
| IconSelect: typeof import('./../components/IconSelect/index.vue')['default'] | IconSelect: typeof import('./../components/IconSelect/index.vue')['default'] | ||||
| @@ -58,6 +63,7 @@ declare module '@vue/runtime-core' { | |||||
| WangEditor: typeof import('./../components/WangEditor/index.vue')['default'] | WangEditor: typeof import('./../components/WangEditor/index.vue')['default'] | ||||
| } | } | ||||
| export interface ComponentCustomProperties { | export interface ComponentCustomProperties { | ||||
| vInfiniteScroll: typeof import('element-plus/es')['ElInfiniteScroll'] | |||||
| vLoading: typeof import('element-plus/es')['ElLoadingDirective'] | vLoading: typeof import('element-plus/es')['ElLoadingDirective'] | ||||
| } | } | ||||
| } | } | ||||
| @@ -1637,7 +1637,13 @@ async function createVideo() { | |||||
| const res2 = await createVideoApi(workId.value); | const res2 = await createVideoApi(workId.value); | ||||
| // 去充值 | // 去充值 | ||||
| if (res2.code === '64001') { | if (res2.code === '64001') { | ||||
| router.push("/myStore"); | |||||
| // router.push("/myStore"); | |||||
| router.push({ | |||||
| path: "/businessCheck", | |||||
| query: { | |||||
| tag: 'createVideo' | |||||
| }, | |||||
| }); | |||||
| return | return | ||||
| } | } | ||||
| ElMessage.success( | ElMessage.success( | ||||