diff --git a/App.vue b/App.vue index e999e4a..043e271 100644 --- a/App.vue +++ b/App.vue @@ -17,14 +17,15 @@ export default { @import "tailwindcss/base"; @import "tailwindcss/utilities"; -* { +*, +page, +view, +text { box-sizing: border-box; margin: 0; padding: 0; } - - *::-webkit-scrollbar { height: 0px; width: 0px; @@ -53,11 +54,12 @@ export default { page { // min-height: calc(100vh - 44px); - min-height: calc(100vh); + min-height: calc(100dvh); background-color: rgb(247 248 250); box-sizing: border-box; display: flex; flex-direction: column; + padding-top: var(--status-bar-height); } .content { diff --git a/api/mall/goods.js b/api/mall/goods.js new file mode 100644 index 0000000..0797a2d --- /dev/null +++ b/api/mall/goods.js @@ -0,0 +1,68 @@ +import { + request +} from "@/utils/request"; + +export default { + list(data) { + return request({ + url: "/shop/shopGoods/goodsList", + method: "POST", + data, + }); + }, + + goodsEditAttribute(data) { + return request({ + url: "/shop/shopGoods/goodsEditAttribute", + method: "POST", + data, + }); + }, + + classify: { + list(data) { + return request({ + url: "/shop/shopClassify/list", + method: "POST", + data, + }); + }, + + createItem(data) { + return request({ + url: "/shop/shopClassify/createItem", + method: "POST", + data, + }); + }, + + }, + + freightRules(data) { + return request({ + url: "/shop/freightRules/list", + method: "POST", + data, + }); + }, + + goodsItem(data) { + return request({ + url: "/shop/shopGoods/goodsItem", + method: "POST", + data, + }); + }, + + goodsEdit(data) { + return request({ + url: "/shop/shopGoods/goodsEdit", + method: "POST", + data, + }); + }, + + + + +}; \ No newline at end of file diff --git a/api/mall/index.js b/api/mall/index.js new file mode 100644 index 0000000..290068f --- /dev/null +++ b/api/mall/index.js @@ -0,0 +1,50 @@ +import { + request +} from "@/utils/request"; + +export default { + dataCount: { + oneLine(data) { + return request({ + url: "/shop/dataCount/oneLine", + method: "POST", + data, + }); + }, + orderProfit(data) { + return request({ + url: "/shop/dataCount/orderProfit", + method: "POST", + data, + }); + }, + orderGood(data) { + return request({ + url: "/shop/dataCount/orderGood", + method: "POST", + data, + }); + }, + + }, + + getStoreSetting(data) { + return request({ + url: "/shop/store/getStoreSetting", + method: "POST", + data, + }) + }, + + setStoreSetting(data) { + return request({ + url: "/shop/store/setStoreSetting", + method: "POST", + data, + }) + } + + + + +}; \ No newline at end of file diff --git a/api/mall/order.js b/api/mall/order.js new file mode 100644 index 0000000..2db8022 --- /dev/null +++ b/api/mall/order.js @@ -0,0 +1,106 @@ +import { + request +} from "@/utils/request"; + +export default { + orderList(data) { + return request({ + url: "/shop/order/orderList", + method: "POST", + data, + }); + }, + + orderSend(data) { + return request({ + url: "/shop/order/orderSend", + method: "POST", + data, + }); + }, + + GetExpressList(data) { + return request({ + url: "/admin/order/GetExpressList", + method: "POST", + data, + }); + }, + + printOrder(data) { + return request({ + url: "/shop/order/printOrder", + method: "POST", + data, + }); + }, + + updateNotes(data) { + return request({ + url: "/shop/order/updateNotes", + method: "POST", + data, + }); + }, + + // 核销记录 + checkLog(data) { + return request({ + url: "/shop/shop/checkLog", + method: "POST", + data, + }); + }, + + confirmCancel(data) { + return request({ + url: "/shop/order/confirmCancel", + method: "POST", + data, + }); + }, + + after_sale: { + index(data) { + return request({ + url: "/shop/after_sale/index", + method: "POST", + data, + }); + }, + + + update(data) { + return request({ + url: "/shop/after_sale/update", + method: "POST", + data, + }); + }, + + show(data) { + return request({ + url: "/shop/after_sale/show", + method: "POST", + data, + }); + }, + + express(data) { + return request({ + url: "/client/common/express", + method: "POST", + data, + }); + }, + enums(data) { + return request({ + url: "/client/after_sale/enums", + method: "POST", + data, + }); + }, + + }, + +}; \ No newline at end of file diff --git a/api/mall/shop.js b/api/mall/shop.js new file mode 100644 index 0000000..cd040f2 --- /dev/null +++ b/api/mall/shop.js @@ -0,0 +1,41 @@ +import { + request +} from "@/utils/request"; + +export default { + + list(data) { + return request({ + url: "/shop/shop/List", + method: "POST", + data, + }) + }, + + edit(data) { + return request({ + url: "/shop/shop/edit", + method: "POST", + data, + }) + }, + + editStatus(data) { + return request({ + url: "/shop/shop/editStatus", + method: "POST", + data, + }) + }, + + synchronousGoods(data) { + return request({ + url: "/shop/shop/synchronousGoods", + method: "POST", + data, + }) + }, + + + +}; \ No newline at end of file diff --git a/api/mall/user.js b/api/mall/user.js new file mode 100644 index 0000000..0afaa74 --- /dev/null +++ b/api/mall/user.js @@ -0,0 +1,51 @@ +import { + request +} from "@/utils/request"; + +export default { + + userList(data) { + return request({ + url: "/shop/user/userList", + method: "GET", + data, + }) + }, + + userItem(data) { + return request({ + url: "/shop/user/userItem", + method: "GET", + data, + }) + }, + + + getLog(data) { + return request({ + url: "/shop/user/getLog", + method: "GET", + data, + }) + }, + + changeInformation(data) { + return request({ + url: "/shop/user/changeInformation", + method: "GET", + data, + }) + }, + + UpdateLevel(data) { + return request({ + url: "/shop/user/UpdateLevel", + method: "GET", + data, + }) + }, + + + + +}; \ No newline at end of file diff --git a/api/mall/userMembers.js b/api/mall/userMembers.js new file mode 100644 index 0000000..fef7a7f --- /dev/null +++ b/api/mall/userMembers.js @@ -0,0 +1,56 @@ +import { + request +} from "@/utils/request"; + +export default { + + LevelShow(data) { + return request({ + url: "/shop/UserMembers/LevelShow", + method: "GET", + data, + }) + }, + + LevelSave(data) { + return request({ + url: "/shop/UserMembers/LevelSave", + method: "GET", + data, + }) + }, + + SetList(data) { + return request({ + url: "/shop/UserMembers/SetList", + method: "GET", + data, + }) + }, + + SetSave(data) { + return request({ + url: "/shop/UserMembers/SetSave", + method: "GET", + data, + }) + }, + + DiscountList(data) { + return request({ + url: "/shop/UserMembers/DiscountList", + method: "GET", + data, + }) + }, + + CreateDiscount(data) { + return request({ + url: "/shop/UserMembers/CreateDiscount", + method: "POST", + data, + }) + }, + + +}; \ No newline at end of file diff --git a/api/store/order.js b/api/store/order.js index 0584f73..924ce93 100644 --- a/api/store/order.js +++ b/api/store/order.js @@ -43,6 +43,15 @@ export default { }); }, + // 核销记录 + checkLog(data) { + return request({ + url: "/admin/shop/checkLog", + method: "POST", + data, + }); + }, + confirmCancel(data) { return request({ url: "/admin/order/confirmCancel", @@ -92,8 +101,26 @@ export default { }); }, + }, + OrderInpersonPayment: { + orderList(data) { + return request({ + url: "/admin/OrderInpersonPayment/orderList", + method: "POST", + data, + }); + }, + + GetQrItem(data) { + return request({ + url: "/admin/OrderInpersonPayment/GetQrItem", + method: "POST", + data, + }); + }, } + }; \ No newline at end of file diff --git a/api/store/user.js b/api/store/user.js index 5b2b4a2..04e3bfa 100644 --- a/api/store/user.js +++ b/api/store/user.js @@ -37,6 +37,14 @@ export default { }) }, + UpdateLevel(data) { + return request({ + url: "/admin/user/UpdateLevel", + method: "GET", + data, + }) + }, + diff --git a/api/store/userMembers.js b/api/store/userMembers.js new file mode 100644 index 0000000..4177987 --- /dev/null +++ b/api/store/userMembers.js @@ -0,0 +1,56 @@ +import { + request +} from "@/utils/request"; + +export default { + + LevelShow(data) { + return request({ + url: "/admin/UserMembers/LevelShow", + method: "GET", + data, + }) + }, + + LevelSave(data) { + return request({ + url: "/admin/UserMembers/LevelSave", + method: "GET", + data, + }) + }, + + SetList(data) { + return request({ + url: "/admin/UserMembers/SetList", + method: "GET", + data, + }) + }, + + SetSave(data) { + return request({ + url: "/admin/UserMembers/SetSave", + method: "GET", + data, + }) + }, + + DiscountList(data) { + return request({ + url: "/admin/UserMembers/DiscountList", + method: "GET", + data, + }) + }, + + CreateDiscount(data) { + return request({ + url: "/admin/UserMembers/CreateDiscount", + method: "POST", + data, + }) + }, + + +}; \ No newline at end of file diff --git a/components/yGoods/index.vue b/components/yGoods/index.vue new file mode 100644 index 0000000..78086d6 --- /dev/null +++ b/components/yGoods/index.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/components/myList/index.vue b/components/yList/index.vue similarity index 97% rename from components/myList/index.vue rename to components/yList/index.vue index d1bd651..8be3820 100644 --- a/components/myList/index.vue +++ b/components/yList/index.vue @@ -1,5 +1,5 @@