小程序
小游戏
企业微信
微信支付
扫描小程序码分享
页面渲染了数据,但是文字不显示,而且没有加上任何隐藏或者透明度的属性。但是就是不显示
7 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
四个文件有没有写完整?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
我把这一行代码注释了就没问题了。气死了
https://developers.weixin.qq.com/community/develop/article/doc/0002227da24a5000a899506b85c813
我也遇到相同的问题了,,,难过
我也遇到同样情况,你这个问题解决了吗?
<
view
class
=
'test'
style
"left:{{item.left0}}%;"
wx:for
"{{alltext}}"
wx:for-item
"item"
wx:key
"xxx"
wx:for-index
"id"
>
'time'
></
'width:100%;height:92%;margin:0 auto; box-sizing: border-box;position: relative;height:92%'
'pm'
'font-size:18px;line-height:18px;padding:0 48px'
>{{id+1}}/{{allnum}}</
'title pm'
>{{item.title}}</
'allsel'
wx:if
"{{item.type==1}}"
'width:100%'
<!-- 正确值 -->
'sel pr {{item.allhui&&item.sel_type=="radio"?"huise":""}} {{!queding?"huise":""}} {{item.allhui&&item.sel_type=="checkbox"?"opacity1":""}} {{sitem.isSelect? "black":""}} {{sitem.zhengqiuorcuowu?"green":""}}'
"{{item.cont}}"
data-sel
'{{sitem.judge}}'
"idx"
"sitem"
bindtap
'clicksel'
data-type
"{{item.type}}"
data-id
"{{idx}}"
data-selclass
"{{item.sel_type}}"
data-title
"{{id}}"
'margin-right:20rpx;'
>{{english[idx]}}</
>{{sitem.judge}}</
image
'juage {{sitem.showduicuo?"selpic":""}}'
'width:30rpx;height:30rpx;margin-right:10rpx;'
src
'{{sitem.status=="true"?"https://video-chanel.widiazine.cn/xcx/gou.svg":"https://video-chanel.widiazine.cn/xcx/cha.svg"}}'
</
'allselpic'
"{{item.type==0}}"
'selp {{sitem.zhengqueborder?"zhengqueborder":""}} {{sitem.borderStyle?"selborder":""}}'
'width:100%;'
mode
"widthFix"
'selE'
'selenglish {{!sitem.chuoduiorenglish?"gou":""}}'
{{english[idx]}}
' {{sitem.chuoduiorenglish?"gou":""}}'
'tupianfucen {{!sitem.fucenstatus?"gou":""}}'
'allselpics'
"{{item.type==2}}"
'selps {{sitem.zhengqueborder?"zhengqueborder":""}} {{sitem.borderStyle?"selborder":""}}'
'nextBtn'
'buttom pr'
'{{id}}'
'nextTest'
>下一题</
'buttom {{item.sel_type=="radio"?"confirm":""}} {{!queding?"confirm":""}}'
'confirm'
>确定</
.test{
position
:
absolute
;
width
750
rpx;
height
100%
box-sizing: border-box;
overflow
hidden
/* z-index: 999; */
}
.title{
color
#000000
margin
64
rpx
0
30px
/* font-weight: 600; */
letter-spacing
5
font-size
40
line-height
28px
padding
48px
.allsel{
/* padding-bottom: 86px; */
80%
overflow-y:
auto
padding-bottom
30%
.sel{
28
20px
#666666
display
: flex;
flex-
direction
: row;
margin-bottom
60
relative
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
光发这些,跑不起来啊,也看不出原因。。直接做个片段可以吗?
2点钟都不睡啊。。做个代码片段可以不
贴了。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
四个文件有没有写完整?
我把这一行代码注释了就没问题了。气死了
https://developers.weixin.qq.com/community/develop/article/doc/0002227da24a5000a899506b85c813
我也遇到相同的问题了,,,难过
我也遇到同样情况,你这个问题解决了吗?
<
view
class
=
'test'
style
=
"left:{{item.left0}}%;"
wx:for
=
"{{alltext}}"
wx:for-item
=
"item"
wx:key
=
"xxx"
wx:for-index
=
"id"
>
<
view
class
=
'time'
></
view
>
<
view
style
=
'width:100%;height:92%;margin:0 auto; box-sizing: border-box;position: relative;height:92%'
>
<
view
class
=
'pm'
style
=
'font-size:18px;line-height:18px;padding:0 48px'
>{{id+1}}/{{allnum}}</
view
>
<
view
class
=
'title pm'
>{{item.title}}</
view
>
<
view
class
=
'allsel'
wx:if
=
"{{item.type==1}}"
style
=
'width:100%'
>
<!-- 正确值 -->
<
view
class
=
'sel pr {{item.allhui&&item.sel_type=="radio"?"huise":""}} {{!queding?"huise":""}} {{item.allhui&&item.sel_type=="checkbox"?"opacity1":""}} {{sitem.isSelect? "black":""}} {{sitem.zhengqiuorcuowu?"green":""}}'
wx:for
=
"{{item.cont}}"
data-sel
=
'{{sitem.judge}}'
wx:for-index
=
"idx"
wx:for-item
=
"sitem"
bindtap
=
'clicksel'
data-type
=
"{{item.type}}"
data-id
=
"{{idx}}"
data-selclass
=
"{{item.sel_type}}"
data-title
=
"{{id}}"
>
<
view
style
=
'margin-right:20rpx;'
>{{english[idx]}}</
view
>
<
view
>{{sitem.judge}}</
view
>
<
image
class
=
'juage {{sitem.showduicuo?"selpic":""}}'
style
=
'width:30rpx;height:30rpx;margin-right:10rpx;'
src
=
'{{sitem.status=="true"?"https://video-chanel.widiazine.cn/xcx/gou.svg":"https://video-chanel.widiazine.cn/xcx/cha.svg"}}'
></
image
>
</
view
>
</
view
>
<
view
class
=
'allselpic'
wx:if
=
"{{item.type==0}}"
>
<
view
class
=
'selp {{sitem.zhengqueborder?"zhengqueborder":""}} {{sitem.borderStyle?"selborder":""}}'
wx:for
=
"{{item.cont}}"
data-sel
=
'{{sitem.judge}}'
wx:for-index
=
"idx"
data-type
=
"{{item.type}}"
wx:for-item
=
"sitem"
bindtap
=
'clicksel'
data-id
=
"{{idx}}"
data-selclass
=
"{{item.sel_type}}"
data-title
=
"{{id}}"
>
<
image
style
=
'width:100%;'
mode
=
"widthFix"
src
=
'{{sitem.judge}}'
></
image
>
<
view
class
=
'selE'
>
<
view
class
=
'selenglish {{!sitem.chuoduiorenglish?"gou":""}}'
>
{{english[idx]}}
</
view
>
<
view
>
<
image
class
=
' {{sitem.chuoduiorenglish?"gou":""}}'
style
=
'width:30rpx;height:30rpx;margin-right:10rpx;'
src
=
'{{sitem.status=="true"?"https://video-chanel.widiazine.cn/xcx/gou.svg":"https://video-chanel.widiazine.cn/xcx/cha.svg"}}'
></
image
>
</
view
>
</
view
>
<
view
class
=
'tupianfucen {{!sitem.fucenstatus?"gou":""}}'
>
</
view
>
</
view
>
</
view
>
<
view
class
=
'allselpics'
wx:if
=
"{{item.type==2}}"
>
<
view
class
=
'selps {{sitem.zhengqueborder?"zhengqueborder":""}} {{sitem.borderStyle?"selborder":""}}'
wx:for
=
"{{item.cont}}"
wx:for-index
=
"idx"
data-sel
=
'{{sitem.judge}}'
data-type
=
"{{item.type}}"
wx:for-item
=
"sitem"
bindtap
=
'clicksel'
data-id
=
"{{idx}}"
data-selclass
=
"{{item.sel_type}}"
data-title
=
"{{id}}"
>
<
image
style
=
'width:100%;'
mode
=
"widthFix"
src
=
'{{sitem.judge}}'
></
image
>
<
view
class
=
'selE'
>
<
view
class
=
'selenglish {{!sitem.chuoduiorenglish?"gou":""}}'
>
{{english[idx]}}
</
view
>
<
view
>
<
image
class
=
' {{sitem.chuoduiorenglish?"gou":""}}'
style
=
'width:30rpx;height:30rpx;margin-right:10rpx;'
src
=
'{{sitem.status=="true"?"https://video-chanel.widiazine.cn/xcx/gou.svg":"https://video-chanel.widiazine.cn/xcx/cha.svg"}}'
></
image
>
</
view
>
</
view
>
<
view
class
=
'tupianfucen {{!sitem.fucenstatus?"gou":""}}'
>
</
view
>
</
view
>
</
view
>
<
view
class
=
'nextBtn'
>
<
view
class
=
'buttom pr'
data-id
=
'{{id}}'
bindtap
=
'nextTest'
>下一题</
view
>
<
view
class
=
'buttom {{item.sel_type=="radio"?"confirm":""}} {{!queding?"confirm":""}}'
data-type
=
"{{item.type}}"
data-id
=
'{{id}}'
bindtap
=
'confirm'
>确定</
view
>
</
view
>
</
view
>
</
view
>
.test{
position
:
absolute
;
width
:
750
rpx;
height
:
100%
;
box-sizing: border-box;
overflow
:
hidden
;
/* z-index: 999; */
}
.title{
color
:
#000000
;
margin
:
64
rpx
0
30px
0
;
/* font-weight: 600; */
letter-spacing
:
5
rpx;
font-size
:
40
rpx;
line-height
:
28px
;
padding
:
0
48px
}
.allsel{
/* padding-bottom: 86px; */
height
:
80%
;
overflow-y:
auto
;
padding
:
0
48px
;
box-sizing: border-box;
padding-bottom
:
30%
;
}
.sel{
font-size
:
28
rpx;
line-height
:
20px
;
color
:
#666666
;
display
: flex;
flex-
direction
: row;
margin-bottom
:
60
rpx;
position
:
relative
;
}
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
光发这些,跑不起来啊,也看不出原因。。直接做个片段可以吗?
2点钟都不睡啊。。做个代码片段可以不
贴了。