|
@@ -4,7 +4,7 @@
|
|
|
<ui-group-option>
|
|
|
<div class="init-pic" :class="{ disabled: isEdit }">
|
|
|
<img :src="getResources(getFileUrl(setting!.cover))" class="init-puc-cover" />
|
|
|
- <div class="init-pic-set" @click="enterSetPic">{{$t('setting.name')}}</div>
|
|
|
+ <div class="init-pic-set" @click="enterSetPic">{{ $t("setting.name") }}</div>
|
|
|
</div>
|
|
|
</ui-group-option>
|
|
|
</ui-group>
|
|
@@ -19,7 +19,10 @@
|
|
|
:class="{ [back.type]: true, active: setting!.back === back.value }"
|
|
|
@click="setting!.back !== back.value && changeBack(back.value)"
|
|
|
>
|
|
|
- <img :src="getResources(back.image)" v-if="['img', 'map'].includes(back.type)" />
|
|
|
+ <img
|
|
|
+ :src="getResources(back.image)"
|
|
|
+ v-if="['img', 'map'].includes(back.type)"
|
|
|
+ />
|
|
|
<i class="iconfont" :class="back.image" v-else-if="back.type === 'icon'" />
|
|
|
<span :style="{ background: back.image }" v-else></span>
|
|
|
<p class="back-item-desc">{{ back.label }}</p>
|
|
@@ -35,37 +38,48 @@ import { RightFillPano } from "@/layout";
|
|
|
import { enterEdit, enterOld, setting, isEdit, updataSetting } from "@/store";
|
|
|
import { ref, watchEffect } from "vue";
|
|
|
import { togetherCallback, getFileUrl, loadPack } from "@/utils";
|
|
|
-import { showRightPanoStack, showRightCtrlPanoStack, custom, params, getResources } from "@/env";
|
|
|
+import {
|
|
|
+ showRightPanoStack,
|
|
|
+ showRightCtrlPanoStack,
|
|
|
+ custom,
|
|
|
+ params,
|
|
|
+ getResources,
|
|
|
+} from "@/env";
|
|
|
import { analysisPose, sdk, SettingResourceType } from "@/sdk";
|
|
|
import { ui18n } from "@/lang";
|
|
|
|
|
|
const backs = ref<{ label: string; type: string; image: string; value: string }[]>([]);
|
|
|
watchEffect(async () => {
|
|
|
backs.value = [
|
|
|
- { label: ui18n.t('setting.backs.0'), type: "icon", image: "icon-without", value: "none" },
|
|
|
{
|
|
|
- label: ui18n.t('setting.backs.1'),
|
|
|
+ label: ui18n.t("setting.backs.0"),
|
|
|
+ type: "icon",
|
|
|
+ image: "icon-without",
|
|
|
+ value: "none",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: ui18n.t("setting.backs.1"),
|
|
|
type: "map",
|
|
|
- image: params.static + "/fusion/default/images/map.png",
|
|
|
+ image: params.static + "/profile/fusion/default/images/map.png",
|
|
|
value: "map",
|
|
|
},
|
|
|
{
|
|
|
- label: ui18n.t('setting.backs.2'),
|
|
|
+ label: ui18n.t("setting.backs.2"),
|
|
|
type: "img",
|
|
|
- image: params.static + "/fusion/default/images/pic_ltby@2x.png",
|
|
|
- value: params.static + "/fusion/default/images/蓝天白云.jpg",
|
|
|
+ image: params.static + "/profile/fusion/default/images/pic_ltby@2x.png",
|
|
|
+ value: params.static + "/profile/fusion/default/images/蓝天白云.jpg",
|
|
|
},
|
|
|
{
|
|
|
- label: ui18n.t('setting.backs.3'),
|
|
|
+ label: ui18n.t("setting.backs.3"),
|
|
|
type: "img",
|
|
|
- image: params.static + "/fusion/default/images/pic_wymb@2x.png",
|
|
|
- value: params.static + "/fusion/default/images/乌云密布.jpg",
|
|
|
+ image: params.static + "/profile/fusion/default/images/pic_wymb@2x.png",
|
|
|
+ value: params.static + "/profile/fusion/default/images/乌云密布.jpg",
|
|
|
},
|
|
|
{
|
|
|
- label: ui18n.t('setting.backs.4'),
|
|
|
+ label: ui18n.t("setting.backs.4"),
|
|
|
type: "img",
|
|
|
- image: params.static + "/fusion/default/images/pic_yk@2x.png",
|
|
|
- value: params.static + "/fusion/default/images/夜空.jpg",
|
|
|
+ image: params.static + "/profile/fusion/default/images/pic_yk@2x.png",
|
|
|
+ value: params.static + "/profile/fusion/default/images/夜空.jpg",
|
|
|
},
|
|
|
// {
|
|
|
// label: "草地",
|
|
@@ -80,10 +94,10 @@ watchEffect(async () => {
|
|
|
// value: "/oss/fusion/default/images/道路.jpg",
|
|
|
// },
|
|
|
{
|
|
|
- label: ui18n.t('setting.backs.5'),
|
|
|
+ label: ui18n.t("setting.backs.5"),
|
|
|
type: "img",
|
|
|
- image: params.static + "/fusion/default/images/pic_bw@2x.png",
|
|
|
- value: params.static + "/fusion/default/images/傍晚.jpg",
|
|
|
+ image: params.static + "/profile/fusion/default/images/pic_bw@2x.png",
|
|
|
+ value: params.static + "/profile/fusion/default/images/傍晚.jpg",
|
|
|
},
|
|
|
// { label: "灰色", type: "color", image: "#333333", value: "#333" },
|
|
|
// { label: "黑色", type: "color", image: "#000000", value: "#000" },
|