Commit 484dd93f by zhangzhen

细节优化

parent 6cdac951
......@@ -62,9 +62,15 @@
return val? moment(val).format("MM-DD HH:mm") :'-'
}
},
onLoad(option) {
console.log(option, 909090)
this.orderNo =option.orderNo;
onLoad(query) {
if(query && query.q){
const q = decodeURIComponent(query.q) // 获取到二维码原始链接内容
if(q){
this.orderNo = q.split("?")[1].split('=')[1]
}
}else{
this.orderNo = query.orderNo
}
this.onLoading();
},
onShareAppMessage() {
......@@ -86,7 +92,7 @@
endTime: res.data.data.preEndDate.split(" ")[1],
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) {
......
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