From e87a04f6e4f373256cd09ee7d3fe140eee1de61b Mon Sep 17 00:00:00 2001 From: zhangjing1 Date: Fri, 26 Sep 2025 15:31:39 +0800 Subject: [PATCH] bug(custom): eCX-7279 --- src/ext.json | 6 +++--- src/pages/custom/custom-page.js | 7 +++++-- src/pages/index.js | 7 +++++-- src/subpages/ecshopx/navigation-ibs.js | 7 +++++-- src/subpages/purchase/index.js | 7 +++++-- src/subpages/store/index.js | 7 +++++-- 6 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/ext.json b/src/ext.json index 2fdef7437..16871ea04 100644 --- a/src/ext.json +++ b/src/ext.json @@ -1,9 +1,9 @@ { "extEnable": true, - "extAppid": "wx1e25e45145b70faa", + "extAppid": "wxf7abee400d50e0d0", "ext": { - "company_id": "38", - "appid": "wx1e25e45145b70faa", + "company_id": "5", + "appid": "wxf7abee400d50e0d0", "wxa_name": "通用小程序", "ali_isvid":"" }, diff --git a/src/pages/custom/custom-page.js b/src/pages/custom/custom-page.js index 11d088760..957f23357 100644 --- a/src/pages/custom/custom-page.js +++ b/src/pages/custom/custom-page.js @@ -98,8 +98,11 @@ function CustomPage(props) { draft.selectType = 'addcart' }) } catch (e) { - showToast(e.message) - Taro.hideLoading() + Taro.hideLoading({ + success: () => { + showToast(e.message) + } + }) } } diff --git a/src/pages/index.js b/src/pages/index.js index 2a6f08151..4e5caff74 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -248,8 +248,11 @@ function Home() { draft.selectType = 'addcart' }) } catch (e) { - showToast(e.message) - Taro.hideLoading() + Taro.hideLoading({ + success: () => { + showToast(e.message) + } + }) } } diff --git a/src/subpages/ecshopx/navigation-ibs.js b/src/subpages/ecshopx/navigation-ibs.js index 1fc1b9603..599a54d52 100644 --- a/src/subpages/ecshopx/navigation-ibs.js +++ b/src/subpages/ecshopx/navigation-ibs.js @@ -187,8 +187,11 @@ function NavigationIbs() { draft.selectType = 'addcart' }) } catch (e) { - showToast(e.message) - Taro.hideLoading() + Taro.hideLoading({ + success: () => { + showToast(e.message) + } + }) } } diff --git a/src/subpages/purchase/index.js b/src/subpages/purchase/index.js index 003d306bb..069eed92e 100644 --- a/src/subpages/purchase/index.js +++ b/src/subpages/purchase/index.js @@ -227,8 +227,11 @@ function Home() { draft.selectType = 'addcart' }) } catch (e) { - showToast(e.message) - Taro.hideLoading() + Taro.hideLoading({ + success: () => { + showToast(e.message) + } + }) } } diff --git a/src/subpages/store/index.js b/src/subpages/store/index.js index 8fd4486eb..26263641d 100644 --- a/src/subpages/store/index.js +++ b/src/subpages/store/index.js @@ -294,8 +294,11 @@ function StoreIndex() { draft.selectType = 'addcart' }) } catch (e) { - showToast(e.message) - Taro.hideLoading() + Taro.hideLoading({ + success: () => { + showToast(e.message) + } + }) } }