根据商家唯一标识获取商家对应的所提供的服务列表
接口地址:[接口根]/plugin/sjfw-api/servicebyshop
请求类型:get
{
"shops": {
"shopname": "玩儿",
"shopdesc": "asfasdfasdsds",
"shopphone": "13163210137",
"shopaddress": "麦克斯南分特种气体公司",
"shoppic": [
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/1ca6eb714f265fcf58e8023b2f3d0259.png",
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/e5d5ed243479c224da1f89943bb3769a.png",
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/ca742499ab517855b718d87160e2f680.png"
],
"shopcredit": 5
},
"service": [
{
"serviceid": "55ed5d5bc137e0d01b000039",
"sname": "1111",
"stype": "打蜡",
"orisprice": 402,
"sprice": 1111,
"scredit": 5,
"spic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/c5a42a8756e1f8d9600b0e737c825f51.png",
"shopid": "55ed5d5bc137e0d01b000029"
},
{
"serviceid": "55ed5d5bc137e0d01b000029",
"sname": "2222",
"stype": "抛光",
"orisprice": 402,
"sprice": 11111,
"scredit": 3,
"spic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/1be93ab0b03ebb8096faa109869429ed.png",
"shopid": "55ed5d5bc137e0d01b000029"
}
]
}服务信息:商家服务名称:sname,服务类型:stype,服务价格:sprice,服务星级:scredit,服务展示图片:spic,
商家信息:商家唯一标识:shopid,商家名称:shopname,商家简介:shopdesc,商家地址:shopaddress
根据搜索框内容获取当前位置方圆5公里符合条件的服务列表
接口地址:[接口根]/plugin/sjfw-api/search
请求类型:get
[
{
"slong": 118.773604,
"slat": 31.992609,
"sname": "111",
"stype": "打蜡",
"orisprice": 2323,
"sprice": 2323,
"scredit": 5,
"spic": null,
"shopid": "55e3e031c137e0481b000029",
"serviceid": "55e3f1d4c137e0481b00002f",
"range": 0,
"shopname": "1212",
"shopdesc": "1212",
"shopphone": "12345678912",
"shopaddress": "12",
"shoppic": null,
"shopcredit": "5"
},
{
"slong": 118.773617,
"slat": 31.992609,
"sname": "1123",
"stype": "打蜡",
"orisprice": 2323,
"sprice": 3434,
"scredit": 5,
"spic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150831/1e4c9ebef175435a05072d5873aa8809.jpg",
"shopid": "55dc2023c137e0ac18000034",
"serviceid": "55e3f1e8c137e0481b000030",
"range": 0.0012252114761646,
"shopname": "2425",
"shopdesc": "2425242524252425",
"shopphone": "23423222221",
"shopaddress": "24523",
"shoppic": [
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/1ca6eb714f265fcf58e8023b2f3d0259.png",
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/e5d5ed243479c224da1f89943bb3769a.png",
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150907/ca742499ab517855b718d87160e2f680.png"
],
"shopcredit": "5"
},
{
"slong": 118.773604,
"slat": 31.992609,
"sname": "1111",
"stype": "打蜡",
"orisprice": 2323,
"sprice": 234,
"scredit": 5,
"spic": null,
"shopid": "55e3f61fc137e0741b00002c",
"serviceid": "55e3f641c137e0481b000031",
"range": 0,
"shopname": "11",
"shopdesc": "23",
"shopphone": "23123123111",
"shopaddress": "23",
"shoppic": null,
"shopcredit": 5
}
]商家服务信息:服务唯一标识:serviceid,服务名称:sname,服务类型:stype,服务价格:sprice,服务星级:scredit,服务展示图片:spic
商家信息:商家唯一标识:shopid,商家距离:range(单位km)商家名称:shopname,商家简介:shopdesc,商家地址:shopaddress
接口地址:[接口根]/plugin/sjfw-api/post
请求类型:post
{
"state": -1,
"message": "手机或电话号码格式不正确。如果是固定电话,必须形如(xxxx-xxxxxxxx)!"
}
{
"state": -2,
"message": "注册信息商家号码重复,请重新填写申请注册信息!"
}
{
"state": -3,
"message": "身份证、营业执照必须上传!"
}
{
"token": "VZBxy6C8Je1/K//gwE/uN0KwGXnQeui2PNGu3I1XPUCRVV7M/odguy8vUXGn25AJ2CqqX94ZH9OuDWFSTk0R/OJU71JLa6RfGINcC8g2VQ/8JIczHbmX1g==",
"state": 1,
"message": "消息注册发送申请成功!请等待审核!"
}
{
"state": 0,
"message": "消息注册发送申请失败!请检查重新填写!"
}点击服务列表查看商家服务详细信息
接口地址:[接口根]/plugin/sjfw-api/serviceinfo
请求类型:get
{
"service": [
{
"sname": "测试",
"stype": "洗车",
"orisprice": 123,
"sprice": 123,
"scredit": 5,
"sdesc": "123123123",
"spic": null,
"shopid": "55f26e6dc137e09416000029",
"shopname": "花神庙",
"shopdesc": "111111111",
"shopphone": "13511111111",
"shopaddress": "花神庙10号智慧城市产业园02栋6楼601室",
"shopcredit": 4
}
],
"cominfo": [
{
"consumeid": "id55f27da1c137e0941600002b",
"comname": "陆俊达2号",
"comtime": 1441955789,
"comment": "评论",
"score": 4.5,
"facepic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150908/b4284b612f4ea49f57e4fb85dfcdefa3.png"
},
{
"consumeid": "id55f27da1c137e0941600002b",
"comname": "陆俊达",
"comtime": 1441957103,
"comment": "评论",
"score": 4.5,
"facepic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20150908/b4284b612f4ea49f57e4fb85dfcdefa3.png"
}
]
}sname:服务名称、标题
stype:服务类型
sprice:服务价格
scredit:服务星级
sdesc:服务简介
spic:服务图片
shopid:商家id
shopname:商家名称
shopphone:商家号码
shopdesc:商家简介
shopaddress:商家地址
shoppic:商家图片
shopcredit:商家信誉
cominfo:服务评论列表,facepic:头像
获取所有商家服务类型列表,作为基础数据下拉列表选项
接口地址:[接口根]/plugin/sjfw-api/servicetypeinfo
请求类型:get
[
{
"typelist": [
{
"stype": "玩儿玩儿1",
"id": "55fb842fc137e0780b000029"
},
{
"stype": "全文",
"id": "55fb84bfc137e0780b00002b"
}
],
"arr": {
"sum": 1,
"state": 1,
"message": "你的余额是",
"money": "256999.77"
}
}
]
[
{
"typelist": [
{
"stype": "玩儿玩儿1",
"id": "55fb842fc137e0780b000029"
},
{
"stype": "全文",
"id": "55fb84bfc137e0780b00002b"
}
],
"arr": {
"sum": 1,
"state": 0,
"message": "用户不存在"
}
}
]stypelist:商家服务类型列表.sum:服务总数量,money:当前登录用户的余额。
根据参数查询所有服务列表以及商家信息
接口地址:[接口根]/plugin/sjfw-api/services
请求类型:get
[
{
"slong": 45.34,
"slat": 35.34,
"sname": "hello",
"stype": "哎呀",
"orisprice": 402,
"sprice": 401,
"scredit": 5,
"spic": null,
"shopid": "55dc18c3c137e0ac18000031",
"serviceid": "55deb617c137e0601b00002a",
"range": 1.1112511347454,
"shopname": "OhNo",
"shopdesc": "1231231",
"shopphone": "12345666666",
"shopaddress": "一个只有我们知道的地方",
"shopcredit": 5
},
{
"slong": 45.34,
"slat": 35.34,
"sname": "what",
"stype": "美容",
"orisprice": 402,
"sprice": 267,
"scredit": 5,
"spic": null,
"shopid": "55dc18c3c137e0ac18000031",
"serviceid": "55deb617c137e0601b000021",
"range": 1.1112511347454,
"shopname": "OhNo",
"shopdesc": "1231231",
"shopphone": "12345666666",
"shopaddress": "一个只有我们知道的地方",
"shopcredit": 5
}
]商家服务信息:服务唯一标识:serviceid,服务名称:sname,服务类型:stype,服务价格:sprice,服务星级:scredit,服务展示图片:spic
商家信息:商家唯一标识:shopid,商家距离:range(单位km)商家名称:shopname,商家简介:shopdesc,商家地址:shopaddress
当前登录用户的商户详细信息
接口地址:[接口根]/plugin/sjfw-api/businessinfo
请求类型:get
[
{
"bname": "水电费",
"bstate": 1,
"baddress": "玩儿玩儿去",
"bphone": "13423454321",
"bdesc": "阿斯顿发斯蒂芬",
"bpic": [
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151008/40b4280add0c2e21087ee1e73248edd2.jpg",
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151008/a142237d440d76b27eda7e21e492a71b.jpg",
"http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151008/c4531f1fe08cb4aab43e0d79262c0e86.jpg"
],
"businessid": "56023dc2c137e0b40800002d",
"rate":20
}
]bstate:入驻状态,1待审核,2通过,3拒绝
商户信息审核通过后修改个人信息,从新审核
接口地址:[接口根]/plugin/sjfw-api/updatebusiness
请求类型:post
{
"state": 1,
"message": "商户信息修改成功!"
}
{
"state": 0,
"message": "商户信息修改失败!请检查重新填写!"
}
{
"state": -1,
"message": "手机或电话号码格式不正确。如果是固定电话,必须形如(xxxx-xxxxxxxx)!"
}
{
"state": -2,
"message": "身份证、营业执照必须上传!"
}根据商家用户账号唯一标识获取商家对应的所有服务的所有订单列表
接口地址:[接口根]/plugin/sjfw-api/orderlist
请求类型:get
{
"arr": [
{
"orderno": "20151010445618b094c1bdc",
"username": "迷途小书",
"user_openid": "55f7eab927f38e00020001e5",
"serviceid": "5618852f27f38e100f000282",
"mobile": "13260778082",
"sname": "自我",
"stype": "轮圈轮胎保养",
"sprice": "250",
"spic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151010/2a1edd317746cd94639db18e5b1daf8f.jpg",
"amount": 250,
"datatime": 1444458644,
"count": 3
},
{
"orderno": "20151010385618b08e2cd53",
"username": "迷途小书",
"user_openid": "55f7eab927f38e00020001e5",
"serviceid": "5618af4027f38e481100014a",
"mobile": "13260778082",
"sname": "咯哦哦哦",
"stype": "抛光",
"sprice": "150",
"spic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151010/8b21fbd03e098e61d762fd7743fb19ae.png",
"amount": 150,
"datatime": 1444458638,
"count": 1
},
{
"orderno": "201510105856189e5ab1020",
"username": "迷途小书",
"user_openid": "55f7eab927f38e00020001e5",
"serviceid": "5618852f27f38e100f000282",
"mobile": "13260778082",
"sname": "自我",
"stype": "轮圈轮胎保养",
"sprice": "250",
"spic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151010/2a1edd317746cd94639db18e5b1daf8f.jpg",
"amount": 250,
"datatime": 1444453978,
"count": 3
},
{
"orderno": "201510102056188598084fe",
"username": "迷途小书",
"user_openid": "55f7eab927f38e00020001e5",
"serviceid": "5618852f27f38e100f000282",
"mobile": "13260778082",
"sname": "自我",
"stype": "轮圈轮胎保养",
"sprice": "250",
"spic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151010/2a1edd317746cd94639db18e5b1daf8f.jpg",
"amount": 250,
"datatime": 1444447640,
"count": 3
}
],
"countamount": 900,
"countsum": 4,
"businessinfo": {
"shopid": "561884a527f38efc0900010c",
"bname": "咯哦哦哦",
"bphone": "13260778096"
}
}orderno:订单编号,sname:服务名称,stype:服务类型,sprice:价格,scredit:信誉,sdesc:简介,spic:图片,username:购买者,mobile:手机号,datatime:下单日期 ,amount:成交价格,count:服务销售总量
countamount:总金额,countsum:订单总数量,businessinfo:个人商户信息
商户服务产品信息录入
接口地址:[接口根]/plugin/sjfw-api/addservice
请求类型:post
{
"state": 1,
"message": "服务信息录入成功!"
}
{
"state": -1,
"message": "商户信息未通过审核、或者未入驻商户信息!"
}
{
"state": 0,
"message": "服务信息录入失败!请检查重新填写!"
}查询商户服务产品列表
接口地址:[接口根]/plugin/sjfw-api/servicelist
请求类型:get
[
{
"sname": "问问",
"stype": "qwq",
"sprice": "1",
"scredit": 1,
"serviceid": "5615dd80c137e0f01500002a"
},
{
"sname": "www",
"stype": "qwq",
"sprice": "2",
"scredit": 1,
"serviceid": "5615e211c137e0f01500002b"
}
]商家服务产品信息修改
接口地址:[接口根]/plugin/sjfw-api/updateservice
请求类型:post
{
"state": 1,
"message": "服务产品信息修改成功!"
}
{
"state": 0,
"message": "服务信息修改失败!请检查重新填写!"
}
接口地址:[接口根]/plugin/sjfw-api/basedata
请求类型:get
[
{
"value": "测试",
"id": "5640802cc137e0e41000002c"
},
{
"value": "中国农业银行",
"id": "56407e6fc137e0ec1600002d"
}
]