小程序Tab切换

懒得去接口重新写了,如果有需要的自己去一下接口 

wxml:

<!-- order.wxml -->
<view class="swiper-tab">
	<view class="swiper-tab-list {
  {currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">
		待支付
	</view>
	<view class="swiper-tab-list {
  {currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">
		待服务
	</view>
	<view class="swiper-tab-list {
  {currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">
		已完成
	</view>
	<view class="swiper-tab-list {
  {currentTab==3 ? 'on' : ''}}" data-current="3" bindtap="swichNav">
		退款/售后
	</view>
</view>
<swiper current="{
  {currentTab}}" class="swiper-box" duration="300" style="height:{
  {winHeight - 31}}px" bindchange="bindChange">
	<!-- 待支付 -->
	<swiper-item>
		<view class="orderInfo" wx:if="{
  {payOrderListNum}}">
			<scroll-view scroll-y="true" style="height:{
  {winHeight - 90}}px">
				<block wx:for="{
  {payOrderList}}" wx:key="{
  {index}}">
					<view class="orderInfo-item">
						<navigator open-type="navigate" url="{
  {waitePayment}}?orderId={
  {item.id}}" hover-class="none">
							<view class="itemInfo">
								<image class="itemInfoImg" src="{
  {imgUrl}}{
  {item.storePath}}"></image>
								<view class="serviceShop">
									<text class="shopName">{
  {item.storeName}}</text>
									<text class="serviceTime">{
  {item.createDate}}</text>
									<view class="ItemsMoney">
										<view class="serviceItem">
											<text class="detailedText">{
  {item.showPageService}}</text>
											<image class="detailedImg" src="../../images/enterImg.png"></image>
										</view>
										<text class="serviceMoney">¥{
  {item.payAmount}}</text>
									</view>
								</view>
							</view>
						&
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值