这段代码并不报错,但是在小程序中就是不显示内容怎么回事,求知道的朋友麻烦指导一下
<view class=‘pro-item’ wx:for="{{proList}}"bindtap=‘toDetail’ data-index=’{{index}}’ wx:key=“quite”>
<image class=‘pro-logo’ src=’…/…/imgs/index/icon_12.jpg’></image>
<view class=‘pro-body’>
<view class=‘pro-title’>{{item.title}}</view>
<text class=‘pro-desc’>联系中心</text>
<view class=‘pro-footer’>
<image class=‘pro-dtail’ src=’…/…/imgs/index/1.jpg’></image>
<image class=‘pro-dtail’ src=’…/…/imgs/index/3.jpg’></image>
</view>
</view>
</view>
</view>
Page({
data: {
imgUrls: [
‘…/…/imgs/index/lunbo.jpg’,
‘…/…/imgs/index/lunbo1.jpg’,
‘…/…/imgs/index/lunbo2.jpg’,
],
indicatorDots: false,
autoplay: true,
interval: 5000,
duration: 1000,
},
proList:[
{
title:‘affefsfsdf’,
}
],
// pages/home/index.js Page({ data: { imgUrls: [ '../../imgs/index/lunbo.jpg' , '../../imgs/index/lunbo1.jpg' , '../../imgs/index/lunbo2.jpg' , ], indicatorDots: false , autoplay: true , interval: 5000, duration: 1000, proList: [{ title: 'affefsfsdf' , }], } }) |
<!--pages/home/index.wxml--> < view class = 'pro-item' wx:for = "{{proList}}" bindtap = 'toDetail' data-index = '{{index}}' wx:key = "quite" > < image class = 'pro-logo' src = '../../imgs/index/icon_12.jpg' ></ image > < view class = 'pro-body' > < view class = 'pro-title' >{{item.title}}</ view > < text class = 'pro-desc' >联系中心</ text > < view class = 'pro-footer' > < image class = 'pro-dtail' src = '../../imgs/index/1.jpg' ></ image > < image class = 'pro-dtail' src = '../../imgs/index/3.jpg' ></ image > </ view > </ view > </ view > |
内容检查一下看看是不是这样的
我这边是显示了的