

1. 登录接口
登录要求：否
请求地址：applet/xggApplet/login
请求类型：POST
请求参数：
{
      iv: e.detail.iv,
      encryptedData: e.detail.encryptedData,
      code: xxxxxxxx
}
返回结果：
{
    code: 1,
    msg: "success",
    data: {
        openId: "OEl....",
        nickname: "xxx",
        headurl: "headUrl",
    };
}


2. 获取商户信息
登录要求：否
请求地址：applet/xggApplet/merchantInfo
请求类型：POST
请求参数：
{
      id: 1,
}
返回结果：
{
    "code": 1,
    "data": {
        "id": 1,
        "name": "恒昌",
        "companyList": [
            {
                "id": 1,
                "name": "恒以致远---汇才",
                "regname": "杞县#user#商务信息咨询服务部",
            },
            {
                "id": 2,
                "name": "张舟怡帆---北京",
                "regname": "杞县#user#商务信息咨询服务部",
            }
        ]
    }
}



3. 获取登录用户信息
登录要求：是
请求地址：applet/xggApplet/loginUser
请求类型：POST
请求参数：
{}
返回结果：
{
    "code": 1,
    "data": {
        "id": 5,
        "openId": "o8XrI5eB-S6YxvZdZT5X45D2C3eM",
        "nickname": "王昆",
        "headurl": "https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLvwSkL4LDVPz1FLYicJiblegBXPntTwAl2WHC076Ppfu5IwHJCHZXLKZHY7utYicibaicmU5Hxue8hytA/132",
    }
}



4. 提交订单
登录要求：是
请求地址：applet/xggApplet/saveOrder
请求类型：POST
请求参数：
{
    "merchantId": 1,
    "companyId": 1,
    "idcard_front": "22222",
    "idcard_back": "333333",
    "idcard": "110001xxxxxxxxxxxx"
    "legal_name": "宋毅  ",
    "legal_mobile": "3311333",
    "companyNames": "我我我###我我我我我",
    "bank_front": "sllqlqlq",
    "bank_back": "2ergerer"
}
返回结果：
{"code": 1}


5. 我的订单
登录要求：是
请求地址：applet/xggApplet/myOrders
请求类型：POST
请求参数：
{
    "currentPage": 1,
    "pageSize": 10
}
返回结果：
{
    "code": 1,
    "data": {
        "count": 10,
        "rows": [
            {
                "id": 16,
                "merchantId": 1,
                "companyId": 1,
                "userId": 5,
                "orderNo": "520190819114250",
                "status": 0,
                "statusName": "信息提交",
                "created_at": "2019-08-19 03:42",
                "updated_at": "2019-08-19 03:42",
                "userbiz": {
                    "id": 16,
                    "idcard_front": "身份证正面",
                    "idcard_back": "身份证反面",
                    "idcard": "身份证号码",
                    "legal_name": "法人宋毅",
                    "legal_mobile": "联系电话",
                    "person_img": "个人照片",
                    "companyNames": "公司名称，多个以###分隔",
                    "bank_front": "银行卡正面",
                    "bank_back": "银行卡背面",
                },
            },
        ]
    }
}

6. 公共信息获取
登录要求：是
请求地址：applet/xggApplet/commonInfo
请求类型：POST
请求参数：
{
    "currentPage": 1,
    "pageSize": 10
}

返回结果：
{
    "code": 1,
    "data": {
        "telphone": "客服电话"
    }
}


7. 查询未审核订单
登录要求：是
请求地址：applet/xggApplet/unauditOrders
请求类型：POST
请求参数：
{
	"pageSize":10,
    "currentPage":1,
    "auditStatus":1        //审核状态 0 未审核 1审核成功
}
返回结果：
{
    "code": 1,
    "data": {
        "count": 1,
        "rows": [
            {
                "id": 1,
                "merchantId": 1,
                "companyId": 1,
                "userId": 5,
                "orderNo": "520190819112735",
                "status": 0,
                "auditStatus": 1,
                "auditId": 0,
                "rejectReason": "0",
                "ownerId": 0,
                "created_at": "2019-08-19 03:27",
                "updated_at": "2019-08-19 03:27",
                "userbiz": {
                    "id": 1,
                    "merchantId": 1,
                    "companyId": 1,
                    "orderId": 1,
                    "orderNo": "520190819112735",
                    "user_id": 5,
                    "idcard_front": "22222",
                    "idcard_back": "333333",
                    "idcard": "身份证",
                    "legal_name": "宋毅  ",
                    "legal_mobile": "3311333",
                    "person_img": "555555555",
                    "companyNames": "我我我###我我我我我",
                    "bank_front": "sllqlqlq",
                    "bank_back": "2ergerer",
                    "bank": "",
                    "bankno": "",
                    "bankaddr": "",
                    "bankMobile": "",
                    "businessScope": "",
                    "taxNo": "",
                    "created_at": "2019-08-19T03:27:35.000Z",
                    "updated_at": "2019-08-19T03:27:35.000Z",
                    "deleted_at": null,
                    "version": 0
                },
                "statusName": "信息提交"
            }
        ]
    }
}

8. 审核
登录要求：是
请求地址：applet/xggApplet/audit
请求类型：POST
请求参数：
{
    "rejectReason":"",    //驳回原因
    "auditStatus":1,      //审核状态 0待审核 1审核通过 2审核驳回
    "id":1                //订单ID
}
返回结果：
{
    "code": 1,
    "msg": "success"
}

9.查询明细
登录要求：是
请求地址：/applet/xggApplet/queryOrderInfo
请求类型：POST
请求参数：
{
    "id":1                //订单ID
}


返回结果：
{
    "code": 1,
    "msg": "success",
    "orderInfo": {
        "id": 1,
        "merchantId": 1,
        "companyId": 1,
        "userId": 5,
        "orderNo": "520190819112735",
        "status": 0,
        "ownerId": 0,
        "auditStatus": 1,
        "auditId": 1,
        "rejectReason": "",
        "created_at": "2019-08-19T03:27:35.000Z",
        "updated_at": "2019-12-26T09:39:52.000Z",
        "deleted_at": null,
        "version": 0,
        "child": {
            "id": 1,
            "merchantId": 1,
            "companyId": 1,
            "orderId": 1,
            "orderNo": "520190819112735",
            "user_id": 5,
            "taxNo": "",
            "idcard_front": "22222",
            "idcard_back": "333333",
            "idcard": "身份证",
            "bank_front": "sllqlqlq",
            "bank_back": "2ergerer",
            "bank": "",
            "bankno": "",
            "bankaddr": "",
            "bankMobile": "",
            "person_img": "555555555",
            "legal_name": "宋毅  ",
            "legal_mobile": "3311333",
            "companyNames": "我我我###我我我我我",
            "businessScope": "",
            "created_at": "2019-08-19T03:27:35.000Z",
            "updated_at": "2019-08-19T03:27:35.000Z",
            "deleted_at": null,
            "version": 0
        }
    }
}

10.更新订单
登录要求：是
请求地址：/applet/xggApplet/updateOrder
请求类型：POST
请求参数：
{
   "auditStatus":0,
   "id":1,
   "idcard_front":"96969696",
	"idcard_back":"9696969",
	"idcard":"969696969",
	"legal_name": "969*69696",
	"legal_mobile":"99999966969",
	"person_img": "969696969",
	"companyNames":"969696969",
	"bank_front": "96969696969",
	"bank_back":"9696969696",
	"bank":"9696969",
	"bankno":"96969696969",
	"bankMobile":"986696969"
}
返回结果：
{
    "code": 1,
    "msg": "success"
}