product.productMaterial.Bind.js 767 Bytes
webpackJsonp([127],[
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	var $ = __webpack_require__(1),
	    common=__webpack_require__(2);

	var getMaterialIdFromUrl = function() {
	    var url = location.href + '';

	    var index = url.lastIndexOf('/');
	    var materialId = url.substring(index + 1);
	    return +materialId;
	}

	$(document).ready(function() {
	    var materialId = getMaterialIdFromUrl();
	    common.util.__ajax({
	        url: '/product/material/getBindProductInfo',
	        data: {
	            materialId: materialId
	        },
	        aysnc: false
	    }, function(res) {
	        if(res && res.code == 200) {
	            $('#product-skn-list').text(JSON.stringify(res.data));
	        }
	    }, true);
	});


/***/ }
]);