!--选项卡--viewviewdata-current="0"bindtap="clickTab"待确认/viewviewdata-current="1"bindtap="clickTab"运输中/viewviewdata-current="2"bindtap="clickTab"待结算/viewviewdata-current="3"bindtap="clickTab"已完成/viewviewdata-current="4"bindtap="clickTab"已取消/view/viewswipercurrent='{{currentTab}}'style='height:{{scrollHeight}}px'duration="300"bindchange="swiperTab"swiper-itemscroll-viewscroll-ystyle='height:{{scrollHeight}}px'bindscrolltolower="loadMore"templateis="listReceive"data="{{myReceive}}"/template/scroll-view/swiper-itemswiper-itemscroll-viewscroll-ystyle='height:{{scrollHeight}}px'bindscrolltolower="loadMore"templateis="listReceive"data="{{myReceive}}"/template/scroll-view/swiper-itemswiper-itemscroll-viewscroll-ystyle='height:{{scrollHeight}}px'bindscrolltolower="loadMore"templateis="listReceive"data="{{myReceive}}"/template/scroll-view/swiper-itemswiper-itemscroll-viewscroll-ystyle='height:{{scrollHeight}}px'bindscrolltolower="loadMore"templateis="listReceive"data="{{myReceive}}"/template/scroll-view/swiper-itemswiper-itemscroll-viewscroll-ystyle='height:{{scrollHeight}}px'bindscrolltolower="loadMore"templateis="listReceive"data="{{myReceive}}"/template/scroll-view/swiper-item/swiper/viewdata:{currentTab:0,isactive:true,scrollHeight:0,myReceive:[],size:10,pageEnd:false,state:'待确认'},//滑动切换swiperTab:function(e){varthat=this;that.setData({currentTab:e.detail.current});if(that.data.currentTab==0){that.data.state='待确认'}elseif(that.data.currentTab==1){that.data.state='运输中'}elseif(that.data.currentTab==2){that.data.state='待结算'}elseif(that.data.currentTab==3){that.data.state='已完成'}elseif(that.data.currentTab==4){that.data.state='已取消'}varmyReceive={state:that.data.state,page:'1',size:'10'}api.getRequest(api.apiUrl.ORDERS_ACCEPTED_GET,myReceive,function(res){vardatas=res.data.data.items;console.log(datas)for(leti=0;idatas.length;i++){datas[i]["limitedAt"]=tool.toDate(datas[i]["limitedAt"])}that.setData({myReceive:datas})})console.log("9ui",that.data.state)},//点击切换clickTab:function(e){varthat=this;if(this.data.currentTab===e.target.dataset.current){returnfalse;}else{that.setData({currentTab:e.target.dataset.current})}if(that.data.currentTab==0){that.data.state='待确认'}elseif(that.data.currentTab==1){that.data.state='运输中'}elseif(that.data.currentTab==2){that.data.state='待结算'}elseif(that.data.currentTab==3){that.data.state='已完成'}elseif(that.data.currentTab==4){that.data.state='已取消'}console.log("ffffffffffffffff"+this.data.currentTab)varthat=this;varmyReceive={state:that.data.state,page:'1',size:'10'}api.getRequest(api.apiUrl.ORDERS_ACCEPTED_GET,myReceive,function(res){vardatas=res.data.data.items;for(leti=0;idatas.length;i++){datas[i]["limitedAt"]=tool.toDate(datas[i]["limitedAt"])}that.setData({myReceive:datas})console.log("asfffff",that.data.myReceive)})},
之前是直接赋值了禁止左右滑动view待确认"?'active':''}}"data-current="待确认"bindtap="clickTab"待确认/view.但后来要求可以滑动,我以为把禁止滑动(catchtouchmove='stopTouchMove')就可以了,但发现api里swipercurrent属性默认值是0,所以一直滑动不了,后来我就设置为数字了,然后通过js赋值,之前直接赋值,也没用滚动,所以只写一条数据判断不同的状态,然后显示就行了,但左右滚动数据必须在scroll-view里,有几个滚动就要写几个scroll-view,所以数据重复太多,然后我就写在模板里面引用过来了
最新资讯
-

小程序制作平台选型踩坑记录:2026年五大主流方案横向对比
2026 年微信小程序月活达 10.7 亿、覆盖 108 个行业,本次横向对比即速应用、乔拓云、凡科、有赞、微盟五大主流平台,分三阶段给出选型结论,核心聚焦成本、扩展性、运营能力三大维度。 -

即速应用,赋能企业玩转微信小程序智慧经营
作为国内领军的智慧商业经营服务商,即速应用始终秉承“让每个企业都拥有自己的智慧店铺”的愿景,持续赋能更多企业玩转智慧经营。即速应用旗下拥有“小程序搭建工具-即速应用”、“私域流量专家-即客云”等产品,帮助商家打通互联网全生态营销闭环。 -

即客云2.0重磅更新,让微信小程序运营更简单!
即客云作为一款基于企业微信的第三方工具,现从多维度提供超过30种功能,自上线以来,已服务多家企业,受到一致好评。近期,我们根据客户反馈和市场调研正式推出升级版 即客云2.0!更新了私域运营SOP,群日历功能,批量拓客,客户雷达,消息推送,个人欢迎语,帮助企业更好运用企业微信;同时提升了社群运营工作标准化,提升运营效率,帮助企业实现客户增长,玩转私域流量。










