From adf9e9db53556b7c2650a8e6725c0d6da293dffa Mon Sep 17 00:00:00 2001
From: xingqq
Date: Thu, 18 Jul 2024 15:38:33 +0800
Subject: [PATCH] =?UTF-8?q?'=E8=87=AA=E6=8F=90=20'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yudao-mall-uniapp-master/manifest.json | 457 +++++++++---------
yudao-mall-uniapp-master/pages.json | 12 +
.../pages/order/confirm.vue | 56 ++-
.../pages/order/detail.vue | 26 +-
.../pages/user/address/listt.vue | 91 ++++
.../sheep/api/member/address.js | 14 +
.../sheep/api/trade/order.js | 10 +
7 files changed, 436 insertions(+), 230 deletions(-)
create mode 100644 yudao-mall-uniapp-master/pages/user/address/listt.vue
diff --git a/yudao-mall-uniapp-master/manifest.json b/yudao-mall-uniapp-master/manifest.json
index 7818b33..abb3b87 100644
--- a/yudao-mall-uniapp-master/manifest.json
+++ b/yudao-mall-uniapp-master/manifest.json
@@ -1,222 +1,239 @@
{
- "name": "芋道商城",
- "appid": "__UNI__460BC4C",
- "description": "基于 uni-app + Vue3 技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。",
- "versionName": "2.1.0",
- "versionCode": 183,
- "transformPx": false,
- "app-plus": {
- "usingComponents": true,
- "nvueCompiler": "uni-app",
- "nvueStyleCompiler": "uni-app",
- "compilerVersion": 3,
- "nvueLaunchMode": "fast",
- "splashscreen": {
- "alwaysShowBeforeRender": true,
- "waiting": true,
- "autoclose": true,
- "delay": 0
- },
- "safearea": {
- "bottom": {
- "offset": "none"
- }
- },
- "modules": {
- "Payment": {},
- "Share": {},
- "VideoPlayer": {},
- "OAuth": {}
- },
- "distribute": {
- "android": {
- "permissions": [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ],
- "minSdkVersion": 21,
- "schemes": "shopro"
- },
- "ios": {
- "urlschemewhitelist": ["baidumap", "iosamap"],
- "dSYMs": false,
- "privacyDescription": {
- "NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目",
- "NSPhotoLibraryAddUsageDescription": "需要同意访问您的相册才能保存该图片",
- "NSCameraUsageDescription": "需要同意访问您的摄像头拍摄照片才能完善该条目",
- "NSUserTrackingUsageDescription": "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
- },
- "urltypes": "shopro",
- "capabilities": {
- "entitlements": {
- "com.apple.developer.associated-domains": ["applinks:shopro.sheepjs.com"]
- }
- },
- "idfa": true
- },
- "sdkConfigs": {
- "speech": {
- "ifly": {}
- },
- "ad": {},
- "oauth": {
- "apple": {},
- "weixin": {
- "appid": "wxae7a0c156da9383b",
- "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
- }
- },
- "payment": {
- "weixin": {
- "__platform__": ["ios", "android"],
- "appid": "wxae7a0c156da9383b",
- "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
- },
- "alipay": {
- "__platform__": ["ios", "android"]
- }
- },
- "share": {
- "weixin": {
- "appid": "wxae7a0c156da9383b",
- "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
- }
- }
- },
- "orientation": ["portrait-primary"],
- "splashscreen": {
- "androidStyle": "common",
- "iosStyle": "common",
- "useOriginalMsgbox": true
- },
- "icons": {
- "android": {
- "hdpi": "unpackage/res/icons/72x72.png",
- "xhdpi": "unpackage/res/icons/96x96.png",
- "xxhdpi": "unpackage/res/icons/144x144.png",
- "xxxhdpi": "unpackage/res/icons/192x192.png"
- },
- "ios": {
- "appstore": "unpackage/res/icons/1024x1024.png",
- "ipad": {
- "app": "unpackage/res/icons/76x76.png",
- "app@2x": "unpackage/res/icons/152x152.png",
- "notification": "unpackage/res/icons/20x20.png",
- "notification@2x": "unpackage/res/icons/40x40.png",
- "proapp@2x": "unpackage/res/icons/167x167.png",
- "settings": "unpackage/res/icons/29x29.png",
- "settings@2x": "unpackage/res/icons/58x58.png",
- "spotlight": "unpackage/res/icons/40x40.png",
- "spotlight@2x": "unpackage/res/icons/80x80.png"
- },
- "iphone": {
- "app@2x": "unpackage/res/icons/120x120.png",
- "app@3x": "unpackage/res/icons/180x180.png",
- "notification@2x": "unpackage/res/icons/40x40.png",
- "notification@3x": "unpackage/res/icons/60x60.png",
- "settings@2x": "unpackage/res/icons/58x58.png",
- "settings@3x": "unpackage/res/icons/87x87.png",
- "spotlight@2x": "unpackage/res/icons/80x80.png",
- "spotlight@3x": "unpackage/res/icons/120x120.png"
- }
- }
- }
- }
- },
- "quickapp": {},
- "quickapp-native": {
- "icon": "/static/logo.png",
- "package": "com.example.demo",
- "features": [{
- "name": "system.clipboard"
- }]
- },
- "quickapp-webview": {
- "icon": "/static/logo.png",
- "package": "com.example.demo",
- "minPlatformVersion": 1070,
- "versionName": "1.0.0",
- "versionCode": 100
- },
- "mp-weixin": {
- "appid": "wx53b5ac263b9cdb5b",
- "setting": {
- "urlCheck": false,
- "minified": true,
- "postcss": true
- },
- "optimization": {
- "subPackages": true
- },
- "plugins": {},
- "lazyCodeLoading": "requiredComponents",
- "usingComponents": {},
- "permission": {},
- "requiredPrivateInfos": ["chooseAddress"]
- },
- "mp-alipay": {
- "usingComponents": true
- },
- "mp-baidu": {
- "usingComponents": true
- },
- "mp-toutiao": {
- "usingComponents": true
- },
- "mp-jd": {
- "usingComponents": true
- },
- "h5": {
- "template": "index.html",
- "router": {
- "mode": "hash",
- "base": "./"
- },
- "sdkConfigs": {
- "maps": {}
- },
- "async": {
- "timeout": 20000
- },
- "title": "芋道商城",
- "optimization": {
- "treeShaking": {
- "enable": true
- }
- }
- },
- "vueVersion": "3",
- "_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639",
- "locale": "zh-Hans",
- "fallbackLocale": "zh-Hans"
+ "name": "芋道商城",
+ "appid": "__UNI__460BC4C",
+ "description": "基于 uni-app + Vue3 技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。",
+ "versionName": "2.1.0",
+ "versionCode": 183,
+ "transformPx": false,
+ "app-plus": {
+ "usingComponents": true,
+ "nvueCompiler": "uni-app",
+ "nvueStyleCompiler": "uni-app",
+ "compilerVersion": 3,
+ "nvueLaunchMode": "fast",
+ "splashscreen": {
+ "alwaysShowBeforeRender": true,
+ "waiting": true,
+ "autoclose": true,
+ "delay": 0
+ },
+ "safearea": {
+ "bottom": {
+ "offset": "none"
+ }
+ },
+ "modules": {
+ "Payment": {},
+ "Share": {},
+ "VideoPlayer": {},
+ "OAuth": {}
+ },
+ "distribute": {
+ "android": {
+ "permissions": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ],
+ "minSdkVersion": 21,
+ "schemes": "shopro"
+ },
+ "ios": {
+ "urlschemewhitelist": [
+ "baidumap",
+ "iosamap"
+ ],
+ "dSYMs": false,
+ "privacyDescription": {
+ "NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目",
+ "NSPhotoLibraryAddUsageDescription": "需要同意访问您的相册才能保存该图片",
+ "NSCameraUsageDescription": "需要同意访问您的摄像头拍摄照片才能完善该条目",
+ "NSUserTrackingUsageDescription": "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
+ },
+ "urltypes": "shopro",
+ "capabilities": {
+ "entitlements": {
+ "com.apple.developer.associated-domains": [
+ "applinks:shopro.sheepjs.com"
+ ]
+ }
+ },
+ "idfa": true
+ },
+ "sdkConfigs": {
+ "speech": {
+ "ifly": {}
+ },
+ "ad": {},
+ "oauth": {
+ "apple": {},
+ "weixin": {
+ "appid": "wxae7a0c156da9383b",
+ "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
+ }
+ },
+ "payment": {
+ "weixin": {
+ "__platform__": [
+ "ios",
+ "android"
+ ],
+ "appid": "wxae7a0c156da9383b",
+ "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
+ },
+ "alipay": {
+ "__platform__": [
+ "ios",
+ "android"
+ ]
+ }
+ },
+ "share": {
+ "weixin": {
+ "appid": "wxae7a0c156da9383b",
+ "UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
+ }
+ }
+ },
+ "orientation": [
+ "portrait-primary"
+ ],
+ "splashscreen": {
+ "androidStyle": "common",
+ "iosStyle": "common",
+ "useOriginalMsgbox": true
+ },
+ "icons": {
+ "android": {
+ "hdpi": "unpackage/res/icons/72x72.png",
+ "xhdpi": "unpackage/res/icons/96x96.png",
+ "xxhdpi": "unpackage/res/icons/144x144.png",
+ "xxxhdpi": "unpackage/res/icons/192x192.png"
+ },
+ "ios": {
+ "appstore": "unpackage/res/icons/1024x1024.png",
+ "ipad": {
+ "app": "unpackage/res/icons/76x76.png",
+ "app@2x": "unpackage/res/icons/152x152.png",
+ "notification": "unpackage/res/icons/20x20.png",
+ "notification@2x": "unpackage/res/icons/40x40.png",
+ "proapp@2x": "unpackage/res/icons/167x167.png",
+ "settings": "unpackage/res/icons/29x29.png",
+ "settings@2x": "unpackage/res/icons/58x58.png",
+ "spotlight": "unpackage/res/icons/40x40.png",
+ "spotlight@2x": "unpackage/res/icons/80x80.png"
+ },
+ "iphone": {
+ "app@2x": "unpackage/res/icons/120x120.png",
+ "app@3x": "unpackage/res/icons/180x180.png",
+ "notification@2x": "unpackage/res/icons/40x40.png",
+ "notification@3x": "unpackage/res/icons/60x60.png",
+ "settings@2x": "unpackage/res/icons/58x58.png",
+ "settings@3x": "unpackage/res/icons/87x87.png",
+ "spotlight@2x": "unpackage/res/icons/80x80.png",
+ "spotlight@3x": "unpackage/res/icons/120x120.png"
+ }
+ }
+ }
+ }
+ },
+ "quickapp": {},
+ "quickapp-native": {
+ "icon": "/static/logo.png",
+ "package": "com.example.demo",
+ "features": [
+ {
+ "name": "system.clipboard"
+ }
+ ]
+ },
+ "quickapp-webview": {
+ "icon": "/static/logo.png",
+ "package": "com.example.demo",
+ "minPlatformVersion": 1070,
+ "versionName": "1.0.0",
+ "versionCode": 100
+ },
+ "mp-weixin": {
+ "appid": "wx53b5ac263b9cdb5b",
+ "setting": {
+ "urlCheck": false,
+ "minified": true,
+ "postcss": true
+ },
+ "optimization": {
+ "subPackages": true
+ },
+ "plugins": {},
+ "lazyCodeLoading": "requiredComponents",
+ "usingComponents": {},
+ "permission": {},
+ "requiredPrivateInfos": [
+ "chooseAddress"
+ ]
+ },
+ "mp-alipay": {
+ "usingComponents": true
+ },
+ "mp-baidu": {
+ "usingComponents": true
+ },
+ "mp-toutiao": {
+ "usingComponents": true
+ },
+ "mp-jd": {
+ "usingComponents": true
+ },
+ "h5": {
+ "template": "index.html",
+ "router": {
+ "mode": "hash",
+ "base": "./"
+ },
+ "sdkConfigs": {
+ "maps": {}
+ },
+ "async": {
+ "timeout": 20000
+ },
+ "title": "芋道商城",
+ "optimization": {
+ "treeShaking": {
+ "enable": true
+ }
+ }
+ },
+ "vueVersion": "3",
+ "_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639",
+ "locale": "zh-Hans",
+ "fallbackLocale": "zh-Hans"
}
\ No newline at end of file
diff --git a/yudao-mall-uniapp-master/pages.json b/yudao-mall-uniapp-master/pages.json
index 1e14b74..e712b3d 100644
--- a/yudao-mall-uniapp-master/pages.json
+++ b/yudao-mall-uniapp-master/pages.json
@@ -297,6 +297,18 @@
"group": "用户中心"
}
},
+ {
+ "path": "address/listt",
+ "style": {
+ "navigationBarTitleText": "收货地址"
+ },
+ "meta": {
+ "auth": true,
+ "sync": true,
+ "title": "地址管理",
+ "group": "用户中心"
+ }
+ },
{
"path": "address/edit",
"style": {
diff --git a/yudao-mall-uniapp-master/pages/order/confirm.vue b/yudao-mall-uniapp-master/pages/order/confirm.vue
index 69e7f4d..908cc97 100644
--- a/yudao-mall-uniapp-master/pages/order/confirm.vue
+++ b/yudao-mall-uniapp-master/pages/order/confirm.vue
@@ -1,14 +1,27 @@
-
+
+ 配送方式:是否自提
+
+
+
-
+
+
+ 门店信息
+ {{state.pickUpInfo.detailAddress}}
+ {{state.pickUpInfo.areaName}}
+
+
+
+
+
{
+ changeConsignee1(e.pickUpInfo);
+ });
+ sheep.$router.go('/pages/user/address/listt');
+ }
+ function changeConsignee1(pickUpInfo = {}) {
+ if (!isEmpty(pickUpInfo)) {
+ state.pickUpInfo = pickUpInfo;
+ }
+ }
+ ///////////////////////
function onSelectAddress() {
uni.$once('SELECT_ADDRESS', (e) => {
changeConsignee(e.addressInfo);
});
sheep.$router.go('/pages/user/address/list');
}
-
// 更改收货人地址&计算订单信息
async function changeConsignee(addressInfo = {}) {
if (!isEmpty(addressInfo)) {
@@ -210,14 +236,22 @@
}
submitOrder();
}
-
+ //是否自提
+ const switch1Change = ()=>{
+ if(state.deliType == 1){
+ state.deliType = 2
+ }else{
+ state.deliType = 1
+ }
+ }
// 创建订单&跳转
async function submitOrder() {
const { code, data } = await OrderApi.createOrder({
items: state.orderPayload.items,
couponId: state.orderPayload.couponId,
- addressId: state.addressInfo.id,
- deliveryType: 1, // TODO 芋艿:需要支持【门店自提】
+ addressId: state.deliType === 1 ? state.addressInfo.id: null,
+ pickUpStoreId:state.deliType === 2 ? state.pickUpInfo.id : null,
+ deliveryType: state.deliType, // TODO 芋艿:需要支持【门店自提】
pointStatus: false, // TODO 芋艿:需要支持【积分选择】
combinationActivityId: state.orderPayload.combinationActivityId,
combinationHeadId: state.orderPayload.combinationHeadId,
@@ -253,7 +287,7 @@
return;
}
state.orderInfo = data;
- // 设置收货地址
+ // 设置收货地址
if (state.orderInfo.address) {
state.addressInfo = state.orderInfo.address;
}
@@ -284,6 +318,14 @@
\ No newline at end of file
diff --git a/yudao-mall-uniapp-master/sheep/api/member/address.js b/yudao-mall-uniapp-master/sheep/api/member/address.js
index d0c16ce..6369ceb 100644
--- a/yudao-mall-uniapp-master/sheep/api/member/address.js
+++ b/yudao-mall-uniapp-master/sheep/api/member/address.js
@@ -8,6 +8,20 @@ const AddressApi = {
method: 'GET'
});
},
+ //获取门店信息
+ pickUpList: () => {
+ return request({
+ url: '/trade/delivery/pick-up-store/list',
+ method: 'GET'
+ });
+ },
+ pickUpInfo: (id) => {
+ return request({
+ url: `/trade/delivery/pick-up-store/get`,
+ method: 'GET',
+ params: { id }
+ });
+ },
// 创建用户收件地址
createAddress: (data) => {
return request({
diff --git a/yudao-mall-uniapp-master/sheep/api/trade/order.js b/yudao-mall-uniapp-master/sheep/api/trade/order.js
index 4d57125..7d0a342 100644
--- a/yudao-mall-uniapp-master/sheep/api/trade/order.js
+++ b/yudao-mall-uniapp-master/sheep/api/trade/order.js
@@ -51,6 +51,16 @@ const OrderApi = {
data,
});
},
+ //获取门店信息
+ getPinkUp: (id) => {
+ return request({
+ url: `/trade/delivery/pick-up-store/get`,
+ method: 'GET',
+ params: {
+ id,
+ },
+ });
+ },
// 获得订单
getOrder: (id) => {
return request({