2025-10-17

商城详情页
收获地址
This commit is contained in:
2025-10-17 14:10:49 +08:00
parent 980cc496ba
commit d897dc1079
7 changed files with 226 additions and 14 deletions

View File

@@ -35,11 +35,13 @@
<script setup lang="ts">
import { onMounted, ref, getCurrentInstance } from 'vue';
import {
onLoad
} from '@dcloudio/uni-app';
import { mallAPI } from '../../api/mall';
const instance = getCurrentInstance();
const scrollHeight = ref(0)
const loadHeight = () => {
uni.getSystemInfo({
success(res) {
@@ -54,8 +56,21 @@
})
}
const dataId = ref()
const loadData = () => {
mallAPI.getMallDetail(dataId.value).then(res => {
console.log(res);
})
}
onLoad((val) => {
dataId.value = val.id
})
onMounted(() => {
loadHeight()
loadData()
})
</script>