From ac70fc37f6a90230345b99450aad79eed69ce254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= Date: Tue, 25 Oct 2022 09:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=AD=90=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BaseSimpleCrudController.cs | 1 - .../Controllers/Shop/SpuController.cs | 7 ++ .../Controllers/System/AccountController.cs | 1 - .../yi-sqlsugar-dev.db | Bin 221184 -> 221184 bytes .../MiddlewareExtend/ErrorHandExtension.cs | 3 + Yi.Vue3.x.Vant/components.d.ts | 6 ++ Yi.Vue3.x.Vant/src/api/spuApi.ts | 35 +++++--- Yi.Vue3.x.Vant/src/components/AppCard.vue | 63 ++++++++++++++ Yi.Vue3.x.Vant/src/view/shop/shopDetails.vue | 43 +++++++++- Yi.Vue3.x.Vant/src/view/shop/shopIndex.vue | 81 ++++++++++++++---- Yi.Vue3.x.Vant/src/view/shop/shopSearch.vue | 6 +- 11 files changed, 208 insertions(+), 38 deletions(-) create mode 100644 Yi.Vue3.x.Vant/src/components/AppCard.vue diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleCrudController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleCrudController.cs index c3969036..b285609e 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleCrudController.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/BaseController/BaseSimpleCrudController.cs @@ -31,7 +31,6 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// /// /// - [Permission($"{nameof(T)}:get")] [Route("{id}")] [HttpGet] public virtual async Task GetById([FromRoute]long id) diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs index bd4e9dc7..48030c83 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/Shop/SpuController.cs @@ -36,6 +36,13 @@ namespace Yi.Framework.ApiMicroservice.Controllers return Result.Success().SetData(await _iSpuService.SelctPageList(eneity, page)); } + [Route("{id}")] + [HttpGet] + public override async Task GetById([FromRoute] long id) + { + return Result.Success().SetData(await _repository._DbQueryable.Includes(u=>u.Skus).SingleAsync(u=>u.Id.Equals(id))); + } + diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/AccountController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/AccountController.cs index 574d6680..6d34d03f 100644 --- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/AccountController.cs +++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/System/AccountController.cs @@ -122,7 +122,6 @@ namespace Yi.Framework.ApiMicroservice.Controllers /// /// [HttpGet] - //[Authorize] public async Task GetUserAllInfo() { //通过鉴权jwt获取到用户的id diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db index a80e2499ee6f710d355c5cedcc981368c2ebc717..2888ca2c542ffad8b8dff4d744654e75fb9a4d7b 100644 GIT binary patch delta 182 zcmZoTz}s+ucY-vd{6raNM)}5stqF`v{CQaTVi@?R^Xu^)<%`)YDB!~W*li)XyHon-;zIev)I0t_rX%xsLJU~K{n% + +
+
+ + + + +
+ +
+
+ +
+¥79.0 +
+
+
+ + \ No newline at end of file diff --git a/Yi.Vue3.x.Vant/src/view/shop/shopDetails.vue b/Yi.Vue3.x.Vant/src/view/shop/shopDetails.vue index f99b463c..563411a4 100644 --- a/Yi.Vue3.x.Vant/src/view/shop/shopDetails.vue +++ b/Yi.Vue3.x.Vant/src/view/shop/shopDetails.vue @@ -1,5 +1,44 @@ \ No newline at end of file + + + + + + + + + +> \ No newline at end of file diff --git a/Yi.Vue3.x.Vant/src/view/shop/shopIndex.vue b/Yi.Vue3.x.Vant/src/view/shop/shopIndex.vue index 5880c164..18cf4dcf 100644 --- a/Yi.Vue3.x.Vant/src/view/shop/shopIndex.vue +++ b/Yi.Vue3.x.Vant/src/view/shop/shopIndex.vue @@ -1,23 +1,68 @@ + \ No newline at end of file diff --git a/Yi.Vue3.x.Vant/src/view/shop/shopSearch.vue b/Yi.Vue3.x.Vant/src/view/shop/shopSearch.vue index 1bab92f2..0e478c53 100644 --- a/Yi.Vue3.x.Vant/src/view/shop/shopSearch.vue +++ b/Yi.Vue3.x.Vant/src/view/shop/shopSearch.vue @@ -1,14 +1,16 @@