From 2a10a0dcecf55a2cbc23fcfacec372ca6c780ab9 Mon Sep 17 00:00:00 2001 From: zhangmanman <994797151@qq.com> Date: Thu, 16 Sep 2021 17:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=91=98=E5=B7=A5=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8F=B0=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/employees.js | 10 +- apis/interfaces/goods.js | 39 +- components/store-staff/store-staff.vue | 163 +- pages.json | 23 +- pages/goods/attestation.vue | 186 + pages/goods/chain.vue | 117 + pages/goods/details.vue | 55 +- pages/goods/tracedTo.vue | 199 + pages/property/index.vue | 5 + pages/store/index.vue | 14 +- pages/vip/index.vue | 48 +- .../dev/app-plus/__uniappchooselocation.js | 2 +- unpackage/dist/dev/app-plus/__uniapperror.png | Bin 5842 -> 0 bytes .../dist/dev/app-plus/app-config-service.js | 4 +- unpackage/dist/dev/app-plus/app-service.js | 6729 +++++++++++------ unpackage/dist/dev/app-plus/app-view.js | 6219 ++++++++++----- unpackage/dist/dev/app-plus/view.css | 2 +- unpackage/dist/dev/app-plus/view.umd.min.js | 4 +- 18 files changed, 9402 insertions(+), 4417 deletions(-) create mode 100644 pages/goods/attestation.vue create mode 100644 pages/goods/chain.vue create mode 100644 pages/goods/tracedTo.vue delete mode 100644 unpackage/dist/dev/app-plus/__uniapperror.png diff --git a/apis/interfaces/employees.js b/apis/interfaces/employees.js index 938e23a..f35fbc3 100644 --- a/apis/interfaces/employees.js +++ b/apis/interfaces/employees.js @@ -55,11 +55,19 @@ const employeesPut = (id, data) => { }) } +// 员工管理工具 手太欠 +const employeesTool = () => { + return request({ + url: 'companies/employees/permission' + }) +} + export { employees, employeesConfig, addEmployees, employeesInfo, employeesDelete, - employeesPut + employeesPut, + employeesTool } diff --git a/apis/interfaces/goods.js b/apis/interfaces/goods.js index 8ffb266..544e24c 100644 --- a/apis/interfaces/goods.js +++ b/apis/interfaces/goods.js @@ -100,8 +100,37 @@ const managesCreate = (data) => { url: 'manages/goods/create', data }) -} - +} + +// 区块链证书 +const managesChain = (id) => { + return request({ + url: 'mall/goods/'+ id + '/chain' + }) +} + +// 商品认证 +const managesAttestation = (id) => { + return request({ + url: 'mall/goods/'+ id +'/message' + }) +} + +// 商品溯源 +const managesTracedTo = (id) => { + return request({ + url: 'mall/goods/'+ id +'/trace' + }) +} + +// 领取优惠券 +const managesCoupons = (id) => { + return request({ + url: 'coupons/'+ id +'/grant', + method: 'POST' + }) +} + export { mall, list, @@ -114,5 +143,9 @@ export { managesGoodsCreateBefore, managesGoodsCreate, managesCategory, - managesCreate + managesCreate, + managesChain, + managesAttestation, + managesTracedTo, + managesCoupons } diff --git a/components/store-staff/store-staff.vue b/components/store-staff/store-staff.vue index 9f1a4b7..d9e3fc7 100644 --- a/components/store-staff/store-staff.vue +++ b/components/store-staff/store-staff.vue @@ -1,25 +1,61 @@ @@ -27,46 +63,12 @@ export default { name:"store-staff", props:{ - // 店铺统计 - top: { - type: Object, - default: ()=> { - return { - barter_total: 0, - trading_day : 0, - eb_in : 0, - cash_in : 0 - } - } - }, - // 店铺概况 - middle: { - type: Object, - default: ()=> { - return { - visitors : 0, - clinch : 0, - employees: 0, - sale : 0, - hold : 0, - transfer : 0 - } - } - }, - // 店铺订单 - order: { - type: Object, - default: ()=> { - return { - not_shipped : 0, - already_shipped : 0, - not_pick : 0, - already_pick : 0, - after_sale : 0 - } - } - } - } + // 员工数据 + toolList: {}, + }, + created() { + // console.log(this.$props.toolList) + } } @@ -76,7 +78,7 @@ .statistical{ display: flex; background: $text-price; - padding: $padding ($padding/2) $padding*5; + padding: $padding ($padding/2) $padding*2; flex-wrap: wrap; justify-content: space-between; .item{ @@ -95,15 +97,15 @@ } // 店铺概况 .general{ - margin: -$margin*4 $margin 0 $margin; + margin: -$margin*2 $margin 0 $margin; .general-box{ background-color: white; border-radius: $radius/2; display: flex; - padding: $padding $padding/2; + padding: $padding - 20 $padding/2; flex-wrap: wrap; .general-item{ - width: 33.33%; + width: 50%; text-align: center; padding: $padding/2; box-sizing: border-box; @@ -122,27 +124,34 @@ } // 店铺工具 .tool-flex{ - background: white; - border-radius: $radius/2; - padding: $padding/2; - margin: $margin; - display: flex; - flex-wrap: wrap; + margin: $margin*2 $margin $margin; .store-item{ - padding: $padding/2; - text-align: center; - width: 25%; + background: white; + border-radius: $radius/2; + padding: $padding/2; box-sizing: border-box; + margin-bottom: $margin; + display: flex; + position: relative; .icon{ - width: 68rpx; - height: 68rpx; + width: 54rpx; + height: 54rpx; + margin-right: $margin - 15; vertical-align: top; } .title{ - font-size: $title-size-sm; + line-height: 58rpx; + font-size: $title-size-m; color: $text-gray; - padding-top: $padding/3; } + .arrow { + width: 38rpx; + height: 38rpx; + filter: brightness(.9); + position: absolute; + right: $padding - 20; + top: $padding - 6; + } } .order-item{ position: relative; diff --git a/pages.json b/pages.json index 4b38ee6..d4246ec 100644 --- a/pages.json +++ b/pages.json @@ -246,7 +246,28 @@ "navigationBarTitleText": "发布权证", "navigationBarBackgroundColor": "#FFFFFF" } - }, { + },{ + "path": "pages/goods/chain", + "name": "GoodsChain", + "style": { + "navigationBarTitleText": "区块链证书", + "navigationBarBackgroundColor": "#FFFFFF" + } + },{ + "path": "pages/goods/attestation", + "name": "GoodsAttestation", + "style": { + "navigationBarTitleText": "商品认证", + "navigationBarBackgroundColor": "#FFFFFF" + } + },{ + "path": "pages/goods/tracedTo", + "name": "GoodstracedTo", + "style": { + "navigationBarTitleText": "商品溯源", + "navigationBarBackgroundColor": "#FFFFFF" + } + },{ "path": "pages/coupons/index", "name": "Coupons", "style": { diff --git a/pages/goods/attestation.vue b/pages/goods/attestation.vue new file mode 100644 index 0000000..c427093 --- /dev/null +++ b/pages/goods/attestation.vue @@ -0,0 +1,186 @@ + + + + + diff --git a/pages/goods/chain.vue b/pages/goods/chain.vue new file mode 100644 index 0000000..ae76393 --- /dev/null +++ b/pages/goods/chain.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/pages/goods/details.vue b/pages/goods/details.vue index 2b9969f..a465b69 100644 --- a/pages/goods/details.vue +++ b/pages/goods/details.vue @@ -45,15 +45,15 @@ 进店 - + 区块链证书 - + 商品认证 - + 商品溯源 @@ -129,7 +129,7 @@ {{item.time.interval}} - + 领取 @@ -166,7 +166,7 @@ + + \ No newline at end of file diff --git a/pages/property/index.vue b/pages/property/index.vue index eb5072c..f7dad07 100644 --- a/pages/property/index.vue +++ b/pages/property/index.vue @@ -144,6 +144,11 @@ 推广海报 + + + + 临时退出 + 易品新境 beta 1.0.0 diff --git a/pages/store/index.vue b/pages/store/index.vue index 5cc4d16..0f63f2c 100644 --- a/pages/store/index.vue +++ b/pages/store/index.vue @@ -40,7 +40,7 @@ - + @@ -60,6 +60,7 @@