hylid-bridge 0.0.1
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/lib/appEnv.d.ts +10 -0
- package/lib/appEnv.js +95 -0
- package/lib/bridges.d.ts +143 -0
- package/lib/bridges.js +2782 -0
- package/lib/clients/mp/lazada/crossPay.d.ts +3 -0
- package/lib/clients/mp/lazada/crossPay.js +11 -0
- package/lib/clients/mp/lazada/getAppIdSync.d.ts +3 -0
- package/lib/clients/mp/lazada/getAppIdSync.js +7 -0
- package/lib/clients/mp/lazada/getAuthCode.d.ts +3 -0
- package/lib/clients/mp/lazada/getAuthCode.js +48 -0
- package/lib/clients/mp/lazada/getOpenUserInfo.d.ts +3 -0
- package/lib/clients/mp/lazada/getOpenUserInfo.js +42 -0
- package/lib/clients/mp/lazada/hideNavigationBarLoading.d.ts +3 -0
- package/lib/clients/mp/lazada/hideNavigationBarLoading.js +6 -0
- package/lib/clients/mp/lazada/index.d.ts +120 -0
- package/lib/clients/mp/lazada/index.js +104 -0
- package/lib/clients/mp/lazada/showNavigationBarLoading.d.ts +3 -0
- package/lib/clients/mp/lazada/showNavigationBarLoading.js +6 -0
- package/lib/clients/mp/lazada/tradePay.d.ts +3 -0
- package/lib/clients/mp/lazada/tradePay.js +11 -0
- package/lib/clients/mp/taobao/crossPay.d.ts +3 -0
- package/lib/clients/mp/taobao/crossPay.js +11 -0
- package/lib/clients/mp/taobao/getAuthCode.d.ts +3 -0
- package/lib/clients/mp/taobao/getAuthCode.js +48 -0
- package/lib/clients/mp/taobao/getOpenUserInfo.d.ts +3 -0
- package/lib/clients/mp/taobao/getOpenUserInfo.js +34 -0
- package/lib/clients/mp/taobao/index.d.ts +114 -0
- package/lib/clients/mp/taobao/index.js +98 -0
- package/lib/clients/mp/taobao/tradePay.d.ts +3 -0
- package/lib/clients/mp/taobao/tradePay.js +11 -0
- package/lib/clients/mp-web/cn/crossPay.d.ts +3 -0
- package/lib/clients/mp-web/cn/crossPay.js +8 -0
- package/lib/clients/mp-web/cn/index.d.ts +89 -0
- package/lib/clients/mp-web/cn/index.js +86 -0
- package/lib/clients/mp-web/intl/APRegionRPC.d.ts +3 -0
- package/lib/clients/mp-web/intl/APRegionRPC.js +7 -0
- package/lib/clients/mp-web/intl/addFatigueAction.d.ts +3 -0
- package/lib/clients/mp-web/intl/addFatigueAction.js +7 -0
- package/lib/clients/mp-web/intl/apDisableJSAPI.d.ts +3 -0
- package/lib/clients/mp-web/intl/apDisableJSAPI.js +7 -0
- package/lib/clients/mp-web/intl/appxrpc.d.ts +3 -0
- package/lib/clients/mp-web/intl/appxrpc.js +7 -0
- package/lib/clients/mp-web/intl/batchQueryCdpSpaceInfo.d.ts +3 -0
- package/lib/clients/mp-web/intl/batchQueryCdpSpaceInfo.js +7 -0
- package/lib/clients/mp-web/intl/choosePhoneContact.d.ts +3 -0
- package/lib/clients/mp-web/intl/choosePhoneContact.js +7 -0
- package/lib/clients/mp-web/intl/crossPay.d.ts +3 -0
- package/lib/clients/mp-web/intl/crossPay.js +7 -0
- package/lib/clients/mp-web/intl/exitApp.d.ts +3 -0
- package/lib/clients/mp-web/intl/exitApp.js +7 -0
- package/lib/clients/mp-web/intl/getAppToken.d.ts +3 -0
- package/lib/clients/mp-web/intl/getAppToken.js +7 -0
- package/lib/clients/mp-web/intl/getComponentAuth.d.ts +3 -0
- package/lib/clients/mp-web/intl/getComponentAuth.js +7 -0
- package/lib/clients/mp-web/intl/getPaymentCode.d.ts +3 -0
- package/lib/clients/mp-web/intl/getPaymentCode.js +7 -0
- package/lib/clients/mp-web/intl/getPhoneNumber.d.ts +3 -0
- package/lib/clients/mp-web/intl/getPhoneNumber.js +7 -0
- package/lib/clients/mp-web/intl/getServerTime.d.ts +3 -0
- package/lib/clients/mp-web/intl/getServerTime.js +7 -0
- package/lib/clients/mp-web/intl/getSetting.d.ts +3 -0
- package/lib/clients/mp-web/intl/getSetting.js +7 -0
- package/lib/clients/mp-web/intl/getSiteInfo.d.ts +3 -0
- package/lib/clients/mp-web/intl/getSiteInfo.js +7 -0
- package/lib/clients/mp-web/intl/index.d.ts +147 -0
- package/lib/clients/mp-web/intl/index.js +138 -0
- package/lib/clients/mp-web/intl/inquireQuote.d.ts +3 -0
- package/lib/clients/mp-web/intl/inquireQuote.js +7 -0
- package/lib/clients/mp-web/intl/isInstalledApp.d.ts +3 -0
- package/lib/clients/mp-web/intl/isInstalledApp.js +7 -0
- package/lib/clients/mp-web/intl/navigateToBizScene.d.ts +3 -0
- package/lib/clients/mp-web/intl/navigateToBizScene.js +7 -0
- package/lib/clients/mp-web/intl/openSchemeWithBacking.d.ts +3 -0
- package/lib/clients/mp-web/intl/openSchemeWithBacking.js +7 -0
- package/lib/clients/mp-web/intl/paySignCenter.d.ts +3 -0
- package/lib/clients/mp-web/intl/paySignCenter.js +7 -0
- package/lib/clients/mp-web/intl/regionFetchAllApps.d.ts +3 -0
- package/lib/clients/mp-web/intl/regionFetchAllApps.js +7 -0
- package/lib/clients/mp-web/intl/regionSearchAppsByKeywords.d.ts +3 -0
- package/lib/clients/mp-web/intl/regionSearchAppsByKeywords.js +7 -0
- package/lib/clients/mp-web/intl/rpc.d.ts +3 -0
- package/lib/clients/mp-web/intl/rpc.js +7 -0
- package/lib/clients/mp-web/intl/signContract.d.ts +3 -0
- package/lib/clients/mp-web/intl/signContract.js +7 -0
- package/lib/clients/mp-web/intl/startApp.d.ts +3 -0
- package/lib/clients/mp-web/intl/startApp.js +7 -0
- package/lib/clients/mp-web/intl/startBizService.d.ts +3 -0
- package/lib/clients/mp-web/intl/startBizService.js +7 -0
- package/lib/clients/mp-web/intl/thirdPartyAuthForAc.d.ts +3 -0
- package/lib/clients/mp-web/intl/thirdPartyAuthForAc.js +7 -0
- package/lib/clients/mp-web/intl/uploadApdidToken.d.ts +3 -0
- package/lib/clients/mp-web/intl/uploadApdidToken.js +7 -0
- package/lib/clients/web/cn/index.d.ts +221 -0
- package/lib/clients/web/cn/index.js +208 -0
- package/lib/clients/web/intl/getSiteInfo.d.ts +3 -0
- package/lib/clients/web/intl/getSiteInfo.js +51 -0
- package/lib/clients/web/intl/index.d.ts +225 -0
- package/lib/clients/web/intl/index.js +210 -0
- package/lib/common/constants.d.ts +4 -0
- package/lib/common/constants.js +6 -0
- package/lib/common/mp/alert.d.ts +3 -0
- package/lib/common/mp/alert.js +7 -0
- package/lib/common/mp/clearStorage.d.ts +3 -0
- package/lib/common/mp/clearStorage.js +7 -0
- package/lib/common/mp/clearStorageSync.d.ts +3 -0
- package/lib/common/mp/clearStorageSync.js +7 -0
- package/lib/common/mp/confirm.d.ts +3 -0
- package/lib/common/mp/confirm.js +7 -0
- package/lib/common/mp/createAnimation.d.ts +3 -0
- package/lib/common/mp/createAnimation.js +7 -0
- package/lib/common/mp/createWebViewContext.d.ts +3 -0
- package/lib/common/mp/createWebViewContext.js +7 -0
- package/lib/common/mp/getClipboard.d.ts +3 -0
- package/lib/common/mp/getClipboard.js +7 -0
- package/lib/common/mp/getLocation.d.ts +3 -0
- package/lib/common/mp/getLocation.js +7 -0
- package/lib/common/mp/getNetworkType.d.ts +3 -0
- package/lib/common/mp/getNetworkType.js +7 -0
- package/lib/common/mp/getStorage.d.ts +3 -0
- package/lib/common/mp/getStorage.js +7 -0
- package/lib/common/mp/getStorageSync.d.ts +3 -0
- package/lib/common/mp/getStorageSync.js +7 -0
- package/lib/common/mp/getSystemInfo.d.ts +3 -0
- package/lib/common/mp/getSystemInfo.js +7 -0
- package/lib/common/mp/hideBackHome.d.ts +3 -0
- package/lib/common/mp/hideBackHome.js +7 -0
- package/lib/common/mp/hideKeyboard.d.ts +3 -0
- package/lib/common/mp/hideKeyboard.js +7 -0
- package/lib/common/mp/hideLoading.d.ts +3 -0
- package/lib/common/mp/hideLoading.js +7 -0
- package/lib/common/mp/hideTabBar.d.ts +3 -0
- package/lib/common/mp/hideTabBar.js +7 -0
- package/lib/common/mp/hideToast.d.ts +3 -0
- package/lib/common/mp/hideToast.js +7 -0
- package/lib/common/mp/navigateBack.d.ts +3 -0
- package/lib/common/mp/navigateBack.js +7 -0
- package/lib/common/mp/navigateTo.d.ts +3 -0
- package/lib/common/mp/navigateTo.js +7 -0
- package/lib/common/mp/offMemoryWarning.d.ts +3 -0
- package/lib/common/mp/offMemoryWarning.js +7 -0
- package/lib/common/mp/onMemoryWarning.d.ts +3 -0
- package/lib/common/mp/onMemoryWarning.js +7 -0
- package/lib/common/mp/pageScrollTo.d.ts +3 -0
- package/lib/common/mp/pageScrollTo.js +7 -0
- package/lib/common/mp/prompt.d.ts +3 -0
- package/lib/common/mp/prompt.js +7 -0
- package/lib/common/mp/reLaunch.d.ts +3 -0
- package/lib/common/mp/reLaunch.js +7 -0
- package/lib/common/mp/redirectTo.d.ts +3 -0
- package/lib/common/mp/redirectTo.js +7 -0
- package/lib/common/mp/removeStorage.d.ts +3 -0
- package/lib/common/mp/removeStorage.js +7 -0
- package/lib/common/mp/removeStorageSync.d.ts +3 -0
- package/lib/common/mp/removeStorageSync.js +7 -0
- package/lib/common/mp/request.d.ts +3 -0
- package/lib/common/mp/request.js +7 -0
- package/lib/common/mp/scan.d.ts +3 -0
- package/lib/common/mp/scan.js +7 -0
- package/lib/common/mp/setBackgroundColor.d.ts +3 -0
- package/lib/common/mp/setBackgroundColor.js +7 -0
- package/lib/common/mp/setCanPullDown.d.ts +3 -0
- package/lib/common/mp/setCanPullDown.js +7 -0
- package/lib/common/mp/setClipboard.d.ts +3 -0
- package/lib/common/mp/setClipboard.js +7 -0
- package/lib/common/mp/setNavigationBar.d.ts +3 -0
- package/lib/common/mp/setNavigationBar.js +7 -0
- package/lib/common/mp/setStorage.d.ts +3 -0
- package/lib/common/mp/setStorage.js +7 -0
- package/lib/common/mp/setStorageSync.d.ts +3 -0
- package/lib/common/mp/setStorageSync.js +7 -0
- package/lib/common/mp/setTabBarStyle.d.ts +3 -0
- package/lib/common/mp/setTabBarStyle.js +7 -0
- package/lib/common/mp/showActionSheet.d.ts +3 -0
- package/lib/common/mp/showActionSheet.js +7 -0
- package/lib/common/mp/showAuthGuide.d.ts +3 -0
- package/lib/common/mp/showAuthGuide.js +7 -0
- package/lib/common/mp/showLoading.d.ts +3 -0
- package/lib/common/mp/showLoading.js +7 -0
- package/lib/common/mp/showToast.d.ts +3 -0
- package/lib/common/mp/showToast.js +7 -0
- package/lib/common/mp/startPullDownRefresh.d.ts +3 -0
- package/lib/common/mp/startPullDownRefresh.js +7 -0
- package/lib/common/mp/stopPullDownRefresh.d.ts +3 -0
- package/lib/common/mp/stopPullDownRefresh.js +7 -0
- package/lib/common/mp/switchTab.d.ts +3 -0
- package/lib/common/mp/switchTab.js +7 -0
- package/lib/common/mp-web/alert.d.ts +3 -0
- package/lib/common/mp-web/alert.js +9 -0
- package/lib/common/mp-web/chooseImage.d.ts +3 -0
- package/lib/common/mp-web/chooseImage.js +9 -0
- package/lib/common/mp-web/clearStorage.d.ts +3 -0
- package/lib/common/mp-web/clearStorage.js +9 -0
- package/lib/common/mp-web/confirm.d.ts +3 -0
- package/lib/common/mp-web/confirm.js +9 -0
- package/lib/common/mp-web/getAuthCode.d.ts +3 -0
- package/lib/common/mp-web/getAuthCode.js +9 -0
- package/lib/common/mp-web/getClipboard.d.ts +3 -0
- package/lib/common/mp-web/getClipboard.js +9 -0
- package/lib/common/mp-web/getImageInfo.d.ts +3 -0
- package/lib/common/mp-web/getImageInfo.js +9 -0
- package/lib/common/mp-web/getLocation.d.ts +3 -0
- package/lib/common/mp-web/getLocation.js +9 -0
- package/lib/common/mp-web/getNetworkType.d.ts +3 -0
- package/lib/common/mp-web/getNetworkType.js +9 -0
- package/lib/common/mp-web/getPhoneNumber.d.ts +3 -0
- package/lib/common/mp-web/getPhoneNumber.js +9 -0
- package/lib/common/mp-web/getStorage.d.ts +3 -0
- package/lib/common/mp-web/getStorage.js +9 -0
- package/lib/common/mp-web/getSystemInfo.d.ts +3 -0
- package/lib/common/mp-web/getSystemInfo.js +9 -0
- package/lib/common/mp-web/hideKeyboard.d.ts +3 -0
- package/lib/common/mp-web/hideKeyboard.js +9 -0
- package/lib/common/mp-web/hideLoading.d.ts +3 -0
- package/lib/common/mp-web/hideLoading.js +9 -0
- package/lib/common/mp-web/hideNavigationBarLoading.d.ts +3 -0
- package/lib/common/mp-web/hideNavigationBarLoading.js +9 -0
- package/lib/common/mp-web/hideToast.d.ts +3 -0
- package/lib/common/mp-web/hideToast.js +9 -0
- package/lib/common/mp-web/makePhoneCall.d.ts +3 -0
- package/lib/common/mp-web/makePhoneCall.js +9 -0
- package/lib/common/mp-web/multiLevelSelect.d.ts +3 -0
- package/lib/common/mp-web/multiLevelSelect.js +9 -0
- package/lib/common/mp-web/navigateBack.d.ts +3 -0
- package/lib/common/mp-web/navigateBack.js +9 -0
- package/lib/common/mp-web/navigateBackMiniProgram.d.ts +3 -0
- package/lib/common/mp-web/navigateBackMiniProgram.js +9 -0
- package/lib/common/mp-web/navigateTo.d.ts +3 -0
- package/lib/common/mp-web/navigateTo.js +9 -0
- package/lib/common/mp-web/navigateToMiniProgram.d.ts +3 -0
- package/lib/common/mp-web/navigateToMiniProgram.js +9 -0
- package/lib/common/mp-web/previewImage.d.ts +3 -0
- package/lib/common/mp-web/previewImage.js +9 -0
- package/lib/common/mp-web/prompt.d.ts +3 -0
- package/lib/common/mp-web/prompt.js +9 -0
- package/lib/common/mp-web/reLaunch.d.ts +3 -0
- package/lib/common/mp-web/reLaunch.js +9 -0
- package/lib/common/mp-web/redirectTo.d.ts +3 -0
- package/lib/common/mp-web/redirectTo.js +9 -0
- package/lib/common/mp-web/removeStorage.d.ts +3 -0
- package/lib/common/mp-web/removeStorage.js +9 -0
- package/lib/common/mp-web/request.d.ts +3 -0
- package/lib/common/mp-web/request.js +9 -0
- package/lib/common/mp-web/saveImage.d.ts +3 -0
- package/lib/common/mp-web/saveImage.js +9 -0
- package/lib/common/mp-web/scan.d.ts +3 -0
- package/lib/common/mp-web/scan.js +9 -0
- package/lib/common/mp-web/setClipboard.d.ts +3 -0
- package/lib/common/mp-web/setClipboard.js +9 -0
- package/lib/common/mp-web/setNavigationBar.d.ts +3 -0
- package/lib/common/mp-web/setNavigationBar.js +9 -0
- package/lib/common/mp-web/setOptionMenu.d.ts +3 -0
- package/lib/common/mp-web/setOptionMenu.js +9 -0
- package/lib/common/mp-web/setStorage.d.ts +3 -0
- package/lib/common/mp-web/setStorage.js +9 -0
- package/lib/common/mp-web/showAuthGuide.d.ts +3 -0
- package/lib/common/mp-web/showAuthGuide.js +9 -0
- package/lib/common/mp-web/showLoading.d.ts +3 -0
- package/lib/common/mp-web/showLoading.js +9 -0
- package/lib/common/mp-web/showNavigationBarLoading.d.ts +3 -0
- package/lib/common/mp-web/showNavigationBarLoading.js +9 -0
- package/lib/common/mp-web/showToast.d.ts +3 -0
- package/lib/common/mp-web/showToast.js +9 -0
- package/lib/common/mp-web/tradePay.d.ts +3 -0
- package/lib/common/mp-web/tradePay.js +9 -0
- package/lib/common/mp-web/vibrate.d.ts +3 -0
- package/lib/common/mp-web/vibrate.js +9 -0
- package/lib/common/mp-web-call.d.ts +4 -0
- package/lib/common/mp-web-call.js +50 -0
- package/lib/common/notImplemented.d.ts +2 -0
- package/lib/common/notImplemented.js +5 -0
- package/lib/common/utils.d.ts +16 -0
- package/lib/common/utils.js +104 -0
- package/lib/common/web/addPhoneContact.d.ts +3 -0
- package/lib/common/web/addPhoneContact.js +51 -0
- package/lib/common/web/alert.d.ts +3 -0
- package/lib/common/web/alert.js +54 -0
- package/lib/common/web/chooseImage.d.ts +3 -0
- package/lib/common/web/chooseImage.js +51 -0
- package/lib/common/web/clearStorage.d.ts +3 -0
- package/lib/common/web/clearStorage.js +49 -0
- package/lib/common/web/closeBluetoothAdapter.d.ts +3 -0
- package/lib/common/web/closeBluetoothAdapter.js +51 -0
- package/lib/common/web/closeSocket.d.ts +3 -0
- package/lib/common/web/closeSocket.js +51 -0
- package/lib/common/web/confirm.d.ts +3 -0
- package/lib/common/web/confirm.js +61 -0
- package/lib/common/web/connectBLEDevice.d.ts +3 -0
- package/lib/common/web/connectBLEDevice.js +51 -0
- package/lib/common/web/connectSocket.d.ts +3 -0
- package/lib/common/web/connectSocket.js +51 -0
- package/lib/common/web/datePicker.d.ts +3 -0
- package/lib/common/web/datePicker.js +59 -0
- package/lib/common/web/disconnectBLEDevice.d.ts +3 -0
- package/lib/common/web/disconnectBLEDevice.js +51 -0
- package/lib/common/web/downloadFile.d.ts +3 -0
- package/lib/common/web/downloadFile.js +68 -0
- package/lib/common/web/getAuthCode.d.ts +3 -0
- package/lib/common/web/getAuthCode.js +51 -0
- package/lib/common/web/getBLEDeviceCharacteristics.d.ts +3 -0
- package/lib/common/web/getBLEDeviceCharacteristics.js +51 -0
- package/lib/common/web/getBLEDeviceServices.d.ts +3 -0
- package/lib/common/web/getBLEDeviceServices.js +51 -0
- package/lib/common/web/getBatteryInfo.d.ts +3 -0
- package/lib/common/web/getBatteryInfo.js +51 -0
- package/lib/common/web/getBluetoothAdapterState.d.ts +3 -0
- package/lib/common/web/getBluetoothAdapterState.js +51 -0
- package/lib/common/web/getBluetoothDevices.d.ts +3 -0
- package/lib/common/web/getBluetoothDevices.js +51 -0
- package/lib/common/web/getClipboard.d.ts +3 -0
- package/lib/common/web/getClipboard.js +51 -0
- package/lib/common/web/getConnectedBluetoothDevices.d.ts +3 -0
- package/lib/common/web/getConnectedBluetoothDevices.js +51 -0
- package/lib/common/web/getFileInfo.d.ts +3 -0
- package/lib/common/web/getFileInfo.js +51 -0
- package/lib/common/web/getImageInfo.d.ts +3 -0
- package/lib/common/web/getImageInfo.js +51 -0
- package/lib/common/web/getLocation.d.ts +3 -0
- package/lib/common/web/getLocation.js +53 -0
- package/lib/common/web/getNetworkType.d.ts +3 -0
- package/lib/common/web/getNetworkType.js +39 -0
- package/lib/common/web/getPhoneNumber.d.ts +3 -0
- package/lib/common/web/getPhoneNumber.js +51 -0
- package/lib/common/web/getSavedFileInfo.d.ts +3 -0
- package/lib/common/web/getSavedFileInfo.js +51 -0
- package/lib/common/web/getSavedFileList.d.ts +3 -0
- package/lib/common/web/getSavedFileList.js +51 -0
- package/lib/common/web/getScreenBrightness.d.ts +3 -0
- package/lib/common/web/getScreenBrightness.js +51 -0
- package/lib/common/web/getServerTime.d.ts +3 -0
- package/lib/common/web/getServerTime.js +51 -0
- package/lib/common/web/getSetting.d.ts +3 -0
- package/lib/common/web/getSetting.js +51 -0
- package/lib/common/web/getStorage.d.ts +3 -0
- package/lib/common/web/getStorage.js +53 -0
- package/lib/common/web/getSystemInfo.d.ts +3 -0
- package/lib/common/web/getSystemInfo.js +19 -0
- package/lib/common/web/hideKeyboard.d.ts +3 -0
- package/lib/common/web/hideKeyboard.js +7 -0
- package/lib/common/web/hideLoading.d.ts +3 -0
- package/lib/common/web/hideLoading.js +7 -0
- package/lib/common/web/hideNavigationBarLoading.d.ts +3 -0
- package/lib/common/web/hideNavigationBarLoading.js +7 -0
- package/lib/common/web/hideToast.d.ts +3 -0
- package/lib/common/web/hideToast.js +51 -0
- package/lib/common/web/multiLevelSelect.d.ts +3 -0
- package/lib/common/web/multiLevelSelect.js +51 -0
- package/lib/common/web/navigateBack.d.ts +3 -0
- package/lib/common/web/navigateBack.js +53 -0
- package/lib/common/web/navigateBackMiniProgram.d.ts +3 -0
- package/lib/common/web/navigateBackMiniProgram.js +51 -0
- package/lib/common/web/navigateTo.d.ts +3 -0
- package/lib/common/web/navigateTo.js +49 -0
- package/lib/common/web/navigateToMiniProgram.d.ts +3 -0
- package/lib/common/web/navigateToMiniProgram.js +51 -0
- package/lib/common/web/notifyBLECharacteristicValueChange.d.ts +3 -0
- package/lib/common/web/notifyBLECharacteristicValueChange.js +51 -0
- package/lib/common/web/offAccelerometerChange.d.ts +3 -0
- package/lib/common/web/offAccelerometerChange.js +51 -0
- package/lib/common/web/offBLECharacteristicValueChange.d.ts +3 -0
- package/lib/common/web/offBLECharacteristicValueChange.js +51 -0
- package/lib/common/web/offBLEConnectionStateChanged.d.ts +3 -0
- package/lib/common/web/offBLEConnectionStateChanged.js +51 -0
- package/lib/common/web/offBluetoothAdapterStateChange.d.ts +3 -0
- package/lib/common/web/offBluetoothAdapterStateChange.js +51 -0
- package/lib/common/web/offBluetoothDeviceFound.d.ts +3 -0
- package/lib/common/web/offBluetoothDeviceFound.js +51 -0
- package/lib/common/web/offCompassChange.d.ts +3 -0
- package/lib/common/web/offCompassChange.js +51 -0
- package/lib/common/web/offSocketClose.d.ts +3 -0
- package/lib/common/web/offSocketClose.js +51 -0
- package/lib/common/web/offSocketError.d.ts +3 -0
- package/lib/common/web/offSocketError.js +51 -0
- package/lib/common/web/offSocketMessage.d.ts +3 -0
- package/lib/common/web/offSocketMessage.js +51 -0
- package/lib/common/web/offSocketOpen.d.ts +3 -0
- package/lib/common/web/offSocketOpen.js +51 -0
- package/lib/common/web/offUserCaptureScreen.d.ts +3 -0
- package/lib/common/web/offUserCaptureScreen.js +51 -0
- package/lib/common/web/onAccelerometerChange.d.ts +3 -0
- package/lib/common/web/onAccelerometerChange.js +51 -0
- package/lib/common/web/onBLECharacteristicValueChange.d.ts +3 -0
- package/lib/common/web/onBLECharacteristicValueChange.js +51 -0
- package/lib/common/web/onBLEConnectionStateChanged.d.ts +3 -0
- package/lib/common/web/onBLEConnectionStateChanged.js +51 -0
- package/lib/common/web/onBluetoothAdapterStateChange.d.ts +3 -0
- package/lib/common/web/onBluetoothAdapterStateChange.js +51 -0
- package/lib/common/web/onBluetoothDeviceFound.d.ts +3 -0
- package/lib/common/web/onBluetoothDeviceFound.js +51 -0
- package/lib/common/web/onCompassChange.d.ts +3 -0
- package/lib/common/web/onCompassChange.js +51 -0
- package/lib/common/web/onSocketClose.d.ts +3 -0
- package/lib/common/web/onSocketClose.js +51 -0
- package/lib/common/web/onSocketError.d.ts +3 -0
- package/lib/common/web/onSocketError.js +51 -0
- package/lib/common/web/onSocketMessage.d.ts +3 -0
- package/lib/common/web/onSocketMessage.js +51 -0
- package/lib/common/web/onSocketOpen.d.ts +3 -0
- package/lib/common/web/onSocketOpen.js +51 -0
- package/lib/common/web/onUserCaptureScreen.d.ts +3 -0
- package/lib/common/web/onUserCaptureScreen.js +51 -0
- package/lib/common/web/openBluetoothAdapter.d.ts +3 -0
- package/lib/common/web/openBluetoothAdapter.js +51 -0
- package/lib/common/web/openDocument.d.ts +3 -0
- package/lib/common/web/openDocument.js +51 -0
- package/lib/common/web/openSetting.d.ts +3 -0
- package/lib/common/web/openSetting.js +51 -0
- package/lib/common/web/previewImage.d.ts +3 -0
- package/lib/common/web/previewImage.js +51 -0
- package/lib/common/web/reLaunch.d.ts +3 -0
- package/lib/common/web/reLaunch.js +49 -0
- package/lib/common/web/readBLECharacteristicValue.d.ts +3 -0
- package/lib/common/web/readBLECharacteristicValue.js +51 -0
- package/lib/common/web/redirectTo.d.ts +3 -0
- package/lib/common/web/redirectTo.js +18 -0
- package/lib/common/web/removeSavedFile.d.ts +3 -0
- package/lib/common/web/removeSavedFile.js +51 -0
- package/lib/common/web/removeStorage.d.ts +3 -0
- package/lib/common/web/removeStorage.js +49 -0
- package/lib/common/web/request.d.ts +3 -0
- package/lib/common/web/request.js +94 -0
- package/lib/common/web/saveFile.d.ts +3 -0
- package/lib/common/web/saveFile.js +52 -0
- package/lib/common/web/saveImage.d.ts +3 -0
- package/lib/common/web/saveImage.js +51 -0
- package/lib/common/web/scan.d.ts +3 -0
- package/lib/common/web/scan.js +51 -0
- package/lib/common/web/sendSocketMessage.d.ts +3 -0
- package/lib/common/web/sendSocketMessage.js +51 -0
- package/lib/common/web/setBackgroundColor.d.ts +3 -0
- package/lib/common/web/setBackgroundColor.js +51 -0
- package/lib/common/web/setCanPullDown.d.ts +3 -0
- package/lib/common/web/setCanPullDown.js +51 -0
- package/lib/common/web/setClipboard.d.ts +3 -0
- package/lib/common/web/setClipboard.js +51 -0
- package/lib/common/web/setKeepScreenOn.d.ts +3 -0
- package/lib/common/web/setKeepScreenOn.js +51 -0
- package/lib/common/web/setNavigationBar.d.ts +3 -0
- package/lib/common/web/setNavigationBar.js +79 -0
- package/lib/common/web/setOptionMenu.d.ts +3 -0
- package/lib/common/web/setOptionMenu.js +51 -0
- package/lib/common/web/setScreenBrightness.d.ts +3 -0
- package/lib/common/web/setScreenBrightness.js +51 -0
- package/lib/common/web/setStorage.d.ts +3 -0
- package/lib/common/web/setStorage.js +52 -0
- package/lib/common/web/setTabBarStyle.d.ts +3 -0
- package/lib/common/web/setTabBarStyle.js +51 -0
- package/lib/common/web/showActionSheet.d.ts +3 -0
- package/lib/common/web/showActionSheet.js +54 -0
- package/lib/common/web/showAuthGuide.d.ts +3 -0
- package/lib/common/web/showAuthGuide.js +51 -0
- package/lib/common/web/showLoading.d.ts +3 -0
- package/lib/common/web/showLoading.js +51 -0
- package/lib/common/web/showNavigationBarLoading.d.ts +3 -0
- package/lib/common/web/showNavigationBarLoading.js +7 -0
- package/lib/common/web/showToast.d.ts +3 -0
- package/lib/common/web/showToast.js +53 -0
- package/lib/common/web/signContract.d.ts +3 -0
- package/lib/common/web/signContract.js +51 -0
- package/lib/common/web/startBluetoothDevicesDiscovery.d.ts +3 -0
- package/lib/common/web/startBluetoothDevicesDiscovery.js +51 -0
- package/lib/common/web/startPullDownRefresh.d.ts +3 -0
- package/lib/common/web/startPullDownRefresh.js +7 -0
- package/lib/common/web/stopBluetoothDevicesDiscovery.d.ts +3 -0
- package/lib/common/web/stopBluetoothDevicesDiscovery.js +51 -0
- package/lib/common/web/stopPullDownRefresh.d.ts +3 -0
- package/lib/common/web/stopPullDownRefresh.js +7 -0
- package/lib/common/web/switchTab.d.ts +3 -0
- package/lib/common/web/switchTab.js +51 -0
- package/lib/common/web/uploadFile.d.ts +3 -0
- package/lib/common/web/uploadFile.js +54 -0
- package/lib/common/web/vibrate.d.ts +3 -0
- package/lib/common/web/vibrate.js +51 -0
- package/lib/common/web/watchShake.d.ts +3 -0
- package/lib/common/web/watchShake.js +51 -0
- package/lib/common/web/writeBLECharacteristicValue.d.ts +3 -0
- package/lib/common/web/writeBLECharacteristicValue.js +51 -0
- package/lib/common/web-call.d.ts +4 -0
- package/lib/common/web-call.js +20 -0
- package/lib/common/webview-bridge.d.ts +6 -0
- package/lib/common/webview-bridge.js +231 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +4 -0
- package/lib/types/common.d.ts +4 -0
- package/lib/types/common.js +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +3 -0
- package/lib/types/jsapi.d.ts +248 -0
- package/lib/types/jsapi.js +1 -0
- package/lib/types/mp.d.ts +123 -0
- package/lib/types/mp.js +1 -0
- package/lib/umd/0.0.1/index.js +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
}; // refer: https://miniprogram.alipay.com/docs/miniprogram/mpdev/api_openapi_getauthcode
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var getAuthCode = function getAuthCode(opt) {
|
|
19
|
+
var _success = opt.success,
|
|
20
|
+
scopes = opt.scopes,
|
|
21
|
+
_fail = opt.fail;
|
|
22
|
+
my.getAuthCode(__assign(__assign({}, opt), {
|
|
23
|
+
// auth_base not effect
|
|
24
|
+
scopes: 'auth_user',
|
|
25
|
+
success: function success(res) {
|
|
26
|
+
var authErrorScopes = res.authErrorScopes,
|
|
27
|
+
authCode = res.authCode;
|
|
28
|
+
|
|
29
|
+
if (authErrorScopes && Object.keys(authErrorScopes).length) {
|
|
30
|
+
var error = new Error('auth fail');
|
|
31
|
+
error.authErrorScopes = authErrorScopes;
|
|
32
|
+
return _fail === null || _fail === void 0 ? void 0 : _fail(error);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_success === null || _success === void 0 ? void 0 : _success({
|
|
36
|
+
authSuccessScopes: scopes,
|
|
37
|
+
authCode: authCode,
|
|
38
|
+
authErrorScopes: {}
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
fail: function fail(e) {
|
|
42
|
+
e.authErrorScopes = {};
|
|
43
|
+
_fail === null || _fail === void 0 ? void 0 : _fail(e);
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default getAuthCode;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var getOpenUserInfo = function getOpenUserInfo(opt) {
|
|
18
|
+
var _success = opt.success,
|
|
19
|
+
fail = opt.fail; // @ts-ignore
|
|
20
|
+
|
|
21
|
+
my.getAuthUserInfo({
|
|
22
|
+
success: function success(res) {
|
|
23
|
+
var emailAddress = res.emailAddress;
|
|
24
|
+
my.getOpenUserInfo({
|
|
25
|
+
success: function success(res) {
|
|
26
|
+
var body = {
|
|
27
|
+
response: __assign(__assign({}, res), {
|
|
28
|
+
email: emailAddress
|
|
29
|
+
})
|
|
30
|
+
};
|
|
31
|
+
_success === null || _success === void 0 ? void 0 : _success({
|
|
32
|
+
response: JSON.stringify(body)
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
fail: fail
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
fail: fail
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default getOpenUserInfo;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/// <reference types="miniprogram" />
|
|
2
|
+
import alert from '../../../common/mp/alert';
|
|
3
|
+
import clearStorage from '../../../common/mp/clearStorage';
|
|
4
|
+
import clearStorageSync from '../../../common/mp/clearStorageSync';
|
|
5
|
+
import confirm from '../../../common/mp/confirm';
|
|
6
|
+
import createAnimation from '../../../common/mp/createAnimation';
|
|
7
|
+
import createWebViewContext from '../../../common/mp/createWebViewContext';
|
|
8
|
+
import crossPay from './crossPay';
|
|
9
|
+
import getAppIdSync from './getAppIdSync';
|
|
10
|
+
import getAuthCode from './getAuthCode';
|
|
11
|
+
import getClipboard from '../../../common/mp/getClipboard';
|
|
12
|
+
import getLocation from '../../../common/mp/getLocation';
|
|
13
|
+
import getNetworkType from '../../../common/mp/getNetworkType';
|
|
14
|
+
import getOpenUserInfo from './getOpenUserInfo';
|
|
15
|
+
import getStorage from '../../../common/mp/getStorage';
|
|
16
|
+
import getStorageSync from '../../../common/mp/getStorageSync';
|
|
17
|
+
import getSystemInfo from '../../../common/mp/getSystemInfo';
|
|
18
|
+
import hideBackHome from '../../../common/mp/hideBackHome';
|
|
19
|
+
import hideKeyboard from '../../../common/mp/hideKeyboard';
|
|
20
|
+
import hideLoading from '../../../common/mp/hideLoading';
|
|
21
|
+
import hideNavigationBarLoading from './hideNavigationBarLoading';
|
|
22
|
+
import hideTabBar from '../../../common/mp/hideTabBar';
|
|
23
|
+
import hideToast from '../../../common/mp/hideToast';
|
|
24
|
+
import navigateBack from '../../../common/mp/navigateBack';
|
|
25
|
+
import navigateTo from '../../../common/mp/navigateTo';
|
|
26
|
+
import offMemoryWarning from '../../../common/mp/offMemoryWarning';
|
|
27
|
+
import onMemoryWarning from '../../../common/mp/onMemoryWarning';
|
|
28
|
+
import pageScrollTo from '../../../common/mp/pageScrollTo';
|
|
29
|
+
import prompt from '../../../common/mp/prompt';
|
|
30
|
+
import redirectTo from '../../../common/mp/redirectTo';
|
|
31
|
+
import reLaunch from '../../../common/mp/reLaunch';
|
|
32
|
+
import removeStorage from '../../../common/mp/removeStorage';
|
|
33
|
+
import removeStorageSync from '../../../common/mp/removeStorageSync';
|
|
34
|
+
import request from '../../../common/mp/request';
|
|
35
|
+
import scan from '../../../common/mp/scan';
|
|
36
|
+
import setBackgroundColor from '../../../common/mp/setBackgroundColor';
|
|
37
|
+
import setCanPullDown from '../../../common/mp/setCanPullDown';
|
|
38
|
+
import setClipboard from '../../../common/mp/setClipboard';
|
|
39
|
+
import setNavigationBar from '../../../common/mp/setNavigationBar';
|
|
40
|
+
import setStorage from '../../../common/mp/setStorage';
|
|
41
|
+
import setStorageSync from '../../../common/mp/setStorageSync';
|
|
42
|
+
import setTabBarStyle from '../../../common/mp/setTabBarStyle';
|
|
43
|
+
import showActionSheet from '../../../common/mp/showActionSheet';
|
|
44
|
+
import showAuthGuide from '../../../common/mp/showAuthGuide';
|
|
45
|
+
import showLoading from '../../../common/mp/showLoading';
|
|
46
|
+
import showNavigationBarLoading from './showNavigationBarLoading';
|
|
47
|
+
import showToast from '../../../common/mp/showToast';
|
|
48
|
+
import startPullDownRefresh from '../../../common/mp/startPullDownRefresh';
|
|
49
|
+
import stopPullDownRefresh from '../../../common/mp/stopPullDownRefresh';
|
|
50
|
+
import switchTab from '../../../common/mp/switchTab';
|
|
51
|
+
import tradePay from './tradePay';
|
|
52
|
+
export { alert, clearStorage, clearStorageSync, confirm, createAnimation, createWebViewContext, crossPay, getAppIdSync, getAuthCode, getClipboard, getLocation, getNetworkType, getOpenUserInfo, getStorage, getStorageSync, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, navigateBack, navigateTo, offMemoryWarning, onMemoryWarning, pageScrollTo, prompt, redirectTo, reLaunch, removeStorage, removeStorageSync, request, scan, setBackgroundColor, setCanPullDown, setClipboard, setNavigationBar, setStorage, setStorageSync, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, startPullDownRefresh, stopPullDownRefresh, switchTab, tradePay, };
|
|
53
|
+
declare const _default: {
|
|
54
|
+
alert: (args?: AlertArgs | undefined) => void;
|
|
55
|
+
clearStorage: (args?: AsyncCallback<any> | undefined) => void;
|
|
56
|
+
clearStorageSync: () => void;
|
|
57
|
+
confirm: (args: ConfirmArgs) => void;
|
|
58
|
+
createAnimation: (args?: CreateAnimationArgs | undefined) => Animation;
|
|
59
|
+
createWebViewContext: (id: string) => WebViewContext;
|
|
60
|
+
crossPay: (args: TradePayArgs) => void;
|
|
61
|
+
getAppIdSync: () => string;
|
|
62
|
+
getAuthCode: (args: GetAuthCodeArgs) => void;
|
|
63
|
+
getClipboard: (args: GetClipboardArgs) => void;
|
|
64
|
+
getLocation: (args: GetLocationArgs) => void;
|
|
65
|
+
getNetworkType: (args: GetNetworkTypeArgs) => void;
|
|
66
|
+
getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
|
|
67
|
+
getStorage: (args: GetStorage) => void;
|
|
68
|
+
getStorageSync: (args: {
|
|
69
|
+
key: string;
|
|
70
|
+
}) => {
|
|
71
|
+
data: any;
|
|
72
|
+
};
|
|
73
|
+
getSystemInfo: (args: GetSystemInfoArgs) => void;
|
|
74
|
+
hideBackHome: () => void;
|
|
75
|
+
hideKeyboard: () => void;
|
|
76
|
+
hideLoading: (args?: HideLoadingArgs | undefined) => void;
|
|
77
|
+
hideNavigationBarLoading: () => void;
|
|
78
|
+
hideTabBar: (args: HideTabBarArgs) => void;
|
|
79
|
+
hideToast: (args?: AsyncCallback<any> | undefined) => void;
|
|
80
|
+
navigateBack: (args: NavigateBackArgs) => void;
|
|
81
|
+
navigateTo: (args: NavigateToArgs) => void;
|
|
82
|
+
offMemoryWarning: (opt: (res: {
|
|
83
|
+
level: number;
|
|
84
|
+
}) => void) => void;
|
|
85
|
+
onMemoryWarning: (opt: (res: {
|
|
86
|
+
level: number;
|
|
87
|
+
}) => void) => void;
|
|
88
|
+
pageScrollTo: (args: PageScrollToArgs) => void;
|
|
89
|
+
prompt: (args: PromptArgs) => void;
|
|
90
|
+
redirectTo: (args: RedirectToArgs) => void;
|
|
91
|
+
reLaunch: (args: ReLaunchArgs) => void;
|
|
92
|
+
removeStorage: (args: RemoveStorageArgs) => void;
|
|
93
|
+
removeStorageSync: (args: {
|
|
94
|
+
key: string;
|
|
95
|
+
}) => void;
|
|
96
|
+
request: (args: RequestArgs) => void;
|
|
97
|
+
scan: (args: ScanArgs) => void;
|
|
98
|
+
setBackgroundColor: (args: SetBackgroundColorArgs) => void;
|
|
99
|
+
setCanPullDown: (args: {
|
|
100
|
+
canPullDown: boolean;
|
|
101
|
+
}) => void;
|
|
102
|
+
setClipboard: (args: SetClipboardArgs) => void;
|
|
103
|
+
setNavigationBar: (args: SetNavigationBarArgs) => void;
|
|
104
|
+
setStorage: (args: SetStorage) => void;
|
|
105
|
+
setStorageSync: (args: {
|
|
106
|
+
key: string;
|
|
107
|
+
data: any;
|
|
108
|
+
}) => void;
|
|
109
|
+
setTabBarStyle: (opt: import("../../../types").TabBarStyle) => void;
|
|
110
|
+
showActionSheet: (opt: import("../../../types").ShowActionSheet) => void;
|
|
111
|
+
showAuthGuide: (args: ShowAuthGuideArgs) => void;
|
|
112
|
+
showLoading: (args?: ShowLoadingArgs | undefined) => void;
|
|
113
|
+
showNavigationBarLoading: () => void;
|
|
114
|
+
showToast: (args?: ShowToastArgs | undefined) => void;
|
|
115
|
+
startPullDownRefresh: () => void;
|
|
116
|
+
stopPullDownRefresh: () => void;
|
|
117
|
+
switchTab: (args: SwitchTabArgs) => void;
|
|
118
|
+
tradePay: (args: TradePayArgs) => void;
|
|
119
|
+
};
|
|
120
|
+
export default _default;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// auto generated
|
|
2
|
+
import alert from '../../../common/mp/alert';
|
|
3
|
+
import clearStorage from '../../../common/mp/clearStorage';
|
|
4
|
+
import clearStorageSync from '../../../common/mp/clearStorageSync';
|
|
5
|
+
import confirm from '../../../common/mp/confirm';
|
|
6
|
+
import createAnimation from '../../../common/mp/createAnimation';
|
|
7
|
+
import createWebViewContext from '../../../common/mp/createWebViewContext';
|
|
8
|
+
import crossPay from './crossPay';
|
|
9
|
+
import getAppIdSync from './getAppIdSync';
|
|
10
|
+
import getAuthCode from './getAuthCode';
|
|
11
|
+
import getClipboard from '../../../common/mp/getClipboard';
|
|
12
|
+
import getLocation from '../../../common/mp/getLocation';
|
|
13
|
+
import getNetworkType from '../../../common/mp/getNetworkType';
|
|
14
|
+
import getOpenUserInfo from './getOpenUserInfo';
|
|
15
|
+
import getStorage from '../../../common/mp/getStorage';
|
|
16
|
+
import getStorageSync from '../../../common/mp/getStorageSync';
|
|
17
|
+
import getSystemInfo from '../../../common/mp/getSystemInfo';
|
|
18
|
+
import hideBackHome from '../../../common/mp/hideBackHome';
|
|
19
|
+
import hideKeyboard from '../../../common/mp/hideKeyboard';
|
|
20
|
+
import hideLoading from '../../../common/mp/hideLoading';
|
|
21
|
+
import hideNavigationBarLoading from './hideNavigationBarLoading';
|
|
22
|
+
import hideTabBar from '../../../common/mp/hideTabBar';
|
|
23
|
+
import hideToast from '../../../common/mp/hideToast';
|
|
24
|
+
import navigateBack from '../../../common/mp/navigateBack';
|
|
25
|
+
import navigateTo from '../../../common/mp/navigateTo';
|
|
26
|
+
import offMemoryWarning from '../../../common/mp/offMemoryWarning';
|
|
27
|
+
import onMemoryWarning from '../../../common/mp/onMemoryWarning';
|
|
28
|
+
import pageScrollTo from '../../../common/mp/pageScrollTo';
|
|
29
|
+
import prompt from '../../../common/mp/prompt';
|
|
30
|
+
import redirectTo from '../../../common/mp/redirectTo';
|
|
31
|
+
import reLaunch from '../../../common/mp/reLaunch';
|
|
32
|
+
import removeStorage from '../../../common/mp/removeStorage';
|
|
33
|
+
import removeStorageSync from '../../../common/mp/removeStorageSync';
|
|
34
|
+
import request from '../../../common/mp/request';
|
|
35
|
+
import scan from '../../../common/mp/scan';
|
|
36
|
+
import setBackgroundColor from '../../../common/mp/setBackgroundColor';
|
|
37
|
+
import setCanPullDown from '../../../common/mp/setCanPullDown';
|
|
38
|
+
import setClipboard from '../../../common/mp/setClipboard';
|
|
39
|
+
import setNavigationBar from '../../../common/mp/setNavigationBar';
|
|
40
|
+
import setStorage from '../../../common/mp/setStorage';
|
|
41
|
+
import setStorageSync from '../../../common/mp/setStorageSync';
|
|
42
|
+
import setTabBarStyle from '../../../common/mp/setTabBarStyle';
|
|
43
|
+
import showActionSheet from '../../../common/mp/showActionSheet';
|
|
44
|
+
import showAuthGuide from '../../../common/mp/showAuthGuide';
|
|
45
|
+
import showLoading from '../../../common/mp/showLoading';
|
|
46
|
+
import showNavigationBarLoading from './showNavigationBarLoading';
|
|
47
|
+
import showToast from '../../../common/mp/showToast';
|
|
48
|
+
import startPullDownRefresh from '../../../common/mp/startPullDownRefresh';
|
|
49
|
+
import stopPullDownRefresh from '../../../common/mp/stopPullDownRefresh';
|
|
50
|
+
import switchTab from '../../../common/mp/switchTab';
|
|
51
|
+
import tradePay from './tradePay';
|
|
52
|
+
export { alert, clearStorage, clearStorageSync, confirm, createAnimation, createWebViewContext, crossPay, getAppIdSync, getAuthCode, getClipboard, getLocation, getNetworkType, getOpenUserInfo, getStorage, getStorageSync, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, navigateBack, navigateTo, offMemoryWarning, onMemoryWarning, pageScrollTo, prompt, redirectTo, reLaunch, removeStorage, removeStorageSync, request, scan, setBackgroundColor, setCanPullDown, setClipboard, setNavigationBar, setStorage, setStorageSync, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, startPullDownRefresh, stopPullDownRefresh, switchTab, tradePay };
|
|
53
|
+
export default {
|
|
54
|
+
alert: alert,
|
|
55
|
+
clearStorage: clearStorage,
|
|
56
|
+
clearStorageSync: clearStorageSync,
|
|
57
|
+
confirm: confirm,
|
|
58
|
+
createAnimation: createAnimation,
|
|
59
|
+
createWebViewContext: createWebViewContext,
|
|
60
|
+
crossPay: crossPay,
|
|
61
|
+
getAppIdSync: getAppIdSync,
|
|
62
|
+
getAuthCode: getAuthCode,
|
|
63
|
+
getClipboard: getClipboard,
|
|
64
|
+
getLocation: getLocation,
|
|
65
|
+
getNetworkType: getNetworkType,
|
|
66
|
+
getOpenUserInfo: getOpenUserInfo,
|
|
67
|
+
getStorage: getStorage,
|
|
68
|
+
getStorageSync: getStorageSync,
|
|
69
|
+
getSystemInfo: getSystemInfo,
|
|
70
|
+
hideBackHome: hideBackHome,
|
|
71
|
+
hideKeyboard: hideKeyboard,
|
|
72
|
+
hideLoading: hideLoading,
|
|
73
|
+
hideNavigationBarLoading: hideNavigationBarLoading,
|
|
74
|
+
hideTabBar: hideTabBar,
|
|
75
|
+
hideToast: hideToast,
|
|
76
|
+
navigateBack: navigateBack,
|
|
77
|
+
navigateTo: navigateTo,
|
|
78
|
+
offMemoryWarning: offMemoryWarning,
|
|
79
|
+
onMemoryWarning: onMemoryWarning,
|
|
80
|
+
pageScrollTo: pageScrollTo,
|
|
81
|
+
prompt: prompt,
|
|
82
|
+
redirectTo: redirectTo,
|
|
83
|
+
reLaunch: reLaunch,
|
|
84
|
+
removeStorage: removeStorage,
|
|
85
|
+
removeStorageSync: removeStorageSync,
|
|
86
|
+
request: request,
|
|
87
|
+
scan: scan,
|
|
88
|
+
setBackgroundColor: setBackgroundColor,
|
|
89
|
+
setCanPullDown: setCanPullDown,
|
|
90
|
+
setClipboard: setClipboard,
|
|
91
|
+
setNavigationBar: setNavigationBar,
|
|
92
|
+
setStorage: setStorage,
|
|
93
|
+
setStorageSync: setStorageSync,
|
|
94
|
+
setTabBarStyle: setTabBarStyle,
|
|
95
|
+
showActionSheet: showActionSheet,
|
|
96
|
+
showAuthGuide: showAuthGuide,
|
|
97
|
+
showLoading: showLoading,
|
|
98
|
+
showNavigationBarLoading: showNavigationBarLoading,
|
|
99
|
+
showToast: showToast,
|
|
100
|
+
startPullDownRefresh: startPullDownRefresh,
|
|
101
|
+
stopPullDownRefresh: stopPullDownRefresh,
|
|
102
|
+
switchTab: switchTab,
|
|
103
|
+
tradePay: tradePay
|
|
104
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
}; // refer: https://miniapp.open.taobao.com/docV3.htm?docId=988&docType=20&tag=dev
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var getAuthCode = function getAuthCode(opt) {
|
|
19
|
+
var scopes = opt.scopes,
|
|
20
|
+
_success = opt.success,
|
|
21
|
+
_fail = opt.fail; // @ts-ignore
|
|
22
|
+
|
|
23
|
+
my.authorize(__assign(__assign({}, opt), {
|
|
24
|
+
scopes: 'scope.userInfo',
|
|
25
|
+
success: function success(res) {
|
|
26
|
+
var accessToken = res.accessToken,
|
|
27
|
+
authErrorScopes = res.authErrorScopes;
|
|
28
|
+
|
|
29
|
+
if (authErrorScopes && Object.keys(authErrorScopes).length) {
|
|
30
|
+
var error = new Error('auth fail');
|
|
31
|
+
error.authErrorScopes = authErrorScopes;
|
|
32
|
+
return _fail === null || _fail === void 0 ? void 0 : _fail(error);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_success === null || _success === void 0 ? void 0 : _success({
|
|
36
|
+
authCode: accessToken,
|
|
37
|
+
authSuccessScopes: scopes,
|
|
38
|
+
authErrorScopes: {}
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
fail: function fail(e) {
|
|
42
|
+
e.authErrorScopes = {};
|
|
43
|
+
_fail === null || _fail === void 0 ? void 0 : _fail(e);
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default getAuthCode;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
}; // refer: https://miniapp.open.taobao.com/docV3.htm?docId=988&docType=20&tag=dev
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var getOpenUserInfo = function getOpenUserInfo(opt) {
|
|
19
|
+
var _success = opt.success; // @ts-ignore
|
|
20
|
+
|
|
21
|
+
my.getAuthUserInfo(__assign(__assign({}, opt), {
|
|
22
|
+
scopes: 'scope.userInfo',
|
|
23
|
+
success: function success(res) {
|
|
24
|
+
var body = {
|
|
25
|
+
response: res
|
|
26
|
+
};
|
|
27
|
+
_success === null || _success === void 0 ? void 0 : _success({
|
|
28
|
+
response: JSON.stringify(body)
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default getOpenUserInfo;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/// <reference types="miniprogram" />
|
|
2
|
+
import alert from '../../../common/mp/alert';
|
|
3
|
+
import clearStorage from '../../../common/mp/clearStorage';
|
|
4
|
+
import clearStorageSync from '../../../common/mp/clearStorageSync';
|
|
5
|
+
import confirm from '../../../common/mp/confirm';
|
|
6
|
+
import createAnimation from '../../../common/mp/createAnimation';
|
|
7
|
+
import createWebViewContext from '../../../common/mp/createWebViewContext';
|
|
8
|
+
import crossPay from './crossPay';
|
|
9
|
+
import getAuthCode from './getAuthCode';
|
|
10
|
+
import getClipboard from '../../../common/mp/getClipboard';
|
|
11
|
+
import getLocation from '../../../common/mp/getLocation';
|
|
12
|
+
import getNetworkType from '../../../common/mp/getNetworkType';
|
|
13
|
+
import getOpenUserInfo from './getOpenUserInfo';
|
|
14
|
+
import getStorage from '../../../common/mp/getStorage';
|
|
15
|
+
import getStorageSync from '../../../common/mp/getStorageSync';
|
|
16
|
+
import getSystemInfo from '../../../common/mp/getSystemInfo';
|
|
17
|
+
import hideBackHome from '../../../common/mp/hideBackHome';
|
|
18
|
+
import hideKeyboard from '../../../common/mp/hideKeyboard';
|
|
19
|
+
import hideLoading from '../../../common/mp/hideLoading';
|
|
20
|
+
import hideTabBar from '../../../common/mp/hideTabBar';
|
|
21
|
+
import hideToast from '../../../common/mp/hideToast';
|
|
22
|
+
import navigateBack from '../../../common/mp/navigateBack';
|
|
23
|
+
import navigateTo from '../../../common/mp/navigateTo';
|
|
24
|
+
import offMemoryWarning from '../../../common/mp/offMemoryWarning';
|
|
25
|
+
import onMemoryWarning from '../../../common/mp/onMemoryWarning';
|
|
26
|
+
import pageScrollTo from '../../../common/mp/pageScrollTo';
|
|
27
|
+
import prompt from '../../../common/mp/prompt';
|
|
28
|
+
import redirectTo from '../../../common/mp/redirectTo';
|
|
29
|
+
import reLaunch from '../../../common/mp/reLaunch';
|
|
30
|
+
import removeStorage from '../../../common/mp/removeStorage';
|
|
31
|
+
import removeStorageSync from '../../../common/mp/removeStorageSync';
|
|
32
|
+
import request from '../../../common/mp/request';
|
|
33
|
+
import scan from '../../../common/mp/scan';
|
|
34
|
+
import setBackgroundColor from '../../../common/mp/setBackgroundColor';
|
|
35
|
+
import setCanPullDown from '../../../common/mp/setCanPullDown';
|
|
36
|
+
import setClipboard from '../../../common/mp/setClipboard';
|
|
37
|
+
import setNavigationBar from '../../../common/mp/setNavigationBar';
|
|
38
|
+
import setStorage from '../../../common/mp/setStorage';
|
|
39
|
+
import setStorageSync from '../../../common/mp/setStorageSync';
|
|
40
|
+
import setTabBarStyle from '../../../common/mp/setTabBarStyle';
|
|
41
|
+
import showActionSheet from '../../../common/mp/showActionSheet';
|
|
42
|
+
import showAuthGuide from '../../../common/mp/showAuthGuide';
|
|
43
|
+
import showLoading from '../../../common/mp/showLoading';
|
|
44
|
+
import showToast from '../../../common/mp/showToast';
|
|
45
|
+
import startPullDownRefresh from '../../../common/mp/startPullDownRefresh';
|
|
46
|
+
import stopPullDownRefresh from '../../../common/mp/stopPullDownRefresh';
|
|
47
|
+
import switchTab from '../../../common/mp/switchTab';
|
|
48
|
+
import tradePay from './tradePay';
|
|
49
|
+
export { alert, clearStorage, clearStorageSync, confirm, createAnimation, createWebViewContext, crossPay, getAuthCode, getClipboard, getLocation, getNetworkType, getOpenUserInfo, getStorage, getStorageSync, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideTabBar, hideToast, navigateBack, navigateTo, offMemoryWarning, onMemoryWarning, pageScrollTo, prompt, redirectTo, reLaunch, removeStorage, removeStorageSync, request, scan, setBackgroundColor, setCanPullDown, setClipboard, setNavigationBar, setStorage, setStorageSync, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showToast, startPullDownRefresh, stopPullDownRefresh, switchTab, tradePay, };
|
|
50
|
+
declare const _default: {
|
|
51
|
+
alert: (args?: AlertArgs | undefined) => void;
|
|
52
|
+
clearStorage: (args?: AsyncCallback<any> | undefined) => void;
|
|
53
|
+
clearStorageSync: () => void;
|
|
54
|
+
confirm: (args: ConfirmArgs) => void;
|
|
55
|
+
createAnimation: (args?: CreateAnimationArgs | undefined) => Animation;
|
|
56
|
+
createWebViewContext: (id: string) => WebViewContext;
|
|
57
|
+
crossPay: (args: TradePayArgs) => void;
|
|
58
|
+
getAuthCode: (args: GetAuthCodeArgs) => void;
|
|
59
|
+
getClipboard: (args: GetClipboardArgs) => void;
|
|
60
|
+
getLocation: (args: GetLocationArgs) => void;
|
|
61
|
+
getNetworkType: (args: GetNetworkTypeArgs) => void;
|
|
62
|
+
getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
|
|
63
|
+
getStorage: (args: GetStorage) => void;
|
|
64
|
+
getStorageSync: (args: {
|
|
65
|
+
key: string;
|
|
66
|
+
}) => {
|
|
67
|
+
data: any;
|
|
68
|
+
};
|
|
69
|
+
getSystemInfo: (args: GetSystemInfoArgs) => void;
|
|
70
|
+
hideBackHome: () => void;
|
|
71
|
+
hideKeyboard: () => void;
|
|
72
|
+
hideLoading: (args?: HideLoadingArgs | undefined) => void;
|
|
73
|
+
hideTabBar: (args: HideTabBarArgs) => void;
|
|
74
|
+
hideToast: (args?: AsyncCallback<any> | undefined) => void;
|
|
75
|
+
navigateBack: (args: NavigateBackArgs) => void;
|
|
76
|
+
navigateTo: (args: NavigateToArgs) => void;
|
|
77
|
+
offMemoryWarning: (opt: (res: {
|
|
78
|
+
level: number;
|
|
79
|
+
}) => void) => void;
|
|
80
|
+
onMemoryWarning: (opt: (res: {
|
|
81
|
+
level: number;
|
|
82
|
+
}) => void) => void;
|
|
83
|
+
pageScrollTo: (args: PageScrollToArgs) => void;
|
|
84
|
+
prompt: (args: PromptArgs) => void;
|
|
85
|
+
redirectTo: (args: RedirectToArgs) => void;
|
|
86
|
+
reLaunch: (args: ReLaunchArgs) => void;
|
|
87
|
+
removeStorage: (args: RemoveStorageArgs) => void;
|
|
88
|
+
removeStorageSync: (args: {
|
|
89
|
+
key: string;
|
|
90
|
+
}) => void;
|
|
91
|
+
request: (args: RequestArgs) => void;
|
|
92
|
+
scan: (args: ScanArgs) => void;
|
|
93
|
+
setBackgroundColor: (args: SetBackgroundColorArgs) => void;
|
|
94
|
+
setCanPullDown: (args: {
|
|
95
|
+
canPullDown: boolean;
|
|
96
|
+
}) => void;
|
|
97
|
+
setClipboard: (args: SetClipboardArgs) => void;
|
|
98
|
+
setNavigationBar: (args: SetNavigationBarArgs) => void;
|
|
99
|
+
setStorage: (args: SetStorage) => void;
|
|
100
|
+
setStorageSync: (args: {
|
|
101
|
+
key: string;
|
|
102
|
+
data: any;
|
|
103
|
+
}) => void;
|
|
104
|
+
setTabBarStyle: (opt: import("../../../types").TabBarStyle) => void;
|
|
105
|
+
showActionSheet: (opt: import("../../../types").ShowActionSheet) => void;
|
|
106
|
+
showAuthGuide: (args: ShowAuthGuideArgs) => void;
|
|
107
|
+
showLoading: (args?: ShowLoadingArgs | undefined) => void;
|
|
108
|
+
showToast: (args?: ShowToastArgs | undefined) => void;
|
|
109
|
+
startPullDownRefresh: () => void;
|
|
110
|
+
stopPullDownRefresh: () => void;
|
|
111
|
+
switchTab: (args: SwitchTabArgs) => void;
|
|
112
|
+
tradePay: (args: TradePayArgs) => void;
|
|
113
|
+
};
|
|
114
|
+
export default _default;
|