微信开发工具 xwml 引用template模拟器无法正常显示,真机可以 为什么?
微信开发工具 xwml 引用template模拟器无法正常显示,真机可以 版本号:1.05.2201240 good-tpl.wxss .goods_list{
display: flex;
flex-wrap: wrap;
justify-content:space-between;
padding-left: 10rpx;
padding-right: 10rpx;
}
.good_item{
display: flex;
flex-flow: column nowrap;
width: 48vw;
height: auto;
margin-top: 20rpx;
padding-bottom: 20rpx;
background-color:white;
border-radius: 15rpx;
}
image{
width: 48vw;
height:48vw;
flex: none;
border-top-left-radius: 15rpx;
border-top-right-radius: 15rpx;
}
.text-name{
margin-top: 10rpx;
margin-left: 10rpx;
}
.item-flex{
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
justify-items: center;
}
goods-tpl.wxml
<template name="goodsList">
<view class="goods_list">
<block wx:for="{{goods}}">
<view class="good_item" data-id="{{item.id}}" bindtap="goGoodsDetails">
<image src="{{item.cover}}"></image>
<view>
<text class="text-name">{{item.name}}</text>
<view class="item-flex">
<text style="font-size: 18rxp; color:crimson;">¥{{item.price}}</text>
<text class="col-666">库存 {{item.stock}}</text>
<text class="col-666">销量 {{item.sales}}</text>
</view>
</view>
</view>
</block>
</view>
</template>
在其他wxml引用 真机可以显示 模拟器无法显示
<import src="../../tpls/goodsList/goods_tpl"/>