update
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
{
|
||||
"pages": [
|
||||
// #ifdef MP-WEIXIN
|
||||
{
|
||||
"path": "pages/weixinHome/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "图图岛"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
|
||||
@@ -32,7 +32,9 @@ const success = async () => {
|
||||
watch(
|
||||
() => [data, current],
|
||||
() => {
|
||||
content.push(...data.children.back[current.value].content_arr);
|
||||
if (data.children.back[current.value]?.content_arr) {
|
||||
content.push(...data.children.back[current.value].content_arr);
|
||||
}
|
||||
},
|
||||
{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
|
||||
},
|
||||
success: ({data}) => {
|
||||
res(JSON.parse(data).data);
|
||||
res(JSON.parse(data));
|
||||
},
|
||||
fail: (err) => {
|
||||
showToast(err.errMsg);
|
||||
|
||||
Reference in New Issue
Block a user