diff --git a/api/model/order.js b/api/model/order.js
index ef66884..f1362ac 100644
--- a/api/model/order.js
+++ b/api/model/order.js
@@ -3,6 +3,12 @@
// 商城接口
const api = {
+ // 商品-获取各项提示费用
+ getOrderPrice : {
+ url : '/order/getPrice',
+ method : 'GET',
+ limit : 500,
+ },
// 商城-立即兑换商品
createPointsOrder : {
@@ -21,6 +27,14 @@ const api = {
showLoading : true,
limit : 1000,
},
+ // 商城-立即兑换商品,微信支付购买商品
+ createSumOrder : {
+ url: '/order/createSumOrder',
+ method: 'POST',
+ auth : true,
+ showLoading : true,
+ limit : 1000,
+ },
// 商城-订单列表
getOrderList : {
diff --git a/config.js b/config.js
index 5a305c9..3379f1a 100644
--- a/config.js
+++ b/config.js
@@ -21,6 +21,7 @@ const config = {
}
+
// 默认配置
const defaultConfig = {
mapKey : 'JYTBZ-DOY3Q-UCM5O-4FWQR-LCI7S-ZIBD3',//已修改
diff --git a/pages_order/components/list/gourmet/productSelectList.vue b/pages_order/components/list/gourmet/productSelectList.vue
index dcc0a6d..6c60a13 100644
--- a/pages_order/components/list/gourmet/productSelectList.vue
+++ b/pages_order/components/list/gourmet/productSelectList.vue
@@ -39,28 +39,153 @@
-
+
+
+
+
+
+ {{ checkboxValue.length }}
+
+
+
+ 合计
+
+ ¥
+ {{ totalPrice }}
+
+
+
+ 共{{ checkboxValue.length }}件,已享受最高优惠
+
+
+ 结算
+
+
+
@@ -139,5 +264,97 @@
}
}
}
+
+
+ .action {
+ width: 700rpx;
+ position: fixed;
+ bottom: 60rpx;
+ left: 25rpx;
+ background-color: #fff;
+ height: 130rpx;
+ border-radius: 65rpx;
+ box-shadow: 0 0 6rpx 6rpx #00000010;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ overflow: hidden;
+ z-index: 99;
+ .icon {
+ position: relative;
+ width: 80rpx;
+ height: 80rpx;
+ margin: 0 20rpx;
+
+ image {
+ width: 80rpx;
+ height: 80rpx;
+ }
+
+ .num {
+ position: absolute;
+ right: 10rpx;
+ top: 0rpx;
+ background-color: $uni-color;
+ color: #fff;
+ font-size: 18rpx;
+ border-radius: 50%;
+ height: 30rpx;
+ width: 30rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+ }
+
+ .price {
+ .count {
+ display: flex;
+ font-size: 26rpx;
+ align-items: center;
+
+ view {
+ color: $uni-color;
+ margin-left: 10rpx;
+ text {
+ font-size: 32rpx;
+ font-weight: 900;
+ }
+ }
+ }
+
+ .text {
+ font-size: 22rpx;
+ color: #717171;
+ }
+ }
+
+ .btn2 {
+ margin-left: auto;
+ background-color: $uni-color;
+ height: 100%;
+ padding: 0 50rpx;
+ color: #fff;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+ }
+
+ .plus-create{
+ position: fixed;
+ right: 50rpx;
+ bottom: 30vh;
+ background-color: $uni-color;
+ color: #FFF;
+ width: 100rpx;
+ height: 100rpx;
+ border-radius: 50%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+ font-size: 20rpx;
+ }
}
\ No newline at end of file
diff --git a/pages_order/components/list/gourmet/productSubmit.vue b/pages_order/components/list/gourmet/productSubmit.vue
new file mode 100644
index 0000000..fc1fd22
--- /dev/null
+++ b/pages_order/components/list/gourmet/productSubmit.vue
@@ -0,0 +1,334 @@
+
+
+
+
+
+
+
+
+ {{ address.name }}
+
+
+ {{ address.addressDetail }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 费用明细
+
+
+
+ 应付款:¥{{ totalPrice }}
+
+
+
+
+ 配送费
+
+
+
+
+
+ ¥{{ priceMap.pei_money }}
+
+
+
+
+
+ {{ item.title }}
+
+
+ ¥{{ item.price }}
+
+
+ x{{ item.num }}
+
+
+
+
+
+
+
+
+
+
+ {{ submiitTitle }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/components/product/submit.vue b/pages_order/components/product/submit.vue
index 0e71b0c..46d6951 100644
--- a/pages_order/components/product/submit.vue
+++ b/pages_order/components/product/submit.vue
@@ -28,8 +28,8 @@
-->
-
+
立即兑换
@@ -62,7 +62,15 @@
}
},
methods: {
-
+ submit(){
+ if(this.detail.className == 0){
+ uni.navigateTo({
+ url: '/pages_order/gourmet/gourmetDetail?id=' + this.detail.shopId
+ })
+ return
+ }
+ this.$emit('submit')
+ },
}
}
diff --git a/pages_order/components/product/submitUnitSelect.vue b/pages_order/components/product/submitUnitSelect.vue
index f953b65..180f23a 100644
--- a/pages_order/components/product/submitUnitSelect.vue
+++ b/pages_order/components/product/submitUnitSelect.vue
@@ -85,7 +85,7 @@
-
立即兑换
diff --git a/pages_order/gourmet/gourmetDetail.vue b/pages_order/gourmet/gourmetDetail.vue
index 19587aa..73761b3 100644
--- a/pages_order/gourmet/gourmetDetail.vue
+++ b/pages_order/gourmet/gourmetDetail.vue
@@ -229,7 +229,7 @@