wepy实现九宫格

注册页面
pages目录下新建文件夹example,并在此新建example.wpy;同理新建book.wpy,vote.wpy,test.wpy
在app.vue中添加注册信息,example放在indexi前

<!--app.wpy-->
<config>
{
    "pages":[
        "pages/example/example",
        "pages/index/index"
    ]
}
</config>

九宫格组件
components目录下新建组件grids.wpy

template模板代码

<!--grids.wpy-->
<template>
    <div class="grids-list">
        <div class="list-item" v-for="(grid,index) in grids" v-bind:key="index" >
          <!-- <router-link v-bind:to="grid.router.path"> -->
            <navigator url="{{grid.router.path}}" open-type="navigate" hover-class="none">
              <img :src="grid.src"/>
              <p>{{grid.title}}</p>
            </navigator>
          <!-- </router-link> -->
        </div> 
    </div>
</template>

css样式

<!--grids.wpy-->
.grids-list {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.list-item {
  width: 33%;
  height: 100px;
  text-align: center;
  font-size: 12px;
  margin-top: 15px;
}
.list-item image {
  width: 80px;
  height: 80px;
}
.opacity {
  opacity: 0.4;
  background: #e5e5e5;
}

引用组件
example.wpy中引用grids.wpy组件
在example.wpy的

template模板代码

<template>
<div>
    <grids></grids>
</div>
</template>

项目目录
在这里插入图片描述
参考链接:https://shimo.im/docs/TdPj8dpcxJpHT6HH/

期末大作业基于python的足球运动员数据分析源码+数据集(高分项目),个人经导师指导并认可通过的高分设计项目,评审分98分,项目中的源码都是经过本地编译过可运行的,都经过严格调试,确保可以运行!主要针对计算机相关专业的正在做大作业、毕业设计的学生和需要项目实战练习的学习者,资源项目的难度比较适中,内容都是经过助教老师审定过的能够满足学习、使用需求,如果有需要的话可以放心下载使用。 期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于python的足球运动员数据分析源码+数据集(高分项目)期末大作业基于pyth
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值