|
|
|
@ -170,8 +170,30 @@ |
|
|
|
evaluated_order: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(){ |
|
|
|
this.getUserCenterDetail(); |
|
|
|
async onLoad(query){ |
|
|
|
if(query && query.q){ |
|
|
|
const q = decodeURIComponent(query.q); |
|
|
|
console.log("query",q); |
|
|
|
let sid = q.split('s=')[1]; |
|
|
|
console.log("sid",sid) |
|
|
|
if(sid){ |
|
|
|
let res = await ratingSearch(sid); |
|
|
|
let datas = res.data.datas; |
|
|
|
|
|
|
|
if(this.$isRight(datas.sub_order)){ // 查询到订单,默认取第一条 |
|
|
|
let base_data = encodeURIComponent(JSON.stringify(datas)); |
|
|
|
this.$url('/packages/ratingQueryDetail/ratingQueryDetail?data='+ base_data); |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title: '提示', |
|
|
|
content: '该评级编号暂无订单,换个编号试试?', |
|
|
|
showCancel: false |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.getUserCenterDetail(); |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
|