Skip to content

Commit 3846bcd

Browse files
committed
update
1 parent 295a8f3 commit 3846bcd

File tree

2 files changed

+100
-26
lines changed

2 files changed

+100
-26
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,34 @@ vue2 + vue-rotuer2 + vuex + webpack + ES6/7 + fetch + sass + flex + svg + http-p
2929
- [x] 修改密码 -- 完成
3030
- [x] 个人中心 -- 完成
3131
- [x] 发送短信、语音验证 -- 完成
32-
- [x] 下单功能 -- 完成 ✨✨✨
32+
- [x] 下单功能 -- 完成 ✨✨🎉🎉
33+
- [x] 订单列表 -- 完成
34+
- [ ] 订单详情
3335
- [ ] 帐户信息
3436
- [ ] 上传头像,修改用户名
3537
- [ ] 积分商城
3638
- [ ] 服务中心
3739
- [ ] 添加、删除、修改收货地址
38-
- [ ] 订单列表
3940
- [ ] 付款(很难实现)
4041

4142

42-
说明:因为并不是elm官方,而且因为要开代理,必须在pc端打开,所以预计最多只能做到下单这一步,下单成功后可以在手机客户端查看并付款。
43+
# 总结
44+
45+
1、因为并不是elm官方,而且因为要开代理,必须在pc端打开,所以预计最多只能做到下单这一步,下单成功后可以在手机客户端查看并付款。
46+
47+
2、目前下单功能已经实现✨✨🎉🎉,下单功能完全采用官网真实数据,可以控制官网发短信或者打电话到指定的手机号码,下单后可以在手机App中查看并且付款。
48+
49+
3、一般涉及到money的网页逻辑都比较复杂,尤其像饿了么这样一个开放的平台,商家和食品种类繁多,页面与页面之间交互复杂,在写到 购物车 和 下单 功能时众多的数据和逻辑一度让人很头疼,又没有设计和接口文档,只能一步步摸索。
50+
51+
4、vue因其轻量级的框架在中小型项目中表现亮眼,在大型单页面应用中因为vuex的存在,表现依然出色,在处理复杂交互逻辑的时候,vuex的存在是不可或缺的。所以说利用 vue + vuex 完全可以去做大型的单页面项目。
52+
53+
5、在项目中并没有使用太多的插件,所有功能尽可能自己实现,对插件依赖太多并不是一件好事。
54+
55+
6、项目写到现在,从 登陆注册到、首页、搜索、商家列表、购物车、下单、订单列表、个人中心 一个流程走完之后、不但对vue的理解加深了,而且对我在以后掌控大型项目的时候也有非常多的帮助,我很少写demo,因为做一个实际的项目才能对自己有很大的提升。
56+
57+
7、项目已完成的页面共 22 个,头部尾部以及其他公用组件 8 个,最主要的购物下单功能已经实现,预计全部完成后总页面数在 35 个左右。
58+
59+
4360

4461
# 项目布局
4562
```

src/service/tempdata/confirm.js

Lines changed: 80 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,11 +1532,68 @@ export const addAddress = {
15321532
};
15331533

15341534
export const addressList = [{
1535+
"id": 275730943,
1536+
"address": "\u4eba\u6c11\u516c\u56ed",
1537+
"phone": "13681711254",
1538+
"is_valid": 1,
1539+
"created_at": "2017-02-20T09:22:37+0800",
1540+
"phone_bk": "",
1541+
"name": "\u5f90",
1542+
"st_geohash": "wtw3sm0q087",
1543+
"address_detail": "\u5357\u4eac\u897f\u8def231\u53f7",
1544+
"poi_type": 0,
1545+
"sex": 2,
1546+
"city_id": 1,
1547+
"tag": "\u5bb6",
1548+
"is_user_default": true,
1549+
"is_deliverable": true,
1550+
"agent_fee": 0,
1551+
"deliver_amount": 0,
1552+
"phone_had_bound": true
1553+
}, {
1554+
"id": 275588790,
1555+
"address": "\u4e0a\u6d77\u4eba\u6c11\u5e7f\u573a",
1556+
"phone": "13681711254",
1557+
"is_valid": 1,
1558+
"created_at": "2017-02-20T09:22:42+0800",
1559+
"phone_bk": "",
1560+
"name": "\u7d2b",
1561+
"st_geohash": "wtw3sm0q087",
1562+
"address_detail": "\u4e0a\u6d77\u5e02\u9ec4\u6d66\u533a\u4eba\u6c11\u5927\u9053120\u53f7",
1563+
"poi_type": 0,
1564+
"sex": 1,
1565+
"city_id": 1,
1566+
"tag": "\u516c\u53f8",
1567+
"is_user_default": false,
1568+
"is_deliverable": true,
1569+
"agent_fee": 0,
1570+
"deliver_amount": 0,
1571+
"phone_had_bound": true
1572+
}, {
1573+
"id": 275429077,
1574+
"address": "\u9ebb\u8fa3\u8bf1\u60d1(\u4eba\u6c11\u5e7f\u573a\u5e97)",
1575+
"phone": "13681711254",
1576+
"is_valid": 1,
1577+
"created_at": "2017-02-20T09:22:47+0800",
1578+
"phone_bk": "",
1579+
"name": "\u9752",
1580+
"st_geohash": "wtw3sm0q087",
1581+
"address_detail": "\u5c31\u662f\u6211 i \u5f00\u59cb",
1582+
"poi_type": 0,
1583+
"sex": 1,
1584+
"city_id": 1,
1585+
"tag": "\u5b66\u6821",
1586+
"is_user_default": false,
1587+
"is_deliverable": true,
1588+
"agent_fee": 0,
1589+
"deliver_amount": 0,
1590+
"phone_had_bound": true
1591+
}, {
15351592
"id": 275355683,
15361593
"address": "\u4e0a\u6d77\u4eba\u6c11\u5e7f\u573a",
1537-
"phone": "13681711259",
1594+
"phone": "13681711254",
15381595
"is_valid": 1,
1539-
"created_at": "2017-02-18T19:51:39+0800",
1596+
"created_at": "2017-02-20T09:23:14+0800",
15401597
"phone_bk": "",
15411598
"name": "\u84dd",
15421599
"st_geohash": "wtw3sm0q087",
@@ -1545,49 +1602,49 @@ export const addressList = [{
15451602
"sex": 1,
15461603
"city_id": 1,
15471604
"tag": "\u5bb6",
1548-
"agent_fee": 5,
1549-
"deliver_amount": 20,
1605+
"is_user_default": false,
15501606
"is_deliverable": true,
1551-
"phone_had_bound": true,
1552-
"is_brand_member": false
1607+
"agent_fee": 0,
1608+
"deliver_amount": 0,
1609+
"phone_had_bound": true
15531610
}, {
15541611
"id": 275304983,
15551612
"address": "\u4e0a\u6d77\u4eba\u6c11\u5e7f\u573a",
1556-
"phone": "13681711289",
1613+
"phone": "13681711254",
15571614
"is_valid": 1,
1558-
"created_at": "2017-02-18T18:40:03+0800",
1615+
"created_at": "2017-02-20T09:23:23+0800",
15591616
"phone_bk": "",
15601617
"name": "\u9ec4",
15611618
"st_geohash": "wtw3sm0q087",
15621619
"address_detail": "\u4e0a\u6d77\u5e02\u9ec4\u6d66\u533a\u4eba\u6c11\u5927\u9053120\u53f7",
15631620
"poi_type": 0,
1564-
"sex": 2,
1621+
"sex": 1,
15651622
"city_id": 1,
1566-
"tag": "\u5bb6",
1567-
"agent_fee": 5,
1568-
"deliver_amount": 20,
1623+
"tag": "\u516c\u53f8",
1624+
"is_user_default": false,
15691625
"is_deliverable": true,
1570-
"phone_had_bound": true,
1571-
"is_brand_member": false
1626+
"agent_fee": 0,
1627+
"deliver_amount": 0,
1628+
"phone_had_bound": true
15721629
}, {
15731630
"id": 275190634,
15741631
"address": "563\u53f7",
1575-
"phone": "13681711255",
1632+
"phone": "13681711254",
15761633
"is_valid": 1,
1577-
"created_at": "2017-02-18T15:58:36+0800",
1634+
"created_at": "2017-02-20T09:23:31+0800",
15781635
"phone_bk": "",
15791636
"name": "\u767e",
15801637
"st_geohash": "wtw34e4ymr8q",
15811638
"address_detail": "\u83b2\u82b1\u8def[\u5730\u94c1\u7ad9] [\u5730\u94c1\u7ad9]",
15821639
"poi_type": 0,
1583-
"sex": 0,
1640+
"sex": 2,
15841641
"city_id": 1,
1585-
"tag": "",
1586-
"agent_fee": 5,
1587-
"deliver_amount": 20,
1588-
"is_deliverable": false,
1589-
"phone_had_bound": true,
1590-
"is_brand_member": false
1642+
"tag": "\u516c\u53f8",
1643+
"is_user_default": false,
1644+
"is_deliverable": true,
1645+
"agent_fee": 0,
1646+
"deliver_amount": 0,
1647+
"phone_had_bound": true
15911648
}];
15921649

15931650
export const palceOrder = {

0 commit comments

Comments
 (0)