anchor.diff:  //= require foundation-datepicker.min
   // if session[:locale] == 'zh'
   //= require foundation-datepicker.zh-CN
  - 
  +
   
   function checkPositiveInteger(obj){
     var num = obj.val();
  
positive.code: //--------------新建团购-----------------//
  var unitInput = $('#groupbuy_goods_unit');
  var unitText = $('.goods-unit-blank');
  if(unitInput.val().replace(/\s/g, '').length > 0) {
    unitText.text(unitInput.val());
  }
  else {
    $('#groupbuy_goods_unit').on('change', function(){
      var val = $(this).val();
      $('.goods-unit-blank').text(val);
    });
  }
  
  // 价格不能为负数
  
negative.code:   var nums = that.val();
    if(nums == '' || nums == undefined || isNaN(nums) == true || parseInt(nums) < 1) {
      $(this).val('');
      alert("只能输入正数");
      return;
    }
  });
  