diff --git a/src/views/bl/massage/massagePackage.vue b/src/views/bl/massage/massagePackage.vue
index c04855f..25f69d9 100644
--- a/src/views/bl/massage/massagePackage.vue
+++ b/src/views/bl/massage/massagePackage.vue
@@ -201,13 +201,20 @@
@click="handleDelete(scope.row)"
>删除
- 购买
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -992,83 +999,92 @@
-
-
-
- 订单号:
-
-
-
- 用户:
-
-
-
- 优惠价:
- {{ packagePrice }}
-
-
- 购买数量:
-
-
-
- 支付金额:
-
-
-
- 支付方式:
-
-
-
-
-
-
-
-
-
-
- 代金卷ID:
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1165,14 +1181,21 @@ export default {
massageImgPercentage:0,//封面图片上传进度
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<服务项目<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- packageId:"",//服务包ID
- ordersNo:"",//订单号
- userId:"",//用户ID
- quantity:0,//数量
- payMoney:0,//支付金额
- payWay:"",//支付方式
- couponId:"",//代金券ID
- dialogFormVisibleBuy: false,
+ // packageId:"",//服务包ID
+ // ordersNo:"",//订单号
+ // userId:"",//用户ID
+ // quantity:0,//数量
+ // payMoney:0,//支付金额
+ // payWay:"",//支付方式
+ // couponId:"",//代金券ID
+ // dialogFormVisibleBuy: false,
+ //
+ // vipRate: 100,
+ // oldSumMoney: 0,
+ // sumMoney: 0,
+ //
+ // ordersId: "",
+ // dialogFormVisiblePay: false,
};
},
methods: {
@@ -2187,58 +2210,98 @@ export default {
showBuyView(row){
this.packageId = row.id;
- this.userId = "";
- this.quantity = 0;
- this.couponId = "";
+ this.userId = 400;
+ this.quantity = 5;
+ this.couponId = "2636,2635";
this.packagePrice = row.price;//单价
- this.payMoney = 0;//支付金额
- this.payWay = "1";//支付方式
+
+ this.vipRate = 90;
+ this.oldSumMoney = 835;
+ this.sumMoney = 751.5;
+
this.dialogFormVisibleBuy = true;
},
- handleBuy(){
- if(this.quantity <= 0){
- this.$message({
- message: "购买失败,购买数量必须大于0!",
- type: "warning",
- duration: 1500
- });
- return;
- }
- this.$http({
- url: this.$http.adornUrl("app/user/package/order/buy"),
- method: "post",
- params: this.$http.adornParams({
- ordersNo: this.ordersNo,
- packageId: this.packageId,
- userId: this.userId,
- quantity: this.quantity,
- payMoney: this.payMoney,
- couponId: this.couponId,
- payWay: this.payWay,
- }),
- }).then(({data}) => {
- if (data.code == 0) {
- this.$message({
- message: "购买成功",
- type: "success",
- duration: 1500,
- onClose: () => {
- },
- });
- this.dialogFormVisibleBuy = false;
- } else {
- this.$message({
- message: data.msg,
- type: "warning",
- duration: 1500,
- onClose: () => {
- },
- });
- }
- });
- },
-
+ // handleBuy(){
+ // if(this.quantity <= 0){
+ // this.$message({
+ // message: "购买失败,购买数量必须大于0!",
+ // type: "warning",
+ // duration: 1500
+ // });
+ // return;
+ // }
+ // this.$http({
+ // url: this.$http.adornUrl("app/user/package/order/insertOrders"),
+ // method: "post",
+ // // params: this.$http.adornParams({
+ // data: this.$http.adornData({
+ // ordersPackageList: [{
+ // packageId: this.packageId,
+ // num: this.quantity,
+ // }],
+ // vipRate: this.vipRate,
+ // oldSumMoney: this.oldSumMoney,
+ // sumMoney: this.sumMoney,
+ // couponId: this.couponId,
+ // userId: this.userId,
+ // }),
+ // }).then(({data}) => {
+ // if (data.code == 0) {
+ // this.$message({
+ // message: "购买成功",
+ // type: "success",
+ // duration: 1500,
+ // onClose: () => {
+ // },
+ // });
+ // this.dialogFormVisibleBuy = false;
+ // } else {
+ // this.$message({
+ // message: data.msg,
+ // type: "warning",
+ // duration: 1500,
+ // onClose: () => {
+ // },
+ // });
+ // }
+ // });
+ // },
+ //
+ // showPayView(){
+ // this.ordersId = "";
+ // this.dialogFormVisiblePay = true;
+ // },
+ //
+ // handlePay(){
+ // this.$http({
+ // url: this.$http.adornUrl("app/user/package/order/payOrder"),
+ // method: "post",
+ // params: this.$http.adornParams({
+ // // data: this.$http.adornData({
+ // ordersId: this.ordersId,
+ // }),
+ // }).then(({data}) => {
+ // if (data.code == 0) {
+ // this.$message({
+ // message: "支付成功",
+ // type: "success",
+ // duration: 1500,
+ // onClose: () => {
+ // },
+ // });
+ // this.dialogFormVisiblePay = false;
+ // } else {
+ // this.$message({
+ // message: data.msg,
+ // type: "warning",
+ // duration: 1500,
+ // onClose: () => {
+ // },
+ // });
+ // }
+ // });
+ // },
},
mounted() {
this.handleSelect();
diff --git a/src/views/bl/order/packageOrder.vue b/src/views/bl/order/packageOrder.vue
index 8bd6f9f..984c89f 100644
--- a/src/views/bl/order/packageOrder.vue
+++ b/src/views/bl/order/packageOrder.vue
@@ -10,28 +10,6 @@
>
-
- 服务类型:
-
-
-
-
-
-
- 服务名称:
-
-
-
状态:
-
-
- {{ showDictValue(scope.row.type, typeDictData) }}
-
-
-
-
{{ scope.row.vipRate }}%
-
-
@@ -153,7 +122,7 @@
-
+