brandpage.wxml
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<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>