diff --git a/src/views/modules/coupon/userCouponList.vue b/src/views/modules/coupon/userCouponList.vue
index fdec737..28e6649 100644
--- a/src/views/modules/coupon/userCouponList.vue
+++ b/src/views/modules/coupon/userCouponList.vue
@@ -78,12 +78,14 @@
{{scope.row.couponEntity.couponName}}
-
+
{{scope.row.couponEntity.limitedCollar}}
@@ -160,7 +162,7 @@
@@ -230,7 +232,7 @@ export default {
dataListLoading: false,
youForm: {
couponName:'',
- reason:'后台客服操作赠送',
+ remark:'后台客服操作赠送',
ids:undefined
},
loading: false,
@@ -278,12 +280,14 @@ export default {
type: 'warning'
}).then(() => {
this.$http({
- url: this.$http.adornUrl('/common/coupon/delCoupon'),
+ url: this.$http.adornUrl('/common/coupon/delCouponHistory'),
method: 'post',
data: this.$http.adornData({
- id: id
+ couponHistoryId: id
})
}).then(({data}) => {
+ if(data.code!== 0) return this.$message.error(data.msg)
+
if (data && data.code === 0) {
this.$message({
message: '操作成功',
@@ -302,6 +306,7 @@ export default {
dialogHandleClose(){
this.youVisible = false
this.youForm.ids = undefined
+ this.youForm.remark = ''
},
surYou() {
@@ -315,6 +320,7 @@ export default {
}
var data = {
"couponId": this.youForm.ids,
+ "remark": this.youForm.remark,
"userId": this.userId,
"getType":0 //获取类型 0 后台赠送 1 主动获取
}
@@ -335,13 +341,14 @@ export default {
})
this.dialogHandleClose()
this.getDataList()
- }else{
- this.$message({
- message: data.msg,
- type: 'error',
- duration: 1500,
- })
}
+ // else{
+ // this.$message({
+ // message: data.msg,
+ // type: 'error',
+ // duration: 1500,
+ // })
+ // }
})
},
givePersonCoupon() {
diff --git a/src/views/modules/user/user.vue b/src/views/modules/user/user.vue
index 65f4fa8..c5935a0 100644
--- a/src/views/modules/user/user.vue
+++ b/src/views/modules/user/user.vue
@@ -110,7 +110,7 @@
充/扣天医币记录
- 优惠券列表
+ 优惠券管理
修改密码