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 0000000..68749d8
Binary files /dev/null and b/static/images/writeOff.png differ