店铺收款码更新
This commit is contained in:
@@ -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;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取排号状态
|
* 获取排号状态
|
||||||
|
|||||||
Reference in New Issue
Block a user