您现在的位置: 微信小程序 > 微信小程序开发 > BUG >

微信小程序编译.wxml报错Error:in File:./pages/course/course.wxml

来源:微信小程序 编辑:Yiyongtong.com 发布时间:2018-01-25 09:03热度:
报错信息:
Error:
in File:./pages/course/course.wxml
 
end tag missing, near `view`
3 | <view class="pageContainer">
4 | <template is="search"/>
> 5 | <view class="courses flex">
| ^
6 | <view class="courses-left">
7 | <block wx:for="{{courses}}" wx:for-index="couIdx" wx:for-item="couItem">
8 | <view data-index="{{couIdx}}" class="{{couItem.active=='true'?'active':''}}" bindtap="selectTab">
编译.wxml文件错误,51小 程序:cover-view文字过长的情况。错误信息如上,可在控制台查看更详细信息
 
源码:
<!–pages/course/course.wxml–>
<import src="../other/template.wxml"/>
<view class="pageContainer">
<template is="search"/>
<view class="courses flex">
<view class="courses-left">
<block wx:for="{{courses}}" wx:for-index="couIdx" wx:for-item="couItem">
<view data-index="{{couIdx}}" class="{{couItem.active=='true'?'active':''}}" bindtap="selectTab">
<text>{{couItem.title}}</text>
</view>
</block>
</view>
<scroll-view scroll-y="true" class="courses-right">
<block wx:for="{{courses}}" wx:for-index="couIdx" wx:for-item="couItem">
<view hidden="{{couItem.active=='true'?'':'hid'}}">
<block wx:for="{{couItem.category.ad}}" wx:for-index="adIdx" wx:for-item="adItem">
<view class="rcmd-course flex">
<navigator url="{{adItem.navigator}}">
<image src="{{adItem.imgurl}}"></image>
</navigator>
</view>
</block>
<block wx:for="{{couItem.category.item}}" wx:for-index="idx" wx:for-item="item">
<view class="couList">
<text>{{item.title}}</text>
<block wx:for="{{item.stdCourse}}" wx:for-item="stdItem">
<navigator url="{{stdItem.url}}">{{stdItem.title}}</navigator>
</block>
</view>
</block>
</view>
</block>
</scroll-view>
<view> 
</view>