Skip to content

Commit 50b1489

Browse files
committed
update
1 parent ad8c7e5 commit 50b1489

18 files changed

Lines changed: 395 additions & 101 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ npm run build
6666
- [x] 下单功能 -- 完成 ✨✨🎉🎉
6767
- [x] 订单列表 -- 完成
6868
- [x] 订单详情 -- 完成
69+
- [x] 下载App -- 完成
6970
- [ ] 帐户信息
7071
- [ ] 上传头像,修改用户名
7172
- [ ] 积分商城
@@ -111,6 +112,7 @@ npm run build
111112
| |--addAddress // 添加地址页
112113
| |--children
113114
| |--searchAddress // 搜索地址页
115+
| |-- download // 下载App
114116
| |-- find // 发现页
115117
| |-- forget // 忘记密码,修改密码页
116118
| |-- home // 首页
@@ -125,8 +127,9 @@ npm run build
125127
| |--benefit // 我的优惠
126128
| |--info // 帐户信息
127129
| |--points // 我的积分
128-
| |--service // 服务中心
130+
129131
| |-- search // 搜索页
132+
| |--service // 服务中心
130133
|       |-- shop                     // 商铺筛选页
131134
| |-- children
132135
| |-- foodDetail // 商铺信息页

‎build/dev-server.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ server.use(proxyMiddleware('/payapi', {
4949
target: 'https://pay.ele.me',
5050
changeOrigin: true,
5151
}))
52+
server.use(proxyMiddleware('/m.ele.me@json', {
53+
target: 'https://crayfish.elemecdn.com',
54+
changeOrigin: true,
55+
}))
56+
5257

5358

5459
// handle fallback for HTML5 history API

‎index.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
<symbol viewBox="0 0 120 120" id="select"><circle cx="60" cy="60" r="60"></circle><path fill="#FFF" d="M63.84 84.678a1.976 1.976 0 0 1-.387.545l-7.975 7.976a1.996 1.996 0 0 1-2.829-.005L24.172 64.716a2.005 2.005 0 0 1-.005-2.828l7.976-7.976a1.996 1.996 0 0 1 2.828.005l19.015 19.015L91.498 35.42a1.991 1.991 0 0 1 2.823 0l7.976 7.977c.784.784.78 2.043 0 2.823L63.84 84.678z"></path></symbol>
124124
<symbol xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 72 72" id="sdk_icon_zhifubao@2x"><defs><path d="M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36z" id="sdk_icon_zhifubao@2x_a"></path></defs><g fill="none" fill-rule="evenodd"><mask id="sdk_icon_zhifubao@2x_b" fill="#fff"><use xlink:href="#sdk_icon_zhifubao@2x_a"></use></mask><use fill="#00A1E9" xlink:href="#sdk_icon_zhifubao@2x_a"></use><path d="M33 21v-5h7v5h14v3H40v4h12c-.202.048-.408 3.223-2 7-1.32 4.134-2.683 6.15-2 6l23.6 8c-.2-.285-.848 2.3-2 4-.775 2.013-2 5-2 5L44 46c.237.162-3.79 4.674-8 7-4.002 1.645-8.717 2.88-14 1-4.93-.56-8.554-3.867-8-10 .693-6.083 7.138-8.19 13-8 4.739-.19 14.796 3.29 15 3-.204.29.642-1.628 2-4 .283-2.015.518-3.777 0-4H22v-3h11v-4H20v-3h13zm-7 30c-7.407 0-9-3.593-9-6 0-2.761 1.576-5.57 8-6 6.484-.383 15.2 4.436 15 4 .2.436-6.238 8-14 8z" fill="#FFF" mask="url(#sdk_icon_zhifubao@2x_b)"></path></g></symbol>
125125
<symbol viewBox="0 0 72 72" id="weixin"><g fill="none" fill-rule="evenodd"><path d="M36 72c19.882 0 36-16.118 36-36S55.882 0 36 0 0 16.118 0 36s16.118 36 36 36z" fill="#45C144"></path><path d="M29 40l-4-8c-.262-.292-.288-.398 0-1 .594-.228.743-.174 1 0l4 4c1.5 1.098 1.5 1.098 3 0l21-10c-3.668-4.964-10.11-8-17-8-12.33 0-22 8.12-22 18 0 5.6 2.91 10.518 7 14 1 .8 1.068.537 1 1 .068.185-.954 4.042-1 4-.027.316-.097.495 0 1-.097.075.225.4 1 0-.22.4 5-3 5-3 1.4.6 5.8 1 9 1 11.533 0 21.2-7.85 21-18 .2-2.899-.692-5.756-2-8L31 41c-1.5.5-2-1-2-1z" fill="#FFF"></path></g></symbol>
126+
<symbol viewBox="0 0 46 46" id="human"><path fill="#ff7b52" d="M33.291 37.774c-.25.097-.504.175-.765.233-6.427 1.444-5.954-3.968-6-3.953 10.457-5.053 10.348-13.466 10-16.216-16.15-.041-22.943-7.063-22.943-7.063s-.176 1.733-2.933 4.996c-2.756 3.262-5.236 4.09-5.132 4.113.54 13.9 12.246 14.242 12.246 14.242-.762 4.662-4.357 4.33-4.357 4.33s-6.38.213-11.173-7.446c-.85-1.359-1.02-2.864-1.166-4.579-.217-2.542.14-4.643.312-7.2.271-4.064.96-6.269.96-6.269S7.13 0 21.4 0s17.828 12.508 17.828 12.508l-.035.074c.533.763.984 1.997 1.356 3.36A3.483 3.483 0 0 1 45 19.281v7.257a3.484 3.484 0 0 1-3.325 3.472c-2.009 4.537-6.657 12.185-15.241 12.457C26.023 44.485 24.269 46 22.168 46c-2.407 0-4.357-1.988-4.357-4.44 0-2.453 1.95-4.44 4.357-4.44 1.955 0 3.609 1.311 4.16 3.118 1.447.13 4.044-.094 6.963-2.464zM18.216 27.018s.99 3.08 3.705 3.08 3.807-1.875 3.807-2.906c.467-1.135 1.348-.541 1.482-.071.134.47-.763 4.67-5.24 4.67s-5.205-4.358-5.205-4.358.033-.97.702-.97c.669 0 .749.555.749.555zm10.052-2.332c.963 0 1.743-1.192 1.743-2.664 0-1.471-.78-2.664-1.743-2.664-.963 0-1.743 1.193-1.743 2.664 0 1.472.78 2.664 1.743 2.664zm-12.723 0c.962 0 1.743-1.192 1.743-2.664 0-1.471-.78-2.664-1.743-2.664-.963 0-1.743 1.193-1.743 2.664 0 1.472.78 2.664 1.743 2.664z"></path></symbol>
127+
<symbol viewBox="0 0 46 46" id="phone"><path fill="#6ac20b" d="M15.433 30.568c9.342 9.342 17.708 12.15 18.871 12.316 1.163.167 3.07.542 5.837-2.225 3.24-3.24 3.566-4.94 1.783-6.724-1.783-1.783-6.212-4.48-7.416-5.176-1.206-.696-2.228-.472-3.097.133-.868.605-1.87 1.375-2.798 2.047-.927.671-2.087.955-3.332.167-1.245-.79-3.35-2.27-5.735-4.652-2.384-2.384-3.863-4.49-4.651-5.735-.789-1.245-.505-2.405.167-3.332.671-.928 1.441-1.93 2.046-2.798.605-.869.828-1.89.134-3.097-.696-1.204-3.394-5.633-5.177-7.416-1.783-1.783-3.484-1.457-6.724 1.783-2.766 2.766-2.391 4.674-2.226 5.837.167 1.164 2.976 9.53 12.318 18.872"></path></symbol>
126128
</svg>
127129
<router-view></router-view>
128130
</div>

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"fastclick": "^1.0.6",
13+
"showdown": "^1.6.4",
1314
"vue": "^2.1.0",
1415
"vue-router": "^2.1.1",
1516
"vuex": "^2.0.0"

‎src/components/header/head.vue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
.head_goback{
7070
left: 0.4rem;
7171
@include wh(0.6rem, 0.8rem);
72-
@include ct;
72+
line-height: 2.2rem;
73+
margin-left: .4rem;
7374
}
7475
.head_login{
7576
right: 0.55rem;

‎src/images/elmlogo.jpeg‎

6.02 KB
Loading

‎src/page/checkout/checkout.vue‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎src/page/download/download.vue‎

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<template>
2+
<div class="download_page">
3+
<head-top head-title="下载" go-back='true'></head-top>
4+
<section class="dowload_container">
5+
<img src='../../images/elmlogo.jpeg' class="logo_img">
6+
<p>下载饿了么APP</p>
7+
<div class="determine" @click="download">下载</div>
8+
</section>
9+
<alert-tip v-if="showAlert" @closeTip="showAlert = false" :alertText="alertText"></alert-tip>
10+
</div>
11+
</template>
12+
13+
<script>
14+
import headTop from 'src/components/header/head'
15+
import alertTip from 'src/components/common/alertTip'
16+
17+
export default {
18+
data(){
19+
return{
20+
system: null,
21+
showAlert: false,
22+
alertText: null,
23+
}
24+
},
25+
created(){
26+
let u = navigator.userAgent;
27+
let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
28+
let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
29+
if (isAndroid) {
30+
this.system = 'Android';
31+
} else if (isIOS) {
32+
this.system = 'IOS';
33+
} else {
34+
this.system = 'pc';
35+
}
36+
},
37+
mixins: [],
38+
components: {
39+
headTop,
40+
alertTip,
41+
},
42+
props:[],
43+
methods: {
44+
download(){
45+
if( this.system == 'IOS'){
46+
this.showAlert = true;
47+
this.alertText = 'IOS用户请前往AppStore下载'
48+
}else{
49+
try {
50+
let elemIF = document.createElement("iframe");
51+
elemIF.src = 'http://static10.elemecdn.com/uploads/androidapp/eleme6_4_1476672934695.apk';
52+
elemIF.style.display = "none";
53+
document.body.appendChild(elemIF);
54+
} catch (e) {
55+
alert('下载失败')
56+
}
57+
}
58+
}
59+
}
60+
}
61+
</script>
62+
63+
<style lang="scss" scoped>
64+
@import 'src/style/mixin';
65+
66+
.download_page{
67+
position: absolute;
68+
top: 0;
69+
left: 0;
70+
right: 0;
71+
bottom: 0;
72+
background-color: #fff;
73+
z-index: 202;
74+
padding-top: 1.95rem;
75+
p, span{
76+
font-family: Helvetica Neue,Tahoma,Arial;
77+
}
78+
}
79+
.dowload_container{
80+
text-align: center;
81+
.logo_img{
82+
border-radius: 1rem;
83+
margin-top: 1rem;
84+
}
85+
p{
86+
@include sc(.8rem, #666);
87+
margin-bottom: 1rem;
88+
}
89+
.determine{
90+
background-color: #4cd964;
91+
@include sc(.7rem, #fff);
92+
text-align: center;
93+
margin: 0 .7rem;
94+
line-height: 1.8rem;
95+
border-radius: 0.2rem;
96+
margin-top: 0.5rem;
97+
}
98+
}
99+
</style>

‎src/page/profile/children/service.vue‎

Lines changed: 0 additions & 50 deletions
This file was deleted.

‎src/page/profile/profile.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
</section>
9696
<section class="profile-1reTe">
9797
<!-- 服务中心 -->
98-
<router-link to='/profile/service' class="myorder">
98+
<router-link to='/service' class="myorder">
9999
<aside>
100100
<svg fill="#4aa5f0">
101101
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#service"></use>
@@ -111,7 +111,7 @@
111111
</div>
112112
</router-link>
113113
<!-- 下载饿了么APP -->
114-
<router-link to='/profile/service' class="myorder">
114+
<router-link to='/download' class="myorder">
115115
<aside>
116116
<svg fill="#3cabff">
117117
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#download"></use>
@@ -178,7 +178,7 @@ export default {
178178
},
179179
180180
computed:{
181-
...mapState([
181+
...mapState([
182182
'userInfo',
183183
]),
184184
imgpath:function () {

0 commit comments

Comments
 (0)