jufubao-food 1.0.15-beta13 → 1.0.15-beta15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -455,6 +455,7 @@
|
|
|
455
455
|
* @param container {object} 业务组件对象自己
|
|
456
456
|
*/
|
|
457
457
|
init(container) {
|
|
458
|
+
this.xnamespace = gCPVal(container, 'xnamespace', this.projectAttr.business_code||this.xnamespace);
|
|
458
459
|
this.foodDetailPath = getContainerPropsValue(container, 'content.foodDetailPath', {value: ""}).value;
|
|
459
460
|
this.confirmPath = getContainerPropsValue(container, 'content.confirmPath', {value: ""}).value;
|
|
460
461
|
this.switchStorePath = getContainerPropsValue(container, 'content.switchStorePath', { value: ''}).value;
|
|
@@ -559,8 +560,11 @@
|
|
|
559
560
|
let curPage = this.$xdUniHelper.getCurrentPages();
|
|
560
561
|
let query = {...curPage.query};
|
|
561
562
|
let callback= Base64.encode(curPage.path + '?' + this.$xdUniHelper.jsonToParams(query));
|
|
563
|
+
let linkQuery = '?brand_id=' + (this.brand_id || this.shopInfo.brand_id);
|
|
564
|
+
let rShopId = this.shopInfo.resource_shop_id || this.resource_shop_id;
|
|
565
|
+
linkQuery = rShopId ? linkQuery + '&resource_shop_id=' + rShopId : linkQuery;
|
|
562
566
|
this.$xdUniHelper.redirectTo({
|
|
563
|
-
url: this.switchStorePath +
|
|
567
|
+
url: this.switchStorePath + linkQuery + '&callback=' + callback
|
|
564
568
|
})
|
|
565
569
|
// this.$xdUniHelper.navigateTo({
|
|
566
570
|
// url: this.switchStorePath + "?brand_id=" + this.brand_id + "&resource_shop_id=" + this.resource_shop_id,
|