|
|
@@ -56,12 +56,16 @@
|
|
|
<script type="text/javascript">
|
|
|
// 更换订阅地址
|
|
|
function exchangeSubscribe() {
|
|
|
- $.post("{{url('user/exchangeSubscribe')}}", {_token:'{{csrf_token()}}'}, function (ret) {
|
|
|
- layer.msg(ret.message, {time:1000}, function () {
|
|
|
- if (ret.status == 'success') {
|
|
|
- window.location.reload();
|
|
|
- }
|
|
|
+ layer.confirm('确定更换订阅地址吗?', {icon: 7, title:'警告'}, function(index) {
|
|
|
+ $.post("{{url('user/exchangeSubscribe')}}", {_token:'{{csrf_token()}}'}, function (ret) {
|
|
|
+ layer.msg(ret.message, {time:1000}, function () {
|
|
|
+ if (ret.status == 'success') {
|
|
|
+ window.location.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
+
|
|
|
+ layer.close(index);
|
|
|
});
|
|
|
}
|
|
|
</script>
|