- 消息模板form_id还有7天有效期么
消息模板发送的formid之前有7天的有效期,现在还有7天的有限期么,文档中也没看到
2019-05-30 - request请求的数据用wx:for循环渲染
success: function (res) { that.setData({ listData: res.data.StaffDetail }) } <block wx:for="{{listData}}" wx:for-item="item"> <view class="tr"> <view class="td-2">{{item.SubjectPname}}</view> <view class="td-2">{{item.Price}}</view> <view class="td-2">{{item.SubTotal}}</view> <view class="td-2">{{item.Number}}</view> </view> </block> 渲染失败, res.data.StaffDetail数据是 【 {"SubjectPname":"技术负责人","SubjectName":null,"Price":"0.4~0.6","SubTotal":"0.4~0.6","Number":1}, {"SubjectPname":"中级职称","SubjectName":"结构;材料或化工;(必齐全)","Price":"0.67~0.7","SubTotal":"2~2.1","Number":3} 】 如果这样的话就能渲染成功: success: function (res) { that.setData({ listData: 【 {"SubjectPname":"技术负责人","SubjectName":null,"Price":"0.4~0.6","SubTotal":"0.4~0.6","Number":1}, {"SubjectPname":"中级职称","SubjectName":"结构;材料或化工;(必齐全)","Price":"0.67~0.7","SubTotal":"2~2.1","Number":3} 】 }) } <block wx:for="{{listData}}" wx:for-item="item"> <view class="tr"> <view class="td-2">{{item.SubjectPname}}</view> <view class="td-2">{{item.Price}}</view> <view class="td-2">{{item.SubTotal}}</view> <view class="td-2">{{item.Number}}</view> </view> </block>
2017-11-02 - template引用外部样式失效
做了一个模板,样式写在了wxss里面,然后在另一个页面引用模板,样式失效,样式写内联样式不写在wxss里面就没有问题,是啥原因,能解决不
2017-10-24