From 58ad99274a3be55ae21956a7d8c6fda520757e6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=85=95=E4=B8=8B?= <484014559@qq.com>
Date: Wed, 18 Sep 2024 17:33:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E9=80=92=E6=A8=A1=E6=9D=BF=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/order/addressSelection.vue | 261 +++++++++++++++++++++
pages/order/confirm.vue | 211 ++++++++++-------
pages/order/detail.vue | 147 +++++++-----
pages/order/pickUpVerify.vue | 263 ++++++++++++++++++++++
pages/user/goods_details_store/index.vue | 275 +++++++++++++++++++++++
sheep/api/migration/third.js | 24 +-
sheep/api/trade/order.js | 10 +
static/images/writeOff.png | Bin 0 -> 2315 bytes
8 files changed, 1039 insertions(+), 152 deletions(-)
create mode 100644 pages/order/addressSelection.vue
create mode 100644 pages/order/pickUpVerify.vue
create mode 100644 pages/user/goods_details_store/index.vue
create mode 100644 static/images/writeOff.png
diff --git a/pages/order/addressSelection.vue b/pages/order/addressSelection.vue
new file mode 100644
index 0000000..2432d41
--- /dev/null
+++ b/pages/order/addressSelection.vue
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+ {{ state.addressInfo.name }}
+ {{ state.addressInfo.mobile }}
+
+
+ [默认]
+ {{ state.addressInfo.areaName }} {{ state.addressInfo.detailAddress }}
+
+
+
+ 设置收货地址
+
+
+
+
+
+
+
+
+
+
+ {{ state.pickUpInfo.name }}
+ {{ state.pickUpInfo.phone }}
+
+ {{ state.pickUpInfo.areaName }}{{ ', ' + state.pickUpInfo.detailAddress }}
+
+
+
+ 选择自提门店
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue
index 26b743a..4d8a4fd 100644
--- a/pages/order/confirm.vue
+++ b/pages/order/confirm.vue
@@ -1,35 +1,29 @@
-
-
-
-
-
-
-
-
+
+
订单备注
@@ -46,32 +40,64 @@
-
- 扣除积分
+ 积分抵扣
+ {{ state.pointStatus ? '剩余积分' : '当前积分' }}
- {{ state.orderInfo.score_amount }}
+
+ {{ state.pointStatus ? state.orderInfo.totalPoint - state.orderInfo.usePoint : (state.orderInfo.totalPoint || 0) }}
+
+
+
+
-
+
+
运费
-
+
+¥{{ fen2yuan(state.orderInfo.price.deliveryPrice) }}
+ 免运费
+
+
+
+
+ 联系人
+
+
+
+
+
+ 联系电话
+
+
优惠券
@@ -79,20 +105,20 @@
-¥{{ fen2yuan(state.orderInfo.price.couponPrice) }}
{{
- state.couponInfo.length > 0 ? state.couponInfo.length + ' 张可用' : '暂无可用优惠券'
+ state.couponInfo.length > 0 ? state.couponInfo.length + ' 张可用' : '暂无可用优惠券'
}}
活动优惠
@@ -104,8 +130,8 @@
会员优惠
@@ -120,23 +146,23 @@
共{{ state.orderInfo.items.reduce((acc, item) => acc + item.count, 0) }}件
合计:
- ¥{{ fen2yuan(state.orderInfo.price.payPrice) }}
+ ¥{{ fen2yuan(state.orderInfo.price.payPrice) }}
@@ -148,8 +174,8 @@
@@ -159,10 +185,10 @@
+
+
diff --git a/pages/user/goods_details_store/index.vue b/pages/user/goods_details_store/index.vue
new file mode 100644
index 0000000..07b6850
--- /dev/null
+++ b/pages/user/goods_details_store/index.vue
@@ -0,0 +1,275 @@
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+ {{ item.areaName }}{{ ', ' + item.detailAddress }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 距离{{ item.distance.toFixed(2) }}千米
+ 查看地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sheep/api/migration/third.js b/sheep/api/migration/third.js
index 5c811c1..4c749c9 100644
--- a/sheep/api/migration/third.js
+++ b/sheep/api/migration/third.js
@@ -4,18 +4,18 @@ export default {
// 微信相关
wechat: {
// 小程序订阅消息
- subscribeTemplate: (params) =>
- request({
- url: 'third/wechat/subscribeTemplate',
- method: 'GET',
- params: {
- platform: 'miniProgram',
- },
- custom: {
- showError: false,
- showLoading: false,
- },
- }),
+ // subscribeTemplate: (params) =>
+ // request({
+ // url: 'third/wechat/subscribeTemplate',
+ // method: 'GET',
+ // params: {
+ // platform: 'miniProgram',
+ // },
+ // custom: {
+ // showError: false,
+ // showLoading: false,
+ // },
+ // }),
// 获取微信小程序码
// TODO @puhui999:这个接口,挪到 /Users/yunai/Java/yudao-mall-uniapp/sheep/api/member/social.js
diff --git a/sheep/api/trade/order.js b/sheep/api/trade/order.js
index 4d57125..49661c7 100644
--- a/sheep/api/trade/order.js
+++ b/sheep/api/trade/order.js
@@ -1,4 +1,5 @@
import request from '@/sheep/request';
+import { isEmpty } from '@/sheep/helper/utils';
const OrderApi = {
// 计算订单信息
@@ -13,6 +14,15 @@ const OrderApi = {
if (!(data.addressId > 0)) {
delete data2.addressId;
}
+ if (!(data.pickUpStoreId > 0)) {
+ delete data2.pickUpStoreId;
+ }
+ if (isEmpty(data.receiverName)) {
+ delete data2.receiverName;
+ }
+ if (isEmpty(data.receiverMobile)) {
+ delete data2.receiverMobile;
+ }
if (!(data.combinationActivityId > 0)) {
delete data2.combinationActivityId;
}
diff --git a/static/images/writeOff.png b/static/images/writeOff.png
new file mode 100644
index 0000000000000000000000000000000000000000..68749d8bae1165c970e40afbcf88a4a4271984f3
GIT binary patch
literal 2315
zcmYjTc{mgPA0J(EEtM#9JzdVZ6S9!VmXU_AFUoyqEN3Yq3pqE(M!qs?Q`Mh2qj3wMui2oEn000m&yJlh38Wl+qyWWy3kCI?6Abu|Tc&b?+fQKh
zeeGmq&)mwt2PA4@^i}kL{MNij`Cfi5de*G5IvCWkasL59BV9}*k9qB4>uAW&1=n-w
z8}w#!@`K5|X6WPNR!eIC48IoWy9hq+77b53verXn#3oOe6qy-0L3*o_Zp-9(rFY&FZ^3Vxnz3dy#(zmyT>MhnN$VE
z*j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