diff --git a/package-lock.json b/package-lock.json index bb6cb28..c2187ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2403,16 +2403,6 @@ "integrity": "sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==", "dev": true }, - "@types/mini-css-extract-plugin": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/@types/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.1.tgz", - "integrity": "sha512-+mN04Oszdz9tGjUP/c1ReVwJXxSniLd7lF++sv+8dkABxVNthg6uccei+4ssKxRHGoMmPxdn7uBdJWONSJGTGQ==", - "dev": true, - "optional": true, - "requires": { - "@types/webpack": "*" - } - }, "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", @@ -2788,21 +2778,6 @@ "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-2.0.0.tgz", "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", "dev": true - }, - "vue-loader-v16": { - "version": "npm:vue-loader@16.0.0-beta.5", - "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.5.tgz", - "integrity": "sha512-ciWfzNefqWlmzKznCWY9hl+fPP4KlQ0A9MtHbJ/8DpyY+dAM8gDrjufIdxwTgC4szE4EZC3A6ip/BbrqM84GqA==", - "dev": true, - "optional": true, - "requires": { - "@types/mini-css-extract-plugin": "^0.9.1", - "chalk": "^3.0.0", - "hash-sum": "^2.0.0", - "loader-utils": "^1.2.3", - "merge-source-map": "^1.1.0", - "source-map": "^0.6.1" - } } } }, @@ -14096,6 +14071,50 @@ "vue-style-loader": "^4.1.0" } }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.1.2", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz", + "integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + }, + "dependencies": { + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "hash-sum": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-2.0.0.tgz", + "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", + "dev": true, + "optional": true + }, + "loader-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + } + } + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz", diff --git a/src/pages.json b/src/pages.json index 66ca532..11a8e1d 100644 --- a/src/pages.json +++ b/src/pages.json @@ -262,7 +262,30 @@ } } ] - } + }, + { + "root": "subpackage/retail", + "pages": [ + { + "path": "pages/index/index", + "style" : { + "navigationBarTitleText": "商品零售" + } + }, + { + "path": "pages/confirm_goods/confirm_goods", + "style" : { + "navigationBarTitleText": "确定商品" + } + }, + { + "path": "pages/search/search", + "style" : { + "navigationBarTitleText": "搜索" + } + } + ] + } ], "globalStyle": { "navigationBarTextStyle": "white", diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index b5cb39d..77e4276 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -133,6 +133,12 @@ path: '/subpackage/device/pages/index/index', serverKey: 1010 // 后端对应权限编号 }, + { + id: 10, + name: '商品零售', + path: '/subpackage/retail/pages/index/index', + serverKey: 1010 // 后端对应权限编号 + } ]; const app = getApp(); diff --git a/src/static/images/icon/index/tab_10.png b/src/static/images/icon/index/tab_10.png new file mode 100644 index 0000000..a48dc60 Binary files /dev/null and b/src/static/images/icon/index/tab_10.png differ diff --git a/src/static/images/icon/retail/add.png b/src/static/images/icon/retail/add.png new file mode 100644 index 0000000..c5b462d Binary files /dev/null and b/src/static/images/icon/retail/add.png differ diff --git a/src/static/images/icon/retail/back.png b/src/static/images/icon/retail/back.png new file mode 100644 index 0000000..ecdd14d Binary files /dev/null and b/src/static/images/icon/retail/back.png differ diff --git a/src/static/images/icon/retail/cart.png b/src/static/images/icon/retail/cart.png new file mode 100644 index 0000000..8427cfe Binary files /dev/null and b/src/static/images/icon/retail/cart.png differ diff --git a/src/static/images/icon/retail/dropDown.png b/src/static/images/icon/retail/dropDown.png new file mode 100644 index 0000000..c736fc9 Binary files /dev/null and b/src/static/images/icon/retail/dropDown.png differ diff --git a/src/static/images/icon/retail/historySearchDelete.png b/src/static/images/icon/retail/historySearchDelete.png new file mode 100644 index 0000000..b358e0b Binary files /dev/null and b/src/static/images/icon/retail/historySearchDelete.png differ diff --git a/src/static/images/icon/retail/home.png b/src/static/images/icon/retail/home.png new file mode 100644 index 0000000..d627dd1 Binary files /dev/null and b/src/static/images/icon/retail/home.png differ diff --git a/src/static/images/icon/retail/search.png b/src/static/images/icon/retail/search.png new file mode 100644 index 0000000..8d03fca Binary files /dev/null and b/src/static/images/icon/retail/search.png differ diff --git a/src/static/images/icon/retail/searchClear.png b/src/static/images/icon/retail/searchClear.png new file mode 100644 index 0000000..4c9dbe0 Binary files /dev/null and b/src/static/images/icon/retail/searchClear.png differ diff --git a/src/static/images/icon/retail/sub.png b/src/static/images/icon/retail/sub.png new file mode 100644 index 0000000..66784d2 Binary files /dev/null and b/src/static/images/icon/retail/sub.png differ diff --git a/src/subpackage/retail/components/hover_cart_list/hover_cart_list.vue b/src/subpackage/retail/components/hover_cart_list/hover_cart_list.vue new file mode 100644 index 0000000..9246591 --- /dev/null +++ b/src/subpackage/retail/components/hover_cart_list/hover_cart_list.vue @@ -0,0 +1,236 @@ + + + + + diff --git a/src/subpackage/retail/js/retail_api.js b/src/subpackage/retail/js/retail_api.js new file mode 100644 index 0000000..b672450 --- /dev/null +++ b/src/subpackage/retail/js/retail_api.js @@ -0,0 +1,7 @@ +import { ORIGIN } from '../../../js/api'; + +export const RETAIL_API = { + stadiumList:`${ORIGIN}/stadium/list`, // 店铺列表 +} + +export default RETAIL_API; \ No newline at end of file diff --git a/src/subpackage/retail/js/retail_server.js b/src/subpackage/retail/js/retail_server.js new file mode 100644 index 0000000..9e01c73 --- /dev/null +++ b/src/subpackage/retail/js/retail_server.js @@ -0,0 +1,10 @@ +import { Server } from '../../../js/server'; + +class RetailServer extends Server { + constructor(props){ + super(props) + } +} + + +export default new RetailServer(); \ No newline at end of file diff --git a/src/subpackage/retail/js/tools.js b/src/subpackage/retail/js/tools.js new file mode 100644 index 0000000..c3c668a --- /dev/null +++ b/src/subpackage/retail/js/tools.js @@ -0,0 +1,20 @@ + +export const tools = { + // px转rpx + px2rpx: function(px) { + return (px / (uni.upx2px(px) / px)); + }, + + // 获取新的数据对象 + getNewObj: function(old) { + let newObj = {}; + + for (let key in old) { + newObj[key] = old[key]; + } + + return newObj; + }, +} + +export default tools; \ No newline at end of file diff --git a/src/subpackage/retail/pages/confirm_goods/confirm_goods.vue b/src/subpackage/retail/pages/confirm_goods/confirm_goods.vue new file mode 100644 index 0000000..6cbe706 --- /dev/null +++ b/src/subpackage/retail/pages/confirm_goods/confirm_goods.vue @@ -0,0 +1,447 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/retail/pages/index/index.vue b/src/subpackage/retail/pages/index/index.vue new file mode 100644 index 0000000..a91a950 --- /dev/null +++ b/src/subpackage/retail/pages/index/index.vue @@ -0,0 +1,901 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/retail/pages/search/search.vue b/src/subpackage/retail/pages/search/search.vue new file mode 100644 index 0000000..f5df25e --- /dev/null +++ b/src/subpackage/retail/pages/search/search.vue @@ -0,0 +1,239 @@ + + + + + diff --git a/src/subpackage/retail/static/images/add.png b/src/subpackage/retail/static/images/add.png new file mode 100644 index 0000000..c5b462d Binary files /dev/null and b/src/subpackage/retail/static/images/add.png differ diff --git a/src/subpackage/retail/static/images/back.png b/src/subpackage/retail/static/images/back.png new file mode 100644 index 0000000..ecdd14d Binary files /dev/null and b/src/subpackage/retail/static/images/back.png differ diff --git a/src/subpackage/retail/static/images/cart.png b/src/subpackage/retail/static/images/cart.png new file mode 100644 index 0000000..8427cfe Binary files /dev/null and b/src/subpackage/retail/static/images/cart.png differ diff --git a/src/subpackage/retail/static/images/dropDown.png b/src/subpackage/retail/static/images/dropDown.png new file mode 100644 index 0000000..c736fc9 Binary files /dev/null and b/src/subpackage/retail/static/images/dropDown.png differ diff --git a/src/subpackage/retail/static/images/historySearchDelete.png b/src/subpackage/retail/static/images/historySearchDelete.png new file mode 100644 index 0000000..b358e0b Binary files /dev/null and b/src/subpackage/retail/static/images/historySearchDelete.png differ diff --git a/src/subpackage/retail/static/images/home.png b/src/subpackage/retail/static/images/home.png new file mode 100644 index 0000000..d627dd1 Binary files /dev/null and b/src/subpackage/retail/static/images/home.png differ diff --git a/src/subpackage/retail/static/images/search.png b/src/subpackage/retail/static/images/search.png new file mode 100644 index 0000000..8d03fca Binary files /dev/null and b/src/subpackage/retail/static/images/search.png differ diff --git a/src/subpackage/retail/static/images/searchClear.png b/src/subpackage/retail/static/images/searchClear.png new file mode 100644 index 0000000..4c9dbe0 Binary files /dev/null and b/src/subpackage/retail/static/images/searchClear.png differ