Commit e5197912 authored by xishifeng's avatar xishifeng

新增商铺bug修改

parent 0c8ec517
......@@ -9,15 +9,15 @@ define(['ckfinder', 'ckfinderStart', 'bootstrapJs'], function() {
var _objThis = this, //user对象
_id = getUrlParam('id'), //地址栏获取的商铺或者街铺id
_source = getUrlParam('source'),
_sublet_id = getUrlParam('sublet_id');
_doc = $(document),
_sublet_id = getUrlParam('sublet_id'),
_doc = $(document),
_urlCut = location.origin + '/resource/lib/Attachments/images/', //要截取的部分url
_loadMainItem = $('#main_loading_pic'), //整个页面的加载图标
_shangpuTypeObj = $('#shangpuType'), //商铺类型
_showCdObj = $('#showCd'), //显示给C端用户看
_exclusiveTypeObj = $('#exclusiveType'), //是否独家
_yetaiObj = $('.yetai'), //业态
_roomTagObj = $('.roomTag'), //商铺标签
_roomTagObj, //商铺标签,初始化
//_landlordPhoneObj = $('#landlordPhone'),//房东手机号
_landlordPhoneObj = $('.li_landlord_phone input'), //房东手机号
_internalNameObj = $('#internalName'), //对内商铺名称
......@@ -143,6 +143,7 @@ define(['ckfinder', 'ckfinderStart', 'bootstrapJs'], function() {
success: function(data) {
if(typeof data === 'object') {
var _data = data['data'];
_roomTagObj = $('.roomTag'); //商铺标签,重新获取一次
if(data.code == 200) {
_objThis.upload_id = _data['upload_id'];
if(_data['shop_type'] !== undefined) {
......@@ -246,6 +247,7 @@ define(['ckfinder', 'ckfinderStart', 'bootstrapJs'], function() {
_landlordPhoneObj.val(_data['landlord_phone']); //房东手机号
_internalNameObj.val(_data['internal_title']); //对内商铺名称
_zujinTypeObj.val(_data['rent_type']); //租金模式
_zujinTypeObj.change();//触发change事件
_moonPriceObj.val(_data['rent_price']); //月租均价
_wuyePriceObj.val(_data['management_fee']); //物业管理费
_jinchangPriceObj.val(_data['slotting_fee']); //进场费(转让费)
......
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