|
@@ -64,11 +64,6 @@
|
|
|
</div>
|
|
|
<div class="pinBottom right hideTarget">
|
|
|
<div class="rightViewContainer clearfix">
|
|
|
- <div class="helper-btn" title="指引" @click="openHelper"></div>
|
|
|
- <div class="good-btn" title="点赞" :class="{ active: staring }" @click="handleStar">
|
|
|
- <div />
|
|
|
- <span v-if="staring">{{ staringString }}</span>
|
|
|
- </div>
|
|
|
<div id="sharing" class="ui-icon wide" title="分享" @click="copyUrl"></div>
|
|
|
<div id="volume" class="ui-icon wide" style="display: none"></div>
|
|
|
<div id="vr" class="ui-icon wide hidden" style="display: none">
|
|
@@ -105,27 +100,16 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
- import { computed, onMounted, onUnmounted, ref } from 'vue';
|
|
|
+ import { onMounted, onUnmounted, ref } from 'vue';
|
|
|
import clipboard from 'clipboard';
|
|
|
- import PlayIcon from '@/assets/images/zgrs/play.png';
|
|
|
- import PauseIcon from '@/assets/images/zgrs/pause.png';
|
|
|
+ import PauseIcon from '@/assets/images/syjy/icon-manyou-1-min.png';
|
|
|
+ import PlayIcon from '@/assets/images/syjy/icon-manyou-min.png';
|
|
|
import { homeApi } from '@/api';
|
|
|
import HotSpotList from '../hot-spot-list';
|
|
|
|
|
|
let helperVisible = false;
|
|
|
const hotspotActive = ref(false);
|
|
|
const starSum = ref(0);
|
|
|
- const staring = ref(false);
|
|
|
- const staringString = computed(() => {
|
|
|
- const value = starSum.value;
|
|
|
- if (value >= 10000) {
|
|
|
- return `${Math.floor(value / 10000)}w+`;
|
|
|
- } else if (value >= 1000) {
|
|
|
- return `${Math.floor(value / 1000)}k+`;
|
|
|
- } else {
|
|
|
- return value.toString();
|
|
|
- }
|
|
|
- });
|
|
|
|
|
|
const copyUrl = () => {
|
|
|
clipboard.copy(window.location.href);
|
|
@@ -138,14 +122,6 @@
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- const openHelper = () => {
|
|
|
- window
|
|
|
- .$('#interaction-modal')
|
|
|
- // @ts-ignore
|
|
|
- .addClass(`fadeIn ${window.browser.isMobile() ? 'mobile' : 'desktop'}`);
|
|
|
- helperVisible = true;
|
|
|
- };
|
|
|
-
|
|
|
const closeHelper = () => {
|
|
|
window.$('#interaction-modal').removeClass('fadeIn');
|
|
|
helperVisible = false;
|
|
@@ -172,23 +148,6 @@
|
|
|
starSum.value = data.starSum;
|
|
|
};
|
|
|
|
|
|
- const handleStar = async () => {
|
|
|
- if (staring.value) return;
|
|
|
-
|
|
|
- staring.value = true;
|
|
|
- starSum.value++;
|
|
|
-
|
|
|
- try {
|
|
|
- await homeApi.saveStar(window.number);
|
|
|
-
|
|
|
- setTimeout(() => {
|
|
|
- staring.value = false;
|
|
|
- }, 1000);
|
|
|
- } catch (err) {
|
|
|
- starSum.value--;
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
onMounted(() => {
|
|
|
getDetail();
|
|
|
|
|
@@ -205,5 +164,5 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
- @import './index.zgrs.scss';
|
|
|
+ @import './index.syjy.scss';
|
|
|
</style>
|