|
@@ -66,8 +66,18 @@
|
66
|
66
|
<td class="text-c">{{$a['propsName']}}</td>
|
67
|
67
|
<td class="text-c">{{$a['code']}}</td>
|
68
|
68
|
<td class="text-c">{{$a['realPrice']}}</td>
|
69
|
|
- <td class="text-c">{{$a['price']}}</td>
|
70
|
|
- <td class="text-c">{{$a['outPrice']}}</td>
|
|
69
|
+ {{--<td class="text-c">{{$a['price']}}</td>--}}
|
|
70
|
+ <td class ="change_logistics_id">
|
|
71
|
+ <p id="price_1{{$a['id']}}">{{$a['price']}}</p>
|
|
72
|
+ <input id="price_2{{$a['id']}}" style="display: none" type='text' name='price' value="{{$a['price']}}" onblur="change_price({{$a['id']}})" />
|
|
73
|
+ <span class="sort_icon" hidden onClick='change_price_click("{{$a['id']}}","{{$a['price']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
74
|
+ </td>
|
|
75
|
+ {{--<td class="text-c">{{$a['outPrice']}}</td>--}}
|
|
76
|
+ <td class ="change_logistics_id">
|
|
77
|
+ <p id="outPrice_1{{$a['id']}}">{{$a['outPrice']}}</p>
|
|
78
|
+ <input id="outPrice_2{{$a['id']}}" style="display: none" type='text' name='outPrice' value="{{$a['outPrice']}}" onblur="change_outPrice({{$a['id']}})" />
|
|
79
|
+ <span class="sort_icon" hidden onClick='change_outPrice_click("{{$a['id']}}","{{$a['outPrice']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
80
|
+ </td>
|
71
|
81
|
<td class="text-c">@if($a['is_del']==1) <span class="btn btn-danger radius">已下架</span> @else <span class="btn btn-success radius">已上架</span> @endif</td>
|
72
|
82
|
<td class="text-c">{{$a['createTime']}}</td>
|
73
|
83
|
<td class="text-c">{{$a['real_quantity']}}</td>
|
|
@@ -128,6 +138,58 @@
|
128
|
138
|
}
|
129
|
139
|
})
|
130
|
140
|
|
|
141
|
+ function change_outPrice_click(id, outPrice){
|
|
142
|
+ $("#outPrice_1"+id).hide();
|
|
143
|
+ $("#outPrice_2"+id).show();
|
|
144
|
+ $("#outPrice_2"+id).focus();
|
|
145
|
+ }
|
|
146
|
+
|
|
147
|
+ function change_outPrice(id){
|
|
148
|
+ var outPrice = $("#outPrice_2"+id).val();
|
|
149
|
+ $.ajax({
|
|
150
|
+ url: '/admin/goods/editGoodsSku?id='+id+'&outPrice='+outPrice,
|
|
151
|
+ type: 'get',
|
|
152
|
+ dateType: 'json',
|
|
153
|
+ success:function(msg){
|
|
154
|
+ $("#outPrice_1"+id).html(outPrice);
|
|
155
|
+ $("#outPrice_1"+id).show();
|
|
156
|
+ $("#outPrice_2"+id).hide();
|
|
157
|
+ }
|
|
158
|
+ });
|
|
159
|
+ }
|
|
160
|
+
|
|
161
|
+ function change_price_click(id, price){
|
|
162
|
+ $("#price_1"+id).hide();
|
|
163
|
+ $("#price_2"+id).show();
|
|
164
|
+ $("#price_2"+id).focus();
|
|
165
|
+ }
|
|
166
|
+
|
|
167
|
+ function change_price(id){
|
|
168
|
+ var price = $("#price_2"+id).val();
|
|
169
|
+ $.ajax({
|
|
170
|
+ url: '/admin/goods/editGoodsSku?id='+id+'&price='+price,
|
|
171
|
+ type: 'get',
|
|
172
|
+ dateType: 'json',
|
|
173
|
+ success:function(msg){
|
|
174
|
+ $("#price_1"+id).html(price);
|
|
175
|
+ $("#price_1"+id).show();
|
|
176
|
+ $("#price_2"+id).hide();
|
|
177
|
+ }
|
|
178
|
+ });
|
|
179
|
+ }
|
|
180
|
+
|
|
181
|
+ $(".change_logistics_id").mouseover(
|
|
182
|
+ function(){
|
|
183
|
+ $(this).children("span").show();
|
|
184
|
+ $(this).children("span").addClass('f-18 c-success');
|
|
185
|
+ $(this).mouseout(
|
|
186
|
+ function(){
|
|
187
|
+ $(this).children("span").hide();
|
|
188
|
+ }
|
|
189
|
+ );
|
|
190
|
+ }
|
|
191
|
+ );
|
|
192
|
+
|
131
|
193
|
</script>
|
132
|
194
|
</body>
|
133
|
195
|
|