|
@@ -85,9 +85,8 @@
|
|
},
|
|
},
|
|
onLoad: async function(e) {
|
|
onLoad: async function(e) {
|
|
const that = this;
|
|
const that = this;
|
|
- that.$set(that, `id`, e && e.id || '6361ceb683473c0322151aa8');
|
|
|
|
|
|
+ that.$set(that, `id`, e && e.id || '636221d1e25ed78601dd4fa8');
|
|
that.$set(that, `status`, e && e.status || '3');
|
|
that.$set(that, `status`, e && e.status || '3');
|
|
- console.log(e);
|
|
|
|
that.watchLogin();
|
|
that.watchLogin();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -107,8 +106,10 @@
|
|
async search() {
|
|
async search() {
|
|
const that = this;
|
|
const that = this;
|
|
let id = that.id;
|
|
let id = that.id;
|
|
|
|
+ console.log(id);
|
|
let res = await that.$api(`/orderDetail/${id}`, 'GET')
|
|
let res = await that.$api(`/orderDetail/${id}`, 'GET')
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|
|
|
|
+ console.log(res.data);
|
|
for (let val of res.data.goods) val.goods_name = val.goods.name;
|
|
for (let val of res.data.goods) val.goods_name = val.goods.name;
|
|
that.$set(that, `info`, res.data)
|
|
that.$set(that, `info`, res.data)
|
|
} else {
|
|
} else {
|