我将libVersion 1.6.0 改为1.9.98 ,数据就显示不出。
发布于 7 年前 作者 cyi 13915 次浏览 来自 问答

<swiper class=“tab-content” current="{{currentTab}}" Words="{{keyWords}}" duration=“300” bindchange=“switchTab”

      style=“height:{{winHeight}}rpx”>

          <!-- <swiper-item wx:for="{{[0,1,2,3,4,5,6,7,8,9]}}"  wx:key="*this"> -->

              <scroll-view scroll-y=“true” class=“scoll-h” bindscrolltolower=“bindDownLoad”>

                  <block wx:for="{{list}}" wx:key=“title”>

                      <view class=“item-ans” data-id=’{{item.num_iid}}’ data-jhj=’{{(item.commission_rate)}}’ data-jme=’{{item.coupon_info}}’ data-desc=’{{item.item_description}}’ data-linkurl=’{{item.coupon_click_url}}’ data-title=’{{item.title}}’ data-imgurl=’{{item.pict_url}}’ bindtap=“navigator”>

 

                          <view class=“avatar”>

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

                          </view>

                          <view class=“expertInfo”>

                              <view class=“name”>

                              <image class=“tm” src="{{linkUrl}}{{item.user_type? ‘/sulei/tb.png’:’/sulei/tm.png’}}"></image>

                              {{item.title}}</view>

                              <view class=“xj”>现价 ¥{{item.zk_final_price}} 月销 {{item.volume}}件</view>

                              <view class=“jhj”><i>劵后价</i> <text>¥{{(item.commission_rate)}}</text></view>

                              <view class=“shul”>数量:{{item.coupon_remain_count}}/{{item.coupon_total_count}}张</view>

                          </view>

                          <view class=“askBtn”>

                            <view class=“juan”> <text>¥{{item.coupon_info}}</text></view>

                            <view class=“juanName”> <text>优惠券</text></view>

                            <view class=“dianji”> <text>查看详情</text></view>

                          </view>

 

                      </view>

                  </block>

              </scroll-view>

          <!-- </swiper-item> -->

        </swiper>

libVersion =1.6.0时

1.9.98就没数据了

2 回复

调试器没有出任何错  而且<blockwx:for="{{list}}"wx:key=“title”>这个list也有值,wxxm中也把数据填充到标签里面了,但是手机页面没有显示

请查看下调试器中报的什么错,才能定位问题出在哪

回到顶部