小程序
Lvdon9
这个作者很懒,什么都没留下…
展开
-
scroll小程序
<scroll-view scroll-y="true" scroll-into-view="{{qwe}}" bindscroll="asd" style="height:100vh;"> //style="height:{{swiperHeight}};" 重点 <swiper class="_swiper width-100p" style="height:{{swiperHeight}};" autoplay="{{carousel.length == 1 ? fal原创 2021-07-30 16:55:56 · 76 阅读 · 0 评论 -
小程序点赞
dianzan(e){ let isdz=e.currentTarget.dataset.isdz; let id = e.currentTarget.dataset.isid; if (isdz==0){ businessRequest.getData('Home/newsPraise', this, { index:4, ...原创 2019-09-16 15:38:46 · 398 阅读 · 0 评论 -
小程序tap
<view class="tabs"> <jc-tabs list="{{tab_list}}" color="#009942" bind:switch="switchTab" view-key="name" scroll="true" active="{{status}}"></jc-tabs> </view>switch...原创 2019-09-16 15:37:53 · 805 阅读 · 0 评论 -
小程序绑定单选
<view class="xls" wx:for="{{list}}" wx:key="id" data-index='{{index}}' bindtap="check" data-id="{{item.id}}"> <text wx:if="{{checkid == item.id}}" class="iconfont icon-xuanzhongjiaob...原创 2019-09-06 16:38:30 · 222 阅读 · 0 评论 -
小程序下拉框name index id相关联1
<picker bindchange="bindPickerChange" value="{{in}}" range="{{array}}" range-key="name"> <view class="picker picker_next"> {{array[in].name}} <text wx:if="{{in==''...原创 2019-08-06 18:04:16 · 160 阅读 · 0 评论 -
小程序下拉框name index id相关联
1, arr=[{ id:1 , name:'姓名', id:2, name:'性别',}]2.range={{arr}} range-key='name' //range-key(为要展示的字段) value = '{{index}}'3. arr[index].name...原创 2019-08-06 17:17:35 · 264 阅读 · 0 评论 -
小程序诗词首页
xwml<!--pages/shici/ts/ts.wxml--><view class='container'> <view class='userinfo-block'> <open-data type='userAvatarUrl' class='user-avatar'></open-data> <...原创 2019-05-12 20:41:05 · 640 阅读 · 0 评论 -
小程序诗词
wxml<view class='container'> <scroll-view class='left-container' scroll-y style='height:{{screenHeight}}px'> <view class='shiren'>李白</view> <view class='shiren'...原创 2019-05-12 20:39:56 · 969 阅读 · 0 评论 -
小程序答题小demo
// pages/demosc/demosc.jsPage({ /** * 页面的初始数据 */ data: { scTitle: '锄禾日当午', scEmptyBtns:[ { text: '', index: 0 }, { text: '', index: 1 }, { text: '', index: 2 },...原创 2019-05-12 15:53:07 · 2621 阅读 · 0 评论 -
小程序demo
<view class='myview'> <view class='mysubview'> {{motto}} </view> <view class='mysubview-orange'> 我是一个view组件 </view> </view><button type='pr...原创 2019-05-12 15:03:16 · 345 阅读 · 0 评论 -
微信小程序
index.js ------逻辑index.josn ------小程序顶部样式index.wxml -----------页面index.wxss --------样式API组件依赖框架.const app=getApp();其他页面获取app.js方法(全局js)每一个页面对应一个文件夹....原创 2019-05-11 18:09:06 · 134 阅读 · 0 评论