|
@@ -2,13 +2,12 @@ $(function () {
|
|
let list_flex = $(".list .list-flex");
|
|
let list_flex = $(".list .list-flex");
|
|
Array.from(list_flex).forEach(item => {
|
|
Array.from(list_flex).forEach(item => {
|
|
let list_item = $(item).find(".list-item");
|
|
let list_item = $(item).find(".list-item");
|
|
- list_item.click(function () {
|
|
|
|
- if (!$(this).data("href")) {
|
|
|
|
- $(this).find(".p>div").click(function () {
|
|
|
|
- $("#toast").addClass("show")
|
|
|
|
- })
|
|
|
|
|
|
+ list_item.click(function (e) {
|
|
|
|
+ if (e.target.className != "blue" && $(e.target).parent()[0].className == "p") {
|
|
|
|
+ $("#toast").addClass("show")
|
|
return false;
|
|
return false;
|
|
- };
|
|
|
|
|
|
+ }
|
|
|
|
+ if (!$(this).data("href")) return false;
|
|
window.location.href = $(this).data("href");
|
|
window.location.href = $(this).data("href");
|
|
})
|
|
})
|
|
if (list_item.length == 1) {
|
|
if (list_item.length == 1) {
|