Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx

This commit is contained in:
2020-07-31 09:40:18 +08:00
28 changed files with 795 additions and 393 deletions

View File

@@ -253,6 +253,10 @@ export default {
tabLiveList(){
return vm.$u.post('Specialci/tabLiveList')
},
// 商城-活动广告
getStoreActivity() {
return vm.$u.post('adv/storeActivity')
},
// 获取图文视频详情
articleInfo({article_id}){
return vm.$u.post('article/articleInfo',{article_id})

View File

@@ -270,6 +270,9 @@ export default {
getOrderEvaluateInfo({ id }) {
return vm.$u.post('Order/getOrderEvaluateInfo', { id: id });
},
orderLogistics({ id }) {
return vm.$u.post('Order/orderLogistics', { order_id: id });
},
// 订单评价/修改评价
updateOrderEvaluate({ id, content, scores_one, scores_two, scores_three, file }) {
let params = {
@@ -357,7 +360,39 @@ export default {
return vm.$u.post('member/sendOrderConfirm', {
id: id,
});
}
},
// 提交送洗
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');
},
}
}
}

View File

@@ -1,5 +1,9 @@
import Vue from 'vue'
import Vuex from 'vuex'
import {
mapMutations
} from 'vuex';
Vue.use(Vuex)
const store = new Vuex.Store({
@@ -12,10 +16,12 @@ const store = new Vuex.Store({
pintuangroup_headid: '', // 拼团团长id 有为开团 无为参团
groupbuyInfo: {}, // 秒杀详情
loadmore: {}, // 下拉加载返回的数据
hasLogin: false, // 登录状态
token: "" // 储存token
},
getters: {
getOrderAddress(state) {
return state.orderAddress;
return state.orderAddress || {};
},
getGoodsType(state) {
return state.goodsDetails.type;
@@ -25,6 +31,23 @@ const store = new Vuex.Store({
}
},
mutations: {
// 登录
loginIn(state, token) {
state.hasLogin = true;
state.token = token;
uni.setStorage({
key: "token",
data: token
})
},
// 退出登录
logout(state) {
state.hasLogin = false;
state.token = "";
uni.removeStorage({
key: "token"
})
},
setOrderType(state, type) {
state.orderType = type;
},
@@ -48,7 +71,7 @@ const store = new Vuex.Store({
},
setLoadMore(state, info) {
state.loadmore = info;
},
}
}
})
export default store;
export default store;