| @@ -5,7 +5,7 @@ | |||||
| <scroll-view class="page-scroll" scroll-y> | <scroll-view class="page-scroll" scroll-y> | ||||
| <view class="profile-content"> | <view class="profile-content"> | ||||
| <view class="balance-card" :class="{ 'guest-card': !userStore.isLogin }"> | <view class="balance-card" :class="{ 'guest-card': !userStore.isLogin }"> | ||||
| <image class="balance-texture" src="/static/profile/balance_texture.png" mode="aspectFit" /> | |||||
| <image class="balance-texture" src="https://cdn.aionline.cc/ai/profile/balance_texture.png" mode="aspectFit" /> | |||||
| <view v-if="userStore.isLogin" class="balance-copy"> | <view v-if="userStore.isLogin" class="balance-copy"> | ||||
| <text class="hello">{{ `Hi,${userStore.nickname || 'AI在线用户'}!` }}</text> | <text class="hello">{{ `Hi,${userStore.nickname || 'AI在线用户'}!` }}</text> | ||||
| <text class="balance-label">点数余额</text> | <text class="balance-label">点数余额</text> | ||||
| @@ -195,7 +195,7 @@ | |||||
| <view class="buttons"> | <view class="buttons"> | ||||
| <view class="history-btn" @click="goHistory">历史记录</view> | <view class="history-btn" @click="goHistory">历史记录</view> | ||||
| <view class="submit-btn" :class="{ disabled: submitting }" @click="submit"> | <view class="submit-btn" :class="{ disabled: submitting }" @click="submit"> | ||||
| <image v-if="!submitting" class="submit-icon" src="/static/icons/bolt.svg" mode="aspectFit" /> | |||||
| <image v-if="!submitting" class="submit-icon" src="https://cdn.aionline.cc/ai/icons/bolt.svg" mode="aspectFit" /> | |||||
| <text>{{ submitting ? '生成中...' : submitText }}</text> | <text>{{ submitting ? '生成中...' : submitText }}</text> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -171,7 +171,7 @@ | |||||
| <view class="buttons"> | <view class="buttons"> | ||||
| <view class="history-btn" @click="goHistory">历史记录</view> | <view class="history-btn" @click="goHistory">历史记录</view> | ||||
| <view class="submit-btn" :class="{ disabled: submitting }" @click="submit"> | <view class="submit-btn" :class="{ disabled: submitting }" @click="submit"> | ||||
| <image v-if="!submitting" class="submit-icon" src="/static/icons/bolt.svg" mode="aspectFit" /> | |||||
| <image v-if="!submitting" class="submit-icon" src="https://cdn.aionline.cc/ai/icons/bolt.svg" mode="aspectFit" /> | |||||
| <text>{{ submitting ? '生成中...' : submitText }}</text> | <text>{{ submitting ? '生成中...' : submitText }}</text> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -193,7 +193,7 @@ const ANIME_BILLING_MODEL = 'tencent_anime' | |||||
| const appDetail = ref({}) | const appDetail = ref({}) | ||||
| const demoList = ref([]) | const demoList = ref([]) | ||||
| const styleList = ref([{ value: '201', name: '默认', model: 2, pic: '/static/toolbox/home_card_avatar.png' }]) | |||||
| const styleList = ref([{ value: '201', name: '默认', model: 2, pic: 'https://cdn.aionline.cc/ai/toolbox/home_card_avatar.png' }]) | |||||
| const previewImage = ref('') | const previewImage = ref('') | ||||
| const uploading = ref(false) | const uploading = ref(false) | ||||
| const submitting = ref(false) | const submitting = ref(false) | ||||
| @@ -289,7 +289,7 @@ async function loadDemo() { | |||||
| } | } | ||||
| } | } | ||||
| if (!demoList.value.length) { | if (!demoList.value.length) { | ||||
| demoList.value = [{ original: '/static/toolbox/home_card_avatar.png', anime: '/static/toolbox/home_card_avatar.png' }] | |||||
| demoList.value = [{ original: 'https://cdn.aionline.cc/ai/toolbox/home_card_avatar.png', anime: 'https://cdn.aionline.cc/ai/toolbox/home_card_avatar.png' }] | |||||
| } | } | ||||
| } catch (e) {} | } catch (e) {} | ||||
| } | } | ||||
| @@ -272,7 +272,7 @@ | |||||
| <image | <image | ||||
| v-if="!creating && !rerendering && !result" | v-if="!creating && !rerendering && !result" | ||||
| class="submit-icon" | class="submit-icon" | ||||
| src="/static/icons/bolt.svg" | |||||
| src="https://cdn.aionline.cc/ai/icons/bolt.svg" | |||||
| mode="aspectFit" | mode="aspectFit" | ||||
| /> | /> | ||||
| <text>{{ primaryText }}</text> | <text>{{ primaryText }}</text> | ||||
| @@ -129,7 +129,7 @@ | |||||
| <view class="buttons"> | <view class="buttons"> | ||||
| <view class="history-btn" @click="goHistory">历史记录</view> | <view class="history-btn" @click="goHistory">历史记录</view> | ||||
| <view class="submit-btn" :class="{ disabled: submitDisabled }" @click="submit"> | <view class="submit-btn" :class="{ disabled: submitDisabled }" @click="submit"> | ||||
| <image class="submit-icon" src="/static/icons/bolt.svg" mode="aspectFit" /> | |||||
| <image class="submit-icon" src="https://cdn.aionline.cc/ai/icons/bolt.svg" mode="aspectFit" /> | |||||
| <text>{{ submitText }}</text> | <text>{{ submitText }}</text> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -218,7 +218,7 @@ | |||||
| <view class="buttons"> | <view class="buttons"> | ||||
| <view class="history-btn" @click="goHistory">生成记录</view> | <view class="history-btn" @click="goHistory">生成记录</view> | ||||
| <view class="submit-btn" :class="{ disabled: submitDisabled }" @click="submit"> | <view class="submit-btn" :class="{ disabled: submitDisabled }" @click="submit"> | ||||
| <image class="submit-icon" src="/static/icons/bolt.svg" mode="aspectFit" /> | |||||
| <image class="submit-icon" src="https://cdn.aionline.cc/ai/icons/bolt.svg" mode="aspectFit" /> | |||||
| <text>{{ submitText }}</text> | <text>{{ submitText }}</text> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -10,7 +10,7 @@ | |||||
| @refresherrefresh="onRefresh" | @refresherrefresh="onRefresh" | ||||
| > | > | ||||
| <view class="toolbox-content"> | <view class="toolbox-content"> | ||||
| <swiper class="hero" circular autoplay :interval="4000" @change="onBannerChange"> | |||||
| <swiper v-if="banners.length" class="hero" circular autoplay :interval="4000" @change="onBannerChange"> | |||||
| <swiper-item v-for="(banner, i) in banners" :key="i" @click="onTool(banner)"> | <swiper-item v-for="(banner, i) in banners" :key="i" @click="onTool(banner)"> | ||||
| <image class="hero-img" :src="banner.image" mode="aspectFill" /> | <image class="hero-img" :src="banner.image" mode="aspectFill" /> | ||||
| </swiper-item> | </swiper-item> | ||||
| @@ -56,28 +56,22 @@ import { useApp } from '@/utils/useApp.js' | |||||
| const { toast } = useApp() | const { toast } = useApp() | ||||
| const refreshing = ref(false) | const refreshing = ref(false) | ||||
| const bannerIndex = ref(0) | const bannerIndex = ref(0) | ||||
| const AI_CDN_BASE = 'https://cdn.aionline.cc/ai' | |||||
| const defaultBanners = [ | |||||
| { | |||||
| image: '/static/toolbox/home_banner_note17.png', | |||||
| title: 'Note 17 系列', | |||||
| link_type: 'none', | |||||
| type: '' | |||||
| } | |||||
| ] | |||||
| const defaultBanners = [] | |||||
| const defaultRecommends = [ | const defaultRecommends = [ | ||||
| { | { | ||||
| name: 'AI动漫头像', | name: 'AI动漫头像', | ||||
| title: 'AI动漫头像', | title: 'AI动漫头像', | ||||
| image: '/static/toolbox/home_card_avatar.png', | |||||
| image: `${AI_CDN_BASE}/toolbox/home_card_avatar.png`, | |||||
| link_type: 'app', | link_type: 'app', | ||||
| type: 'anime-avatar' | type: 'anime-avatar' | ||||
| }, | }, | ||||
| { | { | ||||
| name: 'AI取名', | name: 'AI取名', | ||||
| title: 'AI取名', | title: 'AI取名', | ||||
| image: '/static/toolbox/home_card_name.png', | |||||
| image: `${AI_CDN_BASE}/toolbox/home_card_name.png`, | |||||
| link_type: 'app', | link_type: 'app', | ||||
| type: 'ai-name' | type: 'ai-name' | ||||
| } | } | ||||
| @@ -85,7 +79,7 @@ const defaultRecommends = [ | |||||
| const defaultApps = [ | const defaultApps = [ | ||||
| { | { | ||||
| icon: '/static/toolbox/tool_id_photo.png', | |||||
| icon: `${AI_CDN_BASE}/toolbox/tool_id_photo.png`, | |||||
| name: 'AI证件照/签证照', | name: 'AI证件照/签证照', | ||||
| title: 'AI证件照/签证照', | title: 'AI证件照/签证照', | ||||
| desc: '各类规格证件照、免冠照、换底色换正装', | desc: '各类规格证件照、免冠照、换底色换正装', | ||||
| @@ -94,7 +88,7 @@ const defaultApps = [ | |||||
| type: 'id-photo' | type: 'id-photo' | ||||
| }, | }, | ||||
| { | { | ||||
| icon: '/static/toolbox/tool_portrait.png', | |||||
| icon: `${AI_CDN_BASE}/toolbox/tool_portrait.png`, | |||||
| name: 'AI形象照/职业照/写真', | name: 'AI形象照/职业照/写真', | ||||
| title: 'AI形象照/职业照/写真', | title: 'AI形象照/职业照/写真', | ||||
| desc: '上传自拍生成职业照、艺术写真、古风', | desc: '上传自拍生成职业照、艺术写真、古风', | ||||
| @@ -103,7 +97,7 @@ const defaultApps = [ | |||||
| type: 'portrait-photo' | type: 'portrait-photo' | ||||
| }, | }, | ||||
| { | { | ||||
| icon: '/static/toolbox/tool_id_photo.png', | |||||
| icon: `${AI_CDN_BASE}/toolbox/tool_id_photo.png`, | |||||
| name: '老照片上色', | name: '老照片上色', | ||||
| title: '老照片上色', | title: '老照片上色', | ||||
| desc: '模糊破损老照片修复、黑白照片自然上色', | desc: '模糊破损老照片修复、黑白照片自然上色', | ||||
| @@ -1,3 +0,0 @@ | |||||
| <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12"> | |||||
| <path fill="#fff" d="M1.652 6.074 7.342.197c.377-.39 1.032-.063.947.473L7.68 4.484a.556.556 0 0 0 .618.639l1.573-.196a.556.556 0 0 1 .466.939L4.61 11.745c-.38.39-1.035.058-.946-.479l.633-3.806a.556.556 0 0 0-.616-.642l-1.561.194a.556.556 0 0 1-.468-.938"/> | |||||
| </svg> | |||||