<script>
function changeStore(code){
// alert("+++");
$.ajax({
cache:true,
type: 'post',
url: "${rootUrl }app/wx/product/cookie/changeStore?storeCode="+code,
async:true,
beforeSend: function(){
},
success:function(json){
// alert(json.length);
if(json.length>0){
$("#form").empty();
var form = $('#form');
for(var i = 0 ; i< json.length; i++){
form.append('<li class="mui-table-view-cell">'+
'<div class="Stores_name">'+
'<div class="mui-radio"><label>'+json[i].nameZH+'</label><input name="radio1" type="radio"></div>'+
'</div>'+
'<div class="Stores_info">'+
'<h3>门店地址:</h3><span>'+json[i].address+'</span>'+
'</div>'+
'<div class="Stores_info">'+
'<h3>服务时间:</h3><span>'+json[i].sysTimeConfig.startTimeHour+':'+json[i].sysTimeConfig.startTimeHour+'-'+json[i].sysTimeConfig.endTimeHour+':'+json[i].sysTimeConfig.endTimeMin+'</span>'+
'</div>'+
'<div class="Stores_info">'+
'<h3>服务范围:</h3>'+
'<span>'+
appendStr(json[i].systemDataDictList)+
'</span>'+
'</div>'+
'<div class="Stores_info">'+
'<h3>联系电话:</h3><span><a href="tel:114">'+json[i].mobile+'</a></span>'+
'<h4 id="" class="image-list">查看地图</h4>'+
'</div>'+
'</li>'
);
}
}
},
complete: function () {
},
error:function(data){
mui.alert('网络忙,请稍后重试');
}
});
}
function appendStr(str){
if(str == null || str == '' || str.length<=0) return '';
var str1 ='';
for(var i = 0 ; i< str.length; i++){
str1 += str[i].value+'、';
}
return str1;
};
mui('body ').on('tap ', 'a ', function() {
document.location.href = this.href;
});
</script>