This commit is contained in:
2025-05-07 08:50:01 +08:00
parent 5325281fb4
commit f085b3c79b
7 changed files with 269 additions and 143 deletions

View File

@@ -6,10 +6,12 @@ export default {
onLaunch: function () {
},
onShow: function () {
// #ifndef MP-WEIXIN
const UserStore = useUserStore();
if (!UserStore.isLogin) {
toPage('/pages/login/index');
}
// #endif
},
onHide: function () {
},

View File

@@ -24,7 +24,12 @@ const preview = () => {
<template>
<!-- #ifndef MP-WEIXIN -->
<image @click="preview" v-bind="$attrs" :src="src" mode="aspectFill"></image>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<image @click="preview" :src="src" mode="aspectFill"></image>
<!-- #endif -->
<view
v-if="show"
@@ -38,8 +43,9 @@ const preview = () => {
</swiper-item>
</swiper>
<view class="bg-[rgba(255,255,255,.3)] text-[#fff] test-28r rounded-full px-[20rpx] py-[6rpx] fixed left-1/2 -translate-x-1/2">
{{cur+1}} / {{list.length}}
<view
class="bg-[rgba(255,255,255,.3)] text-[#fff] test-28r rounded-full px-[20rpx] py-[6rpx] fixed left-1/2 -translate-x-1/2">
{{ cur + 1 }} / {{ list.length }}
</view>
</template>
<template v-else>

View File

@@ -50,7 +50,7 @@
"quickapp": {},
/* */
"mp-weixin": {
"appid": "",
"appid": "wxcd6a96b9a22754f4",
"setting": {
"urlCheck": false
},