
uni-app
dear_Zzzx
时间从来不语,却回答了所有问题。
展开
-
uniapp微信小程序之拍照,相册选取
<image src="../../static/images/photo.png" @click="photo()" mode=""></image>点击事件photo()methods: { //小程序调起拍照和相册 photo(){ uni.chooseImage({ count:1, sizeType:['original','compressed'], sourceType:['camera','album'],.原创 2020-10-29 18:06:57 · 2396 阅读 · 0 评论 -
uniapp微信小程序之头部导航
html代码<!-- 中部导航 --> <view class="tabbar"> <scroll-view scroll-with-animation scroll-x="true"> <block v-for="(item,index) in tabBars" :key="index"> <view class="scroll-tab-item" :class="{'active': tabIndex==index}原创 2020-10-29 18:03:45 · 733 阅读 · 0 评论 -
uniapp微信小程序之轮播图
html代码<!-- 轮播图 --> <view class="image-swiper"> <swiper class="swiper" indicator-dots="true" autoplay="true" interval="5000" duration="1500" > <swiper-item v-for="(item , index) in imageAll" :key="index"&原创 2020-10-29 17:58:31 · 1724 阅读 · 0 评论 -
uniapp微信小程序之图片/视频下载
图片和视频下载只需注意一个函数(其他代码一样):saveVideoToPhotosAlbum //视频下载saveImageToPhotosAlbum //图片下载一:图片下载<!-- 下载图片 start --> <view class="download"> <view class="download_btn" @click=...原创 2020-04-22 17:42:42 · 1165 阅读 · 0 评论 -
uniapp微信小程序之滚动页面加载数据
<scroll-view enable-flex scroll-y @scrolltolower="handleToLower" class="category_tab_content"> <view class="cate_item" v-for="item in vertical" :key="item....原创 2020-04-20 18:24:27 · 1419 阅读 · 0 评论 -
uniapp微信小程序之图片左右滑动加载上下页
1:在src下创建一个components组件文件 在创建滑动封装组件文件在文件中封装滑动。handleTouchstart :手指按下 ,handleTouchend:手指离开 。话不多说 拉代码。<template> <view @touchstart="handleTouchstart" @touchend="handle...原创 2020-04-18 17:13:48 · 1174 阅读 · 0 评论