Commit 5b0091c0 by 胡悦

Merge branch 'master' of 192.168.3.233:h5/account

2 parents 4d17da83 dbb7d975
...@@ -535,7 +535,7 @@ ...@@ -535,7 +535,7 @@
merchantForm[item] = formData[item] || '' merchantForm[item] = formData[item] || ''
params[item] = formData[item] || '' params[item] = formData[item] || ''
}) })
if(merchantId) { if (merchantId) {
params.effectiveTime = merchantForm.effectiveTime params.effectiveTime = merchantForm.effectiveTime
} }
var checkClassNameList = [{ var checkClassNameList = [{
...@@ -617,7 +617,10 @@ ...@@ -617,7 +617,10 @@
getMerchantApi(merchantId, function (respone) { getMerchantApi(merchantId, function (respone) {
form.val('merchantForm', respone.data) form.val('merchantForm', respone.data)
merchantForm = respone.data merchantForm = respone.data
if (merchantForm.merchantAddress) {
$('#addrEl').text(merchantForm.merchantAddress) $('#addrEl').text(merchantForm.merchantAddress)
}
accountTypeVisible = true accountTypeVisible = true
var el = $('#accountTypeEl') var el = $('#accountTypeEl')
el.empty() el.empty()
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
function setPosition(targerItem) { function setPosition(targerItem) {
marker.setPosition(targerItem.location) marker.setPosition(targerItem.location)
mapData.merchantAddress = targerItem.name mapData.merchantAddress = targerItem.address
modelVal('merchantAddress', mapData.merchantAddress) modelVal('merchantAddress', mapData.merchantAddress)
setFitView() setFitView()
} }
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
getVaildPeriod() getVaildPeriod()
form.on('submit(periodSubmit)', function (data) { form.on('submit(periodSubmit)', function (data) {
if (data.field.effectiveTime) {
var params = { var params = {
method: 'cn.com.glsx.merchants.merchant.updateValPerByMerId', method: 'cn.com.glsx.merchants.merchant.updateValPerByMerId',
id: vaildData.id, id: vaildData.id,
...@@ -70,6 +71,12 @@ ...@@ -70,6 +71,12 @@
parent.layer.close(currLayerIdx) 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!