Cause: If an error occurs when the ‘Confirm’ button is clicked using the “validated” Dialog popup component, the button will remain ‘loaded’.

Check the official documentation (take a very close look...) The Dialog component can be called in two ways: 1> function call 2> component call. As for the loading state of the 'confirm' button, the document mentions the loading state of 'dialog.stoploading () - stop button. But using 'component call' does not say the solution after the official issues check: https://github.com/youzan/vant-weapp/issues?utf8=%E2%9C%93&q=dialog+%E7%BB%84%E4%BB%B6stopLoading mentioned can be achieved by: This.selectcomponent ('#id').stoploading ()Copy the code

This. SelectComponent (‘#id’) is not a function

See the applet official documentation for selectComponent: https://developers.weixin.qq.com/miniprogram/dev/reference/api/Component.html in custom components, can obtain the internal instances of custom components: SelectComponent - Selects the component instance node using the selector, returns the first matching component instance object (affected by wx://component-export) selectAllComponents - selects the component instance node using the selector, Return an array of all matched component instance objects wondering if I'm using the problem in page, various searches, like some say yes, some don't, and then start asking questions in the community:  https://developers.weixin.qq.com/community/develop/doc/000e02ed5307c0cdfcc8501975b400?jumpto=qcomment&commentid=00064c6 This. SelectComponent ('#id') can be used in the page of the native applet to check whether it is a wepy framework issue. https://github.com/Tencent/wepy/issues?utf8=%E2%9C%93&q=selectComponent to find the final solution: this. $wxpage. SelectComponent ()Copy the code

Summary: Get component instance: native applet: this.selectComponent(‘#id’)

Wepy framework: this.$wxPage.selectComponent () Self.$mp.page.selectComponent("#submitCaseDialog").stoploading () also logs (not using the MPvue framework): https://github.com/Meituan-Dianping/mpvue/issues/605Copy the code