收藏
回答

页面只有一个page-container,每次编译都报[渲染层错误],如何解决?

[渲染层错误] [Component] <page-container>: Only one instance can exist.(env: Windows,mp,1.06.2405020; lib: 3.5.1)

在微信开发者工具中,页面就一个page-container组件,每次保存热重载就报上述错误,该组件也无法显示,手动刷新页面就恢复正常,可以显示了


<page-container show="{{poppageshow}}" bind:clickoverlay="clickoverlay">
  <view class="poppage-gloabal">
    <view class="poppage-title">
      <view>{{poppage_title}}</view>      
    </view>
    <view class="poppage-row">
      <view class="data-rowtt">客户名称</view>
      <input placeholder="{{pop_clientname}}" bindinput="popdatabind" data-name="pop_newclientname" value="{{pop_newclientname}}"></input>
    </view>
    <view class="poppage-row">
      <view class="data-rowtt">热源关系</view>
      <input placeholder="{{pop_team}}" bindinput="popdatabind" data-name="pop_newteam" value="{{pop_newteam}}"></input>
    </view>
    <view class="poppage-row">
      <view class="data-rowtt">客户地址</view>
      <input placeholder="{{pop_dress}}" bindinput="popdatabind" data-name="pop_newdress" value="{{pop_newdress}}"></input>
    </view>
    <view class="poppage-row">
      <view class="data-rowtt">创建时间</view>      
      <input class="popinput" placeholder="{{pop_creattime}}" disabled="true" value="{{pop_newcreattime}}"></input>
      <picker mode="date" bindchange="changedate" data-type="creat">选择时间</picker>
    </view>
    <view class="poppage-row">
      <view class="data-rowtt">投用时间</view>
      <input class="popinput" placeholder="{{pop_usetime}}" disabled="true" value="{{pop_newusetime}}"></input>   
      <picker mode="date" bindchange="changedate" data-type="use">选择时间</picker>            
    </view>
    <view class="poppage-row">
      <view class="data-rowtt">备注</view>
      <textarea placeholder="{{pop_remark}}" bindinput="popdatabind" data-name="pop_newremark" value="{{pop_newremark}}"></textarea>
    </view>
    <view class="operation-view">
      <view class="operation-button" bind:tap="savedata" data-id="{{item.id}}">保存</view>
      <view class="operation-button" bind:tap="closepoppage">关闭</view>
    </view>
    <view class="poppage-row"> </view>
  </view>
</page-container>
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容