|
|
@@ -0,0 +1,127 @@
|
|
|
+<template>
|
|
|
+ <div class="opening-tip-settings">
|
|
|
+ <span class="title">提示设置</span>
|
|
|
+ <i class="iconfont icon-material_prompt tool-tip-for-editor" v-tool-tip-wrapper>
|
|
|
+ <TooltipInEditor
|
|
|
+ :text="'开场提示仅适用于全景图。若初始场景为三维模\n型,以下开场提示不适用。'"
|
|
|
+ :framePosLeft="'30px'"
|
|
|
+ :arrowPosLeft="'calc(50% - 24px)'"
|
|
|
+ ></TooltipInEditor>
|
|
|
+ </i>
|
|
|
+ <br>
|
|
|
+ <div class="image-selection">
|
|
|
+ <div class="title">PC端</div>
|
|
|
+ <div class="bottom">
|
|
|
+ <img :src="info.pcIcon || require('@/assets/images/default/img_tipspc_default.png')" alt="">
|
|
|
+ <div class="bottom-right">
|
|
|
+ <button class="ui-button submit" @click="isShowSelectionWindow = true, selectingFor = 'pc'">选择图片</button>
|
|
|
+ <div class="ui-remark">建议300*300px,600kb以内,支持jpg/png格式</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="image-selection">
|
|
|
+ <div class="title">移动端</div>
|
|
|
+ <div class="bottom">
|
|
|
+ <img :src="info.appIcon || require('@/assets/images/default/img_tipsmb_default.png')" alt="">
|
|
|
+ <div class="bottom-right">
|
|
|
+ <button class="ui-button submit" @click="isShowSelectionWindow = true, selectingFor = 'mobile'">选择图片</button>
|
|
|
+ <div class="ui-remark">建议300*300px,600kb以内,支持jpg/png格式</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="dialog" style="z-index: 2000" v-if="isShowSelectionWindow">
|
|
|
+ <Table2
|
|
|
+ title="选择素材"
|
|
|
+ @cancle="isShowSelectionWindow = false"
|
|
|
+ @submit="handleSubmitFromTableSelect2"
|
|
|
+ :selectableType="['image']"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import TooltipInEditor from '@/components/TooltipInEditor.vue'
|
|
|
+import Table2 from "@/components/tableSelect2.vue";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ TooltipInEditor,
|
|
|
+ Table2,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ isShowSelectionWindow: false,
|
|
|
+ selectingFor: '', // 'pc', 'mobile'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ info:'info'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleSubmitFromTableSelect2(selected) {
|
|
|
+ if (this.selectingFor === 'pc') {
|
|
|
+ this.info.pcIcon = selected[0].icon
|
|
|
+ } else if (this.selectingFor === 'mobile') {
|
|
|
+ this.info.appIcon = selected[0].icon
|
|
|
+ }
|
|
|
+ this.isShowSelectionWindow = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.opening-tip-settings {
|
|
|
+ padding: 24px 30px;
|
|
|
+ background: #252526;
|
|
|
+ height: 546px;
|
|
|
+ .title {
|
|
|
+ font-size: 18px;
|
|
|
+ color: #FFFFFF;
|
|
|
+ }
|
|
|
+ .tool-tip-for-editor {
|
|
|
+ margin-left: 4px;
|
|
|
+ font-size: 12px;
|
|
|
+ cursor: default;
|
|
|
+ position: relative;
|
|
|
+ top: -2px;
|
|
|
+ }
|
|
|
+ .image-selection {
|
|
|
+ width: 50%;
|
|
|
+ display: inline-block;
|
|
|
+ margin-top: 16px;
|
|
|
+ .title {
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
+ font-size: 14px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ }
|
|
|
+ .bottom {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-start;
|
|
|
+ img {
|
|
|
+ width: 136px;
|
|
|
+ height: 136px;
|
|
|
+ background: #1A1B1D;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid #404040;
|
|
|
+ margin-right: 16px;
|
|
|
+ object-fit: cover;
|
|
|
+ }
|
|
|
+ .bottom-right {
|
|
|
+ display: inline-block;
|
|
|
+ button {
|
|
|
+ margin-bottom: 20px;
|
|
|
+ }
|
|
|
+ .ui-remark {
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|