Aucune description

ccj 8f83af63b6 Merge branch 'master' of http://git.zthymaoyi.com/gongdecai/wangluohuoyun-huozhuapp il y a 1 an
.hbuilderx 43ea6f91dd 1 il y a 1 an
api 106a525a3d 初始化 il y a 2 ans
common 6bfb7b6ae0 1 il y a 1 an
components bd4b8420ec 货站 il y a 1 an
config 768303c851 更新 il y a 1 an
hybrid bd4b8420ec 货站 il y a 1 an
js_sdk 106a525a3d 初始化 il y a 2 ans
pages 43ea6f91dd 1 il y a 1 an
public 106a525a3d 初始化 il y a 2 ans
static bd4b8420ec 货站 il y a 1 an
store 9e133714e1 更新 il y a 2 ans
uni_modules 76d389752e 更新 il y a 1 an
unpackage 13c52defc1 更新 il y a 1 an
util ce32b13695 更新 il y a 1 an
.gitignore 7264969d00 前端 il y a 1 an
App.vue bd4b8420ec 货站 il y a 1 an
PacketCodeC.js 106a525a3d 初始化 il y a 2 ans
README.md 4c90f1d5ba 1 il y a 2 ans
demo.vue bd4b8420ec 货站 il y a 1 an
index.html 106a525a3d 初始化 il y a 2 ans
main.js 106a525a3d 初始化 il y a 2 ans
manifest.json 768303c851 更新 il y a 1 an
package.json 4f749cc8ea 引入日期组件 il y a 2 ans
pages.json bd4b8420ec 货站 il y a 1 an
scrolldemo.vue 106a525a3d 初始化 il y a 2 ans
uni.scss 106a525a3d 初始化 il y a 2 ans
webim.js 106a525a3d 初始化 il y a 2 ans
websocket_sdk.js 51711aa07c 更新 il y a 2 ans
zhiyunhuozhu.keystore 51711aa07c 更新 il y a 2 ans

README.md

uniapp开发模板

介绍

uni-app项目开发模板,集成了u-view 2.0、基于uni-request封装、token验证、websocket、页面权限、按钮权限、mescoll上拉加载、下拉刷新、热更新、推送

常用u-view组件及方法

常用view功能在根目录demo页面

公共样式

常用css公共变量在 uni.scss和uni_modules\uview-ui目录下的theme.scss, 全局公共样式可以在theme.scss文件配置,也可以在static文件夹common.scss 配置 全局样式包括但不限于内容布局、文字大小、颜色、公共组件css。 常用css样式配置在common.scss文件中,常用flex布局、常用对齐方式、常用内边距、外边距

图片/视频上传和拍照上传

点击按钮上传文件 image/video import uploadImage from '@/components/ossutil/uploadFile.js';

uni.chooseImage({
                count: 1, 
                success: function (res) {
                    console.log(JSON.stringify(res.tempFilePaths));
                    uploadImage('image',res.tempFilePaths[0], 'appData/',
                        result => {
                            // 上传成功
                            console.log('图片地址', result)
                        }
                    )
                }
            });