index.wxml
3.71 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
54
55
56
57
<view class="page">
<view class="model_box">
<view class="model_menu" wx:if="{{menuList&&menuList.length>0}}">
<view bindtap="menuEvent" class="menu {{menuActive==item.id?'active':''}}" id="{{item.id}}" wx:for="{{menuList}}" wx:key="index">
{{item.name}}
</view>
</view>
<view class="model_content">
<view class="tag_hidden"></view>
<view class="overlay" wx:if="{{show}}"></view>
<view class="tag_list {{show?'tag_show':''}}" wx:if="{{yearList&&yearList.length>0}}">
<view class="tag_inner">
<view bind:tap="yearEvent" class="tag {{yearActive==''?'active':''}}" data-id="">
全部
</view>
<view bind:tap="yearEvent" class="tag {{yearActive==item.id?'active':''}}" data-id="{{item.id}}" wx:for="{{yearList}}" wx:key="index">
{{item.name}}
</view>
</view>
<view bindtap="showMore" class="tag_arrow" wx:if="{{yearList&&yearList.length>=3}}">
<van-icon class="arrow_icon" name="arrow-down" size="14px" wx:if="{{!show}}"></van-icon>
<van-icon class="arrow_icon" name="arrow-up" size="14px" wx:else></van-icon>
</view>
</view>
<view class="list_box" wx:if="{{modelList&&modelList.length>0}}">
<view class="cell van-hairline--bottom" wx:for="{{modelList}}" wx:key="index">
<view class="title">{{item.motorcycle}}</view>
<view class="">
<view class="config_line" wx:for="{{item.configList}}" wx:for-index="odx" wx:for-item="km" wx:key="odx">
<view class="config_cell_head">{{km.name}}:</view>
<van-radio-group bind:change="radioChangeEvent" data-mid="{{item.productConfigCode}}" id="{{km.id}}" value="{{form[km.id]}}">
<view class="config_cell_list">
<van-radio useIconSlot class="radio_box" iconSize="12px" labelClass="radio_label" name="{{k.attribInfoId}}" wx:for="{{km.list||[]}}" wx:for-index="idx" wx:for-item="k" wx:key="idx">
{{k.attribInfoName}}
<image class="radio_icon" mode="widthFix" slot="icon" src="{{form[km.id]==k.attribInfoId?icon.active:icon.normal}}"></image>
</van-radio>
</view>
</van-radio-group>
</view>
</view>
<view class="stepper_box">
<van-stepper bind:change="updateNumber" buttonSize="18px" customClass="van_stepper" id="{{item.productConfigCode}}" inputClass="stepper_input" integer="{{true}}" max="{{maxNumber}}" min="0" minusClass="stepper_minus" plusClass="stepper_plus" value="{{totalList[item.productConfigCode]||0}}"></van-stepper>
</view>
</view>
</view>
<view class="line" wx:if="{{modelList&&modelList.length>0}}">
<view class="cell_head">备注:</view>
<view class="cell_list">
<input bindinput="inputEvent" class="cell_textarea" id="remark" maxlength="100" placeholder="请输入..." placeholderStyle="color:#999;font-size:12px;" type="text" value="{{remark}}"></input>
</view>
</view>
</view>
</view>
<view class="model_nodata" wx:if="{{(!modelList||modelList.length<=0)&&(!yearList||yearList.length<=0)}}">
<no-data name="暂无产品信息"></no-data>
</view>
</view>