myOrder.js
3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import urlAlias from '../url';
import request from '../request';
const {
orderList
} = urlAlias;
const data = {
data: [
{
finished_time: null,
is_refound: "0",
mch_id: "1436019502",
money_of_dcw: "0",
money_of_partner: "0",
money_of_shop: "0",
orderJudge: false,
order_info: {
address:{
cityName: "镇江市",
countyName: "丹阳市",
detailInfo: "延陵镇柳茹村卫生室附近秀野堂农业发展有限公司",
errMsg: "chooseAddress:ok",
nationalCode: "321181",
postalCode: "212300",
provinceName: "江苏省",
telNumber: "15896379277",
userName: "点餐汪客服",
},
cartinfo:['11', '12'],
keyname: "1_1587129366",
lefttime: 179995,
list:[
{
cart_id: "11",
imgUrl: "https://glass.xiuyetang.com//upload_jk/4/4_0_3FDA03.jpg",
img_index_url: null,
memo: "志平防蓝光-防辐射电脑网课眼镜,TR90弹性漆,近视镜,青春潮流,01-8701",
mp_id: "1",
nowPrice: 100,
num: "2",
oldPrice: "0",
p_discount: "1",
p_name: "01-8701志平防蓝光-防辐射电脑网课眼镜,TR90弹性漆,近视镜,青春潮流",
p_root_index: "1",
p_sale_price: "0",
peopleName: "me",
pics: '',
pid: "4",
sk_id: "38",
},
],
orderDesc: "总共包括有:01-8701志平防蓝光-防辐射电脑网课眼镜,TR90弹性漆,近视镜,青春潮流在内的1件商品",
total_fee: 100
},
partner_uid: "0",
pay_cate: "2020",
pay_id: "3",
pay_time: "2020-04-17 21:16:12",
pay_wood_desc: "在【非常戴镜】的微信付款凭证",
pay_wood_id: "fcdj-1-1_1587129366",
prepay_id: "wx172116124528226bf1a8adad1662456500",
re_check_staus: "0",
shopid: "0",
split_userid: "0",
status: "1",
total_fee: "100",
uid: "1",
}
],
msg: "订单列表",
status: 0,
}
const state = {
orderList: [],
};
const mutations = {
INIT: (state, data) => {
state.orderList = data;
},
};
const actions = {
getList({ commit }, param) {
request({
url: orderList,
data: param,
success: (res) => {
const resData = {
...res,
data,
}
console.log('data.data', resData.data.data);
commit("INIT", resData.data.data);
},
})
}
}
export default {
namespaced: true,
state,
mutations,
actions,
}