Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
momo的小宝贝
vue2-elm
提交
b2796ed0
V
vue2-elm
项目概览
momo的小宝贝
/
vue2-elm
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue2-elm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b2796ed0
编写于
3月 04, 2017
作者:
M
maguohua
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
6cbe7900
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
88 addition
and
70 deletion
+88
-70
README.md
README.md
+2
-0
src/page/shop/children/foodDetail.vue
src/page/shop/children/foodDetail.vue
+5
-5
src/service/getData.js
src/service/getData.js
+81
-65
未找到文件。
README.md
浏览文件 @
b2796ed0
...
...
@@ -66,6 +66,8 @@ npm run build
> 特别感谢辰妹子,在百忙之中抽出时间和我一起完成了这个项目,辛苦了🌹
> 如果您发现问题并有非常好的解决方案,欢迎 PR 👍
> 推荐一个 react + redux 开源项目,对react感兴趣的朋友赶紧去看看。[地址在这里](https://github.com/bailicangdu/react-pxq)
> 另外一个 vue2 + vuex 的入门项目,比当前的项目简单很多,非常适合入门练习。[地址在这里](https://github.com/bailicangdu/vue2-happyfri)
...
...
src/page/shop/children/foodDetail.vue
浏览文件 @
b2796ed0
...
...
@@ -30,10 +30,10 @@
</
template
>
<
script
>
import
headTop
from
'
../../..
/components/header/head
'
import
{
getImgPath
}
from
'
../../..
/components/common/mixin
'
import
ratingStar
from
'
../../..
/components/common/ratingStar
'
import
buyCart
from
'
../../..
/components/common/buyCart
'
import
headTop
from
'
src
/components/header/head
'
import
{
getImgPath
}
from
'
src
/components/common/mixin
'
import
ratingStar
from
'
src
/components/common/ratingStar
'
import
buyCart
from
'
src
/components/common/buyCart
'
export
default
{
...
...
@@ -75,7 +75,7 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'
../../..
/style/mixin'
;
@import
'
src
/style/mixin'
;
.rating_page
{
position
:
absolute
;
...
...
src/service/getData.js
浏览文件 @
b2796ed0
...
...
@@ -205,29 +205,11 @@ import * as hongbao from './tempdata/hongbao'
// });
// /**
// * 手机号登陆
// */
// // export const sendLogin = (code, mobile, validate_token) => fetch('POST', '/v1/login/app_mobile', {
// // code,
// // mobile,
// // validate_token
// // });
// /**
// * 获取用户信息
// */
// // export const getUser = () => fetch('GET', '/v1/user', {});
// /**
// *
// * 获取图片验证码
// */
// export const getcaptchas = () => fetch('POST', '/v1/captchas', {});
...
...
@@ -389,86 +371,118 @@ import * as hongbao from './tempdata/hongbao'
// /**
// * 获取服务中心信息
// */
// /
/ /
**
//
//
* 获取服务中心信息
//
//
*/
// export const getService = () => fetch('GET', '/m.ele.me@json/profile/explain', {});
// /**
// *兑换会员卡
// */
// export const vipCart= (id, number, password) => fetch('POST','/member/v1/users/' + id + '/delivery_card/physical_card/bind',{
// number,
// password
// })
// /**
// * 获取红包数量
// */
// export const getHongbaoNum= id => fetch('GET','/promotion/v2/users/' + id + '/hongbaos',{});
// /**
// * 获取
订单列表
// * 获取
过期红包
// */
// // export const getOrderList = (user_id, offset) => fetch('GET', '/bos/v2/users/' + user_id + '/orders', {
// // limit: 10,
// // offset,
// // });
// export const getExpired= id => fetch('GET','/promotion/v2/users/' + id + '/expired_hongbaos?limit=10&offset=0',{});
// /**
// *
获取订单详情
// *
兑换红包
// */
// // export const getOrderDetail = (user_id, orderid) => fetch('GET', '/bos/v1/users/' + user_id + '/orders/' + orderid + '/snapshot', {});
// export const exChangeHongbao= (id, exchange_code, captcha_code) => fetch('POST','/v1/users/' + id + '/hongbao/exchange',{
// exchange_code,
// captcha_code,
// });
/**
*个人中心里编辑地址
*/
//export const getAddressList = (user_id) => fetch('GET', '/v1/users/'+user_id+'/addresses')
/**
*个人中心里搜索地址
*/
// export const getSearchAddress=(keyword) => fetch('GET','v1/pois',{
// keyword:keyword,
// type:'nearby'
// })
/**
*兑换会员卡
*/
// export const vipCart= (id, number, password) => fetch('POST','/member/v1/users/' + id + '/delivery_card/physical_card/bind',{
// number,
// password
// })
/**
* 获取红包数量
*/
// export const getHongbaoNum= id => fetch('GET','/promotion/v2/users/' + id + '/hongbaos',{});
/**
* 获取过期红包
*/
// export const getExpired= id => fetch('GET','/promotion/v2/users/' + id + '/expired_hongbaos?limit=10&offset=0',{});
/**
* 兑换红包
*/
// export const exChangeHongbao= (id, exchange_code, captcha_code) => fetch('POST','/v1/users/' + id + '/hongbao/exchange',{
// exchange_code,
// captcha_code,
// /**
// * 以下Api接口不需要或者不能进行反向代理
// */
// /**
// * 获取用户信息
// */
// export const getUser = () => fetch('GET', '/v1/user', {});
// /**
// * 手机号登陆
// */
// export const sendLogin = (code, mobile, validate_token) => fetch('POST', '/v1/login/app_mobile', {
// code,
// mobile,
// validate_token
// });
// /**
// * 获取订单列表
// */
// export const getOrderList = (user_id, offset) => fetch('GET', '/bos/v2/users/' + user_id + '/orders', {
// limit: 10,
// offset,
// });
// /**
// * 获取订单详情
// */
// export const getOrderDetail = (user_id, orderid) => fetch('GET', '/bos/v1/users/' + user_id + '/orders/' + orderid + '/snapshot', {});
// /**
// *个人中心里编辑地址
// */
// export const getAddressList = (user_id) => fetch('GET', '/v1/users/'+user_id+'/addresses')
// /**
// *个人中心里搜索地址
// */
// export const getSearchAddress=(keyword) => fetch('GET','v1/pois',{
// keyword:keyword,
// type:'nearby'
// })
/**
...
...
@@ -529,11 +543,13 @@ export const exChangeHongbao= (id, exchange_code, captcha_code) => setpromise(ho
/**
* 以下Api接口不需要或者不能进行反向代理
*/
export
const
getUser
=
()
=>
setpromise
(
login
.
userInfo
);
export
const
sendLogin
=
(
code
,
mobile
,
validate_token
)
=>
setpromise
(
login
.
userInfo
);
export
const
getOrderList
=
(
user_id
,
offset
)
=>
setpromise
(
order
.
orderList
);
export
const
getOrderDetail
=
(
user_id
,
orderid
)
=>
setpromise
(
order
.
orderDetail
);
export
const
getAddressList
=
(
user_id
)
=>
setpromise
(
addresspart
.
address
);
export
const
getSearchAddress
=
(
keyword
)
=>
setpromise
(
addDetail
.
addData
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录