update
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
|
{
|
||||||
|
"path": "pages/weixinHome/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "图图岛"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ const success = async () => {
|
|||||||
watch(
|
watch(
|
||||||
() => [data, current],
|
() => [data, current],
|
||||||
() => {
|
() => {
|
||||||
|
if (data.children.back[current.value]?.content_arr) {
|
||||||
content.push(...data.children.back[current.value].content_arr);
|
content.push(...data.children.back[current.value].content_arr);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{deep: true, immediate: true}
|
{deep: true, immediate: true}
|
||||||
)
|
)
|
||||||
|
|||||||
46
src/pages/weixinHome/index.vue
Normal file
46
src/pages/weixinHome/index.vue
Normal 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>
|
||||||
@@ -152,7 +152,7 @@ export const uploadFile = ({count}) => {
|
|||||||
token: UserStore.token
|
token: UserStore.token
|
||||||
},
|
},
|
||||||
success: ({data}) => {
|
success: ({data}) => {
|
||||||
res(JSON.parse(data).data);
|
res(JSON.parse(data));
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
showToast(err.errMsg);
|
showToast(err.errMsg);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {defineConfig} from 'vite';
|
import {defineConfig} from 'vite';
|
||||||
import uni from '@dcloudio/vite-plugin-uni';
|
import uni from '@dcloudio/vite-plugin-uni';
|
||||||
// import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
|
import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
|
||||||
import tailwindcss from '@tailwindcss/postcss'
|
import tailwindcss from '@tailwindcss/postcss'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@@ -10,9 +10,9 @@ export default defineConfig({
|
|||||||
defineModel: true,
|
defineModel: true,
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
// UnifiedViteWeappTailwindcssPlugin({
|
UnifiedViteWeappTailwindcssPlugin({
|
||||||
// rem2rpx: true,
|
rem2rpx: true,
|
||||||
// })
|
})
|
||||||
],
|
],
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
|
|||||||
Reference in New Issue
Block a user