From 50e03907e71cee9523c3c5a6ba975f1487a36746 Mon Sep 17 00:00:00 2001 From: Ankkaya Date: Wed, 5 Jun 2024 18:58:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 72 ++++++------ pages/index/product.vue | 2 +- pages/product/components/propertyDetail.vue | 78 +++++++++++++ pages/product/components/propertyList.vue | 58 ++++----- pages/product/js/sku.js | 71 ++++++++++- pages/product/manageGoods.vue | 110 +++++++++++++----- pages/product/sku.vue | 38 ++++-- peach/api/trade/goods.js | 23 +++- .../p-goods-column/p-goods-column.vue | 25 +++- peach/request/index.js | 2 +- peach/store/trade.js | 17 +++ 11 files changed, 380 insertions(+), 116 deletions(-) create mode 100644 pages/product/components/propertyDetail.vue create mode 100644 peach/store/trade.js diff --git a/manifest.json b/manifest.json index 590031b..e3e30b9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,28 +1,28 @@ { - "name": "mall-app-t", - "appid": "__UNI__B201544", - "description": "", - "versionName": "1.0.0", - "versionCode": "100", - "transformPx": false, + "name" : "mall-app-t", + "appid" : "__UNI__B201544", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 }, /* 模块配置 */ - "modules": {}, + "modules" : {}, /* 应用发布信息 */ - "distribute": { + "distribute" : { /* android打包配置 */ - "android": { - "permissions": [ + "android" : { + "permissions" : [ "", "", "", @@ -41,32 +41,32 @@ ] }, /* ios打包配置 */ - "ios": {}, + "ios" : {}, /* SDK配置 */ - "sdkConfigs": {} + "sdkConfigs" : {} } }, /* 快应用特有相关 */ - "quickapp": {}, + "quickapp" : {}, /* 小程序特有相关 */ - "mp-weixin": { - "appid": "", - "setting": { - "urlCheck": false + "mp-weixin" : { + "appid" : "wx64387dc8bba916ec", + "setting" : { + "urlCheck" : false }, - "usingComponents": true + "usingComponents" : true }, - "mp-alipay": { - "usingComponents": true + "mp-alipay" : { + "usingComponents" : true }, - "mp-baidu": { - "usingComponents": true + "mp-baidu" : { + "usingComponents" : true }, - "mp-toutiao": { - "usingComponents": true + "mp-toutiao" : { + "usingComponents" : true }, - "uniStatistics": { - "enable": false + "uniStatistics" : { + "enable" : false }, - "vueVersion": "3" + "vueVersion" : "3" } diff --git a/pages/index/product.vue b/pages/index/product.vue index ce1ec4b..bcb3ec8 100644 --- a/pages/index/product.vue +++ b/pages/index/product.vue @@ -15,7 +15,7 @@ :data="item" :topRadius="10" :bottomRadius="10" - @click="peach.$router.go('/pages/goods/index', { id: item.id })" + @click="peach.$router.go('/pages/product/manageGoods', { id: item.id, mark: 'detail' })" /> diff --git a/pages/product/components/propertyDetail.vue b/pages/product/components/propertyDetail.vue new file mode 100644 index 0000000..c3ec683 --- /dev/null +++ b/pages/product/components/propertyDetail.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/pages/product/components/propertyList.vue b/pages/product/components/propertyList.vue index a251eb7..65d9487 100644 --- a/pages/product/components/propertyList.vue +++ b/pages/product/components/propertyList.vue @@ -7,12 +7,12 @@ - {{ item.label }} + {{ item.name }} @@ -21,6 +21,7 @@ @@ -369,6 +406,25 @@ onLoad((options) => { text-align: right; } } + .btn-group { + height: 100%; + display: flex; + justify-content: flex-end; + align-items: center; + background-color: #f9f9f9; + border-radius: 0 10px 10px 0; + + .ss-set-property { + width: 80px; + height: 60rpx; + line-height: normal; + background: var(--ui-BG-Main); + border-radius: 28rpx; + font-size: 26rpx; + font-weight: 500; + color: #fff; + } + } } } diff --git a/pages/product/sku.vue b/pages/product/sku.vue index 3e01895..0d27af8 100644 --- a/pages/product/sku.vue +++ b/pages/product/sku.vue @@ -10,13 +10,7 @@ > - +