问答详情
源自:4-4 电影详情

这是哪里出现问题了?

<view>

<view class="detail-container"

style='background:url({detail.images.large}) no-repeat top/cover'></view>

<view class='detail-mask'></view>

<view class='detail-info'>

<image src='{{detail.images.large}}'

class='detail-img'></image>

<view class='detail'>

<view class='detail-nm'>{{detail.title}}</view>

<view>{{detail.original_title}}

</view>

<view class='detail.sc'>

{{detail.rating.average}}分</view>

</view>

<view>{{detail.countries[0]}}

/{{detail.durations[0]}}</view>

<view>导演: {{detail.directors[0].name</view>

</view>

</view>

<view class="desc">{{detail.summary}}</view>

</view>

VM9864:5 ./pages/comment/comment.wxml

 end tag missing, near `view`

> 1 | <view>

    | ^

  2 |    <view class="detail-container" 

  3 |    style='background:url({detail.images.large}) no-repeat top/cover'></view>

  4 |    <view class='detail-mask'></view>


提问者:lhebe 2019-07-06 12:02

个回答

  • 谢成
    2019-07-08 12:46:52

    上面同学说的2、3是对的,1的话wxml中属性的值单双引号都可以。

  • 慕无忌6767879
    2019-07-08 09:41:46

    你好,发现三处错误,供参考:

    1. 第一行,view class =''

    2. 第三行,{{detail.images.large}}) 是双大括号,你少了一对。

    3. <view>导演: {{detail.directors[0].name}}</view>,你少了右边双大括号。https://img2.mukewang.com/5d229f4b0001022f11240483.jpg