Skip to content

Commit 54bc2a9

Browse files
committed
update
1 parent 609b1d2 commit 54bc2a9

File tree

5 files changed

+63
-53
lines changed

5 files changed

+63
-53
lines changed

README.md

Lines changed: 49 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,55 @@ vue2的发布后自己也研究了一段时间,奈何公司的技术栈是以r
1010
__注:此项目纯属个人瞎搞,正常下单请选择饿了么官方客户端。__
1111

1212

13+
14+
15+
# 效果演示
16+
17+
#### (演示效果为模拟数据,只做展示用,真实效果请下载项目并运行,方可获取真实的官网数据);
18+
19+
[demo地址](http://test.fe.ptdev.cn/elm/)(请用chrome手机模式预览)
20+
21+
### 移动端扫描下方二维码
22+
23+
![](https://github.com/bailicangdu/vue2-elm/blob/master/screenshots/elm_ewm.png)
24+
25+
26+
1327
# 技术栈
1428
vue2 + vue-rotuer2 + vuex + webpack + ES6/7 + fetch + sass + flex + svg + http-proxy-middleware反向代理
1529

30+
31+
32+
# 项目运行
33+
```
34+
克隆,或者直接下载
35+
git clone https://github.com/bailicangdu/vue2-elm.git  
36+
37+
进入文件夹
38+
cd vue2-elm
39+
40+
安装依赖
41+
npm install
42+
```
43+
44+
## 编译环境
45+
```
46+
47+
开启本地服务器
48+
npm run dev
49+
50+
访问 http://localhost:8088
51+
```
52+
53+
54+
## 线上版本
55+
```
56+
npm run build
57+
58+
生成的elm文件夹放在服务器即可正常访问
59+
```
60+
61+
1662
# 目标功能
1763
- [x] 定位功能 -- 完成
1864
- [x] 选择城市 -- 完成
@@ -136,35 +182,6 @@ vue2 + vue-rotuer2 + vuex + webpack + ES6/7 + fetch + sass + flex + svg + http-p
136182

137183

138184

139-
# 项目运行
140-
```
141-
克隆,或者直接下载
142-
git clone https://github.com/bailicangdu/vue2-elm.git  
143-
144-
进入文件夹
145-
cd vue2-elm
146-
147-
安装依赖
148-
npm install
149-
```
150-
151-
## 编译环境
152-
```
153-
154-
开启本地服务器
155-
npm run dev
156-
157-
访问 http://localhost:8088
158-
```
159-
160-
161-
## 线上版本
162-
```
163-
npm run build
164-
165-
生成的elm文件夹放在服务器即可正常访问
166-
```
167-
168185

169186
# 总结
170187

@@ -183,18 +200,6 @@ npm run build
183200
7、项目已完成的页面共 22 个,最主要的购物下单功能已经实现,预计全部完成后总页面数在 35 个左右。
184201

185202

186-
# 效果演示
187-
188-
#### (演示效果为模拟数据,只做展示用,真实效果请下载项目并运行,方可获取真实的官网数据);
189-
190-
[demo地址](http://test.fe.ptdev.cn/elm/)(请用chrome手机模式预览)
191-
192-
### 移动端扫描下方二维码
193-
194-
![](https://github.com/bailicangdu/vue2-elm/blob/master/screenshots/elm_ewm.png)
195-
196-
197-
198203
# 项目截图
199204

200205
## 城市列表页
@@ -282,8 +287,6 @@ npm run build
282287

283288

284289

285-
286-
287290
#### 其他页面正在开发中。。。
288291

289292

@@ -297,8 +300,10 @@ npm run build
297300
298301
> 如有问题请直接在 Issues 中提,或者可以加我的QQ 1264889788
299302
300-
> 另外推荐一个 react + redux 开源项目,对react感兴趣的朋友赶紧去看看。[地址在这里](https://github.com/bailicangdu/react-pxq)
303+
> 推荐一个 react + redux 开源项目,对react感兴趣的朋友赶紧去看看。[地址在这里](https://github.com/bailicangdu/react-pxq)
301304
305+
> 另外一个 vue + vuex 的入门项目,比当前的项目简单很多,非常适合入门练习。[地址在这里](https://github.com/bailicangdu/vue2-happyfri)
302306
307+
##### 个人时间有限,还有其他的项目要做,在此感谢辰妹子,个人中心的所有页面都由她来完成,辛苦了!🙏
303308

304309
##### 如果觉得不错,请star一下吧 😊

src/page/login/login.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181
182182
.loginContainer{
183183
padding-top: 1.95rem;
184+
p, span, input{
185+
font-family: Helvetica Neue,Tahoma,Arial;
186+
}
184187
}
185188
.change_login{
186189
position: absolute;

src/page/profile/children/info.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<section class="bind-phone">
6363
安全设置
6464
</section>
65-
<router-link to="" class="info-router">
65+
<router-link to="/forget" class="info-router">
6666
<section class="headportrait headportraitwo headportraithree">
6767
<h2>登录密码</h2>
6868
<div class="headportrait-div">

src/page/profile/profile.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head-top go-back='true' :head-title="profiletitle"></head-top>
44
<section class="profile-number">
55
<router-link :to="getUserinfo? '/profile/info' : '/login'" class="profile-link">
6-
<img :src="getImgPath(this.avatar)" class="privateImage" v-if="this.avatar">
6+
<img :src="imgBaseUrl + avatar" class="privateImage" v-if="this.avatar">
77
<span class="privateImage" v-else>
88
<svg class="privateImage-svg">
99
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#avatar-default"></use>
@@ -138,6 +138,7 @@
138138
import headTop from '../../components/header/head'
139139
import footGuide from '../../components/footer/footGuide'
140140
import {mapState} from 'vuex'
141+
import {imgBaseUrl} from '../../config/env'
141142
import {getImgPath} from '../../components/common/mixin'
142143
143144
export default {
@@ -151,6 +152,7 @@ export default {
151152
count : '0', //优惠券个数
152153
pointNumber : '0', //积分数
153154
avatar: '', //头像地址
155+
imgBaseUrl,
154156
}
155157
},
156158

src/service/getData.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,17 @@ export const payRequest = (merchantOrderNo, userId) => fetch('GET', '/payapi/pay
388388
* 获取订单列表
389389
*/
390390

391-
export const getOrderList = (user_id, offset) => fetch('GET', '/bos/v2/users/' + user_id + '/orders', {
392-
limit: 10,
393-
offset,
394-
});
391+
// export const getOrderList = (user_id, offset) => fetch('GET', '/bos/v2/users/' + user_id + '/orders', {
392+
// limit: 10,
393+
// offset,
394+
// });
395395

396396

397397
/**
398398
* 获取订单详情
399399
*/
400400

401-
export const getOrderDetail = (user_id, orderid) => fetch('GET', '/bos/v1/users/' + user_id + '/orders/' + orderid + '/snapshot', {});
401+
// export const getOrderDetail = (user_id, orderid) => fetch('GET', '/bos/v1/users/' + user_id + '/orders/' + orderid + '/snapshot', {});
402402

403403

404404

@@ -454,5 +454,5 @@ const setpromise = data => {
454454
// validation_token
455455
// }) => setpromise(confirm.orderSuccess);
456456
// export const payRequest = (merchantOrderNo, userId) => setpromise(confirm.payDetail);
457-
// export const getOrderList = (user_id, offset) => setpromise(order.orderList);
458-
// export const getOrderDetail = (user_id, orderid) => setpromise(order.orderDetail);
457+
export const getOrderList = (user_id, offset) => setpromise(order.orderList);
458+
export const getOrderDetail = (user_id, orderid) => setpromise(order.orderDetail);

0 commit comments

Comments
 (0)