前面我们把配置文件app.json详解了一下【点击查看】,现在我们离开发越来越近了,啥也不多说,搞起搞起
我们主要看pages目录,这个是我们以后开发的重中之重
嗯,我们先看到共性,每个文件夹中都有index.vue和main.js
其中index.vue就是我们的页面内容,我们打开index目录下的index.vue文件看一下
<template>
<div @click="clickHandle">
<div class="userinfo" @click="bindViewTap">
<img class="userinfo-avatar" v-if="userInfo.avatarUrl" :src="userInfo.avatarUrl" background-size="cover" />
<img class="userinfo-avatar" src="/static/images/user.png" background-size="cover" />
<div class="userinfo-nickname">