Browse Source

增加基本逻辑

lvzhuo 3 years ago
parent
commit
0102a3bf7b

+ 32 - 34
src/App.js

@@ -46,9 +46,9 @@ export default class App extends React.Component {
     let userData = cookie.load('userInformation');// 获取上游跳转时带给的信息
     // userData = JSON.parse(unescape(userData));
     let obj = {   //默认信息
-      userName: '泱泱华夏',
+      userName: '测试用户',
       mallId: 2, //多商户所属商城id
-      merchantNo: 'com.depushuyuan',//入网的appname、社群name、商户号等(香香或者嘉旺提供)
+      merchantNo: 'com.rongshengtianxia',//入网的appname、社群name、商户号等(香香或者嘉旺提供)
       merchantType: 2,//入网来源,2:app或社群3:商户或店铺(香香或者嘉旺提供)
       Jur: 1,//用户权限
       pages: '1-0'
@@ -135,8 +135,6 @@ export default class App extends React.Component {
     let url = '/payment/merchant.query.groovy'
     let param = {
       action: "queryInfo",
-      // merchantNo: 'com.depushuyuan',
-      // merchantType: 2,
       merchantNo: e.merchantNo,
       merchantType: e.merchantType,
     }
@@ -145,10 +143,10 @@ export default class App extends React.Component {
       if (status == 200) {
 
         let data = res.data.body;
-        let type = data.status
-        if (type !== undefined) {
+        let type = data.status;
+        if (type !== 1) {
           that_.setState({
-            // yc: true
+            yc: true
           })
           notification.open({
             message: '提示:',
@@ -161,33 +159,33 @@ export default class App extends React.Component {
           });
           localStorage.setItem('userData', JSON.stringify(e)) //存储上游信息 到本地储存
         } else {
-          // let s = data.status;
-          // if (s == undefined) {  //商户已入网
-          //   that_.setState({
-          //     arr1: [{ txt: '商户入网列表', icon: 'SlidersOutlined', assembly: 'center-tab' }],
-          //     assembly: 'center-tab'
-          //   });
-          //   if (e.pages == '1-0') {
-          //     notification.open({
-          //       message: '提示:',
-          //       description:
-          //         '当前用户已入网,自动跳转为账户概览',
-          //       onClick: () => { },
-          //     });
-          //     e.pages = '2-0'
-          //   }
-          // } else if (s == 1) {  //未入网
-          //   notification.open({
-          //     message: '提示:',
-          //     description:
-          //       '当前用户未入网,请您入网后在进行其他操作',
-          //     onClick: () => { },
-          //   });
-          //   e.pages = '1-0'
-          //   that_.setState({
-          //     assembly: 'Layout'
-          //   });
-          // }
+          let s = data.status;
+          if (s == undefined) {  //商户已入网
+            that_.setState({
+              arr1: [{ txt: '商户入网列表', icon: 'SlidersOutlined', assembly: 'center-tab' }],
+              assembly: 'center-tab'
+            });
+            if (e.pages == '1-0') {
+              notification.open({
+                message: '提示:',
+                description:
+                  '当前用户已入网,自动跳转为账户概览',
+                onClick: () => { },
+              });
+              e.pages = '2-0'
+            }
+          } else if (s == 1) {  //未入网
+            notification.open({
+              message: '提示:',
+              description:
+                '当前用户未入网,请您入网后在进行其他操作',
+              onClick: () => { },
+            });
+            e.pages = '1-0'
+            that_.setState({
+              assembly: 'Layout'
+            });
+          }
           localStorage.setItem('userData', JSON.stringify(e)) //存储上游信息 到本地储存
           that_.initJurisdiction();  //初始化用户权限以及各种信息
         }

+ 4 - 1
src/common/ssq.js

@@ -14116,7 +14116,10 @@ const ssq = {
         { label: '未付款', value: '1' },
         { label: '已付待入账', value: '2' },
         { label: '已付已入账', value: '3' },
-        { label: '取消', value: '4' },
+        { label: '支付失败', value: '4' },
+        { label: '部分退款', value: '5' },
+        { label: '全部退款', value: '6' },
+        { label: '取消', value: '7' },
     ],
 }
 

+ 25 - 25
src/component/Finance-orderQuery/Finance-orderQuery.jsx

@@ -302,7 +302,7 @@ export default class FinanceoRderQuery extends React.Component {
                         spareAmount: item.spareAmount, //分账金额
                         refundAmount: item.refundAmount,//退款金额
                         payType: $payTxt(item.payType),//支付方式:1支付宝2微信5微包
-                        orderStatus: that_.orderStatus(item.orderStatus),//订单状态:1:未付款2:已付待入账3:已付已入账4:支付失败
+                        orderStatus: item.orderStatus,//订单状态:1:未付款2:已付待入账3:已付已入账4:支付失败
                         createTime: item.createTime == '' ? '--' : format(Number(item.createTime)), //:创建时间
                         finishTime: item.finishTime == '' ? '--' : format(Number(item.finishTime))  //:完成时间
                     };
@@ -321,30 +321,30 @@ export default class FinanceoRderQuery extends React.Component {
     }
 
 
-    orderStatus(e) {
-        let txt = '';
-        switch (e) {
-            case 1:
-                txt = "未付款";
-                break;
-            case 2:
-                txt = "已付待入账";
-                break;
-            case 3:
-                txt = "已付已入账";
-                break;
-            case 4:
-                txt = "支付失败";
-                break;
-            case 5:
-                txt = "部分退款";
-                break;
-            case 6:
-                txt = "全部退款";
-                break;
-        }
-        return txt
-    }
+    // orderStatus(e) {
+    //     let txt = '';
+    //     switch (e) {
+    //         case 1:
+    //             txt = "未付款";
+    //             break;
+    //         case 2:
+    //             txt = "已付待入账";
+    //             break;
+    //         case 3:
+    //             txt = "已付已入账";
+    //             break;
+    //         case 4:
+    //             txt = "支付失败";
+    //             break;
+    //         case 5:
+    //             txt = "部分退款";
+    //             break;
+    //         case 6:
+    //             txt = "全部退款";
+    //             break;
+    //     }
+    //     return txt
+    // }
 
     render() {
         const { data, columns, headTxt, keys, keye, select_data, timeType, paginationProps, isModalVisible, columns_tk, payOrderInfo, orderSplitInfo, orderNo, lodings, tklodings, tablesW, tablesH } = this.state;

+ 42 - 7
src/component/Layout/Layout.jsx

@@ -26,7 +26,7 @@ export default class Layout extends React.Component {
 
     componentDidMount() {
         let that_ = this;
-        setTimeout(function(){ that_.setState({lodings : false}) }, 1000);
+        let s = setTimeout(function(){ that_.setState({lodings : false})}, 1000);
     }
 
     handleChange(value) {
@@ -90,6 +90,23 @@ export default class Layout extends React.Component {
                 flag = false
                 return flag
             };
+            if(data.desireAuth == 'DESIRE_MOBILEINFO'){
+                if (data.legalPersonName == '') {
+                    this.messageTK('请输入法人姓名')
+                    flag = false
+                    return flag
+                };
+                if (data.legalPersonIdNo == '') {
+                    this.messageTK('请输入法人身份证号')
+                    flag = false
+                    return flag
+                };
+                if (data.legalPersonPhoneNo == '') {
+                    this.messageTK('请输入法人手机号')
+                    flag = false
+                    return flag
+                };
+            }
             return flag
             
         } else if (e == 2) {
@@ -219,8 +236,8 @@ export default class Layout extends React.Component {
         let that_ = this;
         that_.setState({lodings : true});
         that_.CenterO.childMethod()  //第一页跳第二页保存第一页数据
-        let flag = true
-        // let flag = that_.Validation_data(1);//验证第一页数据 所有必填项是否获得数据
+        // let flag = true
+        let flag = that_.Validation_data(1);//验证第一页数据 所有必填项是否获得数据
         if(flag == false){
             that_.setState({lodings : false})
         }else{
@@ -322,8 +339,13 @@ export default class Layout extends React.Component {
         let that_ = this;
         this.CenterS.childMethod(); //提取第三页数据
         let flag = that_.Validation_data(3);//验证第二页数据 所有必填项是否获得数据
-        console.log(flag)
         that_.setState({lodings : true});
+        if(flag == false){
+            that_.setState({lodings : false})
+        }else{
+            setTimeout(function(){ that_.setState({lodings : false}) }, 500);
+        } 
+        
         if(flag == true){
             this.initData();
         }
@@ -337,10 +359,10 @@ export default class Layout extends React.Component {
         let params = {
             operationType: 'CREATE', // :1:CREATE创建即入网,2:MODIFY更新即修改(审核通过前)
             name: JSON.parse(localStorage.getItem('userData')).userName,
-            appName: merchantType == 2 ? merchantNo : '',
+            appName: merchantNo,
             parentAppName: merchantType == 2 ? mallId : '',
             mallId: merchantType == 3 ? mallId : '',
-            merchantNo: merchantType == 3 ? merchantNo : '',//上游提供
+            merchantNo: merchantNo,//上游提供
             merchantType: merchantType,//ydy和商城的上游提供
             merchantInfo: {     //原首易信接口参数
                 requestId: '', //订单号为商户自行拟定,提交的订单号必须在自身平台交易中唯一。商户平台不能以相同的订单号再次提交。
@@ -349,7 +371,20 @@ export default class Layout extends React.Component {
                 extendedParameters: {//autoReview 是否跳过流程 TRUE 是, FALSE 否 sendActiveEmail 是否发送激活邮件 TRUE 是, FALSE 否 (这两项参数传递用”,”隔开,示例:autoReview:FALSE,sendActiveEmail:TRUE)
                     autoReview: false, sendActiveEmail: true
                 },
-                baseInfo: Object.assign(this.state.Params_o, this.state.Params_w, this.state.Params_S),
+                baseInfo: this.state.Params_o,
+                bankCardInfo : this.state.Params_S,
+                desireAuthInfo :{
+                    legalPersonName : this.state.Params_o.legalPersonName,
+                    legalPersonIdNo : this.state.Params_o.legalPersonIdNo,
+                    legalPersonPhoneNo : this.state.Params_o.legalPersonPhoneNo
+                },
+                certificateInfo : this.state.Params_w,
+                certificateContacts : '',
+                contractInfo : '',
+                paymentProfiles : '',
+                settlementProfile : '',
+                hmac : ''
+                // Object.assign(, this.state.Params_w, this.state.Params_S),
             }
         }
         $Axios('get', url, params, (res) => {

+ 131 - 116
src/component/center-o/centerO.jsx

@@ -1,5 +1,5 @@
 import React from 'react';
-import { Radio, Select, Input  } from 'antd';
+import { Radio, Select, Input } from 'antd';
 // import { $Axios } from '../../common/publish';
 import select_data from '../../common/ssq';
 import '../center-o/centerO.scss'
@@ -8,38 +8,42 @@ export default class centerO extends React.Component {
     constructor(props) {
         super(props)
         this.state = {
-            selectData : select_data,
-            cityOs : true,
-            regionOs : true, 
-            citylist : [],
-            regionlist : [],
-            Params : this.props.arr,
-            cityTxt : 1,
-            regionTxt : 2,
-            datas : null,
-            lodings : false
+            selectData: select_data,
+            cityOs: true,
+            regionOs: true,
+            citylist: [],
+            regionlist: [],
+            Params: this.props.arr,
+            cityTxt: 1,
+            regionTxt: 2,
+            datas: null,
+            lodings: false,
+            desireAuth: ''
         }
-        
+
     }
-	
-    componentDidMount () {
-        this.props.onRef(this)
+
+    componentDidMount() {
+        this.props.onRef(this);
+        this.setState({
+            desireAuth : this.state.Params.desireAuth == undefined ? 'DESIRE_VIDEO' : this.state.Params.desireAuth, // 开户意愿核实类型
+        })
         this.initData();
     }
 
-    initData(){
-        if(this.props.arr){  //初始化判断数据回填
-            if(this.state.Params.businessAddressProvince !== undefined){
+    initData() {
+        if (this.props.arr) {  //初始化判断数据回填
+            if (this.state.Params.businessAddressProvince !== undefined) {
                 let Province = this.state.Params.businessAddressProvince;
                 let city = this.state.Params.businessAddressCity;
                 let region = this.state.Params.businessAddressArea;
                 let data = this.state.selectData.Area;
-                let cityList = data.find((item,index) => { return Province == item.provinceCode});
-                let regionlist = cityList.mallCityList.find((item,index) => { return city == item.cityCode});
+                let cityList = data.find((item, index) => { return Province == item.provinceCode });
+                let regionlist = cityList.mallCityList.find((item, index) => { return city == item.cityCode });
                 this.setState({
-                    cityOs : false,
-                    citylist : cityList.mallCityList,
-                    regionOs : false,
+                    cityOs: false,
+                    citylist: cityList.mallCityList,
+                    regionOs: false,
                     regionlist: regionlist.mallAreaList
                 })
             }
@@ -50,24 +54,27 @@ export default class centerO extends React.Component {
         this.props.parent.getParams_o(this, data)
     }
 
-    Inputdata(e){
+    Inputdata(e) {
         let Params = {
-            signedType : 'BY_SPLIT_BILL',  //签约类型
-            signedName :  document.getElementById("qymc").value, //签约名称
-            signedShorthand : document.getElementById("names").value, //商户简称
-            registerRole : this.state.Params.registerRole == undefined ? '' : this.state.Params.registerRole , //商户签约性质
-            cerType : this.state.Params.cerType == undefined ? '' : this.state.Params.cerType, //证书类型
-            businessAddressProvince : this.state.Params.businessAddressProvince == undefined ? '' : this.state.Params.businessAddressProvince,//经营地省
-            businessAddressCity : this.state.Params.businessAddressCity == undefined ? '' : this.state.Params.businessAddressCity, //经营地市
-            businessAddressArea : this.state.Params.businessAddressArea == undefined ? '' : this.state.Params.businessAddressArea, //经营地区
-            businessAddress : document.getElementById("mywb").value,  //经营详细地址
-            contactName : document.getElementById("myname").value, //联系人姓名
-            contactEmail : document.getElementById("mymail").value,// 联系人邮箱
-            contactPhone : document.getElementById("mynums").value,// 联系人电话
-            businessClassification : this.state.Params.businessClassification, //业务分类 (签约类型为被分账方不传此参数)
-            desireAuth : this.state.Params.desireAuth == undefined ? '' : this.state.Params.desireAuth, // 开户意愿核实类型
+            signedType: 'BY_SPLIT_BILL',  //签约类型
+            signedName: document.getElementById("qymc").value, //签约名称
+            signedShorthand: document.getElementById("names").value, //商户简称
+            registerRole: this.state.Params.registerRole == undefined ? '' : this.state.Params.registerRole, //商户签约性质
+            cerType: this.state.Params.cerType == undefined ? '' : this.state.Params.cerType, //证书类型
+            businessAddressProvince: this.state.Params.businessAddressProvince == undefined ? '' : this.state.Params.businessAddressProvince,//经营地省
+            businessAddressCity: this.state.Params.businessAddressCity == undefined ? '' : this.state.Params.businessAddressCity, //经营地市
+            businessAddressArea: this.state.Params.businessAddressArea == undefined ? '' : this.state.Params.businessAddressArea, //经营地区
+            businessAddress: document.getElementById("mywb").value,  //经营详细地址
+            contactName: document.getElementById("myname").value, //联系人姓名
+            contactEmail: document.getElementById("mymail").value,// 联系人邮箱
+            contactPhone: document.getElementById("mynums").value,// 联系人电话
+            businessClassification: this.state.Params.businessClassification, //业务分类 (签约类型为被分账方不传此参数)
+            desireAuth: this.state.Params.desireAuth == undefined ? 'DESIRE_VIDEO' : this.state.Params.desireAuth, // 开户意愿核实类型
+            legalPersonName : this.state.Params.desireAuth == 'DESIRE_MOBILEINFO' ? document.getElementById("myname1").value : '',// 法人姓名
+            legalPersonIdNo : this.state.Params.desireAuth == 'DESIRE_MOBILEINFO' ? document.getElementById("myname2").value : '',// 法人身份证号
+            legalPersonPhoneNo : this.state.Params.desireAuth == 'DESIRE_MOBILEINFO' ? document.getElementById("myname3").value : '',// 法人手机号
         }
-        localStorage.setItem('oData',JSON.stringify(Params))
+        localStorage.setItem('oData', JSON.stringify(Params))
         return Params
     }
 
@@ -85,13 +92,13 @@ export default class centerO extends React.Component {
 
     province_select(e) {  //选择省
         this.state.Params.businessAddressProvince = e;
-        let citylist = this.state.selectData.Area.find((item,index) => { return e == item.provinceCode});
+        let citylist = this.state.selectData.Area.find((item, index) => { return e == item.provinceCode });
         this.setState({
-            cityOs : false,
-            citylist :  citylist.mallCityList,
-            cityTxt : e.value,
+            cityOs: false,
+            citylist: citylist.mallCityList,
+            cityTxt: e.value,
             regionTxt: e.value,
-            regionOs : true,
+            regionOs: true,
         });
     }
 
@@ -99,14 +106,14 @@ export default class centerO extends React.Component {
         this.state.Params.businessAddressCity = e;
         let citylist = this.state.citylist;
         let regionlist;
-        if(citylist.length == 1){
+        if (citylist.length == 1) {
             regionlist = citylist[0].mallAreaList
-        }else{
-            regionlist = citylist.find((item,index) => { return e == item.cityCode}).mallAreaList
+        } else {
+            regionlist = citylist.find((item, index) => { return e == item.cityCode }).mallAreaList
         }
         this.setState({
-            regionOs : false,
-            regionlist :  regionlist,
+            regionOs: false,
+            regionlist: regionlist,
         })
     }
 
@@ -114,154 +121,162 @@ export default class centerO extends React.Component {
         this.state.Params.businessAddressArea = e;
     }
 
-    Textarea(e){  //具体地址文本
+    Textarea(e) {  //具体地址文本
         // console.log(e.target.value)
     }
 
-    handleChange(e){ //业务类型
+    handleChange(e) { //业务类型
         // console.log(e)
         let businessClassification = e;
         this.state.Params.businessClassification = businessClassification;
     }
 
-    onChangeRadio(e){ //开户意愿类型
+    onChangeRadio(e) { //开户意愿类型
         let desireAuth = e.target.value;
         this.state.Params.desireAuth = desireAuth;
+        this.setState({
+            desireAuth: desireAuth
+        })
         // console.log(this.state)
     }
-    childMethod () { //暴露给父组件的方法,集合当前页面拿到的参数存入缓存
+    childMethod() { //暴露给父组件的方法,集合当前页面拿到的参数存入缓存
         let data = this.Inputdata();
         this.toParent(data)
     }
 
-    inputDatas(e){
+    inputDatas(e) {
         // console.log(e)
     }
 
 
     render() {
-        const {  selectData ,cityOs, regionOs ,citylist , regionlist ,cityTxt ,regionTxt , datas , Params } = this.state;
+        const { selectData, cityOs, regionOs, citylist, regionlist, cityTxt, regionTxt, desireAuth, Params } = this.state;
         const { Option } = Select;
         const { TextArea } = Input;
-        return(
+        return (
             <div className='center_up'>
                 <div className='center_left'>
                     <div className='c-l'>
                         <div className='titles'> 商户入网类型<i className='label_x'>*</i> : </div>
                         <Radio.Group name="radiogroup" defaultValue={1}>
-                                            <Radio value={1}>被分帐方</Radio>
-                                        </Radio.Group>
+                            <Radio value={1}>被分帐方</Radio>
+                        </Radio.Group>
                     </div>
                     <div className='c-l'>
                         <div className='titles'> 签约名称<i className='label_x'>*</i>  : </div>
-                        <div className='inputs'><Input id='qymc' placeholder='请输入签约名称' defaultValue={Params.signedName}/></div>
+                        <div className='inputs'><Input id='qymc' placeholder='请输入签约名称' defaultValue={Params.signedName} /></div>
                     </div>
                     <div className='c-l'>
                         <div className='titles'> 商户签约性质<i className='label_x'>*</i>  : </div>
-                        <Select 
-                            size='default' 
-                            id='qyxz' 
-                            placeholder="请选择商户签约性质"  
+                        <Select
+                            size='default'
+                            id='qyxz'
+                            placeholder="请选择商户签约性质"
                             defaultValue={Params.registerRole}
-                            onChange={ this.handleChangeQy.bind(this) } 
+                            onChange={this.handleChangeQy.bind(this)}
                             style={{ width: 200 }}
-                            >
-                            {selectData.contract.map((item,index) => (
+                        >
+                            {selectData.contract.map((item, index) => (
                                 <Option key={index} value={item.value}>{item.txt}</Option>
                             ))}
                         </Select>
                     </div>
                     <div className='c-l'>
                         <div className='titles'> 证书类型 : </div>
-                        <Select 
-                            size='default' 
-                            id='zslx' 
-                            placeholder="请选择证书类型"  
+                        <Select
+                            size='default'
+                            id='zslx'
+                            placeholder="请选择证书类型"
                             defaultValue={Params.cerType}
-                            onChange={ this.handleChangeZs.bind(this) } 
+                            onChange={this.handleChangeZs.bind(this)}
                             style={{ width: 200 }}
-                            >
-                            {selectData.certificate.map((item,index) => (
+                        >
+                            {selectData.certificate.map((item, index) => (
                                 <Option key={index} value={item.value}>{item.txt}</Option>
                             ))}
                         </Select>
                     </div>
                     <div className='c-l'>
                         <div className='titles'> 商户简称<i className='label_x'>*</i>  : </div>
-                        <div className='inputs'><Input id='names'  placeholder="请输入商户简称" defaultValue={Params.signedShorthand} /></div>
+                        <div className='inputs'><Input id='names' placeholder="请输入商户简称" defaultValue={Params.signedShorthand} /></div>
                     </div>
                     <div className='c-l'>
                         <div className='titles'> 联系人姓名<i className='label_x'>*</i>  : </div>
-                        <div className='inputs'><Input id='myname'   placeholder="请输入联系人姓名"  defaultValue={Params.contactName}/></div>
+                        <div className='inputs'><Input id='myname' placeholder="请输入联系人姓名" defaultValue={Params.contactName} /></div>
                     </div>
                     <div className='c-l'>
                         <div className='titles'> 联系人邮箱<i className='label_x'>*</i>  : </div>
-                        <div className='inputs'><Input id='mymail'  placeholder="请输入联系人邮箱"   defaultValue={Params.contactEmail} /></div>
+                        <div className='inputs'><Input id='mymail' placeholder="请输入联系人邮箱" defaultValue={Params.contactEmail} /></div>
                     </div>
                     <div className='c-l'>
-                        <div className='titles'> 联系人电话<i className='label_x'>*</i>  : </div> 
-                        <div className='inputs'><Input  id='mynums'   placeholder="请输入联系人电话" onChange={ this.inputDatas.bind(this) }    defaultValue={Params.contactPhone}/></div>
+                        <div className='titles'> 联系人电话<i className='label_x'>*</i>  : </div>
+                        <div className='inputs'><Input id='mynums' placeholder="请输入联系人电话" onChange={this.inputDatas.bind(this)} defaultValue={Params.contactPhone} /></div>
                     </div>
                 </div>
                 <div className='center_right'>
                     <div className='c-l'>
                         <div className='titles_o'> 经营地址省<i className='label_x'>*</i>  : </div>
-                            <Select size='default'  placeholder="请选择省份" defaultValue={Params.businessAddressProvince} onChange={ this.province_select.bind(this) } style={{ width: 200 }}>
-                                {selectData.Area.map((item,index) => (
-                                    <Option key={index} value={item.provinceCode}>{item.provinceName}</Option>
-                                ))}
-                            </Select>
+                        <Select size='default' placeholder="请选择省份" defaultValue={Params.businessAddressProvince} onChange={this.province_select.bind(this)} style={{ width: 200 }}>
+                            {selectData.Area.map((item, index) => (
+                                <Option key={index} value={item.provinceCode}>{item.provinceName}</Option>
+                            ))}
+                        </Select>
                     </div>
                     <div className='c-l'>
                         <div className='titles_o'> 经营地址市<i className='label_x'>*</i>  : </div>
-                            <Select size='default'  placeholder="请选择市" defaultValue={Params.businessAddressCity} key={cityTxt} onChange={ this.city_select.bind(this) } style={{ width: 200 }}  disabled={cityOs}>
-                                {citylist.map((item,index) => (
-                                    <Option key={index} value={item.cityCode}>{item.cityName}</Option>
-                                ))}
-                            </Select>
+                        <Select size='default' placeholder="请选择市" defaultValue={Params.businessAddressCity} key={cityTxt} onChange={this.city_select.bind(this)} style={{ width: 200 }} disabled={cityOs}>
+                            {citylist.map((item, index) => (
+                                <Option key={index} value={item.cityCode}>{item.cityName}</Option>
+                            ))}
+                        </Select>
                     </div>
                     <div className='c-l'>
                         <div className='titles_o'> 经营地址区 : </div>
-                            <Select size='default'  placeholder="请选择区" defaultValue={Params.businessAddressArea} key={regionTxt} onChange={ this.region_select.bind(this) } style={{ width: 200 }}  disabled={regionOs}>
-                                {regionlist.map((item,index) => (
-                                    <Option key={index} value={item.areaCode}>{item.areaName}</Option>
-                                ))}
-                            </Select>
+                        <Select size='default' placeholder="请选择区" defaultValue={Params.businessAddressArea} key={regionTxt} onChange={this.region_select.bind(this)} style={{ width: 200 }} disabled={regionOs}>
+                            {regionlist.map((item, index) => (
+                                <Option key={index} value={item.areaCode}>{item.areaName}</Option>
+                            ))}
+                        </Select>
                     </div>
                     <div className='c-x'>
                         <div className='titles_txt'> 经营地址 : </div>
                         <div className='TextAreas'>
-                            <TextArea id='mywb' style={{resize:'none'}} defaultValue={Params.businessAddress} rows={6}/>
+                            <TextArea id='mywb' style={{ resize: 'none' }} defaultValue={Params.businessAddress} rows={6} />
                         </div>
                     </div>
                     <div className='c-l'>
                         <div className='titles_o'> 业务类型 : </div>
-                            <Select size='default' placeholder="请选择业务类型" defaultValue={Params.businessClassification}  onChange={this.handleChange.bind(this)} style={{ width: 400 }}>
-                                {selectData.fication.map((item,index) => (
-                                    <Option key={index} value={item.value}>{item.txt}</Option>
-                                ))}
-                            </Select>
+                        <Select size='default' placeholder="请选择业务类型" defaultValue={Params.businessClassification} onChange={this.handleChange.bind(this)} style={{ width: 400 }}>
+                            {selectData.fication.map((item, index) => (
+                                <Option key={index} value={item.value}>{item.txt}</Option>
+                            ))}
+                        </Select>
                     </div>
                     <div className='c-l'>
                         <div className='titles_o'> 开户意愿核实类型 : </div>
-                        <Radio.Group name="radiogroup" defaultValue={Params.desireAuth == undefined ? 'DESIRE_VIDEO' : Params.desireAuth} onChange={this.onChangeRadio.bind(this) }>
-                                            <Radio value='DESIRE_VIDEO'>视频验证</Radio>
-                                            <Radio value='DESIRE_MOBILEINFO'>手机短信验证</Radio>
-                                            <Radio value='DESIRE_NONEED'>其他验证方式</Radio>
-                                        </Radio.Group>
+                        <Radio.Group name="radiogroup" defaultValue={Params.desireAuth == undefined ? 'DESIRE_VIDEO' : Params.desireAuth} onChange={this.onChangeRadio.bind(this)}>
+                            <Radio value='DESIRE_VIDEO'>视频验证</Radio>
+                            <Radio value='DESIRE_MOBILEINFO'>手机短信验证</Radio>
+                            <Radio value='DESIRE_NONEED'>其他验证方式</Radio>
+                        </Radio.Group>
                     </div>
-                    {/* <div className='c-l'>
-                        <div className='titles_o'> 法人姓名 : </div>
-                        <div className='inputs'><Input id='myname'   placeholder="请输入法人姓名"  defaultValue={Params.contactName}/></div>
-                    </div>
-                    <div className='c-l'>
-                        <div className='titles_o'> 法人身份证号 : </div>
-                        <div className='inputs'><Input id='myname'   placeholder="请输入法人身份证号"  defaultValue={Params.contactName}/></div>
-                    </div>
-                    <div className='c-l'>
-                        <div className='titles_o'> 法人手机号 : </div>
-                        <div className='inputs'><Input id='myname'   placeholder="请输入法人手机号"  defaultValue={Params.contactName}/></div>
-                    </div> */}
+                    {
+                        desireAuth == 'DESIRE_MOBILEINFO' &&
+                        <div>
+                            <div className='c-l'>
+                                <div className='titles_o'> 法人姓名<i className='label_x'>*</i> : </div>
+                                <div className='inputs'><Input id='myname1' placeholder="请输入法人姓名" defaultValue={Params.contactName} /></div>
+                            </div>
+                            <div className='c-l'>
+                                <div className='titles_o'> 法人身份证号<i className='label_x'>*</i> : </div>
+                                <div className='inputs'><Input id='myname2' placeholder="请输入法人身份证号" defaultValue={Params.contactName} /></div>
+                            </div>
+                            <div className='c-l'>
+                                <div className='titles_o'> 法人手机号<i className='label_x'>*</i> : </div>
+                                <div className='inputs'><Input id='myname3' placeholder="请输入法人手机号" defaultValue={Params.contactName} /></div>
+                            </div>
+                        </div>
+                    }
                 </div>
             </div>
         )

+ 12 - 12
src/component/center-w/centerW.jsx

@@ -76,18 +76,18 @@ export default class centerW extends React.Component {
             appName: document.getElementById("appName").value,//APP名称
             wechatAppletName: document.getElementById("wechatAppletName").value,//公众号/小程序/生活号
             testAccountInfo: '',//测试账户信息
-            businessLicensePath: this.state.businessLicensePath,//营业执照照片路径
-            openAccountPath: this.state.openAccountPath,//开户许可证照片路径
-            legalIdCardProsPath: this.state.legalIdCardProsPath,//法人证件人像面路径
-            legalIdCardConsPath: this.state.legalIdCardConsPath,//法人证件国徽面路径
-            desireAuthPath: this.state.desireAuthPath,//确认入网意愿视频路径
-            holdingIdCardPath: this.state.holdingIdCardPath,//法人手持证件影印件路径
-            webSitePath: this.state.webSitePath,//商户网址截图影印件路径
-            wechatAppletPath: this.state.wechatAppletPath,//公众号/小程序/生活号业务流程截图影印件路径	
-            appPath: this.state.appPath,//APP首页截图影印件路径
-            legalPersonBankCardPath: this.state.legalPersonBankCardPath,//法人银行卡图影印件路径
-            desireAuthOtherPath: this.state.desireAuthOtherPath,//确认入网意愿其他验证方式路径
-            otherCerPath: this.state.otherCerPath,//其他资质文件路径
+            businessLicensePath: this.state.Params.businessLicensePath,//营业执照照片路径
+            openAccountPath: this.state.Params.openAccountPath,//开户许可证照片路径
+            legalIdCardProsPath: this.state.Params.legalIdCardProsPath,//法人证件人像面路径
+            legalIdCardConsPath: this.state.Params.legalIdCardConsPath,//法人证件国徽面路径
+            desireAuthPath: this.state.Params.desireAuthPath,//确认入网意愿视频路径
+            holdingIdCardPath: this.state.Params.holdingIdCardPath,//法人手持证件影印件路径
+            webSitePath: this.state.Params.webSitePath,//商户网址截图影印件路径
+            wechatAppletPath: this.state.Params.wechatAppletPath,//公众号/小程序/生活号业务流程截图影印件路径	
+            appPath: this.state.Params.appPath,//APP首页截图影印件路径
+            legalPersonBankCardPath: this.state.Params.legalPersonBankCardPath,//法人银行卡图影印件路径
+            desireAuthOtherPath: this.state.Params.desireAuthOtherPath,//确认入网意愿其他验证方式路径
+            otherCerPath: this.state.Params.otherCerPath,//其他资质文件路径
         }
         localStorage.setItem('wData', JSON.stringify(Params))
         return Params