var dic=ViewBag.dic as Dictionary<string,List<TeenySoft.Web.Model.wx_shop.ProductInfo>>;
    if (dic!=null)
    {
          foreach (var item in dic.Keys)
            {
    <li style="height: 60px; border-bottom: 1px solid #999999; margin-left: -10px">
        <a href="/shop/product/productList" title="" style="margin-left:10px;">@item</a>  <a style="float: right; margin-right: 10px;">></a>
        <div style="height: 32px; border-bottom: none">
            <div style="float: left;"><a style="margin-left: 10px; font-size: 16px"></a></div>
            <div class="divp" style="height: 19px;">
            <ul>
                @foreach (var item1 in dic[item])
                                    {
                                        {
                                            string strname = item1.productName.Length>4 ?item1.productName.Substring(0,4):item1.productName;
                                        
                    <li style="width:60px;"><a href="@("/shop/product/productDetail?productId=" + item1.id + "&pd_>@strname、</a></li>  
                                        }
                                  }
            </ul>
        </div>
        </div>
    </li>
                        }
               }      }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-02-14
相关资源
相似解决方案