店铺收款码更新

This commit is contained in:
GaoHao
2024-09-19 14:33:27 +08:00
parent b3cb29691a
commit 861e97b775

View File

@@ -130,9 +130,10 @@
}; };
}, },
onLoad(options) { onLoad(options) {
if (options.shopId) { if (options.q) {
this.shopId = options.shopId; this.shopId = this.getQueryString(decodeURIComponent(options.q), 'shopId')
} }
}, },
onShow() { onShow() {
this.getQueueUpState(); this.getQueueUpState();
@@ -144,6 +145,19 @@
}, },
methods: { methods: {
/**
* 解码
* @param {Object} url
* @param {Object} name
*/
getQueryString(url, name) {
var reg = new RegExp('(^|&|/?)' + name + '=([^&|/?]*)(&|/?|$)', 'i')
var r = url.substr(1).match(reg)
if (r != null) {
return r[2]
}
return null;
},
/** /**
* 获取排号状态 * 获取排号状态