Commit 400c8fbe authored by 王苓芝's avatar 王苓芝

Merge branch 'reason' into 'master'

Reason

See merge request !12
parents 534d2a29 c4ea0805
const isProduction = process.env.NODE_ENV === 'production'; const isProduction = process.env.NODE_ENV === 'production';
let envAPi = { let envAPi = {
// api: '//backstms-vcc3.liangkebang.net',
api: '//backstms-test2.liangkebang.net', api: '//backstms-test2.liangkebang.net',
// kdspApi: '//yapi.quantgroups.com/mock/351', kdspOpApi: 'https://kdsp-operation-test2.liangkebang.net',
// kdspApi: 'http://192.168.28.172:8042', kdspApi: 'https://sc-op-api-test2.liangkebang.net/',
// kdspApi: 'https://kdsp-operation-vcc3.liangkebang.net',
kdspApi: 'https://kdsp-operation-test2.liangkebang.net',
qiniuHost: 'https://appsync.lkbang.net', qiniuHost: 'https://appsync.lkbang.net',
opapiHost: 'https://opapi-test2.liangkebang.net', opapiHost: 'https://opapi-test2.liangkebang.net',
// opapiHost: 'http://192.168.29.45:7000',
}; };
let prodApi = { let prodApi = {
api: '//backstms.q-gp.com', api: '//backstms.q-gp.com',
kdspApi: '//kdsp-operation.q-gp.com', kdspOpApi: '//kdsp-operation.q-gp.com',
kdspApi: '//sc-op-api.q-gp.com',
qiniuHost: 'https://appsync.lkbang.net', qiniuHost: 'https://appsync.lkbang.net',
opapiHost: 'https://opapi.xyqb.com', opapiHost: 'https://opapi.xyqb.com',
}; };
......
...@@ -129,6 +129,10 @@ const AuditModal = props => { ...@@ -129,6 +129,10 @@ const AuditModal = props => {
{getFieldDecorator('receiverPhone', { {getFieldDecorator('receiverPhone', {
initialValue: formData.phone, initialValue: formData.phone,
rules: [ rules: [
{
pattern: new RegExp(/^1[3456789]\d{9}$/, 'g'),
message: '手机号码格式不正确!',
},
{ {
required: true, required: true,
message: '请填写手机号码!', message: '请填写手机号码!',
......
...@@ -9,8 +9,7 @@ export async function query(param) { ...@@ -9,8 +9,7 @@ export async function query(param) {
pageNo: param.current, pageNo: param.current,
}; };
const data = await request.post('/api/kdsp/op/appeal/list', { const data = await request.post('/api/kdsp/op/appeal/list', {
// prefix: 'http://yapi.quantgroups.com/mock/351', prefix: config.kdspOpApi,
prefix: config.kdspApi,
data: stringify(_.omitBy(params, v => !v)), data: stringify(_.omitBy(params, v => !v)),
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
...@@ -24,8 +23,7 @@ export async function query(param) { ...@@ -24,8 +23,7 @@ export async function query(param) {
export async function getDetail(params) { export async function getDetail(params) {
const { data } = await request.post('/api/kdsp/op/appeal/info', { const { data } = await request.post('/api/kdsp/op/appeal/info', {
data: stringify(_.omitBy(params, v => !v)), data: stringify(_.omitBy(params, v => !v)),
prefix: config.kdspApi, prefix: config.kdspOpApi,
// prefix: 'http://yapi.quantgroups.com/mock/351',
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
}, },
...@@ -36,8 +34,7 @@ export async function getDetail(params) { ...@@ -36,8 +34,7 @@ export async function getDetail(params) {
export async function audit(params) { export async function audit(params) {
const data = await request.post('/api/kdsp/op/appeal/audit', { const data = await request.post('/api/kdsp/op/appeal/audit', {
data: stringify(params), data: stringify(params),
prefix: config.kdspApi, prefix: config.kdspOpApi,
// prefix: 'http://yapi.quantgroups.com/mock/351',
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
}, },
......
...@@ -154,6 +154,10 @@ const AuditModal = props => { ...@@ -154,6 +154,10 @@ const AuditModal = props => {
<FormItem label="手机号码"> <FormItem label="手机号码">
{getFieldDecorator('receiverPhone', { {getFieldDecorator('receiverPhone', {
rules: [ rules: [
{
pattern: new RegExp(/^1[3456789]\d{9}$/, 'g'),
message: '手机号码格式不正确!',
},
{ {
required: true, required: true,
message: '请填写手机号码!', message: '请填写手机号码!',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment