|
|
|
@ -22,6 +22,10 @@ const props = defineProps({
|
|
|
|
orderid: {
|
|
|
|
orderid: {
|
|
|
|
type: String,
|
|
|
|
type: String,
|
|
|
|
default: ''
|
|
|
|
default: ''
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
status: {
|
|
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
|
|
default: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@ -40,6 +44,7 @@ const checkOpenid = () => {
|
|
|
|
const openid = getPureValue(props.openid);
|
|
|
|
const openid = getPureValue(props.openid);
|
|
|
|
const path = getPureValue(props.path);
|
|
|
|
const path = getPureValue(props.path);
|
|
|
|
const orderid = getPureValue(props.orderid);
|
|
|
|
const orderid = getPureValue(props.orderid);
|
|
|
|
|
|
|
|
const status = getPureValue(props.status);
|
|
|
|
|
|
|
|
|
|
|
|
// 4. 初始化参数拼接字符串,避免 undefined 开头
|
|
|
|
// 4. 初始化参数拼接字符串,避免 undefined 开头
|
|
|
|
let redirectParams = '';
|
|
|
|
let redirectParams = '';
|
|
|
|
@ -51,6 +56,9 @@ const checkOpenid = () => {
|
|
|
|
if (orderid) {
|
|
|
|
if (orderid) {
|
|
|
|
redirectParams += `${redirectParams ? '&' : '?'}orderid=${orderid}`;
|
|
|
|
redirectParams += `${redirectParams ? '&' : '?'}orderid=${orderid}`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (status) {
|
|
|
|
|
|
|
|
redirectParams += `${redirectParams ? '&' : '?'}status=${encodeURIComponent(status)}`;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (openid) {
|
|
|
|
if (openid) {
|
|
|
|
uni.setStorageSync('OPENID', openid);
|
|
|
|
uni.setStorageSync('OPENID', openid);
|
|
|
|
|