|
|
@@ -91,6 +91,14 @@
|
|
|
<button class="btn btn-primary add" type="button">提交</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ {if condition="$front"}
|
|
|
+ 前台账户:{$front}
|
|
|
+ <div class="form-group" style="text-align: center;">
|
|
|
+ <div class="col-sm-4 col-sm-offset-2">
|
|
|
+ <button class="btn btn-primary unbind" type="button">解绑</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ {/if}
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
@@ -127,5 +135,19 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ $('.unbind').on('click',function (e) {
|
|
|
+ var url=layList.U({c:'setting.system_admin',a:'unbind',q:{id:data.id}});
|
|
|
+ $eb.$swal('delete',function(){
|
|
|
+ $eb.axios.get(url).then(function(res){
|
|
|
+ if(res.status == 200 && res.data.code == 200) {
|
|
|
+ $eb.$swal('success',res.data.msg);
|
|
|
+ obj.del();
|
|
|
+ }else
|
|
|
+ return Promise.reject(res.data.msg || '解绑失败')
|
|
|
+ }).catch(function(err){
|
|
|
+ $eb.$swal('error',err);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ })
|
|
|
</script>
|
|
|
{/block}
|