update console
This commit is contained in:
1 parent
29fd2dd801
commit
18ec9d181c
34 files changed
+1713
-112
No files matched your search
@@ -12,7 +12,9 @@
|
||||
{{ application?.remaining_amount }}
|
||||
</span>
|
||||
<span class="actions">
|
||||
<el-button size="small" type="primary" @click="onBuy">{{ $t('common.button.buyMore') }}</el-button>
|
||||
<el-button size="small" type="primary" @click="onBuyMore(application)">{{
|
||||
$t('common.button.buyMore')
|
||||
}}</el-button>
|
||||
</span>
|
||||
</div>
|
||||
<div v-else class="text-center info">
|
||||
@@ -36,6 +38,7 @@ import { IApplicationType } from '@/operators';
|
||||
import { apiOperator } from '@/operators/api/operator';
|
||||
import { IApiDetailResponse, IApi } from '@/operators/api';
|
||||
import { ERROR_CODE_DUPLICATION } from '@/constants/errorCode';
|
||||
import { ROUTE_CONSOLE_APPLICATION_BUY } from '@/router';
|
||||
|
||||
export interface IData {
|
||||
confirming: boolean;
|
||||
@@ -83,9 +86,13 @@ export default defineComponent({
|
||||
this.api = data;
|
||||
});
|
||||
},
|
||||
onBuy() {
|
||||
const url = `https://data.zhishuyun.com/console/applications/${this.application?.id}/buy`;
|
||||
window.open(url, '_blank');
|
||||
onBuyMore(application: IApplication) {
|
||||
this.$router.push({
|
||||
name: ROUTE_CONSOLE_APPLICATION_BUY,
|
||||
params: {
|
||||
id: application.id
|
||||
}
|
||||
});
|
||||
},
|
||||
onApply() {
|
||||
applicationOperator
|
||||
|
||||
@@ -11,13 +11,19 @@
|
||||
@click="$router.push(link.route)"
|
||||
>
|
||||
<font-awesome-icon :icon="link.icon" />
|
||||
<!-- <img :src="link.image" class="image" :alt="link.icon" /> -->
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<div class="middle"></div>
|
||||
<div class="bottom">
|
||||
<div class="link">
|
||||
<el-tooltip effect="dark" :content="$t('common.nav.console')" placement="right">
|
||||
<el-button class="button" @click="onConsole">
|
||||
<font-awesome-icon icon="fa-solid fa-compass" />
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div class="link">
|
||||
<el-tooltip effect="dark" :content="$t('common.nav.logOut')" placement="right">
|
||||
<el-button class="button" @click="onLogout">
|
||||
@@ -38,6 +44,7 @@ import {
|
||||
ROUTE_CHAT_CONVERSATION,
|
||||
ROUTE_CHAT_CONVERSATION_NEW,
|
||||
ROUTE_CHAT_INDEX,
|
||||
ROUTE_CONSOLE_ROOT,
|
||||
ROUTE_MIDJOURNEY_HISTORY,
|
||||
ROUTE_MIDJOURNEY_INDEX
|
||||
} from '@/router/constants';
|
||||
@@ -78,6 +85,9 @@ export default defineComponent({
|
||||
console.debug('logout');
|
||||
this.$store.dispatch('common/resetToken');
|
||||
this.$router.push({ name: ROUTE_AUTH_LOGIN });
|
||||
},
|
||||
onConsole() {
|
||||
this.$router.push({ name: ROUTE_CONSOLE_ROOT });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="price-text">
|
||||
<span v-if="price > 0" class="unfree"
|
||||
>¥{{ price }} {{ unit ? ` / ${unit}` : '' }}{{ start ? $t('common.message.startPrice') : ''
|
||||
}}{{ $t('service.message.fromPrice') }}
|
||||
}}{{ $t('common.message.startPrice') }}
|
||||
</span>
|
||||
<span v-else class="free">
|
||||
{{ $t('common.message.free') }}
|
||||
|
||||
Reference in new issue
Block a user