关于O2O商铺中商品添加的问题

本人最近本人在开发一个O2O平台,www.aizhuchao.com,测试账号是:zoneboys,密码:520iamsi,进入商铺后台,选择微电商,进入我的商铺,添加商品,总是提示undfined,好像是数据无法保存,不知道哪个大神可以帮忙看看啊!

undfined,应该是js脚本错。谁给你开发的找谁去。也不排除你让苦逼的程序员开发了程序没给钱,人家设了一个坑。

我输入了值,goods_create.js中,data是没有内容的,主要代码如下:
$.post(save_url, {'category_id': category_id, 'buy_way': buy_way, 'buy_url': buy_url, 'quantity': quantity, 'show_stock': show_stock, 'code': code, 'name': name, 'price': price, 'original_price': original_price, 'images': images, 'postage_type': postage_type, 'postage': postage, 'postage_tpl_id': postage_tpl_id, 'buyer_quota': buyer_quota, 'sold_time': sold_time, 'discount': discount, 'invoice': invoice, 'warranty': warranty, 'skus': skus, 'status': status, 'intro': intro, 'info': info, 'preview': preview,'sys_fields': sys_fields, 'fields': fields,'group_ids':group_ids, 'weight' : weight , 'is_recommend' : is_recommend, 'custom':customField.checkEvent()}, function(data) {
//alert(category_id);
if (data.err_code == 0) {
$('.notifications').html('

商品保存成功
');
var t = setTimeout('msg_hide(true, "' + data.err_msg + '")', 1000);
} else {
$('.notifications').html('
' + data.err_msg + '
');
var t = setTimeout('msg_hide(false, "")', 3000);
}
                    php端是
                        // 商品上架
public function putaway($store_id,$product_ids) {
    if (!empty($product_ids) && !empty($store_id)) {
        $where = array();
        $where['store_id'] = $store_id;
        $where['product_id'] = array('in', $product_ids);
        return $result = $this->db->where($where)->data(array('status' => 1))->save();
    }
}

我输入了值,goods_create.js中,data是没有内容的,主要代码如下:
$.post(save_url, {'category_id': category_id, 'buy_way': buy_way, 'buy_url': buy_url, 'quantity': quantity, 'show_stock': show_stock, 'code': code, 'name': name, 'price': price, 'original_price': original_price, 'images': images, 'postage_type': postage_type, 'postage': postage, 'postage_tpl_id': postage_tpl_id, 'buyer_quota': buyer_quota, 'sold_time': sold_time, 'discount': discount, 'invoice': invoice, 'warranty': warranty, 'skus': skus, 'status': status, 'intro': intro, 'info': info, 'preview': preview,'sys_fields': sys_fields, 'fields': fields,'group_ids':group_ids, 'weight' : weight , 'is_recommend' : is_recommend, 'custom':customField.checkEvent()}, function(data) {
//alert(category_id);
if (data.err_code == 0) {
$('.notifications').html('

商品保存成功
');
var t = setTimeout('msg_hide(true, "' + data.err_msg + '")', 1000);
} else {
$('.notifications').html('
' + data.err_msg + '
');
var t = setTimeout('msg_hide(false, "")', 3000);

应该是找不到数据库连接方式,从头测试一下代码

数据库连接方式?无法提交数据吗?还是数据库就连接不上?

步骤 首先进入阿里旺旺的官方首页,在“功能介绍”栏目中,找到“旺遍天下”按钮 页面右侧可以看到“旺遍天下”生成代码的步骤,非常简单快捷。生成代码后,点击“复制代码”,就完成了代码拷贝 拷贝好代码后,下面我们掌握如何将代码插入到页面,首先进入管理我的店铺 进入店铺装修栏目 旺旺图标可以...