cashier_wx/pages/index/text.vue

65 lines
1.5 KiB
Vue

<template>
<view>
<Nav />
<view class="content" :style="{ marginTop: `${store.height}px` }">
<!-- 轮播图 -->
<swipers :carousel='hometoplist.carousel'></swipers>
</view>
</view>
</template>
<script setup>
import {
ref,
computed,
onMounted
} from "vue";
import {
onLoad,
onReady,
onShow
} from '@dcloudio/uni-app'
import swipers from './components/swiper.vue' //引入轮播
import popupad from '@/components/popupad.vue'
import diamond from './components/diamond.vue'
import todaylist from './components/todaylist.vue'
import productlist from './components/productlist.vue'
import advertisement from './components/advertisement.vue'
import category from '@/components/qiyue-category/qiyue-category.vue';
import indexs from './indexs.vue';
import Nav from '@/components/indexnav.vue'; //导航栏
import {
useNavbarStore
} from '@/stores/navbarStore';
const store = useNavbarStore();
// 动态更新导航栏配置
store.updateNavbarConfig({
showBack: true, //左边返回键
rightText: '', //右边文字
showSearch: true, //true是标题其他事文字
title: '我的页面',
isTransparent: false,
hasPlaceholder: false //是否要占位符
});
const targetObj = {
a: 1
};
const sourceObj1 = {
b: 2
};
const sourceObj2 = {
c: 3
};
// 将 sourceObj1 和 sourceObj2 的属性复制到 targetObj
const result = Object.assign(targetObj, sourceObj1, sourceObj2);
console.log(result);
</script>
<style lang="scss">
.content {
height: 1000vh;
}
</style>