# QiTu_App **Repository Path**: mapleSong/QiTu_App ## Basic Information - **Project Name**: QiTu_App - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2019-08-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 基本用法 ``` $ npm install $ npm run dev //编译 $ npm run build //打包 注:如果遇到vue-loader编译错误,需要锁定三个包的版本 "mpvue": "1.0.18", "mpvue-loader": "1.1.4", "mpvue-template-compiler": "1.0.18" ``` ## 目录结构 ``` |-- qitu_consumer |-- .DS_Store |-- .babelrc |-- .editorconfig |-- .gitignore |-- .postcssrc.js |-- README.md |-- package.json |-- project.config.json |-- build | |-- build.js | |-- check-versions.js | |-- dev-server.js | |-- utils.js | |-- vue-loader.conf.js | |-- webpack.base.conf.js | |-- webpack.dev.conf.js | |-- webpack.prod.conf.js |-- config | |-- dev.env.js | |-- index.js | |-- prod.env.js |-- src | |-- .DS_Store | |-- App.vue | |-- app.json | |-- main.js | |-- components | | |-- .DS_Store | | |-- Discuss //评论展示组件 | | | |-- index.vue | | |-- FlowData //瀑布流组件 | | | |-- index.vue | | |-- LoginBox //登录弹窗(未使用) | | | |-- index.vue | | |-- UploadTip //上传结果弹窗 | | |-- index.vue | |-- http | | |-- api.js | | |-- index.js | |-- libs | | |-- qqmap-wx-jssdk.min.js | |-- mixin | | |-- uploadImage.js | |-- pages | | |-- .DS_Store | | |-- citySearch //城市搜索 | | | |-- city.js | | | |-- index.vue | | |-- detail //地点介绍详情 | | | |-- index.vue | | | |-- components | | | |-- ImageSwiper.vue | | | |-- Recommend.vue | | |-- home //首页 | | | |-- index.vue | | |-- moreDiscuss //更多评论 | | | |-- index.vue | | |-- moreNav //更多地点类型导航 | | | |-- index.vue | | |-- openSetting //小程序权限获取提示页 | | | |-- index.vue | | |-- searchResult //搜索结果 | | | |-- index.vue | | |-- typeDetail //地点类型搜索 | | | |-- index.vue | | |-- upload | | | |-- .DS_Store | | | |-- pickType //选择用户类型/上传地点类型 | | | | |-- index.vue | | | |-- uploadInfo //上传地点信息页 | | | |-- index.scss | | | |-- index.vue | | | |-- components | | | |-- Select.vue | | |-- user //用户页 | | | |-- index.vue | | |-- writeDiscuss //写评论 | | |-- index.vue | |-- store //vuex | | |-- getters.js | | |-- index.js | | |-- modules | | |-- upload.js //上传内容相关 | | |-- user.js //用户信息相关 | |-- styles | | |-- _variables.scss | | |-- index.scss | | |-- mixin.scss | |-- utils | | |-- .DS_Store | | |-- hack.js | | |-- index.js | | |-- tip.js | | |-- wxApi | | |-- header.js | | |-- native.js //小程序API | | |-- request.js //请求API封装 | |-- variables | |-- siteNav.js //默认地点类型导航数据 | |-- uploadDefaultTags.js //默认上传信息数据 |-- static |-- .DS_Store |-- .gitkeep |-- icon |-- images | |-- page | |-- tab |-- native ``` ## 用户验证方式 进入小程序后立即调用登录接口,无论是新老用户都会得到一个openid。 用户的openid,用户信息,用户状态都在进入小程序的第一时间获取并存入: |— store ​ | | |— user.js **注:页面的所有功能判断都依赖于user中的用户信息做判断** #### -新用户- 用户信息为空,使用功能有限,需要时机提示获取。 #### -老用户- 用户信息以上传到后台。可使用所有功能。