2023-05-12 11:43:37 +08:00

2 lines
8.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";require("./sub-common/0eff1e0ddb93591db0e73d4e2106c601.js");require("./sub-common/26acc9c9fff667435082ac5bbdbaa896.js");/*! For license information please see index.js.LICENSE.txt */
(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/depositBeforehand/index"],{"./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/depositBeforehand/index.tsx":function(e,o,d){var a=d("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=d("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),n=d("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),i=d("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),t=d("./node_modules/@tarojs/taro/index.js"),l=d.n(t),r=d("./node_modules/react/cjs/react.production.min.js"),f=d("./node_modules/classnames/index.js"),c=d.n(f),u=d("./src/pages/depositBeforehand/index.module.scss"),h=d("./src/api/deposit.ts"),p=d("./src/common/format.ts"),_=d("./src/components/Message/index.tsx"),b=d("./src/use/useLogin.ts"),m=d("./src/components/Dialog/index.tsx"),x=d("./src/reducers/hooks.ts"),g=d("./src/common/common.ts"),j=d("./src/use/useCommon.ts"),w=d("./node_modules/react/cjs/react-jsx-runtime.production.min.js");o.default=function DepositBeforehand(){var e;(0,b.default)(),(0,j.useBuriedDataPoint)("pages/depositBeforehand/index");var o=(0,h.depositInfoApi)(),d=o.fetchData,f=o.state,N=function(){var e=(0,n.default)((0,s.default)().mark((function _callee(){return(0,s.default)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:d();case 1:case"end":return e.stop()}}),_callee)})));return function getData(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){N()}),[]);var V=(0,r.useState)(!1),v=(0,a.default)(V,2),C=v[0],k=v[1],B=function handleCloseModal(){k(!1)},y=(0,x.useSelector)((function(e){return e.userInfo}));return(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand"],children:[(0,w.jsx)(_.default,{text:"汇款成功后1-5分钟自动到账。"}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-card"],children:(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-balance"],children:[(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-balance-title"],children:"余额 (元)"}),(0,w.jsx)(i.Text,{className:u.default["deposit-beforehand-balance-price"],children:(0,p.toDecimal2)((0,p.formatPriceDiv)(null===(e=f.data)||void 0===e?void 0:e.amount)).toLocaleString()}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-balance-button"],onClick:function handleClick(){k(!0)},children:"转出"})]})}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-card"],children:(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-info"],children:[(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-info-title"],children:[(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-info-title-left"],children:[(0,w.jsx)(i.Text,{})," 货款充值"]}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-info-title-copy"],onClick:function handleCopy(){(0,t.setClipboardData)({data:"4443 2201 0400 1476 5"})},children:"复制"})]}),(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-info-content"],children:[(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-info-list"],children:[(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-info-list-left"],children:"开户名称"}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-info-list-right"],children:"中国农业银行股份有限公司佛山张搓开发区支行"})]}),(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-info-list"],children:[(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-info-list-left"],children:"开户银行"}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-info-list-right"],children:"中国农业银行"})]}),(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-info-list"],children:[(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-info-list-left"],children:"汇款账号"}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-info-list-right"],children:"4443 2201 0400 1476 5"})]})]})]})}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-card"],children:(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-particulars"],children:[(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-particulars-left"],children:"收支明细"}),(0,w.jsxs)(i.Navigator,{hoverClass:"none",url:"/pages/depositList/index",className:"deposit-beforehand-particulars-right",children:["全部 ",(0,w.jsx)(i.Text,{className:"iconfont icon-a-moreback"})]})]})}),(0,w.jsx)(m.default,{show:C,onClose:B,onChange:function handleChangeModal(e){k(e)},children:(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-dialog"],children:[(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-dialog-title"],children:"提示"}),(0,w.jsx)(i.View,{className:u.default["deposit-beforehand-dialog-content"],children:"若需提现,请联系业务经理进行转出"}),(0,w.jsxs)(i.View,{className:u.default["deposit-beforehand-dialog-bottom"],children:[(0,w.jsx)(i.View,{className:c()(u.default["deposit-beforehand-dialog-button"],u.default["deposit-beforehand-dialog-button-cancel"]),onClick:B,children:"取消"}),(0,w.jsx)(i.View,{className:c()(u.default["deposit-beforehand-dialog-button"],u.default["deposit-beforehand-dialog-button-confirm"]),onClick:function handleCallPhone(){var e,o;if(null==y||null===(e=y.adminUserInfo)||void 0===e||!e.sale_user_phone)return g.alert.error("手机号不能为空");l().makePhoneCall({phoneNumber:null==y||null===(o=y.adminUserInfo)||void 0===o?void 0:o.sale_user_phone}),B()},children:"联系业务经理"})]})]})})]})}},"./src/pages/depositBeforehand/index.tsx":function(e,o,d){var a=d("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),s=d("./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/depositBeforehand/index.tsx");s.default.enableShareAppMessage=!0;Page((0,a.createPageConfig)(s.default,"pages/depositBeforehand/index",{root:{cn:[]}},{navigationBarTitleText:"货款余额",enableShareAppMessage:!0}||{})),s.default},"./src/pages/depositBeforehand/index.module.scss":function(e,o){o.default={common_safe_area_y:"index-module__common_safe_area_y___uYQl7",hoverClass:"index-module__hoverClass___YpHIS","full-100":"index-module__full-100___FE54S","deposit-beforehand":"index-module__deposit-beforehand___m5bkn","deposit-beforehand-card":"index-module__deposit-beforehand-card___keC0p","deposit-beforehand-balance":"index-module__deposit-beforehand-balance___rVztl","deposit-beforehand-balance-title":"index-module__deposit-beforehand-balance-title___Osnrl","deposit-beforehand-balance-price":"index-module__deposit-beforehand-balance-price___XNn1H","deposit-beforehand-balance-button":"index-module__deposit-beforehand-balance-button___zCvjX","deposit-beforehand-info-title":"index-module__deposit-beforehand-info-title___nq2sq","deposit-beforehand-info-title-left":"index-module__deposit-beforehand-info-title-left___YKIOu","deposit-beforehand-info-title-copy":"index-module__deposit-beforehand-info-title-copy___oxPln","deposit-beforehand-info-list":"index-module__deposit-beforehand-info-list___y8zpj","deposit-beforehand-info-list-left":"index-module__deposit-beforehand-info-list-left___vlBJY","deposit-beforehand-info-list-right":"index-module__deposit-beforehand-info-list-right___oIVJH","deposit-beforehand-particulars":"index-module__deposit-beforehand-particulars___I3xHf","deposit-beforehand-particulars-left":"index-module__deposit-beforehand-particulars-left___zPhna","deposit-beforehand-particulars-right":"index-module__deposit-beforehand-particulars-right___J2a3c","deposit-beforehand-dialog":"index-module__deposit-beforehand-dialog___s5h4g","deposit-beforehand-dialog-title":"index-module__deposit-beforehand-dialog-title___oLybg","deposit-beforehand-dialog-content":"index-module__deposit-beforehand-dialog-content___MRDxL","deposit-beforehand-dialog-bottom":"index-module__deposit-beforehand-dialog-bottom___cvmcD","deposit-beforehand-dialog-button":"index-module__deposit-beforehand-dialog-button___jFx0h","deposit-beforehand-dialog-button-cancel":"index-module__deposit-beforehand-dialog-button-cancel___JkcOV","deposit-beforehand-dialog-button-confirm":"index-module__deposit-beforehand-dialog-button-confirm___oJ61p"}}},function(e){e.O(0,["sub-common/05a092425fd8511e6dd1afc7dccad954","sub-common/0eff1e0ddb93591db0e73d4e2106c601","sub-common/26acc9c9fff667435082ac5bbdbaa896","taro","vendors","common"],(function(){return o="./src/pages/depositBeforehand/index.tsx",e(e.s=o);var o}));e.O()}]);