小程序
前端小小坤
这个作者很懒,什么都没留下…
展开
-
小程序---横向轮播图
按照官网API可能看不懂,那么就参照以下方法 <view class="section__title">vertical scroll</view> <scroll-view scroll-x style="height: 200px;display:flex;white-space:nowrap" //添加display:flex;...原创 2019-02-15 11:13:34 · 655 阅读 · 0 评论 -
小程序快速入手
一、基本样式的配置 页面的头部显示名片 页面跳转的方法 可以跳转到底部选项卡。 totallist 横向滚动的问题 <scroll-view scroll-x="true" style=" white-space: nowrap; display: flex" > <!-- display: inline-block--> 接口请求 数据的展示 ...原创 2019-06-15 13:58:57 · 198 阅读 · 0 评论 -
小程序封装全局POST和GET的方法
在写小程序的时候,我们最好使用的是全局环境来调用接口,这样我们可以在改域名地址的时候会显得很方便 config.js里面的是自己放置接口地址的地方 userApi.js里面专门放置咩个接口调用的方法 request.js里面是自己封装的POST和GET方法 config.js var app = getApp() const config = { url:'接口的地址...原创 2019-07-16 17:27:18 · 1408 阅读 · 0 评论 -
小程序悬浮框拖拽事件
wxml <view> <!-- 需要点击事件的话加个bindtap就行 --> <view catchtouchmove="buttonMove" bindtouchstart="buttonStart" catchtouchend="buttonEnd" style="top:{{buttonTop}}px;left:{{buttonLeft}}px;wi...原创 2019-09-04 14:17:20 · 944 阅读 · 0 评论