Program.wxml
2.4 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
58
<!--pages/Program/Program.wxml-->
<view wx:for='{{list}}' wx:key>
<view class='line_box'></view>
<view class='content_box'>
<view class='item_list'>
<view>产品名称</view>
<view class='list_input'>
<input placeholder='请输入产品名称' value='{{item.name}}' bindinput='setName' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></input>
</view>
</view>
<view class='item_list'>
<view>保险公司</view>
<view class='list_input'>
<input placeholder='请输入保险公司' value='{{item.firm}}' bindinput='setFirm' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></input>
</view>
</view>
<view class='item_list'>
<view>保障内容</view>
<view class='list_input'>
<textarea placeholder='请输入保障内容' value='{{item.text}}' bindinput='setText' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></textarea>
</view>
</view>
</view>
<view class='list_btn_box'>
<view class='list_btn' bindtap='del' data-id='{{item.id}}' wx:if='{{item.last_state}}'>删除方案</view>
<view class='list_btn add_btn' bindtap='addPlan' data-id='{{item.id}}' data-index='{{index}}' wx:if='{{item.add_state}}'>添加方案</view>
</view>
<!-- <view class='line_box'></view> -->
</view>
<!-- <view wx:if='{{}}'>
<view class='content_box'>
<view class='item_list'>
<view>产品名称</view>
<view class='list_input'>
<input placeholder='请输入产品名称' value='{{temobj.name}}' bindinput='settemname'></input>
</view>
</view>
<view class='item_list'>
<view>保险公司</view>
<view class='list_input'>
<input placeholder='请输入保险公司' value='{{temobj.firm}}' bindinput='settemfirm'></input>
</view>
</view>
<view class='item_list'>
<view>保障内容</view>
<view class='list_input'>
<textarea placeholder='请输入保障内容' value='{{temobj.text}}' bindinput='settemtext'></textarea>
</view>
</view>
</view>
<view class='list_btn_box'>
<view class='list_btn' bindtap='deltemobj'>删除方案</view>
<view class='list_btn add_btn' bindtap='addtemobj'>添加方案</view>
</view>
</view> -->
<view class='bottom_box'>
<view class='save_btn' bindtap='allsave'>保存</view>
</view>