clone 开源的 Shopping

This commit is contained in:
sin
2019-03-04 15:28:16 +08:00
parent 78945c61a7
commit c9d71726fa
83 changed files with 9774 additions and 0 deletions

3780
mobile-web/src/data/area.js Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
{
}

View File

@@ -0,0 +1,34 @@
import success from './common/success.json'
import GetPage from './page/GetPage.json'
import PageProduct from './page/Product.json'
import GetUserIndex from './user/GetUserIndex.json'
import GetFavorite from './user/GetFavorite.json'
import GetAddressList from './user/GetAddressList.json'
import GetAddressById from './user/GetAddressById.json'
import GetCoupon from './user/GetCoupon.json'
export default {
'/Page/GetPage':GetPage,
'/Page/Product':PageProduct,
'/User/GetUserIndex':GetUserIndex,
'/User/GetFavorite':GetFavorite,
'/User/DelFavorite':success,
'/User/GetAddressList':GetAddressList,
'/User/GetAddressById':GetAddressById,
'/User/SaveAddress':success,
'/User/DelAddress':success,
'/User/GetCoupon':GetCoupon,
'/User/ExchangeCoupon':success,
}

View File

@@ -0,0 +1,288 @@
{
"PageId": 11,
"Name": "仿考拉",
"BackgroundColor": "",
"Sections": [
{
"PageSectionId": 2511,
"Code": "Search",
"ParameterDictionary": {
"keyword": "搜索商品",
"position": "fixed",
"backgroundcolor": "#f9f9f9",
"color": "#999999",
"textalign": "center",
"boxcolor": "#ffffff",
"boxtype": "2"
}
},
{
"PageSectionId": 2512,
"Code": "ImageAd",
"ParameterDictionary": {
"type": "1",
"imagegap": "0",
"shownumber": "4",
"imagelist": [
{
"link": "/#/search?categoryid=12",
"src": "https://haitao.nos.netease.com/6BXWTT4KF3v2CCD1KVT1809182052_960_480.jpg"
},
{
"link": "/#/product/4",
"src": "https://haitao.nosdn2.127.net/ThUbIr9WnE7TbTwTapp-kvAiT1809190053_960_480.jpg"
},
{
"link": "/#/product/4",
"src": "https://haitao.nos.netease.com/f3kJUUtkrDbsiU1LtopkHcBGgT1809182243_960_480.jpg"
},
{
"link": "/#/product/4",
"src": "https://haitao.nosdn2.127.net/EWQ1UI83HQ03U2TLaeShRtEhK19n7175ceTT1809191639_960_480.jpg"
}
]
}
},
{
"PageSectionId": 2513,
"Code": "ImageAd",
"ParameterDictionary": {
"type": "2",
"imagegap": "0",
"shownumber": "4",
"imagelist": [
{
"link": "",
"linkname": "",
"src": "https://haitao.nos.netease.com/gr4TfN5hhFhFg1CaUgya1mdkPDLpE4WTT1806271501_1125_144.png",
"title": ""
}
]
}
},
{
"PageSectionId": 2514,
"Code": "ImageText",
"ParameterDictionary": {
"type": "1",
"showtype": "1",
"shownumber": "4",
"color": "",
"backgroundcolor": "",
"imagelist": [
{
"link": "",
"src": "https://haitao.nos.netease.com/gefNTDIqyQsSAEtSpy222T1808221621_192_220.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nosdn2.127.net/NVSMWxQKvHyakuP6WruN3T1809031519_192_220.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nosdn1.127.net/2dWeQg9FCfC8whIZWhac4T1809031520_192_220.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nosdn1.127.net/kZZ6h45lVQhRZLOJPHJd1T1808171739_192_220.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nosdn1.127.net/VNeftDVe3h9rgEq7MtfDT1809061111_192_220.jpg",
"title": ""
}
]
}
},
{
"PageSectionId": 2515,
"Code": "ImageText",
"ParameterDictionary": {
"type": "1",
"showtype": "1",
"shownumber": "4",
"color": "",
"backgroundcolor": "",
"imagelist": [
{
"link": "",
"src": "https://haitao.nosdn2.127.net/GvpaR0ThVvgBkgT7Vf0yxk2T1809181557_192_220.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nos.netease.com/EqTdbMtyfOtDzr0DtcTD90hr2T1809031521_192_220.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nosdn2.127.net/Bkbtx8pB7u6B5S9OCU4Eir2f1T1808171744_192_220.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nosdn2.127.net/PnANhp9RpFloeI9VhfPXg8T1808171745_192_220.png",
"title": ""
},
{
"link": "",
"src": "https://haitao.nos.netease.com/HT4D5CRc3ZZRsuRkeCnTT1808171746_192_220.jpg",
"title": ""
}
]
}
},
{
"PageSectionId": 2516,
"Code": "ImageAd",
"ParameterDictionary": {
"type": "2",
"imagegap": "0",
"shownumber": "4",
"imagelist": [
{
"link": "",
"linkname": "",
"src": "https://haitao.nosdn1.127.net/rzvfEZzFfvTgcrpb08mQgM8w5BpTwC_02T1809190045_960_251.gif",
"title": ""
}
]
}
},
{
"PageSectionId": 2517,
"Code": "Cube",
"ParameterDictionary": {
"type": "5",
"imagegap": "0",
"imagelist": [
{
"link": "",
"src": "https://haitao.nosdn2.127.net/UgGLMbgT8N2UfcbFeTw41p6TpSBEVC_03T1809190112_480_480.gif",
"title": ""
},
{
"link": "",
"src": "https://haitao.nos.netease.com/qOKOCqh4eAamM9PDxgl7tKEz8g-04-1T1809181138_480_240.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nos.netease.com/APF1FTPcSWKGBg42uc064xW5kR_05T1809182215_480_240.jpg",
"title": ""
}
]
}
},
{
"PageSectionId": 2519,
"Code": "Cube",
"ParameterDictionary": {
"type": "1",
"imagegap": "0",
"imagelist": [
{
"link": "",
"src": "https://haitao.nos.netease.com/b65wuwPeNGKwoKeccKhkqD6R1m_01T1809182202_480_355.gif",
"title": ""
},
{
"link": "",
"src": "https://haitao.nos.netease.com/saDSBpfhpS27uHOrPOAHH7ErSv_02T1809182202_480_355.gif",
"title": ""
}
]
}
},
{
"PageSectionId": 2520,
"Code": "Cube",
"ParameterDictionary": {
"type": "4",
"imagegap": "0",
"imagelist": [
{
"link": "",
"linkname": "",
"src": "https://haitao.nosdn1.127.net/QlMddWV2hDkmMUtU919dmtkwCvQKFWTT0qf-206BcFSZ7F_19T1809191525_480_228.jpg",
"title": ""
},
{
"link": "",
"linkname": "",
"src": "https://haitao.nos.netease.com/yUAxhIA12tWlsl5v919lN6CEX6A84TTy6No-20VLH2mLet_20T1809191525_480_228.jpg",
"title": ""
},
{
"link": "",
"src": "https://haitao.nos.netease.com/7Ukzzw7E0rcAv06O919w4K3DWhs0nGV5HsN-191LuUSSQQ_33T1809191353_480_305.jpg",
"title": ""
},
{
"link": "",
"linkname": "",
"src": "https://haitao.nosdn1.127.net/TcWBRJmHKdW7t7oy919fSHnqbHeHcB7U3EN-191akaZTSf_34T1809191354_480_305.jpg",
"title": ""
}
]
}
},
{
"PageSectionId": 2521,
"Code": "ImageAd",
"ParameterDictionary": {
"type": "2",
"imagegap": "0",
"shownumber": "4",
"imagelist": [
{
"link": "",
"src": "https://haitao.nosdn2.127.net/8v8Qd4gikpeGTMgcjingxuan_huodong111T170101801048_960_190.png",
"title": ""
},
{
"link": "",
"src": "https://haitao.nosdn1.127.net/hx0gzgVHpyeT41gmk9kURttb-960-480-7ZhaNcOET1809182240_960_480.jpg",
"title": ""
}
]
}
},
{
"PageSectionId": 2521,
"Code": "ImageAd",
"ParameterDictionary": {
"type": "2",
"imagegap": "0",
"shownumber": "4",
"imagelist": [
{
"link": "",
"src": "https://haitao.nosdn1.127.net/61556274-32ef-44bf-84af-b3d4485ac157.png",
"title": ""
}
]
}
},
{
"PageSectionId": 2522,
"Code": "Product",
"ParameterDictionary": {
"type": "2",
"source": "1",
"showsort": "0",
"shownumber": "6",
"tag": "0",
"showtype": "simple",
"buttonvalue": "购买",
"productids": "4,1,3",
"productcategoryid": "",
"producttagid": ""
}
}
]
}

View File

@@ -0,0 +1,62 @@
[
{
"id": 4,
"title": "Naturie imju 薏仁美白保湿防晒化妆水 500毫升 我是大美人强推 ",
"price": "55.00",
"imageURL": "https://haitao.nos.netease.com/50c2fafd909f489e9ebd3418cd90a1711533208260850jkcgm1fq10072.jpg"
},
{
"id": 1,
"title": "Ryo 吕 棕吕(原黄吕)防脱固发滋养 洗发水*2+护发素*1 500毫升/瓶",
"price": "105.00",
"imageURL": "https://haitao.nosdn2.127.net/bc977ba46ed74158b6b3386eaf27f7f81530241584513jizebvc810863.jpg"
},
{
"id": 3,
"title": "【维持泌尿健康】Swisse 高浓度蔓越莓 30粒/瓶 2瓶",
"price": "158.00",
"imageURL": "https://haitao.nosdn1.127.net/onlineic1jqd6p10155.jpg"
},
{
"id": 5,
"title": "【真正的有机糙米】EARTH'S BEST 有机纯米粉 227克",
"price": "35.00",
"imageURL": "https://haitao.nos.netease.com/31f78c55a2114eb5a287b38b6475e5fd1513067124727jb3d3lcr19243.jpg"
},
{
"id": 6,
"title": "SK-II 嫩肤清莹露 160毫升",
"price": "358.00",
"imageURL": "https://haitao.nosdn2.127.net/insm5qxq58_800_800.jpg"
},
{
"id": 7,
"title": "【领券立减100】SK-II小灯泡30ml套装 (小灯泡30ml+神仙水10ml+清莹露10ml+精华霜2.5g)",
"price": "1286.00",
"imageURL": "https://pop.nosdn.127.net/d336d1f7-670d-40b6-ab58-921012c6b176"
},
{
"id": 8,
"title": "Apple 苹果 iPhone X 64GB 移动联通4G手机 港版",
"price": "6799.00",
"imageURL": "https://pop.nosdn.127.net/7936968b-3db1-441d-822b-e9616d01c0f6"
},
{
"id": 9,
"title": "【不伤宝宝初生牙龈】HAPPY BABY 禧贝婴幼儿温和有机磨牙饼干 香蕉甘薯 48克/盒",
"price": "56.00",
"imageURL": "https://haitao.nos.netease.com/485c149f5ceb4d6a837a67910236048715354385972231.jpg"
},
{
"id": 10,
"title": "Dior 迪奥 粉漾魅惑变色润唇膏 04#橘色 3.5克",
"price": "179.00",
"imageURL": "https://haitao.nosdn2.127.net/ix7gkb6581_800_800.jpg"
},
{
"id": 10,
"title": "ÍpsΛ 茵芙莎 流金岁月美肤水 200毫升",
"price": "328.00",
"imageURL": "https://haitao.nosdn2.127.net/0938e26c883f451b9387b9daf6b5ed9d1537025125829jm3l2par10687.jpg"
}
]

142
mobile-web/src/data/sku.js Normal file
View File

@@ -0,0 +1,142 @@
export default {
kdt_id: 55,
user_id: 4674509,
offline_id: 0,
activity_alias: '',
sku: {
tree: [
{
k: '颜色',
k_id: '1',
v: [
{
id: '30349',
name: '天蓝色',
imgUrl:
'https://img.yzcdn.cn/upload_files/2017/02/21/FjKTOxjVgnUuPmHJRdunvYky9OHP.jpg!100x100.jpg'
}
],
k_s: 's1',
count: 2
},
{
k: '尺寸',
k_id: '2',
v: [
{
id: '1193',
name: '1'
},
{
id: '1194',
name: '2'
}
],
k_s: 's2',
count: 2
}
],
list: [
{
id: 2259,
price: 100,
discount: 100,
code: '',
s1: '1215',
s2: '1193',
s3: '0',
s4: '0',
s5: '0',
extend: null,
kdt_id: 55,
discount_price: 0,
stock_num: 110,
stock_mode: 0,
is_sell: null,
combin_sku: false,
goods_id: 946755
},
{
id: 2260,
price: 100,
discount: 100,
code: '',
s1: '1215',
s2: '1194',
s3: '0',
s4: '0',
s5: '0',
extend: null,
kdt_id: 55,
discount_price: 0,
stock_num: 0,
stock_mode: 0,
is_sell: null,
combin_sku: false,
goods_id: 946755
},
{
id: 2257,
price: 100,
discount: 100,
code: '',
s1: '30349',
s2: '1193',
s3: '0',
s4: '0',
s5: '0',
extend: null,
kdt_id: 55,
discount_price: 0,
stock_num: 111,
stock_mode: 0,
is_sell: null,
combin_sku: false,
goods_id: 946755
},
{
id: 2258,
price: 100,
discount: 100,
code: '',
s1: '30349',
s2: '1194',
s3: '0',
s4: '0',
s5: '0',
extend: null,
kdt_id: 55,
discount_price: 0,
stock_num: 6,
stock_mode: 0,
is_sell: null,
combin_sku: false,
goods_id: 946755
}
],
price: '1.00',
market_price:'10.00',
stock_num: 227,
collection_id: 2261,
collection_price: 0,
none_sku: false,
sold_num: 0,
min_price: '1.00',
max_price: '1.00',
messages: [
],
hide_stock: false
},
goods_id: '946755',
alias: '2oml0r0n5vytj',
quota: 15,
is_virtual: '0',
quota_used: 0,
goods_info: {
title: '测试商品',
picture:
'https://img.yzcdn.cn/upload_files/2017/03/16/Fs_OMbSFPa183sBwvG_94llUYiLa.jpeg?imageView2/2/w/100/h/100/q/75/format/jpg',
price: 1,
origin: ''
}
};

View File

@@ -0,0 +1,9 @@
{
"id": "2",
"name": "李四",
"tel": "13108826530",
"areaCode": "712899",
"addressDetail": "浙江省杭州市拱墅区莫干山路 50 号",
"isDefault": false
}

View File

@@ -0,0 +1,14 @@
[
{
"id": "1",
"name": "张三",
"tel": "13000000000",
"address": "浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室"
},
{
"id": "2",
"name": "李四",
"tel": "1310000000",
"address": "浙江省杭州市拱墅区莫干山路 50 号"
}
]

View File

@@ -0,0 +1,38 @@
{
"TotalPage":5,
"List":[
{
"Id":12,
"Name":"仅可购买自营图书文娱商品",
"BeginDate":"2018.09.05",
"EndDate":"2018.09.28",
"Condition":"满199元可用",
"SignPosition":"right",
"Coupon":"75",
"Sign":"折",
"Info":"限品类:仅可购买自营图书文娱商品"
},
{
"Id":13,
"Name":"全品类(特例商品除外)",
"BeginDate":"2018.09.05",
"EndDate":"2018.09.28",
"Condition":"满200元可用",
"SignPosition":"left",
"Coupon":"10",
"Sign":"¥",
"Info":""
},
{
"Id":14,
"Name":"运费券:京东部分自营商品",
"BeginDate":"2018.09.05",
"EndDate":"2018.09.28",
"Condition":"部分特殊商品运费除外",
"SignPosition":"left",
"Coupon":"6",
"Sign":"¥",
"Info":"1、运费券仅可用于抵减京东自营商品订单运费即用户下单结算时可选择该优惠券按券面值抵减每笔结算订单中的运费2、虚拟商品及部分特殊购物流程不可用特殊流程如秒杀等"
}
]
}

View File

@@ -0,0 +1,35 @@
{
"TotalPage":5,
"list":[
{
"id":12,
"imageURL":"https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712",
"title":"BEYOND博洋家纺 床上套件 秋冬保暖纯棉床单被套 双人被罩 磨毛全棉印花床品四件套",
"price":"499"
},
{
"id":13,
"imageURL":"https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712",
"title":"BEYOND博洋家纺 床上套件 秋冬保暖纯棉床单被套 双人被罩 磨毛全棉印花床品四件套",
"price":"499"
},
{
"id":14,
"imageURL":"https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712",
"title":"BEYOND博洋家纺 床上套件 秋冬保暖纯棉床单被套 双人被罩 磨毛全棉印花床品四件套",
"price":"499"
},
{
"id":15,
"imageURL":"https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712",
"title":"BEYOND博洋家纺 床上套件 秋冬保暖纯棉床单被套 双人被罩 磨毛全棉印花床品四件套",
"price":"499"
},
{
"id":16,
"imageURL":"https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712",
"title":"BEYOND博洋家纺 床上套件 秋冬保暖纯棉床单被套 双人被罩 磨毛全棉印花床品四件套",
"price":"499"
}
]
}

View File

@@ -0,0 +1,7 @@
{
"UserName":"Yrin",
"Avatar":"http://haitao.nos.netease.com/ZnB0PM5xDzXZ2FeVlmT170102401021_150_150.png",
"UnPayTotal":1,
"UnRecieveTotal":2,
"AfterSaleTotal":3
}

View File