From ccc883ece791747b68c9a14a86efcd18b8f7025e Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Mon, 25 Jul 2022 20:14:25 +0800 Subject: [PATCH] wip --- themes/default/account/wishlist.blade.php | 41 +++++++++++++++++++++++ themes/default/layout/header.blade.php | 4 +-- themes/default/product.blade.php | 12 ++++--- 3 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 themes/default/account/wishlist.blade.php diff --git a/themes/default/account/wishlist.blade.php b/themes/default/account/wishlist.blade.php new file mode 100644 index 00000000..634945a1 --- /dev/null +++ b/themes/default/account/wishlist.blade.php @@ -0,0 +1,41 @@ +@extends('layout.master') + +@section('body-class', 'page-account-wishlist') + +@section('content') +
+ + +
+ + +
+ +
+
+
+@endsection diff --git a/themes/default/layout/header.blade.php b/themes/default/layout/header.blade.php index e2b9fa4f..ba3e73a9 100644 --- a/themes/default/layout/header.blade.php +++ b/themes/default/layout/header.blade.php @@ -63,7 +63,7 @@
- +
@@ -123,10 +123,6 @@ - - @endsection @push('add-scripts') @@ -243,6 +239,12 @@ }) }); }, + + addWishlist() { + $http.post('wishlist', {product_id: this.product.id}).then((res) => { + layer.msg(res.message) + }) + }, } })