| | |
| | | if (res) { |
| | | location.href = res; |
| | | } |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | async function setLifePayOrderPayType( |
| | |
| | | lifePayType: lifePayType, |
| | | }; |
| | | return await blLifeRecharge.services.setLifePayOrderPayType(params); |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | async function invokeWeixinPay(orderNo: string) { |
| | |
| | | fail: function (res) {}, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | async function getPayOrderForJsAPI(orderNo: string) { |
| | |
| | | }; |
| | | let res = await blLifeRecharge.services.getPayOrderForJsAPI(params); |
| | | return res; |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | async function handleWeixinPayByJsApi(orderNo: string) { |
| | |
| | | ); |
| | | } |
| | | } |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | throw error; |
| | | } |
| | | } |
| | | |
| | | return { |