店铺收款码更新
This commit is contained in:
@@ -130,9 +130,10 @@
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
if (options.shopId) {
|
||||
this.shopId = options.shopId;
|
||||
if (options.q) {
|
||||
this.shopId = this.getQueryString(decodeURIComponent(options.q), 'shopId')
|
||||
}
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.getQueueUpState();
|
||||
@@ -144,6 +145,19 @@
|
||||
},
|
||||
|
||||
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;
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取排号状态
|
||||
|
||||
Reference in New Issue
Block a user