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 @@
+
+
+
+ {{ v }}
+
+
+
+
+
+
+
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() {
-
+
外送通知
@@ -129,7 +126,8 @@ function initBackStyle() {
@@ -137,7 +135,8 @@ function initBackStyle() {
-
+
@@ -204,8 +199,7 @@ page {
flex-direction: column;
z-index: 99;
- &_top {
- }
+ &_top {}
scroll-view {
flex: 1;
@@ -223,8 +217,7 @@ page {
}
}
- &_foot {
- }
+ &_foot {}
}
.rider-push-wrap {
@@ -242,6 +235,7 @@ page {
opacity: 0;
transform: translateY(-24rpx);
}
+
to {
opacity: 1;
transform: translateY(0);
diff --git a/src/sheep/constant/service-enum.ts b/src/sheep/constant/service-enum.ts
index 5c8dc5a..26cd557 100644
--- a/src/sheep/constant/service-enum.ts
+++ b/src/sheep/constant/service-enum.ts
@@ -80,6 +80,13 @@ const appPlusPlatformTypeEnum = {
"20": "支付宝",
}
+const mapAddressTag = {
+ "10": "家",
+ "20": "公司",
+ "30": "学校",
+ "40": "父母家",
+}
+
export default {
hardwareOrderStatusEnum,
hardwareOrderTypeEnum,
@@ -93,4 +100,5 @@ export default {
thirdPayOrderStatusEnum,
thirdPayOrderBizTypeEnum,
appPlusPlatformTypeEnum,
+ mapAddressTag,
}
diff --git a/unocss.config.ts b/unocss.config.ts
index 599300b..edec10a 100644
--- a/unocss.config.ts
+++ b/unocss.config.ts
@@ -30,6 +30,9 @@ export default {
yellow: {
DEFAULT: "#F2A817",
},
+ gray: {
+ DEFAULT: "#eaeaea",
+ },
},
},
rules: [