Commit 484dd93f by zhangzhen

细节优化

parent 6cdac951
...@@ -62,9 +62,15 @@ ...@@ -62,9 +62,15 @@
return val? moment(val).format("MM-DD HH:mm") :'-' return val? moment(val).format("MM-DD HH:mm") :'-'
} }
}, },
onLoad(option) { onLoad(query) {
console.log(option, 909090) if(query && query.q){
this.orderNo =option.orderNo; const q = decodeURIComponent(query.q) // 获取到二维码原始链接内容
if(q){
this.orderNo = q.split("?")[1].split('=')[1]
}
}else{
this.orderNo = query.orderNo
}
this.onLoading(); this.onLoading();
}, },
onShareAppMessage() { onShareAppMessage() {
...@@ -86,7 +92,7 @@ ...@@ -86,7 +92,7 @@
endTime: res.data.data.preEndDate.split(" ")[1], endTime: res.data.data.preEndDate.split(" ")[1],
payTime: moment(res.data.data.payTime).format("YYYY-MM-DD HH:mm:ss") payTime: moment(res.data.data.payTime).format("YYYY-MM-DD HH:mm:ss")
} }
this.text = "http://www.coujio.com/share?orderNo="+this.orderNo this.text = "https://www.coujio.com/wx-share?orderNo="+this.orderNo
}) })
}, },
qrR(r) { qrR(r) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment