pushuo 2022-08-12 16:42:57 +08:00
parent a8a42195ca
commit c2a9ae1771
4 changed files with 43 additions and 3 deletions

View File

@ -514,6 +514,17 @@ body.page-seller-product .share-link-pop .share-links-code img {
color: #fd560f;
}
.layui-layer-btn .layui-layer-btn0 {
border: 1px solid #dedede;
color: #333;
background-color: #fff;
}
.layui-layer-btn .layui-layer-btn1 {
background-color: #fd560f;
border-color: #fd560f;
color: #fff;
}
[v-cloak] {
display: none;
}

View File

@ -2129,6 +2129,14 @@ __webpack_require__.r(__webpack_exports__);
}
});
},
addWishlist: function addWishlist(id) {
var isWishlist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
$http.post('account/wishlist', {
product_id: id
}).then(function (res) {
layer.msg(res.message);
});
},
/**
* @description: 滑动固定顶部

View File

@ -299,4 +299,18 @@ body.page-seller-product {
color: $primary;
}
}
}
.layui-layer-btn {
.layui-layer-btn0 {
border: 1px solid #dedede;
color: #333;
background-color: #fff;
}
.layui-layer-btn1 {
background-color: $primary;
border-color: $primary;
color: #fff;
}
}

View File

@ -50,10 +50,17 @@
<script>
$('.delete-role').click(function(event) {
const id = $(this).data('id');
const self = $(this);
$http.delete(`admin_roles/${id}`).then((res) => {
layer.msg(res.message);
$(this).parents('tr').remove()
layer.confirm('确定要删除角色吗?', {
title: "提示",
btn: ['取消', '确定'],
btn2: () => {
$http.delete(`admin_roles/${id}`).then((res) => {
layer.msg(res.message);
self.parents('tr').remove()
})
}
})
});
</script>