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
|
|
|
},
|
|
|
|
// 使用帮助&售后政策列表
|
2020-07-03 09:08:53 +08:00
|
|
|
getUseHelpList({ page, tid }) {
|
2020-06-19 18:07:11 +08:00
|
|
|
return vm.$u.post('Member/UseHelpList', {
|
|
|
|
page: page,
|
2020-07-03 09:08:53 +08:00
|
|
|
tid: tid,
|
2020-06-19 18:07:11 +08:00
|
|
|
});
|
|
|
|
},
|
|
|
|
// 使用帮助&售后政策详情
|
|
|
|
getUseHelpInfo({ launch_id }) {
|
|
|
|
return vm.$u.post('Member/UseHelpInfo', {
|
2020-07-03 09:08:53 +08:00
|
|
|
launch_id: launch_id,
|
2020-06-19 18:07:11 +08:00
|
|
|
});
|
|
|
|
},
|
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', {
|
2020-07-03 09:08:53 +08:00
|
|
|
pid: pid,
|
2020-06-22 17:45:17 +08:00
|
|
|
});
|
|
|
|
},
|
2020-06-23 17:21:01 +08:00
|
|
|
getArea() {
|
2020-07-03 09:08:53 +08:00
|
|
|
return vm.$u.post('Area/getAreaTree');
|
2020-06-23 17:21:01 +08:00
|
|
|
},
|
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,
|
2020-07-16 08:43:55 +08:00
|
|
|
// longitude,
|
2020-06-23 17:21:01 +08:00
|
|
|
// 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-07-03 09:08:53 +08:00
|
|
|
// 收藏列表 商品 不传值;店铺 type: 2
|
2020-07-01 17:32:36 +08:00
|
|
|
getFavoritesList({ type = undefined } = {}) {
|
|
|
|
let params = {};
|
|
|
|
if(type) Object.assign(params, {type: type})
|
|
|
|
return vm.$u.post('Member/getFavoritesList', params);
|
2020-06-24 16:39:31 +08:00
|
|
|
},
|
2020-07-01 17:32:36 +08:00
|
|
|
// 取消收藏(商品/店铺)
|
|
|
|
removeFavorite({ id }) {
|
|
|
|
return vm.$u.post('Member/removeFavorite', {
|
2020-07-03 09:08:53 +08:00
|
|
|
id: id,
|
2020-06-24 16:39:31 +08:00
|
|
|
});
|
|
|
|
},
|
2020-06-29 08:47:37 +08:00
|
|
|
// 设置-用户信息
|
|
|
|
getMemberInfo() {
|
|
|
|
return vm.$u.post('Member/MemberInfo');
|
|
|
|
},
|
|
|
|
// 设置-修改用户信息
|
2020-06-30 18:06:50 +08:00
|
|
|
updateMemberInfo({ nickname, gender, avatar, birthday }) {
|
2020-06-29 08:47:37 +08:00
|
|
|
return vm.$u.post('Member/changeMemberInfo', {
|
|
|
|
nickname: nickname,
|
|
|
|
sex: gender,
|
|
|
|
avatar: avatar,
|
2020-06-30 18:06:50 +08:00
|
|
|
birthday: birthday,
|
2020-06-29 08:47:37 +08:00
|
|
|
});
|
2020-06-29 17:24:57 +08:00
|
|
|
},
|
2020-07-03 09:08:53 +08:00
|
|
|
// 修改绑定手机号
|
|
|
|
changeMemberPhone({ old_mobile, old_code, new_mobile, new_code }) {
|
2020-07-03 17:44:58 +08:00
|
|
|
return vm.$u.post('Member/memberChangeMobile', {
|
2020-07-03 09:08:53 +08:00
|
|
|
old_mobile: old_mobile,
|
|
|
|
old_code: old_code,
|
|
|
|
new_mobile: new_mobile,
|
|
|
|
new_code: new_code,
|
|
|
|
});
|
|
|
|
},
|
2020-07-01 17:32:36 +08:00
|
|
|
// 设置-关于我们
|
|
|
|
aboutUsInfo() {
|
|
|
|
return vm.$u.post('Setting/AboutUsInfo');
|
|
|
|
},
|
|
|
|
// 设置-证照中心
|
|
|
|
certificateInfo() {
|
|
|
|
return vm.$u.post('Setting/CertificateInfo');
|
|
|
|
},
|
2020-06-29 17:24:57 +08:00
|
|
|
// 用户浏览记录
|
2020-07-06 17:32:29 +08:00
|
|
|
getBrowseList({ page }) {
|
|
|
|
return vm.$u.post('Member/BrowseList', {
|
|
|
|
page: page,
|
|
|
|
});
|
2020-06-29 17:24:57 +08:00
|
|
|
},
|
2020-07-10 09:03:19 +08:00
|
|
|
// 意见反馈列表
|
2020-07-07 17:47:00 +08:00
|
|
|
getFeedbackList({ page }) {
|
2020-07-08 18:14:41 +08:00
|
|
|
return vm.$u.post('Member/feedbackList', {
|
2020-07-07 17:47:00 +08:00
|
|
|
page: page,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 意见反馈-写意见
|
|
|
|
writeFeedback({ fb_content, fb_images }) {
|
2020-07-08 18:14:41 +08:00
|
|
|
return vm.$u.post('Member/writeFeedback', {
|
2020-07-07 17:47:00 +08:00
|
|
|
fb_content: fb_content,
|
|
|
|
fb_images: fb_images,
|
|
|
|
});
|
2020-06-29 17:24:57 +08:00
|
|
|
},
|
2020-06-30 18:06:50 +08:00
|
|
|
// 订单列表
|
2020-07-31 21:47:41 +08:00
|
|
|
getOrderList({ page, type }) {
|
2020-07-06 17:32:29 +08:00
|
|
|
let params = { page: page };
|
2020-07-31 21:47:41 +08:00
|
|
|
if(type > 0) Object.assign(params, {type: type});
|
2020-07-10 17:38:21 +08:00
|
|
|
return vm.$u.post('Order/orderList', params);
|
2020-06-30 18:06:50 +08:00
|
|
|
},
|
2020-07-14 10:13:27 +08:00
|
|
|
// 售后列表
|
2020-07-31 21:47:41 +08:00
|
|
|
// getAfterSaleList({ page }) {
|
|
|
|
// return vm.$u.post('order/afterSaleList', { page: page });
|
|
|
|
// },
|
2020-07-27 17:59:47 +08:00
|
|
|
// 试穿列表
|
|
|
|
goodsTryOrderList() {
|
|
|
|
return vm.$u.post('order/goodsTryOrderList');
|
|
|
|
},
|
2020-07-28 20:47:31 +08:00
|
|
|
// 试穿订单确认完成
|
|
|
|
goodsTryConfirm({ id }) {
|
|
|
|
return vm.$u.post('order/goodsTryConfirm', { id: id });
|
|
|
|
},
|
2020-06-30 18:06:50 +08:00
|
|
|
// 订单详情
|
|
|
|
getOrderInfo({ order_id }) {
|
2020-07-10 17:38:21 +08:00
|
|
|
return vm.$u.post('Order/orderInfo', { order_id: order_id });
|
2020-06-30 18:06:50 +08:00
|
|
|
},
|
2020-07-14 17:43:15 +08:00
|
|
|
// 取消订单
|
|
|
|
cancelOrder({ order_id, msg = '' } = {}) {
|
|
|
|
let params = { order_id: order_id };
|
|
|
|
if(msg) Object.assign(params, {msg: msg});
|
|
|
|
return vm.$u.post('Order/buyer_cancel', params);
|
|
|
|
},
|
2020-08-03 20:59:24 +08:00
|
|
|
// add_refund
|
|
|
|
refundOrder({ order_id, goods_id, refund_amount, refund_type = 1 } = {}) {
|
|
|
|
return vm.$u.post('order/add_refund', {
|
|
|
|
order_id: order_id,
|
|
|
|
goods_id: goods_id,
|
|
|
|
refund_amount: refund_amount,
|
|
|
|
refund_type: refund_type,
|
|
|
|
});
|
|
|
|
},
|
2020-07-14 17:43:15 +08:00
|
|
|
// 删除订单
|
|
|
|
deleteOrder({ order_id }) {
|
|
|
|
return vm.$u.post('order/order_delete', { order_id: order_id });
|
|
|
|
},
|
|
|
|
// 确认收货
|
|
|
|
confirmReceive ({ order_id }) {
|
|
|
|
return vm.$u.post('Order/order_receive', { order_id: order_id });
|
|
|
|
},
|
2020-07-06 17:32:29 +08:00
|
|
|
// 查询订单的评价信息
|
|
|
|
getOrderEvaluateInfo({ id }) {
|
2020-07-07 17:47:00 +08:00
|
|
|
return vm.$u.post('Order/getOrderEvaluateInfo', { id: id });
|
2020-07-06 17:32:29 +08:00
|
|
|
},
|
2020-07-30 20:33:16 +08:00
|
|
|
orderLogistics({ id }) {
|
|
|
|
return vm.$u.post('Order/orderLogistics', { order_id: id });
|
|
|
|
},
|
2020-07-06 17:32:29 +08:00
|
|
|
// 订单评价/修改评价
|
|
|
|
updateOrderEvaluate({ id, content, scores_one, scores_two, scores_three, file }) {
|
2020-07-10 17:38:21 +08:00
|
|
|
let params = {
|
2020-07-06 17:32:29 +08:00
|
|
|
id: id,
|
|
|
|
content: content,
|
|
|
|
scores_one: scores_one,
|
|
|
|
scores_two: scores_two,
|
|
|
|
scores_three: scores_three,
|
2020-07-07 17:47:00 +08:00
|
|
|
}
|
2020-07-10 17:38:21 +08:00
|
|
|
if(file) Object.assign(params, { file: file });
|
|
|
|
return vm.$u.post('Order/orderEvaluate', params);
|
2020-06-30 18:06:50 +08:00
|
|
|
},
|
2020-07-09 16:35:23 +08:00
|
|
|
// 信息模块
|
|
|
|
messageIndex({ }) {
|
|
|
|
return vm.$u.post('Message/messageIndex', { });
|
|
|
|
},
|
|
|
|
// 公告咨询列表
|
|
|
|
informationList({ }) {
|
|
|
|
return vm.$u.post('Message/informationList', { });
|
|
|
|
},
|
|
|
|
// 关注列表
|
|
|
|
snsfriendList({ }) {
|
|
|
|
return vm.$u.post('message/snsfriendList', { });
|
|
|
|
},
|
2020-07-18 19:52:47 +08:00
|
|
|
// 关注达人
|
|
|
|
attentionMember({ member_id }) {
|
|
|
|
return vm.$u.post('member/attentionMember', {
|
|
|
|
member_id : member_id
|
|
|
|
});
|
|
|
|
},
|
2020-07-09 16:35:23 +08:00
|
|
|
// 公告消息列表
|
|
|
|
informationInfo({ }) {
|
|
|
|
return vm.$u.post('message/informationInfo', { });
|
|
|
|
},
|
|
|
|
// 活动消息列表
|
|
|
|
messageactivityList({ }) {
|
|
|
|
return vm.$u.post('message/messageactivityList', { });
|
|
|
|
},
|
|
|
|
// 全部已读接口
|
|
|
|
delMessage({ type }) {
|
|
|
|
return vm.$u.post('message/delMessage', { type });
|
|
|
|
},
|
2020-07-13 08:39:42 +08:00
|
|
|
// 已读消息
|
|
|
|
delMessage({ type }) {
|
|
|
|
return vm.$u.post('/message/readMessage', { type });
|
|
|
|
},
|
2020-07-15 16:04:31 +08:00
|
|
|
// 已读消息
|
|
|
|
refreshToken({ }) {
|
|
|
|
return vm.$u.post('/Auth/refreshToken', { });
|
2020-07-15 16:52:39 +08:00
|
|
|
},
|
2020-07-15 16:21:43 +08:00
|
|
|
// 屏蔽列表
|
|
|
|
articlShieldList() {
|
|
|
|
return vm.$u.post('/Article/articlShieldList');
|
|
|
|
},
|
|
|
|
// 取消屏蔽
|
|
|
|
articleDelShield({ id }) {
|
|
|
|
return vm.$u.post('article/articleDelShield', { member_id: id });
|
2020-07-15 16:04:31 +08:00
|
|
|
},
|
2020-07-20 17:17:41 +08:00
|
|
|
// 配置
|
|
|
|
getConfigInfo({ code }) {
|
|
|
|
return vm.$u.post('Document/getConfigInfo', {
|
|
|
|
code: code,
|
|
|
|
});
|
|
|
|
},
|
2020-07-28 20:47:31 +08:00
|
|
|
// 送洗列表-平台订单 实体店订单
|
|
|
|
sendLaundryOrderList({ type, page }) {
|
|
|
|
return vm.$u.post('member/sendLaundryOrderList', {
|
|
|
|
type: type,
|
|
|
|
page: page,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 送洗-获取衣服类型
|
|
|
|
getClothesTypeList() {
|
|
|
|
return vm.$u.post('member/getClothesTypeList');
|
|
|
|
},
|
|
|
|
// 送洗评价
|
|
|
|
sendOrderComment({ id, comment }) {
|
|
|
|
return vm.$u.post('member/sendOrderComment', {
|
|
|
|
id: id,
|
|
|
|
comment: comment,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 送洗确认完成
|
|
|
|
sendLaundryOrderConfirm({ id }) {
|
|
|
|
return vm.$u.post('member/sendOrderConfirm', {
|
|
|
|
id: id,
|
|
|
|
});
|
2020-07-29 19:01:10 +08:00
|
|
|
},
|
|
|
|
// 提交送洗
|
|
|
|
sendLaundrySave({
|
|
|
|
type,
|
|
|
|
tid,
|
|
|
|
condition,
|
|
|
|
member_name,
|
|
|
|
member_phone,
|
|
|
|
area_info,
|
|
|
|
address_info,
|
|
|
|
goods_name,
|
|
|
|
order_id,
|
|
|
|
goods_id,
|
|
|
|
goods_images,
|
|
|
|
}) {
|
|
|
|
return vm.$u.post('member/sendLaundrySave', {
|
|
|
|
type: type,
|
|
|
|
tid: tid,
|
|
|
|
condition: condition,
|
|
|
|
member_name: member_name,
|
|
|
|
member_phone: member_phone,
|
|
|
|
area_info: area_info,
|
|
|
|
address_info: address_info,
|
|
|
|
goods_name: goods_name,
|
|
|
|
order_id: order_id,
|
|
|
|
goods_id: goods_id,
|
|
|
|
goods_images: goods_images,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 送洗评论列表
|
|
|
|
sendCommentList() {
|
|
|
|
return vm.$u.post('member/sendCommentList');
|
|
|
|
},
|
2020-08-03 14:34:56 +08:00
|
|
|
// 发现收藏列表
|
|
|
|
articleCollectList() {
|
|
|
|
return vm.$u.post('article/articleCollectList');
|
|
|
|
},
|
2020-08-03 18:38:04 +08:00
|
|
|
// 关注用户列表
|
|
|
|
attentionMemberList() {
|
|
|
|
return vm.$u.post('member/attentionMemberList');
|
|
|
|
},
|
2020-06-15 10:00:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|