Created
August 9, 2012 13:24
-
-
Save czy88840616/3304164 to your computer and use it in GitHub Desktop.
服务平台 demo json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from:unity | |
m:changeaddress //还有可能是changeamount、changebundle、changefare、changeservice | |
ordersData: | |
{ | |
"divisionCode": "330106", | |
"oid": "b_13926520622", //changeservice时变化的订单 | |
"sid": "2222", //changeservice时变化的服务 | |
"isCod":true, //changefare时 | |
"isStepPay":true, | |
"orders": { | |
"b_13926520622": { | |
"shopPromotionDis": 0, | |
"orderPostFree": false, | |
"services": { | |
"1111": { | |
"title": "运费险", | |
"text": "购买买家运费险,最高赔付10元", | |
"price": "600", | |
"desc": "多余的文案", | |
"selected": false, | |
"readonly": false, | |
"url": "http://www.taobao.com", | |
"type": "text" | |
}, | |
"2222": { | |
"subServiceList": [ | |
{ | |
"id": "2222_1", | |
"title": "不延保", | |
"price": "0", | |
"desc": "", | |
"selected": false | |
}, | |
{ | |
"id": "2222_2", | |
"title": "延保1年", | |
"price": "10000", | |
"desc": "", | |
"selected": true | |
}, | |
{ | |
"id": "2222_3", | |
"title": "延保3年", | |
"price": "20000", | |
"desc": "折扣优惠中,优惠100", | |
"selected": false | |
}, | |
{ | |
"id": "2222_4", | |
"title": "延保5年", | |
"price": "30000", | |
"desc": "折扣优惠中,优惠200", | |
"selected": false | |
} | |
], | |
"type": "select", | |
"readonly": false, | |
"group": "insure_v2" | |
}, | |
"3333": { | |
"title": "买家保障险", | |
"text": "免费赠送买家保障险,最高赔付10元", | |
"price": "0", | |
"desc": "", | |
"selected": true, | |
"readonly": true, | |
"url": "", | |
"type": "text", | |
"group": "insure_v2" | |
} | |
}, | |
"items": { | |
"12728225657:0": { | |
"quantity": "1", | |
"itemId": "12728225657:0", | |
"unitPrice": "995", | |
"itemPromotionDis": 0, | |
"itemPostFree": false, | |
"services": { | |
"1111": { | |
"title": "运费险", | |
"text": "购买买家运费险,最高赔付10元", | |
"price": "600", | |
"desc": "多余的文案", | |
"selected": false, | |
"readonly": false, | |
"url": "http://www.taobao.com", | |
"type": "text" | |
}, | |
"2222": { | |
"subServiceList": [ | |
{ | |
"id": "2222_1", | |
"title": "不延保", | |
"price": "0", | |
"desc": "", | |
"selected": false | |
}, | |
{ | |
"id": "2222_2", | |
"title": "延保1年", | |
"price": "10000", | |
"desc": "", | |
"selected": true | |
}, | |
{ | |
"id": "2222_3", | |
"title": "延保3年", | |
"price": "20000", | |
"desc": "折扣优惠中,优惠100", | |
"selected": false | |
}, | |
{ | |
"id": "2222_4", | |
"title": "延保5年", | |
"price": "30000", | |
"desc": "折扣优惠中,优惠200", | |
"selected": false | |
} | |
], | |
"type": "select", | |
"readonly": false, | |
"group": "insure_v2" | |
}, | |
"3333": { | |
"title": "买家保障险", | |
"text": "免费赠送买家保障险,最高赔付10元", | |
"price": "0", | |
"desc": "", | |
"selected": true, | |
"readonly": true, | |
"url": "", | |
"type": "text", | |
"group": "insure_v2" | |
} | |
} | |
} | |
}, | |
"fare": 5 | |
}, | |
"b_12345": { | |
"shopPromotionDis": 0, | |
"orderPostFree": false, | |
"services": { | |
}, | |
"items": { | |
"7406866533:0": { | |
"quantity": "2", | |
"itemId": "7406866533:0", | |
"unitPrice": "1080", | |
"itemPromotionDis": 0, | |
"itemPostFree": false, | |
"services": { | |
} | |
} | |
}, | |
"fare": 0, | |
"sellerId":"1237984453" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//地址切换,运费险变化,延保险删除 | |
{ | |
"result": "success", | |
"data": { | |
"services": { | |
"2222": { | |
"trigger": { | |
"hidden": ["fare"] | |
}, | |
"request": true | |
} | |
}, | |
"orders": { | |
"b_13926520622": { | |
"services": { | |
"1111": { | |
"selected": false, | |
"text": "购买买家运费险,最高赔付12元", | |
"title": "运费险", | |
"desc": "多余的文案", | |
"price": "800", | |
"type": "text", | |
"readonly": false, | |
"url": "http://www.taobao.com" | |
}, | |
"3333": { | |
} | |
} | |
}, | |
"12728225657:0": { | |
"services": { | |
"4444": { | |
}, | |
"5555": { | |
}, | |
"6666": { | |
} | |
} | |
} | |
}, | |
"groups": { | |
"insure": { | |
"title": "淘保包" | |
}, | |
"insure_v2": { | |
"title": "延保险" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//立刻购买初始化json | |
{ | |
"orders": { | |
"b_13926520622": { | |
"buyerId": "222", | |
"services": { | |
"1111": { | |
"title": "运费险", | |
"text": "购买买家运费险,最高赔付10元", | |
"price": "600", | |
"desc": "多余的文案", | |
"selected": false, | |
"readonly": false, | |
"url": "http://www.taobao.com", | |
"type": "text" | |
} | |
} | |
}, | |
"12728225657:0": { | |
"type": "steppay", | |
"currentStep": 1, | |
"services": { | |
"4444": { | |
"text": "免费鉴定,假一陪三", | |
"price": "600", | |
"desc": "tip的文案", | |
"selected": true, | |
"readonly": false, | |
"url": "http://www.taobao.com", | |
"group": "insure", | |
"type": "text" | |
}, | |
"5555": { | |
"title": "运费险", | |
"text": "闪电发货", | |
"price": "200", | |
"desc": "tip的文案", | |
"selected": false, | |
"readonly": false, | |
"url": "http://xxxx", | |
"group": "insure", | |
"type": "text" | |
}, | |
"6666": { | |
"title": "家装服务", | |
"subServiceList": [ | |
{ | |
"id": "6666_1", | |
"title": "送货到家50元", | |
"price": "5000", | |
"desc": "仅仅是送货", | |
"selected": true | |
}, | |
{ | |
"id": "6666_2", | |
"title": "送货到家+搬楼服务100元", | |
"price": "10000", | |
"desc": "", | |
"selected": false | |
}, | |
{ | |
"id": "6666_3", | |
"title": "送货到家+搬楼服务+安装200元", | |
"price": "20000", | |
"desc": "送货、搬楼、安装,三重福利", | |
"selected": false | |
} | |
], | |
"type": "select", | |
"readonly": false | |
} | |
} | |
} | |
}, | |
"services": { | |
"2222": { | |
"request": true, | |
"trigger": { | |
"hidden": [ | |
"fare" | |
] | |
} | |
} | |
}, | |
"groups": { | |
"insure": { | |
"title": "淘保包" | |
}, | |
"insure_v2": { | |
"title": "延保险" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//购物车初始化json | |
{ | |
"orders":{ | |
"b_13926520622":{ | |
"services":{ | |
"1111":{ | |
"title": "运费险", | |
"text": "购买买家运费险,最高赔付10元", | |
"price": "600", | |
"desc":"多余的文案", | |
"selected": false, | |
"readonly":false, | |
"url":"http://www.taobao.com", | |
"type":"text" | |
}, | |
"2222":{ | |
"url":"http://www.taobao.com", | |
"desc":"多余的文案", | |
"subServiceList":[ | |
{ | |
"id": "2222_1", | |
"title": "不延保", | |
"price": "0", | |
"desc":"", | |
"selected": false | |
}, | |
{ | |
"id": "2222_2", | |
"title": "延保1年", | |
"price": "10000", | |
"desc":"", | |
"selected": false | |
}, | |
{ | |
"id": "2222_3", | |
"title": "延保3年", | |
"price": "20000", | |
"desc":"折扣优惠中,优惠100", | |
"selected": false | |
}, | |
{ | |
"id": "2222_4", | |
"title": "延保5年", | |
"price": "30000", | |
"desc":"折扣优惠中,优惠200", | |
"selected": true | |
} | |
], | |
"type":"select", | |
"readonly":false, | |
"group":"insure_v2" | |
}, | |
"3333":{ | |
"title": "买家保障险", | |
"text": "免费赠送买家保障险,最高赔付10元", | |
"price": "0", | |
"desc":"", | |
"selected": true, | |
"readonly":true, | |
"url":"", | |
"type":"text", | |
"group":"insure_v2" | |
} | |
} | |
}, | |
"12728225657:0":{ | |
"services":{ | |
"4444":{ | |
"text": "免费鉴定,假一陪三", | |
"price": "600", | |
"desc":"tip的文案", | |
"selected": true, | |
"readonly":false, | |
"url":"http://www.taobao.com", | |
"group":"insure", | |
"type":"text" | |
}, | |
"5555":{ | |
"title": "运费险", | |
"text": "闪电发货", | |
"price": "200", | |
"desc":"tip的文案", | |
"selected": false, | |
"readonly":false, | |
"url":"http://xxxx", | |
"group":"insure", | |
"type":"text" | |
}, | |
"6666":{ | |
"title": "家装服务", | |
"subServiceList":[ | |
{ | |
"id": "6666_1", | |
"title": "送货到家50元", | |
"price": "5000", | |
"desc":"仅仅是送货", | |
"selected": true | |
}, | |
{ | |
"id": "6666_2", | |
"title": "送货到家+搬楼服务100元", | |
"price": "10000", | |
"desc":"", | |
"selected": false | |
}, | |
{ | |
"id": "6666_3", | |
"title": "送货到家+搬楼服务+安装200元", | |
"price": "20000", | |
"desc":"送货、搬楼、安装,三重福利", | |
"selected": false | |
} | |
], | |
"type":"select", | |
"readonly":false | |
} | |
} | |
} | |
}, | |
"services":{ | |
"2222":{ | |
"request":true, | |
"trigger":{ | |
"hidden": ["fare"] //"show":["fare"] | |
} | |
} | |
}, | |
"groups":{ | |
"insure":{ | |
"title":"淘保包" | |
}, | |
"insure_v2": { | |
"title":"延保险" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment