Commit 5b0091c0 by 胡悦

Merge branch 'master' of 192.168.3.233:h5/account

2 parents 4d17da83 dbb7d975
......@@ -535,7 +535,7 @@
merchantForm[item] = formData[item] || ''
params[item] = formData[item] || ''
})
if(merchantId) {
if (merchantId) {
params.effectiveTime = merchantForm.effectiveTime
}
var checkClassNameList = [{
......@@ -617,7 +617,10 @@
getMerchantApi(merchantId, function (respone) {
form.val('merchantForm', respone.data)
merchantForm = respone.data
if (merchantForm.merchantAddress) {
$('#addrEl').text(merchantForm.merchantAddress)
}
accountTypeVisible = true
var el = $('#accountTypeEl')
el.empty()
......
......@@ -241,7 +241,7 @@
function setPosition(targerItem) {
marker.setPosition(targerItem.location)
mapData.merchantAddress = targerItem.name
mapData.merchantAddress = targerItem.address
modelVal('merchantAddress', mapData.merchantAddress)
setFitView()
}
......
......@@ -59,6 +59,7 @@
getVaildPeriod()
form.on('submit(periodSubmit)', function (data) {
if (data.field.effectiveTime) {
var params = {
method: 'cn.com.glsx.merchants.merchant.updateValPerByMerId',
id: vaildData.id,
......@@ -70,6 +71,12 @@
parent.layer.close(currLayerIdx)
}
})
} else {
layer.msg('请选择账户有效期', {
icon: 5,
anim: 6
})
}
return false
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!