This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import Taro from "@tarojs/taro";
|
||||
import {ref} from 'vue';
|
||||
import Taro from '@tarojs/taro';
|
||||
|
||||
const show = ref(false);
|
||||
|
||||
@@ -14,7 +14,7 @@ defineProps({
|
||||
src: {
|
||||
required: true,
|
||||
type: String,
|
||||
default: "",
|
||||
default: '',
|
||||
},
|
||||
type: Number,
|
||||
cb: {
|
||||
@@ -25,7 +25,7 @@ defineProps({
|
||||
});
|
||||
|
||||
Taro.useLoad(async () => {
|
||||
if (Taro.getStorageSync("token")) show.value = true;
|
||||
if (Taro.getStorageSync('token')) show.value = true;
|
||||
// const res = await getSignRecord()
|
||||
// console.log(res)
|
||||
});
|
||||
@@ -35,8 +35,7 @@ Taro.useLoad(async () => {
|
||||
<nut-overlay
|
||||
v-model:visible="show"
|
||||
:lock-scroll="true"
|
||||
:close-on-click-overlay="false"
|
||||
>
|
||||
:close-on-click-overlay="false">
|
||||
<view class="wrapper">
|
||||
<view @click.stop="cb(type)">
|
||||
<image class="image" :src="src" />
|
||||
|
||||
Reference in New Issue
Block a user