Commit 370faca8 by 朱继来

temp

parent a486fc48
......@@ -113,12 +113,23 @@
get_user();
})
// 选择配送方式
$('#shipping_type').change(function() {
var shipping_type = $('#shipping_type').val();
if (shipping_type == 2) {
$('.select-addr').hide();
} else {
$('.select-addr').show();
}
})
// 选择收货地址
$('.user-info').delegate('#address', 'change', function() {
var user_id = $('.user_id').val();
var address_id = $(this).val();
var user_id = $('.user_id').val();
var address_id = $(this).val();
var user_coupon_id = $('.user_coupon_id').val();
var cart_ids = [];
var cart_ids = [];
$('.shop-table tbody').find('tr').each(function() {
var cid = $(this).data('cid');
......
......@@ -61,11 +61,15 @@
<div class="col-sm-6">
<div class="form-group">
<span>收货方式:</span>
<span>快递上门</span>
<!-- <span>快递上门</span> -->
<select name="shipping_type" id="shipping_type">
<option value="1">快递上门</option>
<option value="2">自提</option>
</select>
</div>
</div>
<div class="col-sm-6">
<div class="col-sm-6 select-addr">
<div class="form-group">
<span><i class="text-danger">*</i> 选择收货地址:</span>
<select name="address" id="address">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment