brandpage.wxml 1.8 KB
<import src="../../../wxParse/wxParse.wxml" />
<view class="brandhead">
  <image src="{{url}}aicon_21@2x.png"></image>
  <view class="branditem">

    <view class="branditemleft">

      <view class="brandlimg">
        <image src="{{detailinfo.logo}}"></image>
      </view>

      <view class="brandname">{{detailinfo.name}}</view>
    </view>
    <view class="branditenright" wx:if="{{detailinfo.is_favorite==1}}" bindtap="collect" data-id="{{detailinfo.id}}">取消收藏</view>
    <view class="branditenright" bindtap="collect" data-id="{{detailinfo.id}}" wx:else>收藏</view>

  </view>
</view>

<view class="brandbottom">
  <view class="brandboleft">
    <text class="brandtitle">{{detailinfo.company_name}}</text>
    <view class="duigou">
      <image src="{{url}}aicon_20x.png"></image>
    </view>
  </view>

  <view class="atten" wx:if="{{detailinfo.is_concern==1}}" bindtap="attention" data-id="{{detailinfo.company_id}}">取消关注</view>
  <view class="atten" wx:else bindtap="attention" data-id="{{detailinfo.company_id}}">关注</view>

</view>

<view class="brandbox">
  <view class="brandboxitem" wx:for="{{attr}}" wx:key='' wx:for-index="idxs">
    <view class="boxtop" bindtap="showinfo" data-idx="{{idxs}}">
      <view class="boxtopleft">
        {{item.name}}
      </view>
      <view class="boxright" >
        <image src="{{url}}aicon_53x.png" wx:if="{{item.show}}"></image>
        <image src="{{url}}aicon_52x.png" wx:else></image>
      </view>
    </view>

    <view class="brandtext" wx:if="{{item.show}}">
      <block wx:for="{{artileList}}" wx:for-item="item" wx:for-index="idx" wx:key=''>
        <block wx:if="{{idxs==idx}}">
          <template is="wxParse" data="{{wxParseData:item}}" />
        </block>
      </block>
    </view>
  </view>
</view>