Commit 8459ea99 authored by agping's avatar agping

城市定位 权限

parent 0c121901
......@@ -669,11 +669,11 @@
<div id="address_city_title">上海市</div>
<div class="select-search">
<select name="" id="select-city-search" class="form-control">
<option value="上海市">上海市</option>
<!--<option value="上海市">上海市</option>
<option value="杭州市">杭州市</option>
<option value="深圳市">深圳市</option>
<option value="广州市">广州市</option>
<option value="北京市">北京市</option>
<option value="北京市">北京市</option>-->
</select>
</div>
<div class="crile">
......
......@@ -8,6 +8,27 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//初始化dot
user.event();
$('#pf_tel_jia').hide();
// 城市定位
$.ajax({
url: '/index/getAgentGroupSite',
type: 'GET',
async: true,
data: {
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data.length != 0) {
var str = '';
$.each(data.data, function(i, item) {
str += '<option value="' + item.city + '">' + item.city + '</option>';
});
$("#select-city-search").append(str);
}else{
$("#select-city-search").append('');
}
}
});
},
upload_id: 0,
event: function() {
......
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