🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC=3,3] ### 商品详情 ~~~[api] post:/index.php?ctl=Goods_Goods&met=goods&typ=json *string:gid#gid *string:u#u *string:k#k <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "goods_id": 61, "goods_info": { "common_id": "56", "common_name": "俄罗斯方块", "common_promotion_tips": "", "cat_id": "103", "cat_name": "袜子", "shop_id": "2", "shop_name": "爱咋咋地", "shop_cat_id": ",,", "shop_goods_cat_id": 0, "goods_id": "61", "shop_self_support": "0", "shop_status": "3", "common_property": { "property_2": { "0": "尺码", "1": "2", "2": "select", "3": "2" } }, "common_spec_name": { "1": "颜色" }, "common_spec_value": { "1": { "5": "<img src=\"https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg!42x42.jpg\" title=\"纯黑\" alt=\"纯黑\"/>" } }, "brand_id": "0", "brand_name": "", "type_id": "2", "common_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg", "common_packing_list": "", "common_service": "服务说明书,又名服务指南。是服务行业、社会服务机构向用户介绍自己所提供服务的性质、对象、收费情况及申请或使用这种服务的办法、条件等而使用的说明书。\r\n", "common_state": "1", "common_state_remark": "", "common_verify": "1", "common_verify_remark": "", "common_add_time": "2018-04-09 15:23:40", "common_sell_time": "2018-04-09 15:23:40", "common_price": "10.00", "common_market_price": "100.00", "common_cost_price": "1.00", "common_stock": "873", "common_limit": "0", "common_alarm": "0", "common_code": "", "common_platform_code": "0", "common_cubage": "3.00", "common_collect": "2", "common_evaluate": "18", "common_salenum": "66", "common_invoices": "1", "common_is_return": "0", "common_formatid_top": "0", "common_formatid_bottom": "0", "common_is_recommend": "1", "common_is_virtual": "0", "common_virtual_date": "0000-00-00", "common_virtual_refund": "0", "transport_type_id": "0", "common_location": "", "common_is_tuan": "0", "common_is_xian": "0", "common_is_jia": "0", "common_shop_contract_1": "0", "common_shop_contract_2": "0", "common_shop_contract_3": "1", "common_shop_contract_4": "1", "common_shop_contract_5": "0", "common_shop_contract_6": "0", "cps_rate": "0", "second_cps_rate": "0", "third_cps_rate": "0", "common_cps_rate": "0.00", "common_second_cps_rate": "0.00", "common_third_cps_rate": "0.00", "common_is_directseller": "0", "product_lock_flag": "0", "product_agent_id": "0", "district_id": "38", "supply_shop_id": "0", "product_is_allow_update": "1", "product_is_allow_price": "1", "product_is_behalf_delivery": "1", "common_parent_id": "0", "goods_recommended_min_price": "0.00", "goods_recommended_max_price": "0.00", "product_distributor_flag": "0", "common_distributor_description": null, "common_distributor_flag": "0", "common_cps_commission": "0.00", "common_goods_from": "1", "transport_area_id": "4", "id": "61", "common_property_row": { "尺码": "尺码2" }, "common_detail": "", "common_spec_value_c": { "1": { "5": "纯黑" } }, "common_spec_value_color": { "5": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg!360x360.jpg" }, "goods_name": "俄罗斯方块", "goods_promotion_tips": "", "goods_spec": { "5": "纯黑" }, "goods_price": "10.00", "goods_market_price": "100.00", "goods_stock": "869", "goods_alarm": "0", "goods_code": "", "goods_barcode": "", "goods_is_recommend": "1", "goods_click": "490", "goods_salenum": "46", "goods_collect": "2", "goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg", "color_id": "5", "goods_evaluation_good_star": "5", "goods_evaluation_count": "16", "goods_max_sale": "0", "goods_is_shelves": "1", "goods_recommended_price": "0.00", "goods_parent_id": "0", "groupbuy_info": [], "xianshi_info": [], "increase_info": [], "pintuan_info": { "mark_list": 0 }, "image_row": [ { "images_id": "356", "common_id": "56", "shop_id": "2", "images_color_id": "5", "images_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg", "images_displayorder": "0", "images_is_default": "1", "id": "356" }, { "images_id": "357", "common_id": "56", "shop_id": "2", "images_color_id": "5", "images_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180327/1522141141754311.jpg", "images_displayorder": "0", "images_is_default": "0", "id": "357" }, { "images_id": "358", "common_id": "56", "shop_id": "2", "images_color_id": "5", "images_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180327/1522141144694841.jpg", "images_displayorder": "0", "images_is_default": "0", "id": "358" } ], "evalcount": 15, "salecount": 44, "have_gift": "", "cart": true, "count_sale": 46, "show_goods_spec_str": "颜色:纯黑 ", "spec_list": { "颜色": { "5": { "specs_value_id": 5, "specs_value_name": "纯黑" } } }, "chain_stock": 1 }, "goods_commend_list": [ { "common_id": "56", "common_name": "俄罗斯方块", "common_promotion_tips": "", "cat_id": "103", "cat_name": "袜子", "shop_id": "2", "shop_name": "爱咋咋地", "shop_cat_id": ",,", "shop_goods_cat_id": 0, "goods_id": "61", "shop_self_support": "0", "shop_status": "3", "common_property": { "property_2": { "0": "尺码", "1": "2", "2": "select", "3": "2" } }, "common_spec_name": { "1": "颜色" }, "common_spec_value": { "1": { "5": "纯黑" } }, "brand_id": "0", "brand_name": "", "type_id": "2", "common_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg", "common_packing_list": "", "common_service": "服务说明书,又名服务指南。是服务行业、社会服务机构向用户介绍自己所提供服务的性质、对象、收费情况及申请或使用这种服务的办法、条件等而使用的说明书。\r\n", "common_state": "1", "common_state_remark": "", "common_verify": "1", "common_verify_remark": "", "common_add_time": "2018-04-09 15:23:40", "common_sell_time": "2018-04-09 15:23:40", "common_price": "10.00", "common_market_price": "100.00", "common_cost_price": "1.00", "common_stock": "873", "common_limit": "0", "common_alarm": "0", "common_code": "", "common_platform_code": "0", "common_cubage": "3.00", "common_collect": "2", "common_evaluate": "18", "common_salenum": "66", "common_invoices": "1", "common_is_return": "0", "common_formatid_top": "0", "common_formatid_bottom": "0", "common_is_recommend": "1", "common_is_virtual": "0", "common_virtual_date": "0000-00-00", "common_virtual_refund": "0", "transport_type_id": "0", "common_location": "", "common_is_tuan": "0", "common_is_xian": "0", "common_is_jia": "0", "common_shop_contract_1": "0", "common_shop_contract_2": "0", "common_shop_contract_3": "1", "common_shop_contract_4": "1", "common_shop_contract_5": "0", "common_shop_contract_6": "0", "cps_rate": "0", "second_cps_rate": "0", "third_cps_rate": "0", "common_cps_rate": "0.00", "common_second_cps_rate": "0.00", "common_third_cps_rate": "0.00", "common_is_directseller": "0", "product_lock_flag": "0", "product_agent_id": "0", "district_id": "38", "supply_shop_id": "0", "product_is_allow_update": "1", "product_is_allow_price": "1", "product_is_behalf_delivery": "1", "common_parent_id": "0", "goods_recommended_min_price": "0.00", "goods_recommended_max_price": "0.00", "product_distributor_flag": "0", "common_distributor_description": "", "common_distributor_flag": "0", "common_cps_commission": "0.00", "common_goods_from": "1", "transport_area_id": "4", "id": "56" } ], "goods_eval_list": [], "goods_evaluate_info": [], "goods_hair_info": { "content": "免运费", "store": "869", "result": true, "if_store_cn": "有货", "if_store": true, "area_name": "上海 黄浦区", "district_id": "143", "transport_data": { "transport_str": "免运费", "result": true, "rule_info": [] } }, "goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg!360x360.jpg,https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180327/1522141141754311.jpg!360x360.jpg,https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180327/1522141144694841.jpg!360x360.jpg", "goods_one_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg", "mansong_info": { "mansong_id": "17", "mansong_name": "23432434234234234234", "combo_id": "0", "mansong_start_time": "2018-04-10 13:50:00", "mansong_end_time": "2018-04-19 13:50:00", "user_id": "10003", "shop_id": "2", "user_nickname": "", "shop_name": "爱咋咋地", "mansong_state": "1", "mansong_remark": "23132", "id": "17", "mansong_state_label": "正常", "rule": [ { "rule_id": "20", "mansong_id": "17", "rule_price": "10.00", "rule_discount": "3.00", "goods_name": "扫地机器人", "goods_id": "100", "id": "20", "goods_price": "800.00", "goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180408/1523159849763673.jpg!500x500.jpg" } ] }, "spec_list": { "5": 61 }, "spec_list_info": { "5": 61 }, "stock_list": { "5": "869" }, "price_list": { "5": "10.00" }, "spec_image": { "5": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg!360x360.jpg" }, "store_info": { "is_own_shop": "false", "member_id": "10003", "member_name": "zade", "store_id": "2", "store_name": "爱咋咋地", "store_logo": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522651794986295.jpg!200x60.jpg", "store_tel": "", "store_credit": { "store_deliverycredit": { "credit": "4.33", "text": "物流" }, "store_desccredit": { "credit": "4.33", "text": "描述" }, "store_servicecredit": { "credit": "4.27", "text": "服务" } }, "is_open_Im": 1 }, "buyer_limit": "0", "is_favorate": false, "shop_owner": 0, "isBuyHave": 0, "good_pre": 87, "rec_images": "", "promotion_info": { "man_song": { "mansong_id": "17", "mansong_name": "23432434234234234234", "combo_id": "0", "mansong_start_time": "2018-04-10 13:50:00", "mansong_end_time": "2018-04-19 13:50:00", "user_id": "10003", "shop_id": "2", "user_nickname": "", "shop_name": "爱咋咋地", "mansong_state": "1", "mansong_remark": "23132", "id": "17", "mansong_state_label": "正常", "rule": [ { "rule_id": "20", "mansong_id": "17", "rule_price": "10.00", "rule_discount": "3.00", "goods_name": "扫地机器人", "goods_id": "100", "id": "20", "goods_price": "800.00", "goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180408/1523159849763673.jpg!500x500.jpg" } ] }, "voucher_list": [ { "voucher_t_id": "31", "voucher_t_title": "测试免费领取代金券", "voucher_t_desc": "测试免费领取代金券", "shop_class_id": "0", "voucher_t_start_date": "2018-04-08 14:05:27", "voucher_t_end_date": "2018-04-11 23:59:59", "voucher_t_price": "10.00", "voucher_t_limit": 100, "shop_id": "2", "shop_name": "爱咋咋地", "voucher_t_creator_id": "10003", "voucher_t_state": "1", "voucher_t_total": "500", "voucher_t_giveout": "8", "voucher_t_used": "1", "voucher_t_add_date": "2018-04-08 14:05:27", "voucher_t_update_date": "2018-04-08 14:05:27", "combo_id": "0", "voucher_t_points": "0", "voucher_t_eachlimit": "2", "voucher_t_styleimg": "", "voucher_t_customimg": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180408/1523167524388773.jpg!200x200.jpg", "voucher_t_access_method": "3", "voucher_t_recommend": "1", "voucher_t_user_grade_limit": "1", "id": "31", "voucher_t_state_label": "有效", "voucher_t_access_method_label": "免费领取", "voucher_t_recommend_label": "是", "voucher_t_end_date_day": "2018-04-11", "is_get": 0 } ] }, "share": "https://sasswap.local.yuanfeng021.com//tmpl/pintuan_detail.html?goods_id=61&pt_detail_id=" } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 商品详情-网页图片 ~~~[api] post:/index.php?ctl=Goods_Goods&met=getCommonDetail&typ=json *string:goods_id#goods_id <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "common_body": "" } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 商品详情-评价 ~~~[api] post:/index.php?ctl=Goods_Goods&met=getGoodsEvaluationList&typ=json *string:goods_id#goods_id *string:type#类型 *string:curpage#curpage *string:page#page *string:sou=wap#sou <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "page": 1, "total": 2, "totalsize": 17, "records": 10, "items": [ [ { "evaluation_goods_id": "62", "user_id": "10029", "member_name": "13333333333", "order_id": "DD-10003-2-102-20180322170056-0001", "shop_id": "2", "shop_name": "爱咋咋地", "common_id": "56", "goods_id": "61", "goods_name": "俄罗斯方块", "goods_price": "0.01", "goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg", "scores": "5", "result": "good", "content": "dsadsadas", "image": "", "isanonymous": "0", "create_time": "2018-04-03 10:12:37", "status": "1", "explain_content": "", "update_time": "0000-00-00 00:00:00", "evaluation_from": "1", "id": "62", "image_row": [], "diff_date": 17625, "user_name": "13333333333", "diff_time": 11, "goods_spec": { "5": "纯黑" }, "goods_spec_str": "颜色:纯黑 ", "user_grade_logo": "https://127.0.0.1/yf_shop/shop/data/upload/media/plantform/image/20160613/1465806126141144.jpg", "user_grade_name": "呵呵呵", "user_logo": "https://sassucenter.local.yuanfeng021.com/ucenter/data/upload/images/1522377530.png" } ] ], "count": { "all_count": 15, "img_count": 5, "good_count": 13, "middle_count": 3, "bad_count": 0, "state": "all" } } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 商品详情-是否有货 ~~~[api] post:/index.php?ctl=Goods_Goods&met=getTramsport&typ=json *string:common_id#common_id *string:area_id#area_id <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "transport_str": "免运费", "result": true, "rule_info": [] } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 商品详情-单条评论 ~~~[api] post:/index.php?ctl=Goods_Goods&met=getGoodsNewReview&typ=json&sort=scores *string:goods_id#goods_id <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "goods_review_rows": [ { "evaluation_goods_id": "69", "user_id": "10029", "member_name": "13333333333", "order_id": "DD-10003-2-102-20180322174836-0001", "shop_id": "2", "shop_name": "爱咋咋地", "common_id": "56", "goods_id": "61", "goods_name": "俄罗斯方块", "goods_price": "0.01", "goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg", "scores": "5", "result": "good", "content": "43242424242", "image": "", "isanonymous": "0", "create_time": "2018-04-03 17:17:56", "status": "1", "explain_content": "", "update_time": "0000-00-00 00:00:00", "evaluation_from": "1", "id": "69", "image_row": [], "diff_date": 0, "user_name": "13333333333", "diff_time": 11, "goods_spec": { "5": "纯黑" }, "goods_spec_str": "颜色:纯黑 ", "user_grade_logo": "https://127.0.0.1/yf_shop/shop/data/upload/media/plantform/image/20160613/1465806126141144.jpg", "user_grade_name": "呵呵呵", "user_logo": "https://sassucenter.local.yuanfeng021.com/ucenter/data/upload/images/1522377530.png", "spec_val_str": "纯黑" } ], "num": "18" } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 商品详情-收藏商品 ~~~[api] post:/index.php?ctl=Goods_Goods&met=collectGoods&typ=json *string:goods_id#goods_id *string:u#u *string:k#k <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "msg": "收藏成功!" } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 商品详情-取消收藏 ~~~[api] post:/index.php?ctl=Buyer_Favorites&met=delFavoritesGoods&typ=json *string:id#id *string:u#u *string:k#k <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": {} } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 获取购物车数量 ~~~[api] post:/index.php?ctl=Buyer_Cart&met=getCartGoodsNum&typ=json *string:u#u *string:k#k <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "0": "0", "cart_count": "0" } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~ ### 加入购物车 ~~~[api] post:/index.php?ctl=Buyer_Cart&met=addCart&typ=json *string:u#u *string:k#k *string:goods_id#goods_id *string:goods_num#goods_num <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "flag": 645, "msg": "success", "cart_id": 645 } } <<< error { "cmd_id": -140, "status": 250, "msg": "failure", "data": {} } ~~~