2024-12-03 09:34:24 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view>
|
2025-01-22 20:25:38 +08:00
|
|
|
|
<!-- <el-container class="pc-container">
|
2024-12-03 09:34:24 +08:00
|
|
|
|
<view class="pc-header">
|
2025-01-06 00:54:54 +08:00
|
|
|
|
<Header :isLogin="isLogin" />
|
2024-12-03 09:34:24 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view style="width: 100%;height: 100rpx;"></view>
|
|
|
|
|
<view class="pc-main">
|
2025-01-06 00:54:54 +08:00
|
|
|
|
<component ref="pageRef" :is="refs[current]" />
|
2024-12-03 09:34:24 +08:00
|
|
|
|
</view>
|
|
|
|
|
</el-container>
|
2025-01-06 00:54:54 +08:00
|
|
|
|
<Loading :show="loading" />
|
|
|
|
|
<u-back-top class="back-top" :scrollTop="scrollTop" zIndex="100" :iconStyle="{ color: '#fff', fontSize: '50rpx' }"
|
|
|
|
|
:customStyle="{background: 'linear-gradient(180deg, #96fe11 0%, #f0fdbf 100%)',
|
2025-01-22 20:25:38 +08:00
|
|
|
|
filter: 'opacity(0.96)', width: '120rpx', height: '120rpx'}" /> -->
|
|
|
|
|
<view class="all-diabled" :style="{backgroundImage: `url(${fileUrl+pcBackground})`}">
|
|
|
|
|
<image class="all-sleep" :src="fileUrl+sleep"></image>
|
|
|
|
|
<view class="all-content">
|
|
|
|
|
PC端开发中,请移步移动端复制并打开以下网址
|
|
|
|
|
</view>
|
|
|
|
|
<text @click="copyUrl">{{ ip }}pixel/#/pages/mobile_web/index/index</text>
|
|
|
|
|
</view>
|
|
|
|
|
<u-toast ref="uToast"></u-toast>
|
2024-12-03 09:34:24 +08:00
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import Header from './components/header.vue';
|
2025-01-06 00:54:54 +08:00
|
|
|
|
import Home from '@/pages/pc_web/home/home.vue';
|
2025-01-22 20:25:38 +08:00
|
|
|
|
import configService from '@/common/config.service.js';
|
|
|
|
|
import { tools } from '@/utils/utils.js';
|
2024-12-03 09:34:24 +08:00
|
|
|
|
export default {
|
|
|
|
|
components:{
|
2025-01-06 00:54:54 +08:00
|
|
|
|
Header, Home
|
2024-12-03 09:34:24 +08:00
|
|
|
|
},
|
|
|
|
|
data(){
|
|
|
|
|
return{
|
2025-01-22 20:25:38 +08:00
|
|
|
|
// 基础路径
|
|
|
|
|
ip: configService.ip,
|
|
|
|
|
fileUrl: configService.fileUrl + 'pixel/pc/',
|
2025-01-06 00:54:54 +08:00
|
|
|
|
// 当前页码下标
|
|
|
|
|
current: uni.getStorageSync('pc_current')||0,
|
|
|
|
|
// refs组件列表
|
|
|
|
|
refs: ['home'],
|
|
|
|
|
// 加载
|
|
|
|
|
loading: false,
|
|
|
|
|
// 滚动顶部
|
|
|
|
|
scrollTop: 0,
|
2025-01-22 20:25:38 +08:00
|
|
|
|
// 禁用pc端的背景图片
|
|
|
|
|
pcBackground: 'pc-background.png',
|
|
|
|
|
// 禁用pc端的缺省图
|
|
|
|
|
sleep: 'sleep.png',
|
2024-12-03 09:34:24 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2025-01-06 00:54:54 +08:00
|
|
|
|
computed: {
|
|
|
|
|
// 登录状态
|
|
|
|
|
isLogin(){
|
|
|
|
|
return this.$store.state.vuex_token;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onPageScroll(e) {
|
|
|
|
|
this.scrollTop = e.scrollTop;
|
|
|
|
|
},
|
2024-12-03 09:34:24 +08:00
|
|
|
|
onLoad() {
|
|
|
|
|
},
|
2025-01-22 20:25:38 +08:00
|
|
|
|
methods:{
|
|
|
|
|
copyUrl(){
|
|
|
|
|
let that = this;
|
|
|
|
|
tools.methods.uniCopy({
|
|
|
|
|
content: that.ip+'pixel/#/pages/mobile_web/index/index',
|
|
|
|
|
success: (result)=>{
|
|
|
|
|
that.$refs.uToast.show({type: 'success', title: result});
|
|
|
|
|
},
|
|
|
|
|
error: (result)=>{
|
|
|
|
|
that.$refs.uToast.show({type: 'error', title: result});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-12-03 09:34:24 +08:00
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.pc-container{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
.pc-header{
|
|
|
|
|
width: 100%;
|
2025-01-06 00:54:54 +08:00
|
|
|
|
height: 120rpx;
|
|
|
|
|
z-index: 90;
|
2024-12-03 09:34:24 +08:00
|
|
|
|
box-shadow: 0 5rpx 10rpx 0 #dcdae4;
|
|
|
|
|
position: fixed;
|
|
|
|
|
}
|
|
|
|
|
.pc-main{
|
|
|
|
|
background-color: #edecf1;
|
2025-01-06 00:54:54 +08:00
|
|
|
|
}
|
|
|
|
|
.back-top{
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
&:hover{
|
|
|
|
|
box-shadow: 0 0 20rpx #d8fc92;
|
2024-12-03 09:34:24 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2025-01-22 20:25:38 +08:00
|
|
|
|
.all-diabled{
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
position: fixed;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
background-color: rgba(0,0,0,0.5);
|
|
|
|
|
background-size: cover;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
font-size: 50rpx;
|
|
|
|
|
.all-sleep{
|
|
|
|
|
margin-top: -300rpx;
|
|
|
|
|
width: 1000rpx;
|
|
|
|
|
height: 1000rpx;
|
|
|
|
|
}
|
|
|
|
|
.all-content{
|
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
color: #efcb89;
|
|
|
|
|
}
|
|
|
|
|
text{
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
background-image: linear-gradient(to right, #f9f1cb 0%, #efcb89 100%);
|
|
|
|
|
background-clip: text;
|
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
|
&:hover{
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
}
|
|
|
|
|
&:active{
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-12-03 09:34:24 +08:00
|
|
|
|
</style>
|