收藏
回答

开发者工具正常,真机测试不显示

框架类型 问题类型 操作系统 工具版本
小游戏 Bug Windows 1.02.1907160

- 当前 Bug 的表现(可附上截图)


- 预期表现


- 复现路径


- 提供一个最简复现 Demo


嗯。使用了iview-weapp的ui组件。

开发者工具上正常显示,真机测试不显示,注释了一部分内容之后显示了,显示不完整。

可以在控制台看到3个数据 ,但是在真机测试里只有一个。从wxml节点里面看到标签未渲染。不知道为什么,也不知道怎么解决。

只有哪一个页面那样子。其他的正常。

<view class="container"> <view class="site-list fz24-70 ub ub-sb"> <view class="mt-10 ub"> <input bindinput='getOwnerName' bindblur="conditionQuery" type="text" placeholder="请输入关键字搜索" class="underline" maxlength="11" value='{{ownerName}}' > {{ownerName}} </input> </view> <view style="padding-top:26rpx" catchtap="handleOpen3" > <image src="/static/img/icon_gl.png" class="wh40"></image> </view> <view style="padding-top:26rpx" catchtap="handleOpen4" > <image src="/static/img/icon_saix.png" class="wh40"></image> </view> </view> <!-- 提示框区域 --> <!-- <i-modal visible="{{ visible3 }}" bind:ok="handleClose3" bind:cancel="handleClose3">--> <!-- <i-panel title="group-水果" >--> <!-- <i-radio-group current="{{current1}}" bindchange="handleFruitChange1" >--> <!-- <i-radio wx:for="{{fruit1}}" position="{{position}}" wx:key="{{item.id}}" value="{{item.name}}" color="#6fdca2">--> <!-- </i-radio>--> <!-- </i-radio-group>--> <!-- </i-panel>--> <!-- </i-modal>--> <!-- <i-modal visible="{{ visible4 }}" bind:ok="handleClose4" bind:cancel="handleClose4">--> <!-- <i-panel title="group-水果" >--> <!-- <i-radio-group current="{{current2}}" bindchange="handleFruitChange2" >--> <!-- <i-radio wx:for="{{nodeTemplateList}}" position="{{position}}" wx:key="{{item.id}}" value="{{item.nodeName}}" color="#6fdca2">--> <!-- </i-radio>--> <!-- </i-radio-group>--> <!-- </i-panel>--> <!-- </i-modal>--> <view class="site-list-c fz24"> <view wx:for="{{nowdata}}" wx:key="{{detailAddress}}" class="site-list-item fz24" > <view><text class="c-d">客户信息:</text>{{item.customerName}}</view> <view class="ub"><text class="c-d">工地地址:</text><texe style="width: 436rpx">{{item.detailAddress}}</texe></view> <view><text class="c-d">合同施工日期:</text>{{item.createDate}}至{{item.endDate}}</view> <view><text class="c-d">合同工期:</text>{{item.forecastDay}}</view> <view> <text class="c-d">工单状态:</text> <text class="c-r">{{item.orderStatusName}}</text> </view> <view> <text class="c-d">延期天数:</text> <text wx:if="{{item.delayDay==0}}">--</text> <text wx:else class="c-y {{item.delayDay<3?'c-g':''}} {{item.delayDay>7?'c-r':''}}">{{item.delayDay}}</text> </view> <view> <view> <button class='fz24 btn' catchtap='workershow' data-index="{{index}}" >项目人员信息</button> <view wx:if="{{item.workerShow}}"> <view class="personnel-info-c"> <view class="ub personnel-info-c-item"> <view class="personnel-info-item-o">工长</view> <view class="personnel-info-item-t">{{item.ordersStaffList[0].userName}}</view> <image src="/static/img/public/ddh.png" class="img26 mt-10" data-phone="{{item.ordersStaffList[0].bmobile}}" catchtap="call"></image> </view> <view class="ub personnel-info-c-item"> <view class="personnel-info-item-o">质检</view> <view class="personnel-info-item-t">{{item.ordersStaffList[1].userName}}</view> <image src="/static/img/public/ddh.png" class="img26 mt-10" data-phone="{{item.ordersStaffList[1].bmobile}}" catchtap="call"></image> </view> <view class="ub personnel-info-c-item"> <view class="personnel-info-item-o">设计师</view> <view class="personnel-info-item-t">{{item.ordersStaffList[2].userName}}</view> <image src="/static/img/public/ddh.png" class="img26 mt-10" data-phone="{{item.ordersStaffList[2].bmobile}}" catchtap="call"></image> </view> </view> </view> </view> <view> <button class='fz24 btn' catchtap='engineeringshow' data-index="{{index}}">工程进度信息</button> <view wx:if="{{index==showindex}}"> <i-steps current="{{item.orderNodeIdx}}" direction="vertical" i-class="bgc-g"> <i-step wx:for="{{item.nodeList}}" wx:for-item="val" wx:for-index="i" wx:key="{{nodeName}}" > <view slot="title"> {{val.nodeName}} <text class="decoration">工艺工法</text> </view> <view slot="content"> <view class="ub ub-sb mt-10"> <view>计划开工时间</view> <view class="decoration">延期记录</view> <view wx:if="{{val.planBeginTime==null}}" style="width:140rpx;"></view> <view wx:else style="width:140rpx;">{{val.planBeginTime}}</view> </view> <view class="ub ub-sb mt-10"> <view>计划结束时间</view> <view class="decoration" >提报记录</view> <view wx:if="{{val.planEndTime==null}}" style="width:140rpx;"></view> <view wx:else style="width:140rpx;">{{val.planEndTime}}</view> </view> <view class="ub ub-sb mt-10"> <view>实际开工时间</view> <view class="decoration" data-item="{{item}}" bindtap="getNodeQualityCheckBillListOutVO">质检记录</view> <view wx:if="{{val.realBeginTime==null}}" style="width:140rpx;"></view> <view wx:else style="width:140rpx;">{{val.realBeginTime}}</view> </view> <view class="ub ub-sb mt-10"> <view>实际结束时间</view> <view wx:if="{{val.realEndTime==null}}"style="width:140rpx;"></view> <view wx:else style="width:140rpx;">{{val.realEndTime}}</view> </view> <view wx:if="{{item.orderNodeIdx-1==i}}"> <view class="ub ub-sb mt-10" wx:if="{{val.isNeedcustpay==1}}"> <view>客户付款:</view> <view wx:if="{{val.clientPayment==null}}"style="width:140rpx;" bindtap="handleOpen1" data-val="{{val}}" data-item="{{item}}">0</view> <view wx:else style="width:140rpx;" bindtap="handleOpen1" >{{val.clientPayment}}</view> <i-modal title="客户工程节点付款" visible="{{ visible1 }}" bind:ok="handleClose1" bind:cancel="handleClose1" data-item="{{item}}" data-val="{{val}}"> <input bindinput='getTotalPrice1' placeholder="情输入金额"/> <input bindinput="getRemark1" placeholder="请输入备注"/> </i-modal> </view> <view class="ub ub-sb mt-10" wx:if="{{val.isBalance==1}}"> <view>工长收款:</view> <view wx:if="{{val.projectReceipt==null}}"style="width:140rpx;" bindtap="handleOpen2">0</view> <view wx:else style="width:140rpx;" bindtap="handleOpen2">{{val.projectReceipt}}</view> <i-modal title="客户工程工长收款" visible="{{ visible2 }}" data-item="{{item}}" data-val="{{val}}" bind:ok="handleClose2" bind:cancel="handleClose2"> <input placeholder="情输入金额" bindinput='getTotalPrice2'/> <input placeholder="请输入备注" bindinput="getRemark2"/> </i-modal> </view> </view> <view class="ub ub-hh btns " wx:if="{{item.orderNodeIdx==i}}"> <button class="btn-item fz24" catchtap="goFraction" data-ordercode="{{item.workOrderCode}}">查看积分</button> <button class="btn-item fz24" catchtap="monitoring" data-workordercode="{{item.workOrderCode}}">工地直播</button> <button wx:if="{{isproject&&item.orderStatus>=1000&&item.orderStatus<7000}}" catchtap="sendProject" data-item="{{item}}" class="btn-item fz24"> 派工长 </button> <button wx:if="{{isproject&&item.orderStatus<7000&&item.orderStatus>=1500}}" class="btn-item fz24" catchtap="sendquality" data-item="{{item}}" >派质检</button> <button wx:if="{{isproject&&val.ifReviewDelay==1}}" class="btn-item fz24" catchtap="audit" data-item="{{item}}">延期审核</button> <button wx:if="{{isproject&&item.ifAuditingProcessTime}}" data-orderNo="{{item.orderNo}}" class="btn-item fz24">工期确认</button> </view> </view> </i-step> </i-steps> </view> </view> </view> </view> </view> <!-- --> <view class="message" bindtap="goMessage"> <i-badge count="{{count}}"> <image src="/static/img/newp/message.png" alt="" style="height: 96rpx;width: 140rpx"></image> </i-badge> </view> </view>
回答关注问题邀请回答
收藏

1 个回答

  • 灵芝
    灵芝
    2019-07-24

    麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2019-07-24
    有用
    回复 1
    • 2019-07-24
      不好意思我解决了。。我是因为tabBar页面的第一个没有放首页,导致其他页面显示不完整。不过这个也是个例子,其他的不这样。有没有什么原理方面的解答。 在我没改tabBar的情况下 我删除了一部分代码,然后渲染了一部分,有一部分未渲染。所以我知道我写错了,但是我不知道写错为什么出现这种效果。如果不把首页放在tabBar的第一个上面,会对页面渲染产生这种影响
      2019-07-24
      回复
登录 后发表内容