模拟器中显示的内容,真机预览就没有了
发布于 5 年前 作者 xiuying50 8359 次浏览 来自 问答

```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 回复

打开调试看看呢?

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

回到顶部