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
$('#addrEl').text(merchantForm.merchantAddress)
if (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,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!