1.关于设置背景图问题
uni-app不支持在css中设置背景图,可以设置图片的base64编码
<view :style="{backgroundImage:'url('+imageBase64+')',backgroundSize: 'cover'}"></view>
//其中imageBase64就是64编码
2.uni-app中提示
uni.showToast({
title: '提示文字',
duration: 3000,
icon:'none'
});
3.接口请求
uni.request({
url:'',
data:'',
method:'',
success:(res)=>{
console.log(res);
}
})
4.点击延长跳转
setTimeout(function () {
uni.navigateTo({
url:"../index/index"
})
}, 4000);
5.uni-app中图片轮播
<view class="uni-margin-wrap">
<swiper class="swiper":indicator-dots="indicatorDots" :autoplay="autoplay" :loop="loop" :interval="