canvas代码优化
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { ref, onMounted, watch } from "vue";
|
||||
import { ref, onMounted } from "vue";
|
||||
import { onShow, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
|
||||
import Container from "@/components/Container.vue";
|
||||
import AppFooter from "@/components/AppFooter.vue";
|
||||
@@ -8,7 +8,6 @@ import UserHeader from "@/components/UserHeader.vue";
|
||||
import SModal from "@/components/SModal.vue";
|
||||
import Signin from "@/components/Signin.vue";
|
||||
import BubbleTip from "@/components/BubbleTip.vue";
|
||||
import ScreenHint2 from "@/components/ScreenHint2.vue";
|
||||
|
||||
import {
|
||||
getAppConfig,
|
||||
@@ -35,7 +34,6 @@ const {
|
||||
const { user, device, rankData, online } = storeToRefs(store);
|
||||
const showModal = ref(false);
|
||||
const showGuide = ref(false);
|
||||
const showTheUser = ref(false);
|
||||
|
||||
const toPage = async (path) => {
|
||||
if (!user.value.id) {
|
||||
@@ -58,22 +56,6 @@ const toRankListPage = () => {
|
||||
});
|
||||
};
|
||||
|
||||
watch(
|
||||
() => user.value.id,
|
||||
(newVal) => {
|
||||
if (newVal && "823,209,293,257,210,290".indexOf(newVal) !== -1) {
|
||||
const show = uni.getStorageSync("show-the-user");
|
||||
if (!show) {
|
||||
showTheUser.value = true;
|
||||
uni.setStorageSync("show-the-user", true);
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
deep: false,
|
||||
}
|
||||
);
|
||||
|
||||
onShow(async () => {
|
||||
const token = uni.getStorageSync(
|
||||
`${uni.getAccountInfoSync().miniProgram.envVersion}_token`
|
||||
@@ -265,23 +247,6 @@ onShareTimeline(() => {
|
||||
<SModal :show="showModal" :onClose="() => (showModal = false)">
|
||||
<Signin :onClose="() => (showModal = false)" />
|
||||
</SModal>
|
||||
<ScreenHint2 :show="showTheUser" :onClose="() => (showTheUser = false)">
|
||||
<view class="tip-content">
|
||||
<text>公告</text>
|
||||
<text>小程序问题找客服 1v1 解答!</text>
|
||||
<view>
|
||||
<text>反馈 bug 可领取红包</text>
|
||||
<image src="../static/hongbao.png" mode="widthFix" />
|
||||
</view>
|
||||
<text>射箭爱好者群等你,扫码加入~</text>
|
||||
<image
|
||||
src="../static/service-wechat.png"
|
||||
mode="widthFix"
|
||||
show-menu-by-longpress
|
||||
/>
|
||||
<text>长按添加客服</text>
|
||||
</view>
|
||||
</ScreenHint2>
|
||||
</view>
|
||||
<AppFooter />
|
||||
</Container>
|
||||
@@ -467,41 +432,6 @@ onShareTimeline(() => {
|
||||
line-height: 25px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.tip-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
line-height: 42rpx;
|
||||
padding: 40rpx;
|
||||
}
|
||||
.tip-content > text:first-child {
|
||||
font-weight: 500;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
.tip-content > view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.tip-content > view > image {
|
||||
width: 26rpx;
|
||||
height: 32rpx;
|
||||
margin-left: 5rpx;
|
||||
}
|
||||
.tip-content > image {
|
||||
width: 302rpx;
|
||||
height: 302rpx;
|
||||
margin: 10rpx;
|
||||
}
|
||||
.tip-content > text:last-child {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.top-theme {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user