<swiper-item>嵌套<scroll-view>真机不显示
发布于 7 年前 作者 czhang 14025 次浏览 来自 问答
  • <swiper-item>嵌套<scroll-view>真机不显示
  • 本地调试成功显示

<swiper-item>

<scroll-view scroll-y style=“height:{{winHeight}}rpx;” lower-threshold=“50”>

<view wx:if="{{goods.length>0}}">

<view class=“orders-item”  wx:for="{{goods}}" wx:for-item=“info” wx:key="{{id}}">

<view class=“item-top-block”>

<image class=“mall-icon” src="…/…/statics/images/logo.png" />

<span class=“mall-icon-name”>友情水悦</span>

<view class=“mall-name”>

<span class=“order_status”> {{info.order_status>=0?status_name[info.order_status]:‘交易关闭’}}</span>

</view>

</view>

<view class=“goods” wx:for="{{info.dataset}}" data-id="{{info.id}}" bindtap=“toDetail”>

<view>

<image src="{{item.img}}" class=“good-img” />

</view>

<view class=“good-cont”>

<view class=“goods-navigator”>

<text class=“good-name”>{{item.title}}</text>

</view>

<view class=“goods-navigator”>

<text class=“good-sku”>规格:{{item.title}}</text>

</view>

<view class=“good-price”>

<text class=“mui-red”>¥{{item.price}}<text style=“margin-left:400rpx;color:#333;”>x{{item.num}}</text></text>

</view>

</view>

</view>

<view class=“tui-gallery-all”>

<span>合计:¥{{info.payable}} ( 含运费¥{{info.post_price}} )</span>

</view>

<view class=“mui-goods-footer” wx:if="{{info.order_status>=0}}">

<view class=“mui-goods-footer-left”>{{info.updatetime}}</view>

<view class=“mui-goods-footer-right”>

<view class=“mui-goods-btn mui-btn-cancel” wx:if="{{info.order_status==0}}" bindtap=“cancelOrder” data-oid="{{info.id}}" data-id="{{index}}">取消订单</view>

<view class=“mui-goods-btn mui-goods-paybtn” wx:if="{{info.order_status==0}}">付款</view>

<view class=“mui-goods-btn mui-btn-cancel” wx:if="{{info.order_status==2 || info.order_status==3}}" bindtap=“toLogistics”>查看物流</view>

<view class=“mui-goods-btn mui-goods-paybtn” wx:if="{{info.order_status==2}}" bindtap=“confirm” data-oid="{{info.id}}" data-id="{{index}}">确认收货</view>

<view class=“mui-goods-btn mui-btn-cancel” wx:if="{{info.order_status==1}}">提醒发货</view>

</view>

</view>

</view>

</view>

<view wx:else>

<view class=“mui-nodata”>

<image src="…/…/statics/images/no_data.png"></image>

</view>

</view>

</scroll-view>

</swiper-item>

1 回复

你好,麻烦提供如下信息,谢谢:

1、提供出现问题的机型和微信版本号

2、提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部