2020-06-15 10:00:14 +08:00
|
|
|
export default {
|
|
|
|
init(vm){
|
|
|
|
return {
|
2020-06-17 12:09:28 +08:00
|
|
|
// 启动页
|
|
|
|
pageList({document_code}) {
|
|
|
|
return vm.$u.post('StartUp/pageList', {});
|
|
|
|
},
|
|
|
|
// 首页协议
|
|
|
|
documentInfo({document_code}) {
|
|
|
|
return vm.$u.post('StartUp/documentInfo', {
|
|
|
|
document_code : document_code
|
|
|
|
});
|
|
|
|
},
|
|
|
|
//获取验证码接口
|
|
|
|
sendSmsCode({member_mobile, smslog_type}) {
|
|
|
|
return vm.$u.post('sms/sendSmsCode', {
|
|
|
|
member_mobile: member_mobile,
|
|
|
|
smslog_type: smslog_type
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 用户验证码登录
|
2020-06-15 11:34:33 +08:00
|
|
|
phoneLogin({member_mobile, sms_code}) {
|
|
|
|
return vm.$u.post('auth/phoneLogin', {
|
|
|
|
member_mobile: member_mobile,
|
|
|
|
sms_code: sms_code
|
|
|
|
});
|
|
|
|
},
|
2020-06-17 12:09:28 +08:00
|
|
|
//手机号(用户)注册
|
|
|
|
phoneRegister({member_mobile, sms_code}) {
|
|
|
|
return vm.$u.post('auth/phoneRegister', {
|
2020-06-15 11:34:33 +08:00
|
|
|
member_mobile: member_mobile,
|
2020-06-17 12:09:28 +08:00
|
|
|
sms_code: sms_code
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 微信授权登录
|
|
|
|
wechatLogin({member_wxopenid, member_nickname,member_avatar}) {
|
|
|
|
return vm.$u.post('auth/wechatLogin', {
|
|
|
|
member_wxopenid: member_wxopenid,
|
|
|
|
member_nickname: member_nickname,
|
|
|
|
member_avatar : member_avatar
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// qq授权登录
|
|
|
|
qqLogin({member_qqopenid, member_nickname,member_avatar}) {
|
|
|
|
return vm.$u.post('auth/qqLogin', {
|
|
|
|
member_qqopenid: member_qqopenid,
|
|
|
|
member_nickname: member_nickname,
|
|
|
|
member_avatar : member_avatar
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 绑定手机号
|
|
|
|
mobileBind({member_mobile,sms_code}) {
|
|
|
|
return vm.$u.post('auth/mobileBind', {
|
|
|
|
member_mobile: member_mobile,
|
|
|
|
sms_code: sms_code
|
2020-06-15 11:34:33 +08:00
|
|
|
});
|
2020-06-19 18:07:11 +08:00
|
|
|
},
|
|
|
|
// 使用帮助&售后政策列表
|
|
|
|
getUseHelpList({page, tid}) {
|
|
|
|
return vm.$u.post('Member/UseHelpList', {
|
|
|
|
page: page,
|
|
|
|
tid: tid
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 使用帮助&售后政策详情
|
|
|
|
getUseHelpInfo({ launch_id }) {
|
|
|
|
return vm.$u.post('Member/UseHelpInfo', {
|
|
|
|
launch_id: launch_id
|
|
|
|
});
|
|
|
|
},
|
2020-06-22 17:45:39 +08:00
|
|
|
// 标签的列表
|
|
|
|
labelList({}) {
|
|
|
|
return vm.$u.post('StartUp/labelList', {});
|
|
|
|
},
|
2020-06-22 17:45:17 +08:00
|
|
|
// 获取地区列表
|
|
|
|
getAreaList({ pid }) {
|
|
|
|
return vm.$u.post('Area/areaList', {
|
|
|
|
pid: pid
|
|
|
|
});
|
|
|
|
},
|
2020-06-23 17:21:01 +08:00
|
|
|
getArea() {
|
|
|
|
return vm.$u.post('Area/getAreaTree')
|
|
|
|
},
|
2020-06-22 17:45:17 +08:00
|
|
|
// 用户收货地址列表
|
|
|
|
getAddressList() {
|
|
|
|
return vm.$u.post('MemberAddress/addressList');
|
2020-06-23 09:00:04 +08:00
|
|
|
},
|
2020-06-23 17:21:01 +08:00
|
|
|
// 添加收货地址
|
|
|
|
addressAdd({
|
|
|
|
area_id,
|
|
|
|
city_id,
|
|
|
|
is_default,
|
|
|
|
area_info,
|
|
|
|
address,
|
|
|
|
true_name,
|
|
|
|
mobile_phone,
|
|
|
|
// longitude,
|
|
|
|
// latitude,
|
|
|
|
}) {
|
|
|
|
return vm.$u.post('memberAddress/addressAdd', {
|
|
|
|
area_id: area_id,
|
|
|
|
city_id: city_id,
|
|
|
|
is_default: is_default,
|
|
|
|
area_info: area_info,
|
|
|
|
address: address,
|
|
|
|
true_name: true_name,
|
|
|
|
mobile_phone: mobile_phone,
|
|
|
|
// longitude: longitude,
|
|
|
|
// latitude: latitude,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 修改收货地址
|
|
|
|
addressEdit({
|
|
|
|
address_id,
|
|
|
|
area_id,
|
|
|
|
city_id,
|
|
|
|
is_default,
|
|
|
|
area_info,
|
|
|
|
address,
|
|
|
|
true_name,
|
|
|
|
mobile_phone,
|
|
|
|
// longitude,
|
|
|
|
// latitude,
|
|
|
|
}) {
|
|
|
|
return vm.$u.post('memberAddress/addressEdit', {
|
|
|
|
address_id: address_id,
|
|
|
|
area_id: area_id,
|
|
|
|
city_id: city_id,
|
|
|
|
is_default: is_default,
|
|
|
|
area_info: area_info,
|
|
|
|
address: address,
|
|
|
|
true_name: true_name,
|
|
|
|
mobile_phone: mobile_phone,
|
|
|
|
// longitude: longitude,
|
|
|
|
// latitude: latitude,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 删除地址
|
|
|
|
deleteAddress({ address_id }) {
|
|
|
|
return vm.$u.post('memberAddress/addressDel', {
|
|
|
|
address_id: address_id
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 设默认地址
|
|
|
|
setDefaultAddress({ address_id }) {
|
|
|
|
return vm.$u.post('memberAddress/addressSetDefault', {
|
|
|
|
address_id: address_id
|
|
|
|
});
|
|
|
|
},
|
2020-06-23 09:00:04 +08:00
|
|
|
// 美甲
|
|
|
|
getManicureList({ page }) {
|
|
|
|
return vm.$u.post('MemberManicure/getManicureList', {
|
|
|
|
page: page
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 美甲-提交订单
|
|
|
|
addManicure({ name, time }) {
|
|
|
|
return vm.$u.post('MemberManicure/addManicure', {
|
|
|
|
name: name,
|
|
|
|
time: time
|
|
|
|
});
|
|
|
|
},
|
2020-06-24 16:39:31 +08:00
|
|
|
// 会员服务-积分数
|
|
|
|
getMemberPointsStat() {
|
|
|
|
return vm.$u.post('member/memberPointsStat');
|
|
|
|
},
|
2020-06-23 17:21:01 +08:00
|
|
|
// 会员服务-积分列表
|
|
|
|
getPointslogList() {
|
|
|
|
return vm.$u.post('member/pointslogList');
|
|
|
|
},
|
2020-06-24 16:39:31 +08:00
|
|
|
// 商品收藏列表
|
|
|
|
getGoodsFavoritesList() {
|
|
|
|
return vm.$u.post('Member/getFavoritesList');
|
|
|
|
},
|
|
|
|
// 店铺收藏列表
|
|
|
|
getStoreFavoritesList({ type }) {
|
|
|
|
return vm.$u.post('Member/getFavoritesList', {
|
|
|
|
type: type
|
|
|
|
});
|
|
|
|
},
|
2020-06-15 10:00:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|