模拟器中显示的内容,真机预览就没有了

发布于 6 年前作者 xiuying508545 次浏览最后编辑 6 年前来自 ask

```html

<view id=“main”>

  <!-- 加入我们 –>

  <template is=“indexItem” data=“{{…subjects.joinus,url:‘/pages/joinus/index’}}”/>

</view>

```

```html

<template name=“indexItem”>

<view class=“index-item”

    wx:if=“{{isShow}}”

    data-url=“{{url}}?title={{title}}”

    bindtap=“navigator”>

    <view class=“weui-cell index_title”>

      <view class=“weui-cell__bd”>{{title}}</view>

      <view class=“weui-cell__ft weui-cell__ft_in-access”>详情</view>

    </view>

    <view class=“index_content”>

      <image src=“{{imageUrl}}”></image>

    </view>

    <view class=“index_tips ellipsis”>{{description}}</view>

  </view>

</template>

```

请问有什么问题

2 回复
cqian
cqian1 楼6 年前

打开调试看看呢?

yinchao
yinchao2 楼4 年前

好了,你们是不是修改 this.setData 方法了?