正在显示
4 个修改的文件
包含
30 行增加
和
26 行删除
@@ -80,13 +80,13 @@ class MemberSalesController extends HomeBaseController | @@ -80,13 +80,13 @@ class MemberSalesController extends HomeBaseController | ||
80 | </div>'; | 80 | </div>'; |
81 | $this->sort_model[10] = '<div class="text_item no_margin form_options" data-validate="{validate}" data-type="10"> | 81 | $this->sort_model[10] = '<div class="text_item no_margin form_options" data-validate="{validate}" data-type="10"> |
82 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> | 82 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> |
83 | - <input type="text" name="" id="birthday" readonly="readonly" value="{value}" class="baby_input" placeholder="请选择{name}" /> | 83 | + <input type="text" name="" readonly="readonly" value="{value}" class="baby_input birthday" placeholder="请选择{name}" /> |
84 | <img src="__TMPL__/public/mobile/images/youjiantou.png" class="jiantou" /> | 84 | <img src="__TMPL__/public/mobile/images/youjiantou.png" class="jiantou" /> |
85 | </div>'; | 85 | </div>'; |
86 | $this->sort_model[11] = '<div class="text_item form_options" data-validate="{validate}" data-type="11"> | 86 | $this->sort_model[11] = '<div class="text_item form_options" data-validate="{validate}" data-type="11"> |
87 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> | 87 | <p class="text_tit"><span class=" _validate">{name}</span>{must}</p> |
88 | <weui-distpicker province="广东省" city="广州市" area="海珠区"></weui-distpicker> | 88 | <weui-distpicker province="广东省" city="广州市" area="海珠区"></weui-distpicker> |
89 | - <input type="text" name="" id="address" readonly="readonly" value="{value}" class="baby_input" placeholder="请输入{name}" /> | 89 | + <input type="text" name="" readonly="readonly" value="{value}" class="baby_input address" placeholder="请输入{name}" /> |
90 | <img src="__TMPL__/public/mobile/images/youjiantou.png" class="jiantou" /> | 90 | <img src="__TMPL__/public/mobile/images/youjiantou.png" class="jiantou" /> |
91 | </div>'; | 91 | </div>'; |
92 | $this->sort_model[12] = '<div class="text_item form_options" data-validate="{validate}" data-type="12"> | 92 | $this->sort_model[12] = '<div class="text_item form_options" data-validate="{validate}" data-type="12"> |
@@ -160,6 +160,7 @@ | @@ -160,6 +160,7 @@ | ||
160 | }); | 160 | }); |
161 | 161 | ||
162 | $('#birthday').click(function() { | 162 | $('#birthday').click(function() { |
163 | + var obj = $(this); | ||
163 | weui.datePicker({ | 164 | weui.datePicker({ |
164 | start: 2000, | 165 | start: 2000, |
165 | end: 2030, | 166 | end: 2030, |
@@ -169,18 +170,18 @@ | @@ -169,18 +170,18 @@ | ||
169 | // $('.#birthday_input').val(result) | 170 | // $('.#birthday_input').val(result) |
170 | }, | 171 | }, |
171 | onConfirm: function(result) { | 172 | onConfirm: function(result) { |
172 | - var birthday = result[0].label + result[1].label + result[2].label | ||
173 | - console.log(birthday) | ||
174 | - $('#birthday').val(birthday) | 173 | + var birthday = result[0].label + result[1].label + result[2].label; |
174 | + obj.val(birthday) | ||
175 | }, | 175 | }, |
176 | id: 'datePicker' | 176 | id: 'datePicker' |
177 | }); | 177 | }); |
178 | }); | 178 | }); |
179 | 179 | ||
180 | - $('#address').click(function() { | 180 | + $('.address').click(function() { |
181 | + var obj = $(this); | ||
181 | weui.picker(rawCitiesData, { | 182 | weui.picker(rawCitiesData, { |
182 | onConfirm: function(result) { | 183 | onConfirm: function(result) { |
183 | - $('#address').val(result[0].label + '-' + result[1].label + '-' + result[2].label); | 184 | + obj.val(result[0].label + '-' + result[1].label + '-' + result[2].label); |
184 | } | 185 | } |
185 | }); | 186 | }); |
186 | }); | 187 | }); |
@@ -161,7 +161,8 @@ | @@ -161,7 +161,8 @@ | ||
161 | $(this).addClass('add_active').siblings().removeClass('add_active') | 161 | $(this).addClass('add_active').siblings().removeClass('add_active') |
162 | }); | 162 | }); |
163 | 163 | ||
164 | - $('#birthday').click(function() { | 164 | + $('.birthday').click(function() { |
165 | + var obj = $(this); | ||
165 | weui.datePicker({ | 166 | weui.datePicker({ |
166 | start: 2000, | 167 | start: 2000, |
167 | end: 2030, | 168 | end: 2030, |
@@ -171,18 +172,18 @@ | @@ -171,18 +172,18 @@ | ||
171 | // $('.#birthday_input').val(result) | 172 | // $('.#birthday_input').val(result) |
172 | }, | 173 | }, |
173 | onConfirm: function(result) { | 174 | onConfirm: function(result) { |
174 | - var birthday = result[0].label + result[1].label + result[2].label | ||
175 | - // console.log(birthday) | ||
176 | - $('#birthday').val(birthday) | 175 | + var birthday = result[0].label + result[1].label + result[2].label; |
176 | + obj.val(birthday) | ||
177 | }, | 177 | }, |
178 | id: 'datePicker' | 178 | id: 'datePicker' |
179 | }); | 179 | }); |
180 | }); | 180 | }); |
181 | 181 | ||
182 | - $('#address').click(function() { | 182 | + $('.address').click(function() { |
183 | + var obj = $(this); | ||
183 | weui.picker(rawCitiesData, { | 184 | weui.picker(rawCitiesData, { |
184 | onConfirm: function(result) { | 185 | onConfirm: function(result) { |
185 | - $('#address').val(result[0].label + '-' + result[1].label + '-' + result[2].label); | 186 | + obj.val(result[0].label + '-' + result[1].label + '-' + result[2].label); |
186 | } | 187 | } |
187 | }); | 188 | }); |
188 | }); | 189 | }); |
@@ -28,20 +28,22 @@ | @@ -28,20 +28,22 @@ | ||
28 | <div class="header_place"></div> | 28 | <div class="header_place"></div> |
29 | 29 | ||
30 | <div class="test_num"></div> | 30 | <div class="test_num"></div> |
31 | -<!--基本信息--> | ||
32 | -<div class="order_item"> | ||
33 | - <div class="item_tit"> | ||
34 | - <i class="iconfont icon-icon-test1"></i>基本信息 | 31 | +<notempty name="orderInfo.groupA"> |
32 | + <!--基本信息--> | ||
33 | + <div class="order_item"> | ||
34 | + <div class="item_tit"> | ||
35 | + <i class="iconfont icon-icon-test1"></i>基本信息 | ||
36 | + </div> | ||
37 | + <volist name="orderInfo.groupA" id="vo"> | ||
38 | + <notempty name="vo.user_choose"> | ||
39 | + <div class="item_info"> | ||
40 | + <p class="info_item">{$vo.name}</p> | ||
41 | + <p>{$vo.user_choose}</p> | ||
42 | + </div> | ||
43 | + </notempty> | ||
44 | + </volist> | ||
35 | </div> | 45 | </div> |
36 | - <volist name="orderInfo.groupA" id="vo"> | ||
37 | - <notempty name="vo.user_choose"> | ||
38 | - <div class="item_info"> | ||
39 | - <p class="info_item">{$vo.name}</p> | ||
40 | - <p>{$vo.user_choose}</p> | ||
41 | - </div> | ||
42 | - </notempty> | ||
43 | - </volist> | ||
44 | -</div> | 46 | +</notempty> |
45 | 47 | ||
46 | <notempty name="orderInfo.groupB"> | 48 | <notempty name="orderInfo.groupB"> |
47 | <!--订购人信息--> | 49 | <!--订购人信息--> |
-
请 注册 或 登录 后发表评论