This commit is contained in:
2025-06-10 14:04:16 +08:00
parent 03ecb95a9b
commit 703ccc6e28
5 changed files with 60 additions and 6 deletions

View File

@@ -1,6 +1,12 @@
{
"pages": [
// #ifdef MP-WEIXIN
{
"path": "pages/weixinHome/index",
"style": {
"navigationBarTitleText": "图图岛"
}
},
{
"path": "pages/index/index",
"style": {

View File

@@ -32,7 +32,9 @@ const success = async () => {
watch(
() => [data, current],
() => {
if (data.children.back[current.value]?.content_arr) {
content.push(...data.children.back[current.value].content_arr);
}
},
{deep: true, immediate: true}
)

View File

@@ -0,0 +1,46 @@
<script setup lang="ts">
import {download} from "../../utils/uils";
const DATA = [
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-1.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-2.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-3.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-4.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-5.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-6.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-7.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-8.jpg',
},
{
src: 'https://admin.ceshi.guo123.cn/static/images/mock-9.jpg',
},
];
</script>
<template>
<view class="grid grid-cols-3 w-full gap-[24rpx] p-[24rpx]">
<view class="w-full !flex !flex-col items-center gap-[24rpx]" v-for="v in DATA">
<image class="w-full h-[300rpx] rounded-[24rpx] overflow-hidden" :src="v.src" mode="aspectFill"></image>
<tui-button width="150rpx" height="60rpx" @click="download([v.src])">下载</tui-button>
</view>
</view>
</template>
<style scoped lang="scss">
</style>

View File

@@ -152,7 +152,7 @@ export const uploadFile = ({count}) => {
token: UserStore.token
},
success: ({data}) => {
res(JSON.parse(data).data);
res(JSON.parse(data));
},
fail: (err) => {
showToast(err.errMsg);

View File

@@ -1,6 +1,6 @@
import {defineConfig} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
// import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
import tailwindcss from '@tailwindcss/postcss'
export default defineConfig({
@@ -10,9 +10,9 @@ export default defineConfig({
defineModel: true,
}
}),
// UnifiedViteWeappTailwindcssPlugin({
// rem2rpx: true,
// })
UnifiedViteWeappTailwindcssPlugin({
rem2rpx: true,
})
],
css: {
postcss: {