update 修复二维码
This commit is contained in:
parent
6032cfc13d
commit
0344e669b4
2
App.vue
2
App.vue
@ -47,7 +47,7 @@ export default {
|
||||
else if (options.query.store_id || options.store_id) {
|
||||
sceneParams = `store_id=${options.query.store_id}`;
|
||||
}
|
||||
|
||||
|
||||
// 只有拿到有效参数时才跳转
|
||||
if (sceneParams) {
|
||||
wx.navigateTo({
|
||||
|
||||
@ -905,17 +905,23 @@ export default {
|
||||
},
|
||||
initStorePageData: function (options) {
|
||||
var that = this;
|
||||
|
||||
|
||||
that.$.showLoading();
|
||||
|
||||
//that.commonTPL 全局有效,状态保留了。 清除上次数据
|
||||
that.$set(that.commonTPL, "istop", false);
|
||||
that.$set(that.commonTPL, "pdlist", []);
|
||||
|
||||
if(options.scene){
|
||||
const decodedParam = decodeURIComponent(options.scene);
|
||||
const [key, value] = decodedParam.split('=');
|
||||
options.store_id = value;
|
||||
}
|
||||
|
||||
this.setData({
|
||||
options: options,
|
||||
distance: options.d || 0,
|
||||
store_id: options.store_id || 1001,
|
||||
store_id: options.store_id ||1001 ,
|
||||
});
|
||||
|
||||
var w = that.$.getSystemInfoSync().windowWidth;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user