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';
let envAPi = {
// api: '//backstms-vcc3.liangkebang.net',
api: '//backstms-test2.liangkebang.net',
// kdspApi: '//yapi.quantgroups.com/mock/351',
// kdspApi: 'http://192.168.28.172:8042',
// kdspApi: 'https://kdsp-operation-vcc3.liangkebang.net',
kdspApi: 'https://kdsp-operation-test2.liangkebang.net',
kdspOpApi: 'https://kdsp-operation-test2.liangkebang.net',
kdspApi: 'https://sc-op-api-test2.liangkebang.net/',
qiniuHost: 'https://appsync.lkbang.net',
opapiHost: 'https://opapi-test2.liangkebang.net',
// opapiHost: 'http://192.168.29.45:7000',
};
let prodApi = {
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',
opapiHost: 'https://opapi.xyqb.com',
};
......
......@@ -129,6 +129,10 @@ const AuditModal = props => {
{getFieldDecorator('receiverPhone', {
initialValue: formData.phone,
rules: [
{
pattern: new RegExp(/^1[3456789]\d{9}$/, 'g'),
message: '手机号码格式不正确!',
},
{
required: true,
message: '请填写手机号码!',
......
......@@ -9,8 +9,7 @@ export async function query(param) {
pageNo: param.current,
};
const data = await request.post('/api/kdsp/op/appeal/list', {
// prefix: 'http://yapi.quantgroups.com/mock/351',
prefix: config.kdspApi,
prefix: config.kdspOpApi,
data: stringify(_.omitBy(params, v => !v)),
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
......@@ -24,8 +23,7 @@ export async function query(param) {
export async function getDetail(params) {
const { data } = await request.post('/api/kdsp/op/appeal/info', {
data: stringify(_.omitBy(params, v => !v)),
prefix: config.kdspApi,
// prefix: 'http://yapi.quantgroups.com/mock/351',
prefix: config.kdspOpApi,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
......@@ -36,8 +34,7 @@ export async function getDetail(params) {
export async function audit(params) {
const data = await request.post('/api/kdsp/op/appeal/audit', {
data: stringify(params),
prefix: config.kdspApi,
// prefix: 'http://yapi.quantgroups.com/mock/351',
prefix: config.kdspOpApi,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
......
......@@ -154,6 +154,10 @@ const AuditModal = props => {
<FormItem label="手机号码">
{getFieldDecorator('receiverPhone', {
rules: [
{
pattern: new RegExp(/^1[3456789]\d{9}$/, 'g'),
message: '手机号码格式不正确!',
},
{
required: true,
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