加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Json.js 14.76 KB
一键复制 编辑 原始数据 按行查看 历史
苏永杰 提交于 2022-06-22 18:00 . 购物车
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
/* 用户 */
const userInfo = {
status: 1,
data: {
id: 1,
mobile: 18888888888,
nickname: 'Leo yo',
portrait: 'http://img.61ef.cn/news/201409/28/2014092805595807.jpg'
},
msg: '提示'
}
/* 首页轮播图 */
const carouselList = [{
src: "/static/temp/avatar1.png",
background: "rgb(203, 87, 60)",
},
{
src: "/static/temp/avatar2.jpg",
background: "rgb(203, 73, 69)",
},
{
src: "/static/temp/avatar3.png",
background: "rgb(183, 73, 69)",
}
]
/* 商品列表 */
const goodsList = [{
image: "https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/fd17b420-b388-4c8a-aaaa-e0a98ddf175f/dunk-hi-retro-%E7%94%B7%E5%AD%90%E8%BF%90%E5%8A%A8%E9%9E%8B-KrKBlF.png",
image2: "http://pic.rmb.bdstatic.com/819a044daa66718c2c40a48c1ba971e6.jpeg",
image3: "http://img001.hc360.cn/y5/M00/1B/45/wKhQUVYFE0uEZ7zVAAAAAMj3H1w418.jpg",
title: "Nike Sportswear NSW",
price: 749,
sales: 61,
},
{
image: "https://gw.alicdn.com/bao/uploaded/i1/i2/2212248593054/O1CN01GoV0qO1YQmI93Awis_!!2-item_pic.png",
image2: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1554013048&di=a3dc9fd1406dd7bad7fbb97b5489ec04&imgtype=jpg&er=1&src=http%3A%2F%2Fimg009.hc360.cn%2Fhb%2FnKo44ac2656F831c684507E3Da0E3a26841.jpg",
image3: "http://img.zcool.cn/community/017a4e58b4eab6a801219c77084373.jpg",
title: "法国VICKI",
price: 580,
sales: 16,
},
{
image: "https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/b47a7f96-e788-4ad8-8e07-accc0280e41a/dunk-low-retro-prm-%E7%94%B7%E5%AD%90%E8%BF%90%E5%8A%A8%E9%9E%8B-B2Rg24.png",
image2: "http://m.360buyimg.com/n12/jfs/t247/42/1078640382/162559/3628a0b/53f5ad09N0dd79894.jpg%21q70.jpg",
image3: "http://ikids.61kids.com.cn/upload/2018-12-29/1546070626796114.jpg",
title: "Nike Dunk Low Retro PRM",
price: 799,
sales: 5,
}, {
image: "https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/5a51a926-327d-4a23-bfc7-1278375342dc/air-zoom-g-t-jump-ep-%E7%94%B7-%E5%A5%B3%E5%AE%9E%E6%88%98%E7%AF%AE%E7%90%83%E9%9E%8B-5JggDP.png",
image2: "http://images.jaadee.com/images/201702/goods_img/30150_d85aed83521.jpg",
image3: "http://img13.360buyimg.com/popWaterMark/jfs/t865/120/206320620/138889/dcc94caa/550acedcN613e2a9d.jpg",
title: "Nike Air Zoom G.T. Jump EP",
price: 1499,
sales: 88,
}, {
image: "https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/20103152-e806-448f-bda1-712839bbdea1/kyrie-low-5-ep-%E7%94%B7%E5%AD%90%E6%AC%A7%E6%96%875%E4%BD%8E%E5%B8%AE%E5%AE%9E%E6%88%98%E7%AF%AE%E7%90%83%E9%9E%8B-RXt3mD.png",
image2: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1553418265666&di=d4a7f7eb0ae3c859edeb921641ee1c3a&imgtype=0&src=http%3A%2F%2Fimg003.hc360.cn%2Fy3%2FM02%2FF8%2F9F%2FwKhQh1TuSkGELIlQAAAAAPuLl4M987.jpg",
image3: "http://img.ef43.com.cn/product/2016/8/05100204b0c.jpg",
title: "Kyrie Low 5",
price: 899,
sales: 137,
}, {
image: "https://static.nike.com.cn/a/images/t_PDP_864_v1/f_auto,b_rgb:f5f5f5/5d2847b9-22c8-4d84-80ae-905b4cb8bbff/zoomx-vaporfly-next-2-%E7%94%B7%E5%AD%90%E8%B7%91%E6%AD%A5%E9%9E%8B-sGttrZ.png",
image2: "http://image5.suning.cn/uimg/b2c/newcatentries/0070158827-000000000622091973_2_800x800.jpg",
image3: "http://img.61ef.cn/news/201903/20/2019032009251784.jpg",
title: "Nike Sportswear NSW",
price: 1359,
sales: 95,
},
]
/* 购物车 */
const cartList = [{
id: 1,
image: 'https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/fd17b420-b388-4c8a-aaaa-e0a98ddf175f/dunk-hi-retro-%E7%94%B7%E5%AD%90%E8%BF%90%E5%8A%A8%E9%9E%8B-KrKBlF.png',
attr_val: '43码',
stock: 15,
title: 'Nike Sportswear NSW',
price: 749.00,
number: 1
},
{
id: 3,
image: 'https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/20103152-e806-448f-bda1-712839bbdea1/kyrie-low-5-ep-%E7%94%B7%E5%AD%90%E6%AC%A7%E6%96%875%E4%BD%8E%E5%B8%AE%E5%AE%9E%E6%88%98%E7%AF%AE%E7%90%83%E9%9E%8B-RXt3mD.png',
attr_val: '43码',
stock: 3,
title: 'Kyrie Low 5',
price: 899,
number: 5
},
];
//详情展示页面
const detailData = {
title: '纯种金毛幼犬活体有血统证书',
title2: '拆家小能手 你值得拥有',
favorite: true,
imgList: [{
src: 'http://img0.imgtn.bdimg.com/it/u=2396068252,4277062836&fm=26&gp=0.jpg'
},
{
src: 'http://img.pconline.com.cn/images/upload/upc/tx/itbbs/1309/06/c4/25310541_1378426131583.jpg'
},
{
src: 'http://img.pconline.com.cn/images/upload/upc/tx/photoblog/1610/26/c4/28926240_1477451226577_mthumb.jpg'
},
{
src: 'http://picture.ik123.com/uploads/allimg/190219/12-1Z219105139.jpg'
},
],
episodeList: [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
],
guessList: [{
src: 'http://img.52z.com/upload/news/image/20180530/20180530081619_31029.jpg',
title: '猫眼指甲油',
title2: '独树一帜的免照灯猫眼指甲'
},
{
src: 'http://m.china-7.net/uploads/14778449362891.jpg',
title: '创意屋',
title2: '创意屋形上下双层高低床'
},
{
src: 'http://www.k73.com/up/allimg/130415/22-130415093527.jpg',
title: 'MissCandy 指甲油',
title2: '十分适合喜欢素净的妹纸,尽显淡雅的气质'
},
{
src: 'http://img0.imgtn.bdimg.com/it/u=2108933440,2194129200&fm=214&gp=0.jpg ',
title: 'RMK 2017星空海蓝唇釉',
title2: '唇釉质地,上唇后很滋润。少女也会心动的蓝色,透明液体形状。'
}
],
evaList: [{
src: 'http://gss0.baidu.com/-fo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/77c6a7efce1b9d1663174705fbdeb48f8d546486.jpg',
nickname: 'Ranth Allngal',
time: '09-20 12:54',
zan: '54',
content: '评论不要太苛刻,不管什么产品都会有瑕疵,客服也说了可以退货并且商家承担运费,我觉得至少态度就可以给五星。'
},
{
src: 'http://img0.imgtn.bdimg.com/it/u=2396068252,4277062836&fm=26&gp=0.jpg',
nickname: 'Ranth Allngal',
time: '09-20 12:54',
zan: '54',
content: '楼上说的好有道理。'
}
]
}
const shareList = [{
type: 1,
icon: '/static/temp/share_wechat.png',
text: '微信好友'
},
{
type: 2,
icon: '/static/temp/share_moment.png',
text: '朋友圈'
},
{
type: 3,
icon: '/static/temp/share_qq.png',
text: 'QQ好友'
},
{
type: 4,
icon: '/static/temp/share_qqzone.png',
text: 'QQ空间'
}
]
const lazyLoadList = [{
src: 'http://img0.imgtn.bdimg.com/it/u=2396068252,4277062836&fm=26&gp=0.jpg'
},
{
src: 'http://img.pconline.com.cn/images/upload/upc/tx/itbbs/1309/06/c4/25310541_1378426131583.jpg'
},
{
src: 'http://img.pconline.com.cn/images/upload/upc/tx/photoblog/1610/26/c4/28926240_1477451226577_mthumb.jpg'
},
{
src: 'http://picture.ik123.com/uploads/allimg/190219/12-1Z219105139.jpg'
},
{
src: 'http://img5.imgtn.bdimg.com/it/u=2904900134,438461613&fm=26&gp=0.jpg'
},
{
src: 'http://img1.imgtn.bdimg.com/it/u=1690475408,2565370337&fm=26&gp=0.jpg'
},
{
src: 'http://img.99114.com/group1/M00/7F/99/wKgGS1kVrPGAe5LmAAU2KrJmb3Q923_600_600.jpg'
},
{
src: 'http://img4.imgtn.bdimg.com/it/u=261047209,372231813&fm=26&gp=0.jpg'
},
{
src: 'http://i2.17173cdn.com/i7mz64/YWxqaGBf/tu17173com/20150107/eMyVMObjlbcvDEv.jpg'
},
{
src: 'http://img008.hc360.cn/m4/M02/E7/87/wKhQ6FSrfU6EfUoyAAAAAITAfyc280.jpg'
},
{
src: 'http://pic1.win4000.com/wallpaper/d/5991569950166.jpg'
},
{
src: 'http://gss0.baidu.com/9fo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/6f061d950a7b0208f9fe945e60d9f2d3572cc85e.jpg'
},
{
src: 'http://pic41.nipic.com/20140429/18169759_125841756000_2.jpg'
},
{
src: 'http://www.k73.com/up/allimg/130415/22-130415093527.jpg'
},
{
src: 'http://img.52z.com/upload/news/image/20180530/20180530081619_31029.jpg'
},
{
src: 'http://b-ssl.duitang.com/uploads/item/201410/02/20141002111638_tXAzU.jpeg'
},
{
src: 'http://img2.ph.126.net/C4JW6f57QWSB21-8jh2UGQ==/1762596304262286698.jpg'
},
{
src: 'http://att.bbs.duowan.com/forum/201405/17/190257nzcvkkdg6w2e8226.jpg'
},
{
src: 'http://attach.bbs.miui.com/forum/201504/10/223644v3intigyvva0vgym.jpg'
},
{
src: 'http://pic1.win4000.com/mobile/3/57888a298d61d.jpg'
},
]
const orderList = [{
// time: '2022-06-30 11:37',
// state: 1,
goodsList: [{
image: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1553187020783&di=bac9dd78b36fd984502d404d231011c0&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201609%2F26%2F20160926173213_s5adi.jpeg',
},
{
image: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4031878334,2682695508&fm=11&gp=0.jpg',
},
{
image: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1620020012,789258862&fm=26&gp=0.jpg',
},
{
image: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4031878334,2682695508&fm=11&gp=0.jpg',
},
{
image: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1620020012,789258862&fm=26&gp=0.jpg',
},
{
image: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4031878334,2682695508&fm=11&gp=0.jpg',
},
{
image: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1620020012,789258862&fm=26&gp=0.jpg',
}
]
},
// {
// time: '2019-04-06 11:37',
// state: 9,
// goodsList: [{
// title: 'Nike Sportswear NSW',
// price: 749,
// image: 'https://img13.360buyimg.com/n8/jfs/t1/30343/20/1029/481370/5c449438Ecb46a15b/2b2adccb6dc742fd.jpg',
// number: 1,
// attr: '黑白 43'
// }]
// },
// {
// time: '2019-04-06 11:37',
// state: 1,
// goodsList: [{
// image: 'https://img.alicdn.com/imgextra/https://img.alicdn.com/imgextra/i2/2120460599/O1CN01LBPS4C1GINkwsOTXS_!!2120460599.jpg_430x430q90.jpg',
// },
// {
// image: 'https://img.alicdn.com/imgextra/i2/1069876356/TB2ocTQG4WYBuNjy1zkXXXGGpXa_!!1069876356.jpg_430x430q90.jpg',
// },
// {
// image: 'https://img.alicdn.com/imgextra/https://img.alicdn.com/imgextra/i4/2120460599/O1CN01YsmgwZ1GINkv38rkn_!!2120460599.jpg_430x430q90.jpg',
// },
// ]
// },
{
time: '2022-06-20 11:36',
state: 1,
goodsList: [{
title: 'Kyrie Low 5',
price: 899,
image: 'https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/20103152-e806-448f-bda1-712839bbdea1/kyrie-low-5-ep-%E7%94%B7%E5%AD%90%E6%AC%A7%E6%96%875%E4%BD%8E%E5%B8%AE%E5%AE%9E%E6%88%98%E7%AF%AE%E7%90%83%E9%9E%8B-RXt3mD.png',
number: 1,
attr: '白色 43'
}]
},
{
time: '2022-06-20 11:37',
state: 1,
goodsList: [{
title: 'Nike Sportswear NSW',
price: 749,
image: 'https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/fd17b420-b388-4c8a-aaaa-e0a98ddf175f/dunk-hi-retro-%E7%94%B7%E5%AD%90%E8%BF%90%E5%8A%A8%E9%9E%8B-KrKBlF.png',
number: 1,
attr: '黑白 43'
}]
},
// {
// time: '2022-06-20 11:37',
// state: 1,
// goodsList: [{
// image: 'https://img.alicdn.com/imgextra/https://img.alicdn.com/imgextra/i4/3358098495/O1CN01dhYyid2Ccl5MWLDok_!!3358098495.jpg_430x430q90.jpg',
// },
// {
// image: 'https://img.alicdn.com/imgextra/https://img.alicdn.com/imgextra/i3/3358098495/O1CN01AWsnFA2Ccl5OzvqsL_!!3358098495.jpg_430x430q90.jpg',
// },
// ]
// },
// {
// time: '2022-06-20 11:37',
// state: 1,
// goodsList: [{
// image: 'https://img.alicdn.com/imgextra/i4/3470687433/O1CN0124mMQOSERr18L1h_!!3470687433.jpg_430x430q90.jpg',
// },
// {
// image: 'https://img.alicdn.com/imgextra/i3/2888462616/O1CN01ERra5J1VCAbZaKI5n_!!0-item_pic.jpg_430x430q90.jpg',
// },
// {
// image: 'https://gd3.alicdn.com/imgextra/i3/819381730/O1CN01YV4mXj1OeNhQIhQlh_!!819381730.jpg_400x400.jpg',
// },
// ]
// }
]
const cateList = [{
id: 1,
name: '男鞋'
},
{
id: 2,
name: '女鞋'
},
{
id: 3,
name: '儿童'
},
{
id: 4,
name: '私人订制'
},
{
id: 5,
pid: 1,
name: 'low5'
},
{
id: 6,
pid: 1,
name: '女子'
},
{
id: 8,
pid: 5,
name: '人气热销',
picture: '/static/temp/renqirexiao.png'
},
{
id: 9,
pid: 5,
name: '新品上市',
picture: '/static/temp/xinpingshangshi.png'
},
{
id: 10,
pid: 5,
name: '经典',
picture: '/static/temp/jingdian.png'
},
{
id: 11,
pid: 5,
name: '复古',
picture: '/static/temp/fugu.png'
},
{
id: 12,
pid: 5,
name: '潮流',
picture: '/static/temp/chaoliu.png'
},
{
id: 14,
pid: 6,
name: '高帮',
picture: '/static/temp/gaobang.png'
},
{
id: 15,
pid: 6,
name: '低帮',
picture: '/static/temp/dibang.png'
},
{
id: 16,
pid: 6,
name: '限定',
picture: '/static/temp/xianding.png'
},
{
id: 17,
pid: 2,
name: '高低帮',
},
{
id: 18,
pid: 2,
name: '足球鞋',
},
{
id: 19,
pid: 17,
name: '高跟',
picture: '/static/temp/gaogen.webp'
},
{
id: 20,
pid: 17,
name: '平底',
picture: '/static/temp/pingdi.webp'
},
{
id: 21,
pid: 18,
name: 'Nike Superfly 8 Elite FG',
picture: '/static/temp/Nike Superfly 8 Elite FG.png'
},
{
id: 22,
pid: 18,
name: 'Nike Vapor 14 Academy TF',
picture: '/static/temp/Nike Vapor 14 Academy TF.png'
},
{
id: 23,
pid: 18,
name: 'Nike 8 by you',
picture: '/static/temp/Nike 8 by you.png'
},
{
id: 24,
pid: 18,
name: 'Nike Legend 9 Academy TF',
picture: '/static/temp/Nike Legend 9 Academy TF.png'
},
{
id: 25,
pid: 3,
name: '拖鞋'
},
{
id: 26,
pid: 3,
name: '滑板鞋'
},
{
id: 27,
pid: 25,
name: 'Nike Asuna 2 Slide',
picture: '/static/temp/Nike Asuna 2 Slide.png'
},
{
id: 28,
pid: 25,
name: 'Nike ACG Air Deschutz+',
picture: '/static/temp/Nike ACG Air Deschutz+.png'
},
{
id: 29,
pid: 26,
name: 'Nike SB Adversary PRM',
picture: '/static/temp/Nike SB Adversary PRM.png'
},
{
id: 30,
pid: 26,
name: 'Nike SB Force 58',
picture: '/static/temp/Nike SB Force 58.png'
},
{
id: 31,
pid: 26,
name: 'Nike SB Chron 2 CNVS PRM',
picture: '/static/temp/Nike SB Chron 2 CNVS PRM.png'
},
{
id: 32,
pid: 26,
name: 'Nike SB Zoom Verona Slip PRM',
picture: '/static/temp/Nike SB Zoom Verona Slip PRM.png'
},
{
id: 33,
pid: 4,
name: 'Dunk',
},
{
id: 34,
pid: 4,
name: 'AF1',
},
{
id: 35,
pid: 4,
name: 'BLAZER',
},
{
id: 39,
pid: 4,
name: 'ZHUANJI',
},
{
id: 36,
pid: 33,
name: '有机奶粉',
picture: '/static/temp/cate17.jpg'
},
{
id: 37,
pid: 34,
name: '果泥/果汁',
picture: '/static/temp/cate18.jpg'
},
{
id: 39,
pid: 34,
name: '面条/粥',
picture: '/static/temp/cate20.jpg'
},
{
id: 42,
pid: 35,
name: '婴童衣橱',
picture: '/static/temp/cate19.jpg'
},
{
id: 43,
pid: 39,
name: '吸奶器',
picture: '/static/temp/cate21.jpg'
},
{
id: 44,
pid: 39,
name: '儿童餐具',
picture: '/static/temp/cate22.jpg'
},
{
id: 45,
pid: 39,
name: '牙胶安抚',
picture: '/static/temp/cate23.jpg'
},
{
id: 46,
pid: 39,
name: '围兜',
picture: '/static/temp/cate24.jpg'
},
]
export default {
carouselList,
cartList,
detailData,
lazyLoadList,
userInfo,
shareList,
goodsList,
orderList,
cateList
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化