小程序查看物流
1、wxml
<!-- 外层pages -->
<view class='pages'>
<!-- 头部 -->
<view class='head'>
<image class='head_img' src='{
{img}}'></image>
<label class='head_name'>{
{
arr[state]}}</label>
<label class='head_title'>{
{
type}}:{
{
postid}}</label>
<!-- <label class='head_tel_name'>官方客服:95559</label>
<label class="head_tell">物流客服</label> -->
</view>
<!-- 追踪 -->
<view class='logisit' wx:for="{
{list}}" wx:key="key">
<!-- 列表 -->
<view class='list'>
<!-- 判断列表中id==0并且长度大于1 已完成ICON带线 -->
<image class='list_img_tab1' wx:if="{
{item.id==0&&list.length>1}}" src='/image/gc.png'></image>
<!-- 判断列表中id==0并且长度小于1 已完成ICON无线 -->
<image class='list_img' wx:if="{
{item.id==0&&list.length==1}}" src='/image/gx.png'></image>
<!-- 判断列表中id==1 灰色ICON --><