Commit cb955782 by cwq0219

有效期

1 parent ae48d7a0
...@@ -59,17 +59,24 @@ ...@@ -59,17 +59,24 @@
getVaildPeriod() getVaildPeriod()
form.on('submit(periodSubmit)', function (data) { form.on('submit(periodSubmit)', function (data) {
var params = { if (data.field.effectiveTime) {
method: 'cn.com.glsx.merchants.merchant.updateValPerByMerId', var params = {
id: vaildData.id, method: 'cn.com.glsx.merchants.merchant.updateValPerByMerId',
effectiveTime: data.field.effectiveTime id: vaildData.id,
} effectiveTime: data.field.effectiveTime
request(params, function (res) {
if (res.code == '0') {
helper.store.set('isRefresh', true)
parent.layer.close(currLayerIdx)
} }
}) request(params, function (res) {
if (res.code == '0') {
helper.store.set('isRefresh', true)
parent.layer.close(currLayerIdx)
}
})
} else {
layer.msg('请选择账户有效期', {
icon: 5,
anim: 6
})
}
return false return false
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!