diff --git a/.env b/.env index ef77492..473df22 100644 --- a/.env +++ b/.env @@ -18,11 +18,11 @@ VITE_OAUTH2_APP_CLIENT='mini:mini' # 是否开启websocket 消息接受, VITE_WEBSOCKET_ENABLE = true # --------------------------- start 开发环境 start ---------------------------------- -VITE_APP_DEV_SERVICE = https://www.zianxin.com/api -# VITE_APP_DEV_SERVICE = https://dzc-test-1.fy.takin.cc +# VITE_APP_DEV_SERVICE = https://www.zianxin.com/api +VITE_APP_DEV_SERVICE = https://dzc-test-1.fy.takin.cc -VITE_IMAGE_DEV_PATH = https://www.zianxin.com/api -# VITE_IMAGE_DEV_PATH = https://dzc-test-1.fy.takin.cc +# VITE_IMAGE_DEV_PATH = https://www.zianxin.com/api +VITE_IMAGE_DEV_PATH = https://dzc-test-1.fy.takin.cc # ----------------------------- end 开发环境 end ------------------------------------ # --------------------------- start 生产环境 start ---------------------------------- diff --git a/src/manifest.json b/src/manifest.json index 0b7af04..cbeb42a 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -23,7 +23,8 @@ "modules" : { "Push" : {}, "Payment" : {}, - "OAuth" : {} + "OAuth" : {}, + "Maps" : {} }, /* 应用发布信息 */ "distribute" : { @@ -109,6 +110,11 @@ "appid" : "wx9f2c53067b4520a4", "UniversalLinks" : "https://static-mp-5da4bdfd-05f7-4908-a555-711be4dd5835.next.bspapp.com/uni-universallinks/__UNI__1BFE88F/" } + }, + "maps" : { + "tencent" : { + "key" : "WOCBZ-2TFCI-CEOGX-UXQGP-YF7RO-QMB5Z" + } } }, "icons" : { @@ -176,6 +182,13 @@ "h5" : { "uniStatistics" : { "enable" : true + }, + "sdkConfigs" : { + "maps" : { + "tencent" : { + "key" : "WOCBZ-2TFCI-CEOGX-UXQGP-YF7RO-QMB5Z" + } + } } }, "uniStatistics" : { diff --git a/src/pages.json b/src/pages.json index 24a2b70..f43765b 100644 --- a/src/pages.json +++ b/src/pages.json @@ -51,6 +51,13 @@ "disableScroll": true } }, + { + "path": "pages/user/map-address/index", + "style": { + "navigationBarTitleText": "我的地址", + "disableScroll": true + } + }, { "path": "pages/tabbar/find", "style": { diff --git a/src/pages/user/map-address/components/map-address-tag.vue b/src/pages/user/map-address/components/map-address-tag.vue new file mode 100644 index 0000000..7a39fbe --- /dev/null +++ b/src/pages/user/map-address/components/map-address-tag.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/src/pages/user/map-address/index.vue b/src/pages/user/map-address/index.vue new file mode 100644 index 0000000..3d6c970 --- /dev/null +++ b/src/pages/user/map-address/index.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts index f9ea124..d0b294b 100644 --- a/src/sheep/api/index.ts +++ b/src/sheep/api/index.ts @@ -10,6 +10,7 @@ export { default as canteenDeliveryApi } from "./canteen-delivery" export { default as faceApi } from "./face" export { default as foodApi } from "./food" export { default as integralApi } from "./integral" +export { default as mapAddressApi } from "./map-address" export { default as merchantApi } from "./merchant" export { default as orderApi } from "./order" export { default as orderingFoodApi } from "./ordering-food" diff --git a/src/sheep/api/map-address.ts b/src/sheep/api/map-address.ts new file mode 100644 index 0000000..daa9fc7 --- /dev/null +++ b/src/sheep/api/map-address.ts @@ -0,0 +1,32 @@ +import request from "@/sheep/utils/request" + +export default { + // app分页查询 + getOrCreate: (params: any) => + request({ + url: "/hard/hard-user-map-address/app/page", + method: "GET", + params, + }), + // app新增地址 + create: (data: any) => + request({ + url: "/hard/hard-user-map-address/app/create", + method: "POST", + data, + }), + // app修改地址 + update: (data: any) => + request({ + url: "/hard/hard-user-map-address/app/edit", + method: "POST", + data, + }), + // app删除地址 + delete: (data: any) => + request({ + url: "/hard/hard-user-map-address/app/del", + method: "DELETE", + data, + }), +} diff --git a/src/sheep/components/crud/crud-layout/crud-layout.vue b/src/sheep/components/crud/crud-layout/crud-layout.vue index affda2a..62a35ee 100644 --- a/src/sheep/components/crud/crud-layout/crud-layout.vue +++ b/src/sheep/components/crud/crud-layout/crud-layout.vue @@ -104,10 +104,7 @@ function initBackStyle() {