$ (function () {
$ (document). On (' Tap ', '. W-location-group. Mui-table-view-cell ', function () {
var bool = $ (this). Find (' Span.location-ico '). attr (' data-id ') = = 1;
var Boolen = $ ('. Write-del span '). Hasclass (' bianji504 ');
if (Boolen) {
$ ('. W-location-group. Mui-badge. Location-ico '). Removeclass (' duigou506 ');
$ (this). Find (' Span.location-ico '). addclass (' duigou506 ');
var Valtoken = json.parse (Localstorage.getitem (' token '));
var Addressid = $ (this). Find (' Span.mui-badge '). attr (' Data-id ');
var urlajax = '/api/address/' +addressid;
$.ajax ({
Url:urlajax,
DataType: ' JSON ',
Async:true,
Type: ' Put ',
headers:{' Accept ': ' Application/json ', ' Authorization ': ' Bearer ' + Valtoken},
complete:function (data) {
if (Data.responsetext = = ' success ') {
Layer.open ({
Content: ' Choose Success '
, Skin: ' msg '
, Time:2//2 seconds after automatic shutdown
});
Localstorage.removeitem (' defalutshopid ');
Localstorage.removeitem (' shopid ');
}
}
});
}
Ajax request issued, the data changed, but did not enter the success function to replace success with complete